/* I see you :X */
.logo-main img {
  width: clamp(220px, 40vw, 480px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 6px;
  text-align: center;
}

.home-player-shelf {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.16);
}

.recent-profiles {
  border-color: rgba(0, 255, 132, 0.16);
  background: linear-gradient(135deg, rgba(0, 255, 132, 0.045), rgba(0, 0, 0, 0.16) 58%);
}

.home-bookmarks {
  border-color: rgba(255, 190, 32, 0.18);
  background: linear-gradient(135deg, rgba(255, 190, 32, 0.05), rgba(0, 0, 0, 0.16) 58%);
}

.home-player-shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-player-shelf-header h2 {
  margin: 0;
  text-align: left;
}

.home-bookmarks-header .kicker-m {
  color: var(--color-yellow);
}

.home-bookmarks-header a {
  flex: 0 0 auto;
  color: var(--color-cyan);
  font-size: var(--font-sm);
  font-weight: 700;
  text-decoration: none;
}

.home-bookmarks-header a:hover {
  text-decoration: underline;
}

.home-bookmarks-header a:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

.home-bookmarks-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-bookmarks-list > :only-child {
  grid-column: 1 / -1;
}

.home-search {
  align-items: center;
  width: 100%;
}

.recent-profiles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
}

/* Overall Top 10 */
.top-ten-list {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: var(--margin-sm);
}

.top-ten-header {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 7px 5px;
  color: var(--color-text-30);
  font-size: var(--font-xs);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.top-ten-header span:first-child {
  text-align: center;
}

.top-ten-header span:last-child {
  text-align: right;
}

.top-ten-rows {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-ten-row {
  display: grid;
  grid-template-columns: 27px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 190, 32, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.top-ten-row:nth-child(1) {
  border-color: rgba(255, 190, 32, 0.3);
  background: rgba(255, 190, 32, 0.075);
}

.top-ten-row:nth-child(2) {
  border-color: rgba(205, 216, 227, 0.25);
  background: rgba(205, 216, 227, 0.055);
}

.top-ten-row:nth-child(3) {
  border-color: rgba(205, 127, 50, 0.27);
  background: rgba(205, 127, 50, 0.06);
}

.top-ten-row:nth-child(1) .top-ten-rank {
  color: rgb(255, 190, 32);
}

.top-ten-row:nth-child(2) .top-ten-rank {
  color: rgb(205, 216, 227);
}

.top-ten-row:nth-child(3) .top-ten-rank {
  color: rgb(205, 127, 50);
}

.top-ten-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.top-ten-rank {
  color: var(--color-yellow);
  font-size: var(--font-xs);
  font-weight: 750;
  text-align: center;
}

.top-ten-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text-80);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-ten-score {
  min-width: 32px;
  color: var(--color-cyan);
  font-size: var(--font-xs);
  font-weight: 750;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.top-ten-empty {
  padding: var(--margin-lg) 0;
  color: var(--color-text-30);
  font-size: var(--font-sm);
  text-align: center;
}

/* Trending Graph */
.home-trending-card {
  min-width: 0;
}

.trending-brawler-summary {
  display: inline-grid;
  grid-template-columns: 54px auto;
  align-items: center;
  gap: var(--margin-sm);
  max-width: 100%;
  margin: var(--margin-sm) auto 0;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(0, 255, 132, 0.18);
  border-radius: var(--border-radius);
  background: rgba(0, 255, 132, 0.045);
  text-align: left;
}

.trending-brawler-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.trending-brawler-copy {
  min-width: 0;
}

.trending-brawler-name {
  overflow: hidden;
  color: var(--color-text-80);
  font-size: var(--font-base);
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-brawler-rate {
  margin-top: 3px;
  color: var(--color-cyan);
  font-size: var(--font-xs);
  font-weight: 650;
}

.trending-brawler-empty {
  margin-top: var(--margin-sm);
  color: var(--color-text-30);
}

.graph-wrapper {
  margin-top: var(--margin-base);
  height: 340px;
  width: 100%;
}

.trending-graph-wrapper,
.activity-graph-wrapper {
  padding: 8px 8px 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: rgba(0, 0, 0, 0.18);
}

.trending-graph-wrapper {
  height: 300px;
  margin-top: var(--margin-sm);
}

.activity-graph-wrapper {
  height: 340px;
  margin-top: 0;
}

.home-chart-card {
  padding: var(--margin-base);
}

.popularity-graph-wrapper {
  height: 350px;
  margin-top: 0;
  padding: 14px 12px 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 132, 0.055), transparent 42%),
    rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
  .popularity-graph-wrapper {
    min-height: 280px;
    padding: 10px 8px 4px;
  }
}

/* Top 5 */
.mode-brawlers {
  width: 100%;
}

.mode-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--margin-sm);
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-base);
}

.mode-header h3 {
  min-width: 0;
  overflow: hidden;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-header img {
  width: 26px;
  min-width: 26px;
  height: 26px;
  object-fit: contain;
}

.home-mode-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.home-mode-card {
  height: 100%;
  padding: 11px;
}

.mode-brawler-list {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brawler-item {
  display: grid;
  grid-template-columns: 25px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 190, 32, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.brawler-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.rank {
  font-size: var(--font-xs);
  font-weight: 750;
  color: var(--color-yellow);
  text-align: center;
}

.brawler-name {
  min-width: 0;
  overflow: hidden;
  font-size: var(--font-sm);
  color: var(--color-text-80);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brawler-meta-score {
  min-width: 30px;
  color: var(--color-cyan);
  font-size: var(--font-xs);
  font-weight: 750;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mode-brawlers-empty {
  padding: var(--margin-sm) 0;
  color: var(--color-text-30);
  font-size: var(--font-xs);
  text-align: center;
}

/* Search */
.search-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.pagination {
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--font-base);
  font-weight: 600;
}

.pag-btn {
  min-width: 44px;
  padding: 10px 18px;
  background: var(--color-surface);
  color: var(--color-text-50);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: var(--transition);
}

.pag-btn:hover:not(.disabled) {
  background: var(--color-cyan);
  color: black;
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}

.pag-btn.disabled {
  background: var(--color-surface);
  color: var(--color-text-30);
  border-color: transparent;
  pointer-events: none;
  opacity: 0.6;
}

.pag-btn.active {
  background: var(--color-yellow);
  color: black;
  border-color: var(--color-yellow);
}

.pag-info {
  color: var(--color-text-30);
  font-weight: 500;
  padding: 0 8px;
}

@media (max-width: 800px) {
  .recent-profiles-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .home-player-shelf {
    padding: 10px;
  }

  .home-bookmarks-list {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 8px;
    font-size: var(--font-sm);
  }
  .pag-btn {
    padding: 8px 14px;
  }
  .pag-info {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
    color: var(--color-yellow);
  }
}
