* {
  box-sizing: border-box;
}

/* ARC_HEADER_FOOTER_FINAL_20260813B */
.site-header,
.site-header * {
  box-sizing: border-box !important;
}

.site-header-inner {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

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

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

.site-nav {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.site-nav a,
.site-nav-link {
  white-space: nowrap !important;
}

.site-header-search {
  flex: 0 1 340px !important;
  min-width: 220px !important;
  max-width: 360px !important;
}

.site-header-auth {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

@media (max-width: 1060px) {
  .site-header-inner {
    width: min(100%, calc(100vw - 32px)) !important;
    flex-wrap: wrap !important;
    row-gap: 10px !important;
    padding-block: 10px !important;
  }

  .site-header-main {
    flex: 1 1 100% !important;
    justify-content: space-between !important;
  }

  .site-header-search {
    order: 2 !important;
    flex: 1 1 360px !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .site-header-auth {
    order: 3 !important;
    margin-left: auto !important;
  }
}

@media (max-width: 680px) {
  .site-header-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    justify-content: center !important;
  }

  .site-header-main {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .site-nav {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
  }

  .site-header-search {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .site-header-auth {
    justify-content: center !important;
    margin-left: 0 !important;
  }
}

.site-footer {
  margin-top: 64px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.site-footer-inner {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  padding: 42px 0 48px !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(120px, 1fr)) !important;
  gap: 30px 48px !important;
  align-items: start !important;
}

.site-footer-brand,
.site-footer-column {
  min-width: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
}

.site-footer-brand p {
  max-width: 360px !important;
}

.site-footer-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
  margin-top: 12px !important;
}

.site-footer-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  color: var(--theme-accent, #69c9ff) !important;
  text-decoration: none !important;
}

.site-footer-social-icon,
.site-footer-social-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.site-footer-social-label {
  display: none !important;
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    gap: 26px 40px !important;
  }

  .site-footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    width: min(100%, calc(100vw - 28px)) !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .site-footer-brand {
    grid-column: auto !important;
  }
}

/* ARC_CHROME_LAYOUT_LOCK_20260813I */
.site-header,
.launcher-header,
.topbar {
  overflow: visible !important;
}

.site-header-inner,
.launcher-header-inner,
.topbar-inner {
  width: min(1280px, calc(100vw - 48px)) !important;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.site-header-main,
.launcher-header-main,
.topbar-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
}

.site-logo,
.launcher-logo,
.topbar-logo {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.site-nav,
.launcher-nav,
.topbar-nav {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}

.site-nav a,
.launcher-nav a,
.topbar-nav a,
.site-nav-link {
  white-space: nowrap !important;
}

.site-header-search,
.launcher-search,
.topbar-search {
  flex: 0 1 360px !important;
  min-width: 220px !important;
  max-width: 420px !important;
  margin-left: auto !important;
  position: relative !important;
  z-index: 5 !important;
}

.site-header-auth,
.launcher-auth,
.topbar-auth {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.site-footer-social-links,
.footer-social-links,
.site-footer .social-links,
.footer-social .social-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 13px !important;
  margin-top: 14px !important;
}

.site-footer-social-link,
.footer-social-link,
.site-footer .social-link,
.footer-social .social-link {
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-accent, #69c9ff) !important;
  text-decoration: none !important;
}

.site-footer-social-icon,
.site-footer-social-icon svg,
.footer-social-icon,
.footer-social-icon svg,
.site-footer .social-icon,
.site-footer .social-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}

.site-footer-social-label,
.footer-social-label,
.site-footer .social-label,
.footer-social .social-label {
  display: none !important;
}

@media (max-width: 1120px) {
  .site-header-inner,
  .launcher-header-inner,
  .topbar-inner {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
  }

  .site-header-main,
  .launcher-header-main,
  .topbar-main {
    flex: 1 1 100% !important;
    justify-content: space-between !important;
  }

  .site-header-search,
  .launcher-search,
  .topbar-search {
    order: 2 !important;
    flex: 1 1 360px !important;
    max-width: none !important;
    min-width: 220px !important;
    margin-left: 0 !important;
  }

  .site-header-auth,
  .launcher-auth,
  .topbar-auth {
    order: 3 !important;
    margin-left: auto !important;
  }
}

@media (max-width: 720px) {
  .site-header-inner,
  .launcher-header-inner,
  .topbar-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    justify-content: center !important;
  }

  .site-header-main,
  .launcher-header-main,
  .topbar-main {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .site-nav,
  .launcher-nav,
  .topbar-nav {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
  }

  .site-header-search,
  .launcher-search,
  .topbar-search {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .site-header-auth,
  .launcher-auth,
  .topbar-auth {
    justify-content: center !important;
    margin-left: 0 !important;
  }
}

/* ARC_CHROME_LAYOUT_LOCK_20260813H */
.site-header-inner,
.launcher-header-inner,
.topbar-inner {
  width: min(1280px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

.site-header-main,
.launcher-header-main,
.topbar-main {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.site-nav,
.launcher-nav,
.topbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.site-nav a,
.launcher-nav a,
.topbar-nav a {
  white-space: nowrap !important;
}

.site-header-search,
.launcher-search,
.topbar-search {
  flex: 1 1 320px !important;
  min-width: 240px !important;
  max-width: 420px !important;
  margin-left: auto !important;
}

.site-header-auth,
.launcher-auth,
.topbar-auth {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

.site-footer-social-links,
.footer-social-links,
.site-footer .social-links,
.footer-social .social-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: start !important;
  justify-items: start !important;
  margin-top: 12px !important;
}

.site-footer-social-link,
.footer-social-link,
.site-footer .social-links a,
.footer-social .social-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-accent, #69c9ff) !important;
  text-decoration: none !important;
}

.site-footer-social-icon,
.footer-social-icon,
.site-footer-social-link svg,
.footer-social-link svg,
.site-footer .social-links svg,
.footer-social .social-links svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.site-footer-social-label,
.footer-social-label,
.site-footer .social-links a span:not(.sr-only),
.footer-social .social-links a span:not(.sr-only) {
  display: none !important;
}

@media (max-width: 1120px) {
  .site-header-inner,
  .launcher-header-inner,
  .topbar-inner {
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
  }

  .site-header-search,
  .launcher-search,
  .topbar-search {
    order: 3 !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 720px) {
  .site-header-inner,
  .launcher-header-inner,
  .topbar-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    justify-content: center !important;
  }

  .site-header-main,
  .launcher-header-main,
  .topbar-main,
  .site-nav,
  .launcher-nav,
  .topbar-nav,
  .site-header-auth,
  .launcher-auth,
  .topbar-auth {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* ARC_CHROME_LAYOUT_LOCK_20260813G */
.site-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

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

.site-nav {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.site-nav a,
.site-nav-link,
.site-nav-link-button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.site-header-search {
  flex: 1 1 280px !important;
  min-width: 220px !important;
  max-width: 380px !important;
  margin-left: auto !important;
}

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

.site-header-auth {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

.site-footer-social-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 14px !important;
  margin-top: 12px !important;
}

.site-footer-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-accent, #69c9ff) !important;
  text-decoration: none !important;
}

.site-footer-social-icon,
.site-footer-social-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}

.site-footer-social-label {
  display: none !important;
}

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

  .site-header-main {
    flex: 1 1 auto !important;
  }

  .site-header-auth {
    order: 2 !important;
    margin-left: auto !important;
  }

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

@media (max-width: 720px) {
  .site-header-inner,
  .site-header-main,
  .site-nav,
  .site-header-auth {
    justify-content: center !important;
  }

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

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

/* PRESENCE_LEADERBOARD_SEMANTICS_V1 */
.profile-friend-row.is-offline strong,
.friends-tile.is-offline strong {
  color: #8995a3 !important;
}

.profile-friend-row.is-online strong,
.friends-tile.is-online strong {
  color: #65caff !important;
}

.profile-friend-row.is-playing strong,
.friends-tile.is-playing strong {
  color: #76f3a0 !important;
}

.leaderboard-player > strong {
  color: #ffd34d !important;
  -webkit-text-fill-color: #ffd34d !important;
}

.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;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  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;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  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;
  }
}

/* PRIVATE_LIBRARY_SHARING_V1 */
.library-sharing-section {
  display: grid;
  gap: 16px;
}

.library-sharing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.library-sharing-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(92, 190, 255, .32);
  border-radius: 4px;
  background: rgba(5, 17, 28, .72);
}

.library-sharing-panel h3 {
  margin: 0 0 12px;
  color: #eef6ff;
  font-size: 18px;
}

.library-share-form {
  width: 100%;
  margin: 0;
}

.library-invite-code {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 12px;
  border-left: 3px solid #5cbcff;
  background: rgba(92, 190, 255, .1);
}

.library-invite-code strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 1px;
}

.library-invite-code small,
.library-share-notice,
.library-friend-card small {
  color: #9eb3c8;
}

.library-share-notice {
  padding: 10px 12px;
  border: 1px solid rgba(92, 190, 255, .28);
  border-radius: 4px;
  background: rgba(92, 190, 255, .08);
}

.library-share-list,
.library-friend-grid {
  display: grid;
  gap: 10px;
}

.library-share-row,
.library-friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(92, 190, 255, .24);
  border-radius: 4px;
  background: rgba(3, 13, 22, .72);
}

.library-share-row {
  justify-content: space-between;
}

.library-share-row form {
  flex: 0 0 auto;
  margin: 0;
}

.library-friend-card {
  color: #eef6ff;
  text-decoration: none;
}

.library-friend-card:hover {
  border-color: rgba(92, 190, 255, .7);
  background: rgba(8, 31, 49, .88);
}

.library-friend-card > span:last-child {
  display: grid;
  min-width: 0;
}

.library-owner-hero {
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .library-sharing-grid {
    grid-template-columns: 1fr;
  }

  .library-share-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.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;
  }
}

/* PROFILE_ACTION_COLORS_CANONICAL_V1 */
.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-add {
  border-color: rgba(67, 215, 126, .72) !important;
  background: linear-gradient(180deg, rgba(35, 150, 82, .95), rgba(18, 92, 50, .95)) !important;
  color: #eafff0 !important;
}

.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-add:hover {
  border-color: rgba(104, 235, 155, .9) !important;
  background: linear-gradient(180deg, rgba(46, 180, 100, .98), rgba(22, 112, 60, .98)) !important;
  color: #ffffff !important;
}

.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-remove,
.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-cancel {
  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;
}

.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-remove:hover,
.public-profile-shell .profile-hero-card .profile-level-stack > form.profile-level-action-form > button.profile-level-action.profile-level-action-cancel:hover {
  border-color: rgba(255, 125, 125, .9) !important;
  background: linear-gradient(180deg, rgba(196, 64, 70, .98), rgba(126, 32, 38, .98)) !important;
  color: #ffffff !important;
}

/* FRIENDS_FIND_INTEGRATED_V1 */
.friends-find-page .friends-main .friends-toolbar {
  grid-template-columns: 140px minmax(260px, 1fr) !important;
}

.friends-find-page .friends-toolbar-actions {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) 128px !important;
  gap: 10px !important;
}

.friends-find-page .friends-result-card form {
  margin: 0 !important;
}

.friends-find-page .friends-result-card .friends-result-add-button {
  width: 116px !important;
  border-color: rgba(67, 215, 126, .72) !important;
  background: linear-gradient(180deg, rgba(35, 150, 82, .95), rgba(18, 92, 50, .95)) !important;
  color: #eafff0 !important;
}

.friends-find-page .friends-result-card .friends-result-add-button:hover {
  border-color: rgba(104, 235, 155, .9) !important;
  background: linear-gradient(180deg, rgba(46, 180, 100, .98), rgba(22, 112, 60, .98)) !important;
  color: #ffffff !important;
}

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

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

/* 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-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  justify-self: center;
  border-radius: 6px;
  background: #5bc0f5;
  color: #07111d;
  font-size: 20px;
  font-weight: 900;
}

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

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

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

.platform-directory {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.platform-directory-head {
  margin-bottom: 20px;
}

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

.platform-directory-head p {
  margin: 7px 0 0;
  color: #b7c6d9;
}

.platform-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.platform-directory-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(103, 200, 255, 0.28);
  border-radius: 8px;
  background: rgba(12, 24, 38, 0.84);
  color: #f4f7fb;
  text-decoration: none;
}

.platform-directory-card:hover {
  border-color: rgba(103, 200, 255, 0.68);
  background: rgba(20, 39, 58, 0.94);
}

.platform-directory-name {
  color: #67c8ff;
  font-size: 21px;
  font-weight: 900;
}

.platform-directory-count {
  font-size: 16px;
  font-weight: 800;
}

.platform-directory-cores {
  align-self: end;
  color: #91a8be;
  font-size: 13px;
}

.auth-main:has(.platform-directory),
.auth-main:has(.leaderboard-main),
.auth-main:has(.news-page) {
  padding: 28px 20px 60px;
}

.auth-main:has(.news-page) .news-page {
  width: min(1120px, 100%);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #26384c;
  border-radius: 8px;
}

@media (max-width: 680px) {
  .leaderboard-row {
    grid-template-columns: 42px 56px 1fr;
  }

  .leaderboard-score {
    grid-column: 3;
    font-size: 18px;
  }
}

.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-review-list {
  display: grid;
  gap: 10px;
}

.profile-review-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(5, 13, 22, .68);
  color: #dfeaf5;
  text-decoration: none;
}

.profile-review-row strong {
  color: #f5f9fd;
  font-size: 14px;
}

.profile-review-row small {
  color: #8fd0ff;
  font-size: 12px;
}

.profile-review-row p {
  margin: 0;
  color: #b9c8d8;
  font-size: 12px;
  line-height: 1.45;
}

.play-review-form-shell,
.play-review-login {
  margin: 0 0 14px;
}

.play-review-login {
  padding: 12px 14px;
  border: 1px solid rgba(92, 190, 255, .18);
  border-radius: 6px;
  background: rgba(6, 15, 25, .72);
  color: #aebccc;
}

.play-review-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(92, 190, 255, .2);
  border-radius: 6px;
  background: rgba(6, 15, 25, .82);
}

.play-review-form-title {
  color: #e8f1fa;
  font-size: 15px;
  font-weight: 800;
}

.play-review-label {
  display: grid;
  gap: 6px;
  color: #b9c7d5;
  font-size: 13px;
  font-weight: 700;
}

.play-review-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(92, 190, 255, .3);
  border-radius: 6px;
  background: rgba(4, 11, 19, .95);
  color: #edf5fc;
}

.play-review-textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
  font: inherit;
}

.play-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.play-review-help {
  color: #8ea4b8;
  font-size: 12px;
}

.play-review-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.play-review-status {
  min-height: 18px;
  color: #a9bfd3;
  font-size: 12px;
}

.play-review-status[data-state="success"] {
  color: #76d48d;
}

.play-review-status[data-state="error"] {
  color: #ff8e8e;
}

.play-comment-rating {
  color: #ffd36b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.play-review-stars {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.play-review-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.play-review-star {
  border: 0;
  background: transparent;
  color: rgba(255, 211, 107, .3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.play-review-star.is-active {
  color: #ffd36b;
}

.play-review-star:hover,
.play-review-star:focus-visible {
  color: #ffe08e;
  outline: none;
}

.play-review-stars-current {
  color: #a9bfd3;
  font-size: 13px;
  font-weight: 700;
}

.play-comment-meta-group {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.play-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.play-comment-owner {
  color: #8ea4b8;
  font-size: 12px;
  font-weight: 700;
}

.play-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.play-review-mini-button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(92, 190, 255, .3);
  border-radius: 6px;
  background: rgba(92, 190, 255, .12);
  color: #b8deff;
  font-size: 12px;
  font-weight: 800;
}

.play-review-mini-button-danger,
.play-review-danger-button {
  border-color: rgba(255, 116, 116, .34);
  background: rgba(255, 92, 92, .12);
  color: #ffb1b1;
}

.play-review-secondary-button {
  border-color: rgba(154, 175, 198, .28);
  background: rgba(154, 175, 198, .08);
  color: #c4d0db;
}

.play-review-danger-button:hover,
.play-review-mini-button-danger:hover {
  background: rgba(255, 92, 92, .2);
}

.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 /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;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(92, 190, 255, .42);
  border-radius: 8px;
  background: rgba(92, 190, 255, .12);
  color: #9bd9ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.profile-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2em;
  letter-spacing: 0;
}

.profile-social-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.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: 40px 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: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !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;
}

.public-profile-shell .profile-level-stack .profile-level-action-remove,
.public-profile-shell .profile-level-stack .profile-level-action-cancel {
  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;
}

.public-profile-shell .profile-level-stack .profile-level-action-remove:hover,
.public-profile-shell .profile-level-stack .profile-level-action-cancel:hover {
  border-color: rgba(255, 125, 125, .9) !important;
  background: linear-gradient(180deg, rgba(196, 64, 70, .98), rgba(126, 32, 38, .98)) !important;
  color: #ffffff !important;
}

.public-profile-shell .profile-level-stack .profile-level-action-add {
  border-color: rgba(67, 215, 126, .72) !important;
  background: linear-gradient(180deg, rgba(35, 150, 82, .95), rgba(18, 92, 50, .95)) !important;
  color: #eafff0 !important;
}

.public-profile-shell .profile-level-stack .profile-level-action-add:hover {
  border-color: rgba(104, 235, 155, .9) !important;
  background: linear-gradient(180deg, rgba(46, 180, 100, .98), rgba(22, 112, 60, .98)) !important;
  color: #ffffff !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;
  }
}

/* FRIEND_PRESENCE_COLORS_V1 */
.friends-tile.is-playing .friends-tile-copy strong {
  color: #b6e36d !important;
}

.friends-tile.is-offline .friends-tile-copy strong {
  color: #7f8b96 !important;
}

/* NOTIFICATIONS_DERIVED_FROM_FRIENDS_V1 */
.site-notifications-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.site-notification-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #e14d5d !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.notifications-page-shell {
  width: min(1040px, calc(100vw - 40px)) !important;
  margin: 48px auto 80px !important;
}

.notifications-panel {
  margin: 0 !important;
}

.notifications-list {
  padding: 18px 20px 22px !important;
  display: grid !important;
  gap: 10px !important;
}

.notification-row {
  width: min(720px, 100%) !important;
}

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

.notification-view-button {
  width: auto !important;
  min-width: 84px !important;
  align-self: center !important;
  text-align: center !important;
}

/* NOTIFICATIONS_SPLASH_PANEL_V1 */
.site-header-auth {
  position: relative;
}

.site-notifications-link {
  border: 0 !important;
  background: transparent !important;
  font: inherit !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.site-notifications-bell {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  justify-content: center !important;
  border: 1px solid rgba(79, 156, 208, .42) !important;
  border-radius: 8px !important;
  background: rgba(9, 25, 39, .72) !important;
}

.site-notifications-bell:hover {
  border-color: rgba(101, 202, 255, .72) !important;
  background: rgba(14, 43, 64, .86) !important;
}

.site-notifications-bell-icon {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.1 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.site-notifications-bell .site-notification-badge {
  position: absolute !important;
  top: -6px !important;
  right: -7px !important;
}

.site-notifications-link:hover {
  color: #ffffff !important;
}

.site-notifications-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 74px;
  z-index: 10000;
  width: min(420px, calc(100vw - 24px));
  border: 1px solid rgba(64, 156, 214, .62);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 40, 58, .98), rgba(5, 18, 30, .98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .48);
  color: #d7e4f0;
}

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

.site-notifications-panel-head {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(90deg, rgba(54, 78, 97, .95), rgba(12, 91, 118, .92));
  border-bottom: 1px solid rgba(74, 164, 218, .45);
}

.site-notifications-panel-head strong {
  font-size: 16px;
  font-weight: 900;
}

.site-notifications-panel-count {
  font-weight: 900;
  color: #dcecff;
}

.site-notifications-panel-body {
  max-height: min(480px, calc(100vh - 120px));
  overflow: auto;
  padding: 16px;
  display: grid;
  gap: 9px;
}

.site-notification-section {
  display: grid;
  gap: 9px;
}

.site-notification-section h3 {
  margin: 0;
  color: #9fb8cb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-notification-row {
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 130, 184, .48);
  border-radius: 5px;
  background: rgba(3, 14, 24, .78);
}

.site-notification-avatar {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #60c5ff;
  color: #041423;
  font-weight: 900;
}

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

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

.site-notification-copy strong,
.site-notification-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-notification-copy strong {
  color: #e8f3ff;
  font-size: 13px;
  font-weight: 900;
}

.site-notification-copy small {
  color: #a9bbcc;
  font-size: 12px;
}

.site-notification-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-notification-actions form {
  margin: 0;
}

.site-notification-actions button,
.site-notification-view {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(91, 190, 255, .44);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(17, 70, 101, .96), rgba(9, 42, 64, .96));
  color: #9fddff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.site-notification-actions button:hover,
.site-notification-view:hover {
  border-color: rgba(110, 210, 255, .82);
  color: #ffffff;
}

.site-notification-empty {
  padding: 12px;
  border-radius: 4px;
  background: rgba(5, 13, 22, .66);
  color: #aebdcb;
}

@media (max-width: 700px) {
  .site-notifications-panel {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    width: auto;
  }

  .site-notification-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .site-notification-actions,
  .site-notification-view {
    grid-column: 2;
    justify-self: start;
  }
}

/* NOTIFICATIONS_SINGLE_STREAM_V2 */
.site-notification-badge[hidden] {
  display: none !important;
}

.site-notification-event,
.notification-update-row {
  text-decoration: none !important;
  color: inherit !important;
}

.site-notification-event:hover,
.notification-update-row:hover {
  border-color: rgba(110, 210, 255, .78) !important;
  background: rgba(7, 28, 44, .9) !important;
}

.notifications-list .notification-row {
  width: 100% !important;
}

.notifications-list .notification-update-row {
  grid-template-columns: 42px minmax(0, 1fr) !important;
}

/* HEADER_STABLE_LINE_V1 */
@media (min-width: 941px) {
  .site-header {
    padding: 0 24px !important;
  }

  .site-header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 320px) max-content !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 72px !important;
    padding: 0 !important;
  }

  .site-header-main {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 22px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

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

  .site-nav {
    display: flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    min-width: 0 !important;
  }

  .site-nav-link,
  .site-nav-link-button {
    white-space: nowrap !important;
  }

  .site-header-search {
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 320px !important;
    margin: 0 !important;
  }

  .site-header-auth {
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-left: 0 !important;
    min-width: max-content !important;
  }
}

@media (max-width: 1180px) and (min-width: 941px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) max-content !important;
    gap: 12px !important;
  }

  .site-header-main {
    gap: 18px !important;
  }

  .site-nav {
    gap: 12px !important;
  }

  .site-nav-link,
  .site-nav-link-button {
    font-size: 14px !important;
  }
}

@media (max-width: 940px) {
  .site-header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 14px 0 !important;
  }

  .site-header-main,
  .site-nav,
  .site-header-auth {
    justify-content: center !important;
  }

  .site-header-search {
    width: min(100%, 420px) !important;
    margin: 0 auto !important;
  }
}
/* PRIVATE_LIBRARY_UI_V2 */
.auth-main:has(.library-page-shell) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 24px 64px;
  box-sizing: border-box;
}

.library-page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: #d9e5f2;
}

.library-page-shell::after {
  content: none !important;
  display: none !important;
}

.library-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 24px 28px;
  border: 1px solid #2b5877;
  border-radius: 6px;
  background: linear-gradient(90deg, #081725, #123d57);
  box-sizing: border-box;
}

.library-page-hero h1,
.library-card h2,
.library-help-card h2 {
  margin: 0;
  color: #f5f8fc;
  letter-spacing: 0;
}

.library-page-hero h1 {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1.1;
}

.library-page-hero p,
.library-card-head p,
.library-sharing-panel > p,
.library-storage-card > p {
  margin: 8px 0 0;
  color: #a9bbce;
  line-height: 1.5;
}

.library-eyebrow,
.library-step {
  color: #67c8ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.library-count {
  display: grid;
  min-width: 92px;
  justify-items: center;
  padding: 12px 16px;
  border-left: 1px solid rgba(103, 200, 255, .35);
}

.library-count strong {
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
}

.library-count span {
  margin-top: 5px;
  color: #9fc1d8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.library-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.library-main-column,
.library-help-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.library-help-column {
  position: sticky;
  top: 18px;
}

.library-card,
.library-help-card {
  padding: 20px;
  border: 1px solid #284c68;
  border-radius: 6px;
  background: #0d1b29;
  box-sizing: border-box;
}

.library-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #263f57;
}

.library-card-head h2,
.library-help-card h2 {
  margin-top: 4px;
  font-size: 21px;
}

.library-card-head-compact {
  align-items: center;
}

.library-storage-badge,
.library-card-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #2f6d92;
  border-radius: 4px;
  background: #102d40;
  color: #9dddff;
  font-size: 12px;
  font-weight: 900;
}

.library-upload-form,
.library-share-form {
  display: grid;
  gap: 14px;
}

.library-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .55fr);
  gap: 14px;
}

.library-upload-form label,
.library-share-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #c8d5e3;
  font-weight: 800;
}

.library-upload-form input:not([type="checkbox"]),
.library-upload-form select,
.library-share-form input,
.library-share-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #315675;
  border-radius: 5px;
  background: #071522;
  color: #eef6ff;
  box-sizing: border-box;
  font: inherit;
}

.library-upload-form input:focus,
.library-upload-form select:focus,
.library-share-form input:focus,
.library-share-form select:focus {
  outline: 2px solid rgba(92, 190, 255, .38);
  outline-offset: 1px;
  border-color: #5cbeff;
}

.library-file-field input[type="file"] {
  padding: 7px;
}

.library-file-field input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  padding: 0 11px;
  border: 1px solid #3a6f91;
  border-radius: 4px;
  background: #153b54;
  color: #d9f2ff;
  font-weight: 800;
  cursor: pointer;
}

.library-file-field small {
  color: #8fa6bc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.library-rights-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid #294a65;
  border-radius: 5px;
  background: #091725;
  cursor: pointer;
}

.library-rights-check input {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 1px 0 0;
  accent-color: #5cbeff;
}

.library-primary-button,
.library-secondary-button,
.library-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #4387b1;
  border-radius: 5px;
  color: #eaf8ff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.library-primary-button {
  width: 100%;
  min-height: 42px;
  background: #126d94;
}

.library-secondary-button {
  background: #153b54;
}

.library-danger-button {
  border-color: #8e4b50;
  background: #542a30;
  color: #ffdfe2;
}

.library-primary-button:hover,
.library-secondary-button:hover {
  border-color: #75d1ff;
  background: #1a759d;
}

.library-danger-button:hover {
  border-color: #d16d75;
  background: #73343b;
}

.library-primary-button:disabled,
.library-secondary-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.library-game-list,
.library-share-list,
.library-friend-grid {
  display: grid;
  gap: 10px;
}

.private-library-card,
.library-share-row,
.library-friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #233f57;
  border-radius: 5px;
  background: #081522;
}

.private-library-game-copy,
.library-friend-card {
  min-width: 0;
}

.private-library-game-copy {
  display: grid;
  gap: 4px;
}

.private-library-game-copy strong,
.library-share-row strong,
.library-friend-card strong {
  color: #eef6ff;
}

.private-library-game-copy small,
.library-friend-card small {
  color: #91a8bd;
}

.private-library-game-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.private-library-game-actions form,
.library-share-row form {
  margin: 0;
}

.library-sharing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.library-sharing-panel {
  min-width: 0;
  padding: 2px 18px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.library-sharing-panel + .library-sharing-panel {
  padding: 2px 0 2px 18px;
  border-left: 1px solid #263f57;
}

.library-sharing-panel h3 {
  margin: 0;
  color: #eef6ff;
  font-size: 17px;
}

.library-invite-code {
  margin: 14px 0 0;
}

.library-share-notice {
  width: min(1180px, 100%);
  margin: 14px auto 0;
  box-sizing: border-box;
}

.library-help-card h2 {
  margin-bottom: 14px;
}

.library-guide-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: library-step;
}

.library-guide-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  counter-increment: library-step;
}

.library-guide-list li::before {
  content: counter(library-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  grid-row: 1 / span 2;
  border: 1px solid #3d7da5;
  border-radius: 50%;
  color: #8ed8ff;
  font-size: 12px;
  font-weight: 900;
}

.library-guide-list strong {
  color: #eaf3fc;
}

.library-guide-list span {
  margin-top: 3px;
  color: #8fa5ba;
  font-size: 12px;
  line-height: 1.4;
}

.library-storage-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.library-storage-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #20384d;
}

.library-storage-card dt {
  color: #91a8bd;
}

.library-storage-card dd {
  margin: 0;
  color: #eef6ff;
  font-weight: 800;
  text-align: right;
}

.library-storage-card p {
  font-size: 12px;
}

.library-page-nav {
  display: grid;
  gap: 6px;
}

.library-page-nav h2 {
  margin-bottom: 8px;
}

.library-page-nav a {
  padding: 9px 10px;
  border-left: 2px solid #315b78;
  background: #091724;
  color: #addfff;
  text-decoration: none;
  font-weight: 800;
}

.library-page-nav a:hover {
  border-left-color: #67c8ff;
  background: #10283a;
}

@media (max-width: 900px) {
  .library-page-layout {
    grid-template-columns: 1fr;
  }

  .library-help-column {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-page-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-main:has(.library-page-shell) {
    padding: 18px 12px 40px;
  }

  .library-page-hero {
    align-items: flex-start;
    padding: 20px;
  }

  .library-page-hero h1 {
    font-size: 28px;
  }

  .library-count {
    min-width: 64px;
    padding: 8px 10px;
  }

  .library-card,
  .library-help-card {
    padding: 16px;
  }

  .library-upload-grid,
  .library-sharing-grid,
  .library-help-column {
    grid-template-columns: 1fr;
  }

  .library-sharing-panel,
  .library-sharing-panel + .library-sharing-panel {
    padding: 0;
    border-left: 0;
  }

  .library-sharing-panel + .library-sharing-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #263f57;
  }

  .private-library-card,
  .library-share-row {
    align-items: stretch;
    flex-direction: column;
  }

  .private-library-game-actions,
  .private-library-game-actions > *,
  .private-library-game-actions .library-secondary-button,
  .private-library-game-actions .library-danger-button {
    width: 100%;
  }
}


/* PRIVATE_LIBRARY_E2E_V1 */
.private-library-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.private-library-game-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #34779e;
  border-radius: 5px;
  background: #11334a;
  color: #87d7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.private-library-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card-button {
  min-width: 66px;
  min-height: 34px;
}

.library-form-error {
  padding: 11px 12px;
  border: 1px solid #a74c55;
  border-radius: 5px;
  background: #3c1e25;
  color: #ffd7db;
  font-weight: 800;
}

.library-form-error[hidden] {
  display: none;
}

.library-edit-shell {
  width: min(680px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.library-edit-shell .library-card-head h1 {
  margin: 4px 0 0;
  color: #f5f8fc;
  font-size: 28px;
}

.library-file-summary {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid #294a65;
  border-radius: 5px;
  background: #091725;
}

.library-file-summary span,
.library-file-summary small {
  color: #8fa6bc;
}

.library-file-summary strong {
  color: #eef6ff;
}

.library-edit-actions {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) minmax(180px, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .private-library-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .private-library-game-art {
    width: 50px;
    height: 50px;
  }

  .private-library-game-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .library-edit-actions {
    grid-template-columns: 1fr;
  }
}

/* NAV_HOME_NEWS_CLEANUP_V1 */
#leaderboard-section {
  display: none !important;
}

.launcher-home-news {
  margin-top: 22px;
}

.launcher-home-news .launcher-news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.launcher-home-news .launcher-news-card {
  min-height: 150px;
}

.auth-main:has(.news-page) .news-page {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.news-page-heading {
  margin: 0 0 22px;
}

.news-page-heading h1 {
  margin: 4px 0 0;
  color: #f4f7fb;
  font-size: 34px;
  line-height: 1.08;
}

.news-back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #66c0f4;
  font-weight: 800;
  text-decoration: none;
}

.news-back-link:hover {
  color: #a8e1ff;
}

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

/* CANONICAL_THEME_SYSTEM_V52 */

#launcher-hero[hidden], #news-section[hidden], #featured-section[hidden],
#popular-section[hidden], #leaderboard-section[hidden], .launcher-section[hidden] {
  display: none !important;
}

:root, :root[data-theme="blue"] {
  --theme-accent: #66c0f4; --theme-accent-strong: #2f94c9; --theme-rgb: 102, 192, 244;
  --theme-page: #0b1118; --theme-deep: #070c12; --theme-card: #101b28;
  --theme-soft: #142232; --theme-head: #21364a; --theme-row: #0c1928;
  --theme-border: #315a78; --theme-muted: #9bb0c4; --theme-text: #f3f7fb;
}
:root[data-theme="green"] {
  --theme-accent: #72e59a; --theme-accent-strong: #2e9d58; --theme-rgb: 114, 229, 154;
  --theme-page: #06150f; --theme-deep: #03100b; --theme-card: #0b241a;
  --theme-soft: #102f22; --theme-head: #1b4533; --theme-row: #081d15;
  --theme-border: #32764e; --theme-muted: #a0bbae; --theme-text: #f2f8f4;
}
:root[data-theme="red"] {
  --theme-accent: #ff8495; --theme-accent-strong: #c6424b; --theme-rgb: 255, 132, 149;
  --theme-page: #18070b; --theme-deep: #100407; --theme-card: #2a1117;
  --theme-soft: #35171f; --theme-head: #572731; --theme-row: #210c12;
  --theme-border: #81404a; --theme-muted: #c0a8ae; --theme-text: #fff4f6;
}
:root[data-theme="white"] {
  --theme-accent: #f1f5f9; --theme-accent-strong: #aab8c5; --theme-rgb: 241, 245, 249;
  --theme-page: #202831; --theme-deep: #171e26; --theme-card: #293540;
  --theme-soft: #33414d; --theme-head: #485966; --theme-row: #222d37;
  --theme-border: #788998; --theme-muted: #c0cad3; --theme-text: #fff;
}
:root[data-theme="black"] {
  --theme-accent: #b8c1cb; --theme-accent-strong: #707c88; --theme-rgb: 184, 193, 203;
  --theme-page: #080a0d; --theme-deep: #030405; --theme-card: #11161c;
  --theme-soft: #181f27; --theme-head: #242d37; --theme-row: #0d1217;
  --theme-border: #414d59; --theme-muted: #9ca7b2; --theme-text: #f5f7f9;
}

:root[data-theme] {
  --arcade-theme-accent: var(--theme-accent);
  --arcade-theme-accent-strong: var(--theme-accent-strong);
  --arcade-theme-accent-rgb: var(--theme-rgb);
  --arcade-theme-bg: var(--theme-page); --arcade-theme-page: var(--theme-page);
  --arcade-theme-card: var(--theme-card); --arcade-theme-card-soft: var(--theme-soft);
  --arcade-theme-panel: var(--theme-card); --arcade-theme-panel-soft: var(--theme-soft);
  --arcade-theme-panel-strong: var(--theme-head); --arcade-theme-panel-muted: var(--theme-deep);
  --arcade-theme-head: var(--theme-head); --arcade-theme-row: var(--theme-row);
  --arcade-theme-border: var(--theme-border); --arcade-theme-soft: rgba(var(--theme-rgb), .14);
  --arcade-theme-text: var(--theme-text); --arcade-theme-muted: var(--theme-muted);
}

:root[data-theme] body {
  color: var(--theme-text) !important;
  background: radial-gradient(circle at top right, rgba(var(--theme-rgb), .12), transparent 34rem),
    linear-gradient(180deg, var(--theme-page), var(--theme-deep) 48rem) !important;
}

:root[data-theme] .site-header {
  border-color: var(--theme-border) !important;
  background: color-mix(in srgb, var(--theme-card) 90%, transparent) !important;
}

:root[data-theme] .site-logo,
:root[data-theme] .launcher-game-title-link,
:root[data-theme] .launcher-game-card h3,
:root[data-theme] .launcher-game-card h3 a,
:root[data-theme] .game-card h3,
:root[data-theme] .game-card h3 a {
  color: var(--theme-text) !important;
  -webkit-text-fill-color: var(--theme-text) !important;
  background: none !important;
}

:root[data-theme] .launcher-game-card:hover .launcher-game-title-link,
:root[data-theme] .launcher-game-card:focus-within .launcher-game-title-link,
:root[data-theme] .launcher-game-title-link:hover,
:root[data-theme] .game-card:hover h3 a {
  color: var(--theme-accent) !important;
  -webkit-text-fill-color: var(--theme-accent) !important;
}

:root[data-theme] .site-nav-link:hover,
:root[data-theme] .site-nav-link.is-active,
:root[data-theme] .site-nav-link-active,
:root[data-theme] .launcher-news-link,
:root[data-theme] .news-back-link,
:root[data-theme] .profile-kicker,
:root[data-theme] .library-eyebrow,
:root[data-theme] .library-step,
:root[data-theme] .launcher-hero-kicker,
:root[data-theme] .launcher-hero-meta a,
:root[data-theme] .launcher-game-meta a,
:root[data-theme] .launcher-card-genre,
:root[data-theme] .play-genre,
:root[data-theme] .play-genres a,
:root[data-theme] .play-game-info-row a,
:root[data-theme] .site-footer a:hover,
:root[data-theme] .site-info-page a {
  color: var(--theme-accent) !important;
}

:root[data-theme] .launcher-game-meta a,
:root[data-theme] .launcher-card-genre,
:root[data-theme] .play-genre,
:root[data-theme] .play-genres a {
  padding: 0 !important; background: transparent !important; box-shadow: none !important;
}

:root[data-theme] .site-nav-dropdown-menu,
:root[data-theme] .site-nav-platforms-tree,
:root[data-theme] .site-search-popover,
:root[data-theme] .site-search-results,
:root[data-theme] .site-search-dropdown,
:root[data-theme] .site-notifications-panel,
:root[data-theme] .launcher-game,
:root[data-theme] .launcher-game-card,
:root[data-theme] .launcher-news-card,
:root[data-theme] .news-card,
:root[data-theme] .leaderboard-row,
:root[data-theme] .advanced-search-results-list > a,
:root[data-theme] .advanced-search-row,
:root[data-theme] .friends-hero,
:root[data-theme] .friends-sidebar-section,
:root[data-theme] .friends-main,
:root[data-theme] .friends-toolbar,
:root[data-theme] .library-hero,
:root[data-theme] .library-card,
:root[data-theme] .library-guide-card,
:root[data-theme] .library-storage-card,
:root[data-theme] .library-page-shell section,
:root[data-theme] .profile-hero-card-rich,
:root[data-theme] .profile-showcase,
:root[data-theme] .profile-section,
:root[data-theme] .profile-side-card,
:root[data-theme] .profile-games-section,
:root[data-theme] .play-game-info-panel,
:root[data-theme] .play-action-bar,
:root[data-theme] .play-save-panel,
:root[data-theme] .play-help-panel,
:root[data-theme] .play-controls-panel,
:root[data-theme] .play-reviews-panel,
:root[data-theme] .play-review-form-shell,
:root[data-theme] .play-comments,
:root[data-theme] .play-comment-empty,
:root[data-theme] .auth-panel,
:root[data-theme] .site-info-sections > section {
  border-color: var(--theme-border) !important;
  background: var(--theme-card) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-section-header,
:root[data-theme] .launcher-section-title,
:root[data-theme] .news-page-heading,
:root[data-theme] .news-section-head,
:root[data-theme] .profile-showcase-head,
:root[data-theme] .profile-section-head,
:root[data-theme] .profile-side-head,
:root[data-theme] .friends-toolbar,
:root[data-theme] .library-card-head,
:root[data-theme] .library-card-head-compact,
:root[data-theme] .play-panel-header,
:root[data-theme] .play-controls-head {
  border-color: var(--theme-border) !important;
  background: linear-gradient(90deg, var(--theme-head), var(--theme-soft)) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-section > h2,
:root[data-theme] #featured-section > h2,
:root[data-theme] #popular-section > h2,
:root[data-theme] .launcher-section-title {
  background: transparent !important; box-shadow: none !important;
}

:root[data-theme] input,
:root[data-theme] select,
:root[data-theme] textarea,
:root[data-theme] .site-search-input,
:root[data-theme] .site-header-search input,
:root[data-theme] .launcher-filter-input,
:root[data-theme] .launcher-filter-select,
:root[data-theme] .friends-toolbar input,
:root[data-theme] .advanced-search-page input,
:root[data-theme] .advanced-search-page select,
:root[data-theme] .library-page-shell input,
:root[data-theme] .library-page-shell select,
:root[data-theme] .library-page-shell textarea {
  border-color: var(--theme-border) !important;
  background: var(--theme-deep) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] input:focus,
:root[data-theme] select:focus,
:root[data-theme] textarea:focus,
:root[data-theme] .site-search-input:focus,
:root[data-theme] .friends-toolbar input:focus {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--theme-rgb), .18) !important;
  outline: none !important;
}

:root[data-theme] #friends-search {
  border-color: var(--theme-border) !important;
  background: var(--theme-deep) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] #friends-search:focus {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 0 2px rgba(var(--theme-rgb), .18) !important;
  outline: none !important;
}

:root[data-theme] .site-search-result,
:root[data-theme] .site-search-empty,
:root[data-theme] .site-notification-row,
:root[data-theme] .notification-row,
:root[data-theme] .auth-empty-state,
:root[data-theme] .play-save-slot,
:root[data-theme] .play-comment-empty,
:root[data-theme] .play-review-empty,
:root[data-theme] .library-file-summary,
:root[data-theme] .library-rights-check {
  border-color: color-mix(in srgb, var(--theme-accent) 28%, transparent) !important;
  background: var(--theme-row) !important;
  color: var(--theme-muted) !important;
}

:root[data-theme] .site-search-result:hover,
:root[data-theme] .site-search-result:focus,
:root[data-theme] .site-nav-tree-link:hover,
:root[data-theme] .site-nav-tree-link.is-active,
:root[data-theme] .friends-sidebar-link:hover,
:root[data-theme] .friends-sidebar-link.is-active,
:root[data-theme] .library-page-nav a:hover,
:root[data-theme] .library-page-nav a.is-active {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] button,
:root[data-theme] .site-auth-button,
:root[data-theme] .site-notifications-bell,
:root[data-theme] .site-notifications-button,
:root[data-theme] .launcher-hero-button,
:root[data-theme] .launcher-filter-clear,
:root[data-theme] .friends-find-button,
:root[data-theme] .library-primary-button,
:root[data-theme] .library-secondary-button,
:root[data-theme] .play-action-bar button,
:root[data-theme] .play-controls-tabs button,
:root[data-theme] .play-controls-close {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] button:hover,
:root[data-theme] .site-auth-button:hover,
:root[data-theme] .site-notifications-bell:hover,
:root[data-theme] .launcher-hero-button:hover,
:root[data-theme] .launcher-filter-clear:hover,
:root[data-theme] .friends-find-button:hover,
:root[data-theme] .library-primary-button:hover,
:root[data-theme] .library-secondary-button:hover,
:root[data-theme] .play-action-bar button:hover,
:root[data-theme] .play-controls-tabs button:hover,
:root[data-theme] .play-controls-tabs button.is-active {
  border-color: var(--theme-accent) !important;
  background: var(--theme-head) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-hero-dots span,
:root[data-theme] .launcher-hero-dots button,
:root[data-theme] .launcher-hero-dot,
:root[data-theme] .hero-dot {
  background: color-mix(in srgb, var(--theme-accent) 30%, #8995a3) !important;
}
:root[data-theme] .launcher-hero-dots .is-active,
:root[data-theme] .launcher-hero-dot-active,
:root[data-theme] .launcher-hero-dot.is-active,
:root[data-theme] .hero-dot.is-active { background: var(--theme-accent) !important; }

:root[data-theme] .launcher-genre-chip {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-accent) !important;
  font: inherit !important;
}

:root[data-theme] .launcher-news-type,
:root[data-theme] .news-tag,
:root[data-theme] .news-card .badge {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

/* Ratings are semantic, not theme accents. */
:root[data-theme] .play-review-star {
  color: #66717d !important; -webkit-text-fill-color: #66717d !important;
}
:root[data-theme] .play-review-star.is-active,
:root[data-theme] .play-rating-summary-stars,
:root[data-theme] .play-rating-stars {
  color: #ffd34d !important; -webkit-text-fill-color: #ffd34d !important;
}
:root[data-theme] .play-review-star:hover,
:root[data-theme] .play-review-star:focus-visible {
  color: #ffe58b !important; -webkit-text-fill-color: #ffe58b !important;
}

/* Presence colors never change with the launcher theme. */
:root[data-theme] .friends-tile.is-offline strong,
:root[data-theme] .friends-tile[data-presence="offline"] strong,
:root[data-theme] .friends-tile[data-status="offline"] strong,
:root[data-theme] .profile-friend-row.is-offline strong { color: #8995a3 !important; }
:root[data-theme] .friends-tile.is-online strong,
:root[data-theme] .friends-tile[data-presence="online"] strong,
:root[data-theme] .friends-tile[data-status="online"] strong,
:root[data-theme] .profile-friend-row.is-online strong { color: #65caff !important; }
:root[data-theme] .friends-tile.is-playing strong,
:root[data-theme] .friends-tile[data-presence="playing"] strong,
:root[data-theme] .friends-tile[data-status="playing"] strong,
:root[data-theme] .profile-friend-row.is-playing strong { color: #76f3a0 !important; }
:root[data-theme] .friends-tile.is-playing,
:root[data-theme] .friends-tile[data-presence="playing"],
:root[data-theme] .friends-tile[data-status="playing"] { border-left-color: #34e879 !important; }

:root[data-theme] .profile-level-box,
:root[data-theme] .library-count,
:root[data-theme] .library-card-count,
:root[data-theme] .leaderboard-rank,
:root[data-theme] .leaderboard-score {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}
:root[data-theme] .profile-level-box strong,
:root[data-theme] .library-count strong,
:root[data-theme] .library-card-count,
:root[data-theme] .leaderboard-rank,
:root[data-theme] .leaderboard-score { color: var(--theme-accent) !important; }

:root[data-theme] .profile-friend-button,
:root[data-theme] .profile-level-action-add,
:root[data-theme] .friend-action-add {
  border-color: #32a85b !important; background: #174f2d !important; color: #9bf0b9 !important;
}
:root[data-theme] .profile-level-action-remove,
:root[data-theme] .friend-action-remove,
:root[data-theme] .play-review-danger-button {
  border-color: #b74452 !important; background: #5b2029 !important; color: #ffb1ba !important;
}

:root[data-theme] .play-help-row {
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--theme-text) !important;
}

.profile-theme-picker { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.profile-theme-picker legend { margin-bottom: 8px; color: #c8d4e2; font-weight: 800; }
.profile-theme-picker small { color: #8fa6bc; }
.profile-theme-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.profile-theme-options button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border-radius: 5px; font-weight: 800; cursor: pointer; }
.profile-theme-swatch { width: 15px; height: 15px; border: 1px solid rgba(255,255,255,.48); border-radius: 3px; }
.profile-theme-swatch-blue { background: #66c0f4; }
.profile-theme-swatch-green { background: #53c878; }
.profile-theme-swatch-red { background: #e85b64; }
.profile-theme-swatch-white { background: #f2f5f8; }
.profile-theme-swatch-black { background: #11161c; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--theme-border); background: var(--theme-deep); }
.site-footer-inner { display: grid; grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(120px, 1fr)); gap: 36px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 48px; }
.site-footer-brand, .site-footer-column { display: grid; align-content: start; gap: 10px; }
.site-footer-logo { color: var(--theme-text) !important; font-size: 28px; font-weight: 900; text-decoration: none; }
.site-footer-brand p { max-width: 390px; margin: 0; color: var(--theme-muted); line-height: 1.55; }
.site-footer-brand small, .site-footer-column a { color: var(--theme-muted); background: transparent !important; }
.site-footer-column strong { color: var(--theme-text); text-transform: uppercase; font-size: 12px; }
.site-footer-column a { text-decoration: none; }

.site-privacy-banner { position: fixed; z-index: 10000; right: 18px; bottom: 18px; left: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; padding: 20px 24px; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-card); box-shadow: 0 18px 50px rgba(0,0,0,.48); }
.site-privacy-copy strong { color: var(--theme-text); font-size: 17px; }
.site-privacy-copy p { max-width: 850px; margin: 7px 0; color: var(--theme-muted); line-height: 1.45; }
.site-privacy-actions { display: flex; gap: 9px; }
.site-privacy-preferences { grid-column: 1 / -1; display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--theme-border); color: var(--theme-text); }
.site-privacy-preferences[hidden] { display: none; }

.site-info-page { width: min(900px, calc(100% - 40px)); margin: 48px auto 0; }
.site-info-heading { padding-bottom: 24px; border-bottom: 1px solid var(--theme-border); }
.site-info-heading h1 { margin: 6px 0 10px; color: var(--theme-text); font-size: 36px; }
.site-info-heading p, .site-info-sections p { color: var(--theme-muted); line-height: 1.65; }
.site-info-sections { display: grid; gap: 12px; margin-top: 22px; }
.site-info-sections > section { padding: 20px; border-radius: 5px; }
.site-info-sections h2 { margin: 0 0 8px; color: var(--theme-text); font-size: 19px; }
.site-info-sections p { margin: 0; }

.play-removed-shell { width: min(980px, calc(100vw - 40px)); margin: 88px auto 0; display: grid; gap: 18px; }
.play-removed-heading { padding: 24px; border: 1px solid var(--theme-border); border-radius: 6px; background: linear-gradient(135deg, var(--theme-deep), var(--theme-head)); }
.play-removed-kicker { color: var(--theme-accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; }
.play-removed-heading h1 { margin: 8px 0; font-size: clamp(32px, 5vw, 56px); line-height: 1; }
.play-removed-heading p, .play-removed-card p { margin: 0; color: var(--theme-muted); }
.play-removed-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; min-height: 300px; padding: 30px; border: 1px solid var(--theme-border); border-radius: 6px; background: #02060b; }
.play-removed-mark { display: grid; place-items: center; aspect-ratio: 1; border: 4px solid #f3f7ff; color: #fff; font-size: 42px; font-weight: 1000; transform: rotate(-2deg); }
.play-removed-card h2 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; }
.play-removed-note { margin-top: 14px !important; padding: 12px; border-radius: 4px; background: rgba(255,255,255,.06); }
.play-removed-meta { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-card); color: var(--theme-muted); }
.play-removed-meta code { color: var(--theme-accent); }

@media (max-width: 800px) {
  .profile-theme-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-privacy-banner { grid-template-columns: 1fr; }
  .site-privacy-actions { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .play-removed-shell { margin-top: 32px; width: min(100% - 24px, 980px); }
  .play-removed-card { grid-template-columns: 1fr; }
  .play-removed-mark { width: 150px; }
}
@media (max-width: 520px) {
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-brand { grid-column: auto; }
  .site-privacy-banner { right: 10px; bottom: 10px; left: 10px; padding: 17px; }
  .site-privacy-preferences { display: grid; gap: 10px; }
}

/* THEME_SURFACE_COMPLETION_V1
   Scope only surfaces that still carried legacy blue values. */
:root[data-theme] .launcher-quick-search,
:root[data-theme] .site-search-popover,
:root[data-theme] .site-notifications-panel,
:root[data-theme] .site-notification-empty,
:root[data-theme] .play-social,
:root[data-theme] .play-review-form,
:root[data-theme] .profile-activity-card,
:root[data-theme] .profile-friend-row,
:root[data-theme] .friends-tile,
:root[data-theme] .library-page-hero,
:root[data-theme] .library-page-nav a {
  border-color: var(--theme-border) !important;
  background: var(--theme-row) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-quick-search,
:root[data-theme] .site-search-popover,
:root[data-theme] .site-notifications-panel,
:root[data-theme] .play-social,
:root[data-theme] .library-page-hero {
  background: var(--theme-card) !important;
}

:root[data-theme] .site-notifications-panel-head {
  border-color: var(--theme-border) !important;
  background: linear-gradient(90deg, var(--theme-head), var(--theme-soft)) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .site-notifications-panel-count,
:root[data-theme] .library-page-nav a,
:root[data-theme] .library-guide-list li::before {
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .library-page-nav a:hover,
:root[data-theme] .library-page-nav a.is-active {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

/* Ordinary navigation button follows the selected theme. Add/remove actions
   keep their semantic green/red rules below. */
:root[data-theme] .profile-friend-button {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] form[action*="/add"] .profile-friend-button,
:root[data-theme] .profile-level-action-add,
:root[data-theme] .friend-action-add {
  border-color: #32a85b !important;
  background: #174f2d !important;
  color: #9bf0b9 !important;
}

:root[data-theme] form[action*="/remove"] .profile-friend-button,
:root[data-theme] .profile-level-action-remove,
:root[data-theme] .friend-action-remove {
  border-color: #b74452 !important;
  background: #5b2029 !important;
  color: #ffb1ba !important;
}

/* Presence remains semantic and never follows a launcher theme. */
:root[data-theme] .friends-tile.is-offline strong,
:root[data-theme] .profile-friend-row.is-offline strong { color: #8995a3 !important; }
:root[data-theme] .friends-tile.is-online strong,
:root[data-theme] .profile-friend-row.is-online strong { color: #65caff !important; }
:root[data-theme] .friends-tile.is-playing strong,
:root[data-theme] .profile-friend-row.is-playing strong { color: #76f3a0 !important; }

:root[data-theme] .friends-tile.is-playing { border-left-color: #34e879 !important; }
:root[data-theme] .friends-tile.is-online { border-left-color: #65caff !important; }
:root[data-theme] .friends-tile.is-offline { border-left-color: #6f7b87 !important; }

/* THEME_COMPLETION_V2 */
:root[data-theme] {
  accent-color: var(--theme-accent);
}

:root[data-theme] :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--theme-accent) !important;
}

/* Navigation and launcher search */
:root[data-theme] .site-nav-dropdown-menu,
:root[data-theme] .site-nav-platforms-tree,
:root[data-theme] .launcher-quick-search {
  background: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .site-nav-tree-link,
:root[data-theme] .site-nav-tree-group,
:root[data-theme] .site-nav-tree-label {
  color: var(--theme-text) !important;
}

:root[data-theme] .site-nav-tree-link-disabled,
:root[data-theme] .site-nav-tree-link-muted {
  color: var(--theme-muted) !important;
  opacity: .58;
}

:root[data-theme] .site-nav-tree-link-muted {
  cursor: default;
}

:root[data-theme] .site-nav-tree-link:hover,
:root[data-theme] .site-nav-tree-link:focus,
:root[data-theme] .site-nav-tree-link:focus-visible,
:root[data-theme] .site-nav-tree-link.is-active,
:root[data-theme] .site-nav-tree-link[aria-current="true"] {
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .launcher-filter-input,
:root[data-theme] .launcher-filter-select,
:root[data-theme] .friends-toolbar input,
:root[data-theme] .library-page-shell input,
:root[data-theme] .library-page-shell select,
:root[data-theme] .library-page-shell textarea {
  background: var(--theme-input) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-filter-input:focus,
:root[data-theme] .launcher-filter-select:focus,
:root[data-theme] .friends-toolbar input:focus,
:root[data-theme] .library-page-shell input:focus,
:root[data-theme] .library-page-shell select:focus,
:root[data-theme] .library-page-shell textarea:focus {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 0 1px var(--theme-accent) !important;
}

:root[data-theme] .launcher-quick-search-item {
  background: var(--theme-panel) !important;
  border-color: transparent !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-quick-search-item:hover,
:root[data-theme] .launcher-quick-search-item:focus,
:root[data-theme] .launcher-quick-search-item-active {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .launcher-quick-search-cover,
:root[data-theme] .launcher-quick-search-body {
  border-color: var(--theme-border) !important;
  color: inherit !important;
}

:root[data-theme] .launcher-quick-search-title {
  color: var(--theme-text) !important;
}

:root[data-theme] .launcher-quick-search-meta {
  color: var(--theme-muted) !important;
}

/* Advanced search */
:root[data-theme] .advanced-search-head,
:root[data-theme] .advanced-search-results-list {
  color: var(--theme-text) !important;
}

:root[data-theme] .advanced-search-row {
  background: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .advanced-search-row:hover,
:root[data-theme] .advanced-search-row:focus-visible {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .advanced-search-row-title,
:root[data-theme] .advanced-search-row-rating-value {
  color: var(--theme-text) !important;
}

:root[data-theme] .advanced-search-row-meta,
:root[data-theme] .advanced-search-row-rating-label,
:root[data-theme] .launcher-filter-label {
  color: var(--theme-muted) !important;
}

:root[data-theme] .launcher-filter-clear {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

/* News list and article */
:root[data-theme] .news-page,
:root[data-theme] .news-main,
:root[data-theme] .news-grid,
:root[data-theme] .news-page-heading {
  color: var(--theme-text) !important;
}

:root[data-theme] .news-kicker,
:root[data-theme] .news-back-link {
  color: var(--theme-accent) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .news-card,
:root[data-theme] .news-article {
  background: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .news-type,
:root[data-theme] .news-tag {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .news-card-title,
:root[data-theme] .news-card-title a,
:root[data-theme] .news-article h1,
:root[data-theme] .news-article h2 {
  color: var(--theme-text) !important;
}

:root[data-theme] .news-card:hover .news-card-title,
:root[data-theme] .news-card:hover .news-card-title a {
  color: var(--theme-accent) !important;
}

:root[data-theme] .news-article-cover {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
}

/* Profile chrome; presence colors remain semantic below */
:root[data-theme] .profile-avatar,
:root[data-theme] .profile-friend-avatar,
:root[data-theme] .friends-avatar {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .profile-socials a,
:root[data-theme] .profile-friend-button {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .profile-socials a:hover,
:root[data-theme] .profile-friend-button:hover {
  background: var(--theme-accent) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-accent-contrast) !important;
}

/* Friends management */
:root[data-theme] .friends-sidebar-link {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .friends-sidebar-link:hover,
:root[data-theme] .friends-sidebar-link.is-active {
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}

/* Library */
:root[data-theme] .library-page-nav,
:root[data-theme] .library-storage-badge,
:root[data-theme] .library-file-field,
:root[data-theme] .library-rights-check {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .library-page-nav a {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .library-page-nav a:hover,
:root[data-theme] .library-page-nav a:focus-visible {
  background: var(--theme-soft) !important;
}

:root[data-theme] .library-storage-badge,
:root[data-theme] .library-card-count {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .library-file-field input[type="file"]::file-selector-button {
  background: var(--theme-soft) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

/* Play controls and reviews */
:root[data-theme] .play-rating-summary,
:root[data-theme] .play-comment-empty {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .play-rating-summary {
  color: #facc15 !important;
}

:root[data-theme] .play-comment-empty {
  color: var(--theme-muted) !important;
}

:root[data-theme] .play-control-button,
:root[data-theme] .play-controls-tabs button,
:root[data-theme] .play-controls-close,
:root[data-theme] .play-review-actions button {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

/* Footer */
:root[data-theme] .site-footer {
  background: var(--theme-panel) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-muted) !important;
}

:root[data-theme] .site-footer a {
  background: transparent !important;
  color: var(--theme-muted) !important;
}

:root[data-theme] .site-footer a:hover {
  color: var(--theme-accent) !important;
}

/* Semantic colors must not follow the selected theme. */
:root[data-theme] .friends-tile.is-playing strong,
:root[data-theme] .profile-friend-row.is-playing strong {
  color: #76f3a0 !important;
}

:root[data-theme] .friends-tile.is-online strong,
:root[data-theme] .profile-friend-row.is-online strong {
  color: #65caff !important;
}

:root[data-theme] .friends-tile.is-offline strong,
:root[data-theme] .profile-friend-row.is-offline strong {
  color: #8995a3 !important;
}

:root[data-theme] .leaderboard-player-name,
:root[data-theme] .leaderboard-row .player-name {
  color: #ffd34d !important;
}

:root[data-theme] .play-review-star,
:root[data-theme] .play-rating-summary-stars {
  color: #facc15 !important;
}
/* THEME_COMPLETION_V3
   Final scoped coverage for legacy blue surfaces. Semantic presence and rating
   colors intentionally remain independent from launcher themes. */

/* Header, platform curtain and search dropdown */
:root[data-theme] .site-header-auth .site-auth-link {
  color: var(--theme-accent) !important;
}

:root[data-theme] .site-nav-dropdown-menu,
:root[data-theme] .site-nav-platforms-tree,
:root[data-theme] .site-nav-tree-group,
:root[data-theme] .site-nav-tree-children {
  background-color: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .site-nav-tree-label:hover,
:root[data-theme] .site-nav-tree-label:focus,
:root[data-theme] .site-nav-tree-label:focus-visible,
:root[data-theme] details[open] > .site-nav-tree-label {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .launcher-quick-search-advanced {
  background: var(--theme-soft) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

:root[data-theme] .launcher-quick-search-advanced:hover,
:root[data-theme] .launcher-quick-search-advanced:focus-visible {
  background: var(--theme-head) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-text) !important;
}

/* Advanced Search is a standalone page, so cover the page and every result row. */
:root[data-theme] body.advanced-search-page,
:root[data-theme] .advanced-search-main,
:root[data-theme] .advanced-search-results-list {
  background: var(--theme-page) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .advanced-search-row {
  background: var(--theme-row) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .advanced-search-row:hover,
:root[data-theme] .advanced-search-row:focus-visible {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .advanced-search-row-title,
:root[data-theme] .advanced-search-row-rating-value {
  color: var(--theme-text) !important;
}

:root[data-theme] .advanced-search-row-meta,
:root[data-theme] .advanced-search-row-rating-label,
:root[data-theme] .advanced-search-status {
  color: var(--theme-muted) !important;
}

:root[data-theme] .advanced-search-main .launcher-filter-select,
:root[data-theme] .advanced-search-main .launcher-filter-clear {
  background: var(--theme-input) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

/* Friends management */
:root[data-theme] .friends-sidebar-title {
  background: linear-gradient(90deg, var(--theme-head), var(--theme-soft)) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .friends-sidebar-section,
:root[data-theme] .friends-request-section,
:root[data-theme] .friends-request-section-tab {
  background: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .friends-request-row {
  background: var(--theme-row) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .friends-request-row:hover {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .friends-request-actions,
:root[data-theme] .friends-request-row .friends-tile-copy small {
  color: var(--theme-muted) !important;
}

:root[data-theme] .friends-request-row .friends-tile-copy strong {
  color: var(--theme-accent) !important;
}

:root[data-theme] .friends-hero-avatar,
:root[data-theme] .friends-hero-avatar > span {
  background: var(--theme-soft) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-accent) !important;
}

/* Public/private profile internals and favourites */
:root[data-theme] .profile-section-head a,
:root[data-theme] .profile-section-head .profile-view-all {
  color: var(--theme-accent) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .profile-showcase,
:root[data-theme] .profile-section,
:root[data-theme] .profile-side-card,
:root[data-theme] .profile-game-card,
:root[data-theme] .profile-achievement-strip,
:root[data-theme] .profile-achievement-stats,
:root[data-theme] .profile-achievement-stats > div,
:root[data-theme] .profile-side-body,
:root[data-theme] .profile-friend-empty {
  background-color: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .profile-game-card,
:root[data-theme] .profile-achievement-strip,
:root[data-theme] .profile-achievement-stats > div,
:root[data-theme] .profile-friend-empty {
  background: var(--theme-row) !important;
}

:root[data-theme] .profile-game-card:hover {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .profile-game-card strong,
:root[data-theme] .profile-achievement-stats strong {
  color: var(--theme-text) !important;
}

:root[data-theme] .profile-game-card small,
:root[data-theme] .profile-achievement-stats span,
:root[data-theme] .profile-friend-empty {
  color: var(--theme-muted) !important;
}

:root[data-theme] .auth-panel.auth-panel-wide,
:root[data-theme] .favourites-list,
:root[data-theme] .favourites-row {
  background: var(--theme-card) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .favourites-row {
  background: var(--theme-row) !important;
}

:root[data-theme] .favourites-row:hover {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

:root[data-theme] .favourites-row strong { color: var(--theme-text) !important; }
:root[data-theme] .favourites-row small { color: var(--theme-muted) !important; }

/* Dynamic game hero: retain the per-game image while replacing blue overlays. */
:root[data-theme] .play-hero {
  background-color: var(--theme-deep) !important;
  background-image:
    linear-gradient(90deg, var(--theme-deep) 0%, rgba(var(--theme-rgb), .10) 52%, transparent 100%),
    linear-gradient(0deg, var(--theme-page) 0%, transparent 46%),
    var(--game-background) !important;
  box-shadow: inset 0 -1px 0 var(--theme-border) !important;
}

/* News pages must not retain the old slate canvas behind themed cards. */
:root[data-theme] .auth-main:has(.news-page),
:root[data-theme] .auth-main:has(.news-page) .news-page,
:root[data-theme] .news-page,
:root[data-theme] .news-main,
:root[data-theme] .news-grid {
  background: var(--theme-page) !important;
  border-color: var(--theme-border) !important;
}

:root[data-theme] .news-page-heading {
  background: linear-gradient(90deg, var(--theme-head), var(--theme-soft)) !important;
  border-color: var(--theme-border) !important;
}

/* Keep semantic presence colors stable after all theme rules. */
:root[data-theme] .friends-tile.is-playing strong,
:root[data-theme] .friends-tile[data-presence="playing"] strong,
:root[data-theme] .profile-friend-row.is-playing strong { color: #76f3a0 !important; }

:root[data-theme] .friends-tile.is-online strong,
:root[data-theme] .friends-tile[data-presence="online"] strong,
:root[data-theme] .profile-friend-row.is-online strong { color: #65caff !important; }

:root[data-theme] .friends-tile.is-offline strong,
:root[data-theme] .friends-tile[data-presence="offline"] strong,
:root[data-theme] .profile-friend-row.is-offline strong { color: #8995a3 !important; }

/* THEME_COMPLETION_V3_1 */
:root[data-theme] .public-profile-shell .profile-game-card,
:root[data-theme] .private-profile-shell .profile-game-card,
:root[data-theme] .profile-section .profile-game-card {
  background: var(--theme-row) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

:root[data-theme] .public-profile-shell .profile-game-card:hover,
:root[data-theme] .private-profile-shell .profile-game-card:hover,
:root[data-theme] .profile-section .profile-game-card:hover {
  background: var(--theme-soft) !important;
  border-color: var(--theme-accent) !important;
}

/* PROFILE_BUTTON_CONTRACT_V1 */
:root[data-theme] :is(.site-auth-button, .profile-socials a, .profile-friend-button, .friends-find-button, .friends-request-actions button, .profile-level-action, .library-primary-button, .library-secondary-button, .launcher-filter-clear, .play-action-bar button, .play-controls-close, .play-controls-tabs button, .play-review-actions button) {
  box-sizing: border-box !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: 5px !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer;
}
:root[data-theme] :is(.site-auth-button, .profile-socials a, .profile-friend-button, .friends-find-button, .friends-request-actions button, .profile-level-action, .library-primary-button, .library-secondary-button, .launcher-filter-clear, .play-action-bar button, .play-controls-close, .play-controls-tabs button, .play-review-actions button):hover {
  background: var(--theme-head) !important;
  border-color: var(--theme-accent) !important;
  color: var(--theme-text) !important;
}
:root[data-theme] :is(.site-auth-button, .profile-socials a, .profile-friend-button, .friends-find-button, .friends-request-actions button, .profile-level-action, .library-primary-button, .library-secondary-button, .launcher-filter-clear, .play-action-bar button, .play-controls-close, .play-controls-tabs button, .play-review-actions button):focus-visible {
  outline: 2px solid var(--theme-accent) !important;
  outline-offset: 2px !important;
}
:root[data-theme] .profile-level-action-add,
:root[data-theme] .friends-request-actions .friend-action-accept {
  background: #145c35 !important;
  border-color: #36b66f !important;
  color: #d8ffe8 !important;
}
:root[data-theme] .profile-level-action-remove,
:root[data-theme] .profile-level-action-cancel,
:root[data-theme] .friends-request-actions .friend-action-decline {
  background: #641f2a !important;
  border-color: #d65b6d !important;
  color: #ffe1e6 !important;
}
:root[data-theme] .profile-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
:root[data-theme] .auth-form-success {
  margin: 0 0 16px !important;
  padding: 11px 13px !important;
  border: 1px solid #36b66f !important;
  border-radius: 5px !important;
  background: rgba(20, 92, 53, .34) !important;
  color: #d8ffe8 !important;
  font-weight: 800 !important;
}

/* REVIEW_THEME_WRAP_FIX_20260713 */
.play-comment-body {
  white-space: pre-wrap;
}
:root[data-theme] .play-comment {
  border-color: var(--theme-border) !important;
  background: var(--theme-row) !important;
  color: var(--theme-text) !important;
}
:root[data-theme] .play-comment-body {
  color: var(--theme-text) !important;
}
:root[data-theme] .play-comment-owner,
:root[data-theme] .play-comment-date {
  color: var(--theme-muted) !important;
}
:root[data-theme] .play-review-mini-button,
:root[data-theme] .play-review-secondary-button {
  border-color: var(--theme-border) !important;
  background: var(--theme-soft) !important;
  color: var(--theme-accent) !important;
}
:root[data-theme] .play-review-mini-button-danger,
:root[data-theme] .play-review-danger-button {
  border-color: rgba(255, 116, 116, .45) !important;
  background: rgba(255, 92, 92, .12) !important;
  color: #ffb1b1 !important;
}


/* CONTACT_FORM_SOLID_LAYOUT_V1 */
.auth-page .auth-main:has(.contact-panel) {
  width: min(1040px, calc(100vw - 40px));
  max-width: none;
  margin: 48px auto 72px;
  padding: 0;
}

.contact-panel {
  border: 1px solid var(--arcade-theme-border, #28425e);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--arcade-theme-card, #101b28) 92%, #050d16), color-mix(in srgb, var(--arcade-theme-page, #07101a) 96%, #000));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.contact-panel-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 34px;
  border-bottom: 1px solid var(--arcade-theme-border, #28425e);
  background: color-mix(in srgb, var(--arcade-theme-card-soft, #142232) 76%, #050d16);
}

.contact-panel-head h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.contact-panel-head p {
  max-width: 720px;
  margin: 0;
  color: var(--theme-muted, #b8c7d9);
  line-height: 1.55;
}

.contact-kicker {
  margin: 0 0 8px !important;
  color: var(--arcade-theme-accent, #64c8ff) !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--arcade-theme-border, #2a5274);
  border-radius: 8px;
  color: var(--arcade-theme-accent, #64c8ff);
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: 28px 34px 34px;
}

.contact-form-card {
  padding: 18px;
  border: 1px solid rgba(148, 176, 205, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--arcade-theme-page, #071321) 78%, #000);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--theme-muted, #b8c7d9);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--arcade-theme-border, #2a5274);
  border-radius: 8px;
  background: color-mix(in srgb, var(--arcade-theme-page, #071321) 88%, #000);
  color: var(--theme-text, #eef6ff);
  font: inherit;
  font-weight: 650;
  box-sizing: border-box;
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 14px;
}

.contact-form select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--arcade-theme-accent, #7ccfff) 50%),
    linear-gradient(135deg, var(--arcade-theme-accent, #7ccfff) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.contact-details textarea {
  min-height: 190px;
  padding: 14px;
  line-height: 1.45;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--arcade-theme-accent, #64c8ff);
  box-shadow: 0 0 0 3px rgba(100, 200, 255, 0.14);
}

.contact-form-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.contact-form-actions p {
  margin: 0;
  color: var(--theme-muted, #9fb4ca);
  font-size: 13px;
  font-weight: 700;
}

.contact-form-actions .site-auth-button {
  min-width: 170px;
}

@media (max-width: 720px) {
  .auth-page .auth-main:has(.contact-panel) {
    width: min(100% - 24px, 520px);
    margin-top: 24px;
  }

  .contact-panel-head,
  .contact-form {
    padding: 22px;
  }

  .contact-panel-head,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form-actions .site-auth-button {
    width: 100%;
  }
}


.app-shell-page .launcher-main {
  padding-top: 18px;
}

.pwa-install-panel,
.pwa-network-status {
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  border: 1px solid var(--theme-border, #2f80b7);
  background: linear-gradient(180deg, rgba(18, 30, 42, .96), rgba(12, 19, 28, .96));
  color: var(--theme-text, #f5f7fa);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.pwa-install-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.pwa-install-panel[hidden],
.pwa-network-status[hidden] {
  display: none !important;
}

.pwa-install-panel strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.pwa-install-panel span {
  display: block;
  margin-top: 4px;
  color: var(--theme-muted, #b8c7d8);
  font-size: 14px;
  line-height: 1.35;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pwa-network-status {
  padding: 10px 14px;
  color: #ffd86b;
  font-weight: 800;
}

@media (max-width: 720px) {
  .pwa-install-panel,
  .pwa-network-status {
    width: calc(100% - 28px);
  }

  .pwa-install-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .pwa-install-actions {
    width: 100%;
  }

  .pwa-install-actions .launcher-hero-button {
    flex: 1 1 0;
  }
}


/* SITE_FOOTER_SOCIALS_20260808 */
.site-footer-social-links { display: grid; gap: 11px; }
.site-footer-social-link { display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; color: var(--theme-muted); text-decoration: none; }
.site-footer-social-link:hover { color: var(--theme-accent); }
.site-footer-social-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--theme-accent); flex: 0 0 18px; }
.site-footer-social-icon svg { display: block; width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 980px) { .site-footer-inner { grid-template-columns: 1.25fr repeat(2, minmax(130px, 1fr)); } }
@media (max-width: 800px) { .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; } .site-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer-inner { grid-template-columns: 1fr; } .site-footer-brand { grid-column: auto; } }

/* UI_POLISH_FOOTER_RESPONSIVE_20260808 */
.site-footer {
  overflow: hidden;
}

.site-footer-inner {
  align-items: start;
}

.site-footer-column:has(.site-footer-social-links) {
  min-width: 160px;
}

.site-footer-social-links {
  grid-template-columns: 1fr;
}

.site-footer-social-link {
  min-height: 24px;
  font-weight: 800;
}

.site-footer-social-icon {
  color: var(--theme-accent);
}

@media (max-width: 900px) {
  .site-footer {
    margin-top: 42px;
  }

  .site-footer-inner {
    width: min(100% - 28px, 720px);
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 22px;
    padding: 34px 0 38px;
  }

  .site-footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .site-footer-logo {
    font-size: 26px;
  }

  .site-footer-brand p {
    max-width: none;
  }

  .site-footer-social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .site-footer-social-link {
    width: 100%;
  }
}

/* UI_FOOTER_ICONS_COLUMN_20260809 */
.site-footer-inner {
  grid-template-columns: minmax(250px, 1.35fr) repeat(4, minmax(120px, 0.75fr)) !important;
  gap: 32px 42px !important;
}
.site-footer-social-column { min-width: 0 !important; }
.site-footer-social-links { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; align-items: center !important; }
.site-footer-social-link {
  width: 34px !important; height: 34px !important; min-height: 34px !important;
  display: inline-grid !important; place-items: center !important; padding: 0 !important;
  color: var(--theme-muted) !important; background: transparent !important; border: 0 !important;
  border-radius: 0 !important; text-decoration: none !important;
}
.site-footer-social-link:hover,
.site-footer-social-link:focus-visible { color: var(--theme-accent) !important; transform: translateY(-1px); }
.site-footer-social-icon,
.site-footer-social-icon svg { width: 24px !important; height: 24px !important; }
.site-footer-social-label {
  position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}
@media (max-width: 980px) {
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: min(100% - 32px, 760px) !important; }
  .site-footer-brand { grid-column: 1 / -1 !important; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: 1fr !important; }
  .site-footer-social-links { gap: 14px !important; }
}

/* UI_POLISH_FINAL_20260809 */
.site-footer { overflow: hidden !important; }
.site-footer-inner {
  width: min(1180px, calc(100% - 36px)) !important;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(128px, .75fr)) minmax(150px, .7fr) !important;
  gap: 30px 42px !important;
  align-items: start !important;
}
.site-footer-brand { min-width: 0 !important; }
.site-footer-brand p { max-width: 360px !important; }
.site-footer-column { min-width: 0 !important; }
.site-footer-column a:hover { color: var(--theme-accent) !important; }
.site-footer-social-column { min-width: 0 !important; }
.site-footer-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 2px !important;
}
.site-footer-social-link {
  width: 30px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--theme-muted) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
  color: var(--theme-accent) !important;
  background: transparent !important;
  transform: translateY(-1px);
}
.site-footer-social-icon,
.site-footer-social-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}
.site-footer-social-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 980px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100% - 28px, 760px) !important;
    gap: 28px 30px !important;
  }
  .site-footer-brand { grid-column: 1 / -1 !important; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: 1fr !important; padding: 34px 0 40px !important; }
  .site-footer-brand { grid-column: auto !important; }
  .site-footer-social-links { gap: 14px !important; }
}

/* SITE_FOOTER_FINAL_POLISH_20260811 */
.site-footer {
  margin-top: 56px !important;
  border-top: 1px solid var(--theme-border, #26384c) !important;
  background: color-mix(in srgb, var(--theme-deep, #07101a) 94%, #000) !important;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 36px)) !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(128px, .7fr)) minmax(140px, .55fr) !important;
  gap: 28px 40px !important;
  padding: 40px 0 44px !important;
  align-items: start !important;
}

.site-footer-logo {
  font-size: 28px !important;
  line-height: 1 !important;
}

.site-footer-brand p {
  max-width: 360px !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}

.site-footer-column {
  gap: 9px !important;
}

.site-footer-column strong {
  margin-bottom: 2px !important;
  letter-spacing: .02em !important;
}

.site-footer-column a {
  width: max-content !important;
  max-width: 100% !important;
  line-height: 1.3 !important;
}

.site-footer-social-column {
  min-width: 0 !important;
}

.site-footer-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 13px !important;
  align-items: center !important;
  margin-top: 4px !important;
}

.site-footer-social-link {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-muted, #a8bdd0) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.site-footer-social-link:hover,
.site-footer-social-link:focus-visible {
  color: var(--theme-accent, #67c8ff) !important;
  background: transparent !important;
  transform: translateY(-1px) !important;
}

.site-footer-social-icon,
.site-footer-social-icon svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

.site-footer-social-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100% - 28px, 760px) !important;
    gap: 26px 28px !important;
  }

  .site-footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .site-footer {
    margin-top: 42px !important;
  }

  .site-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding: 34px 0 38px !important;
  }

  .site-footer-brand {
    grid-column: auto !important;
  }

  .site-footer-brand p {
    max-width: none !important;
  }
}

/* ARC_HEADER_FOOTER_FINAL_20260813C */
.site-header,
.site-header * {
  box-sizing: border-box !important;
}

.site-header-inner {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

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

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

.site-nav {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.site-nav a,
.site-nav-link {
  white-space: nowrap !important;
}

.site-header-search {
  flex: 0 1 340px !important;
  min-width: 220px !important;
  max-width: 360px !important;
}

.site-header-auth {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

@media (max-width: 1060px) {
  .site-header-inner {
    width: min(100%, calc(100vw - 32px)) !important;
    flex-wrap: wrap !important;
    row-gap: 10px !important;
    padding-block: 10px !important;
  }

  .site-header-main {
    flex: 1 1 100% !important;
    justify-content: space-between !important;
  }

  .site-header-search {
    order: 2 !important;
    flex: 1 1 360px !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .site-header-auth {
    order: 3 !important;
    margin-left: auto !important;
  }
}

@media (max-width: 680px) {
  .site-header-inner {
    width: min(100%, calc(100vw - 24px)) !important;
    justify-content: center !important;
  }

  .site-header-main {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .site-nav {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
  }

  .site-header-search {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .site-header-auth {
    justify-content: center !important;
    margin-left: 0 !important;
  }
}

.site-footer {
  margin-top: 64px !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.site-footer-inner {
  width: min(1180px, calc(100vw - 48px)) !important;
  margin: 0 auto !important;
  padding: 42px 0 48px !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(120px, 1fr)) !important;
  gap: 30px 48px !important;
  align-items: start !important;
}

.site-footer-brand,
.site-footer-column {
  min-width: 0 !important;
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
}

.site-footer-brand p {
  max-width: 360px !important;
}

.site-footer-social-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  align-items: center !important;
  margin-top: 12px !important;
}

.site-footer-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  color: var(--theme-accent, #69c9ff) !important;
  text-decoration: none !important;
}

.site-footer-social-icon,
.site-footer-social-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.site-footer-social-label {
  display: none !important;
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
    gap: 26px 40px !important;
  }

  .site-footer-brand {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    width: min(100%, calc(100vw - 28px)) !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .site-footer-brand {
    grid-column: auto !important;
  }
}
/* ARC_LAUNCHER_UI_FINAL_20260813_3
   Header/footer layout lock only. Keeps search off menu links and social links vertical. */
.site-header-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, auto) minmax(220px, 360px) auto !important;
  align-items: center !important;
  gap: 16px !important;
}

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

.site-nav {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

.site-header-search {
  width: 100% !important;
  min-width: 220px !important;
  max-width: 360px !important;
  justify-self: end !important;
}

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

@media (max-width: 1180px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .site-header-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    justify-self: stretch !important;
    max-width: none !important;
  }

  .site-nav {
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .site-nav::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
  }

  .site-header-main,
  .site-nav,
  .site-header-auth,
  .site-header-search {
    justify-self: center !important;
  }

  .site-header-main {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .site-nav {
    justify-content: center !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }

  .site-header-search {
    width: min(100%, 420px) !important;
    min-width: 0 !important;
  }
}

.site-footer-social-links,
.footer-social-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  align-items: start !important;
  gap: 12px !important;
}

.site-footer-social-link,
.footer-social-link {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  color: var(--accent, #6fc6ff) !important;
}

.site-footer-social-link svg,
.site-footer-social-link i,
.footer-social-link svg,
.footer-social-link i {
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  display: block !important;
  flex: 0 0 auto !important;
}

.site-footer-social-label,
.footer-social-label {
  display: none !important;
}

/* HEADER_FOOTER_POLISH_20260820
   Header must wrap cleanly before search collides with nav/auth.
   Footer social links must read as a vertical icon list, not floating circles.
*/
.site-header-inner,
.launcher-header-inner,
.topbar-inner,
.app-header-inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.site-header-main,
.launcher-header-main,
.topbar-main,
.app-header-main {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.site-nav,
.launcher-nav,
.topbar-nav,
.app-nav {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.site-header-search,
.launcher-search,
.topbar-search,
.app-header-search,
.global-search {
  flex: 1 1 280px !important;
  min-width: 220px !important;
  max-width: 380px !important;
  margin-left: auto !important;
}

.site-header-search input,
.launcher-search input,
.topbar-search input,
.app-header-search input,
.global-search input {
  width: 100% !important;
}

.site-header-auth,
.launcher-auth,
.topbar-auth,
.app-header-auth {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.site-footer-social-links,
.footer-social-links,
.site-footer .social-links,
.footer-social .social-links,
.social-footer-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}

.site-footer-social-link,
.footer-social-link,
.site-footer .social-links a,
.footer-social .social-links a,
.social-footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--accent, #6fc6ff) !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.site-footer-social-link svg,
.site-footer-social-link i,
.footer-social-link svg,
.footer-social-link i,
.site-footer .social-links a svg,
.site-footer .social-links a i,
.footer-social .social-links a svg,
.footer-social .social-links a i,
.social-footer-links a svg,
.social-footer-links a i {
  width: 18px !important;
  height: 18px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: block !important;
  flex: 0 0 18px !important;
}

.site-footer-social-label,
.footer-social-label,
.site-footer .social-label,
.footer-social .social-label {
  display: inline !important;
}

@media (max-width: 1180px) {
  .site-header-search,
  .launcher-search,
  .topbar-search,
  .app-header-search,
  .global-search {
    order: 3 !important;
    flex: 1 0 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
  }

  .site-nav,
  .launcher-nav,
  .topbar-nav,
  .app-nav {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
  }
}

@media (max-width: 640px) {
  .site-header-inner,
  .launcher-header-inner,
  .topbar-inner,
  .app-header-inner {
    justify-content: center !important;
  }

  .site-header-main,
  .launcher-header-main,
  .topbar-main,
  .app-header-main,
  .site-nav,
  .launcher-nav,
  .topbar-nav,
  .app-nav {
    justify-content: center !important;
    width: 100% !important;
  }

  .site-header-auth,
  .launcher-auth,
  .topbar-auth,
  .app-header-auth {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* ARC_HEADER_FOOTER_REPAIR_20260822
   Header/footer layout only. Keeps nav/search/status from overlapping. */
.site-header-inner{display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(220px,340px) auto!important;align-items:center!important;gap:14px!important}.site-header-main,.site-nav,.site-header-search,.site-header-auth{min-width:0!important}.site-header-main{display:flex!important;align-items:center!important;gap:14px!important}.site-nav{display:flex!important;align-items:center!important;gap:14px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;white-space:nowrap!important}.site-nav::-webkit-scrollbar{display:none!important}.site-nav a,.site-nav-link{flex:0 0 auto!important;white-space:nowrap!important}.site-header-search{width:100%!important;max-width:340px!important;justify-self:stretch!important}.site-header-auth{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;white-space:nowrap!important}@media (max-width:1120px){.site-header-inner{grid-template-columns:auto minmax(0,1fr) auto!important}.site-header-search{grid-column:1/-1!important;grid-row:2!important;max-width:none!important}}@media (max-width:760px){.site-header-inner{grid-template-columns:1fr!important;justify-items:stretch!important}.site-header-main{flex-wrap:wrap!important;justify-content:center!important}.site-nav{justify-content:center!important;flex-wrap:wrap!important;overflow:visible!important}.site-header-auth{justify-content:center!important}}.site-footer-social-links,.footer-social-links,.site-footer .social-links,.footer-social .social-links,.social-footer-links{display:grid!important;grid-template-columns:1fr!important;justify-items:start!important;align-items:start!important;gap:10px!important}.site-footer-social-link,.footer-social-link,.site-footer .social-links a,.footer-social .social-links a,.social-footer-links a{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;color:var(--theme-accent,var(--accent,#6fc6ff))!important;text-decoration:none!important}.site-footer-social-icon,.site-footer-social-link svg,.site-footer-social-link i,.footer-social-link svg,.footer-social-link i,.site-footer .social-links a svg,.site-footer .social-links a i,.footer-social .social-links a svg,.footer-social .social-links a i,.social-footer-links a svg,.social-footer-links a i{width:22px!important;height:22px!important;font-size:22px!important;line-height:1!important;flex:0 0 auto!important;display:block!important}

/* ARC_HEADER_LANDSCAPE_HEIGHT_FIX_20260822 */
@media (min-width:761px) and (max-width:1120px){.site-header-inner{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;row-gap:10px!important}.site-header-main{grid-column:1/3!important}.site-header-auth{grid-column:3!important;grid-row:1!important;width:auto!important;margin-left:0!important}.site-header-search{grid-column:1/-1!important;grid-row:2!important;order:2!important;flex:none!important;width:min(100%,420px)!important;max-width:420px!important;height:40px!important;min-height:40px!important;max-height:40px!important;align-self:start!important;justify-self:start!important;overflow:visible!important}.site-header-search .launcher-filter-search,.site-header-search .launcher-filter-field,.site-header-search .launcher-filter-input{height:40px!important;min-height:40px!important}.site-header-search .launcher-quick-search{position:absolute!important;top:calc(100% + 8px)!important;left:0!important;right:auto!important;width:min(420px,calc(100vw - 32px))!important;max-height:320px!important;z-index:50!important}}
