/* Global search dropdown (players + games) */
.search-pop {
  position: fixed;
  z-index: 2000;
  background: var(--wh);
  border: var(--bw) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shb);
  max-height: min(70vh, 460px);
  overflow-y: auto;
  padding: 6px;
}
.search-pop.hidden { display: none; }

.sp-head {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--soft);
  padding: 10px 10px 5px;
}

.sp-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.sp-row:hover, .sp-row.active { background: var(--cr); }

.sp-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--pk);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 15px;
  flex: none;
}
.sp-av-fb { font-family: 'Space Grotesk', sans-serif; }
.sp-thumb { border-radius: 9px; }

.sp-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sp-main b { font-weight: 900; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-sub { font-size: 12px; color: var(--soft); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sp-tag {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .05em; color: var(--soft);
  background: var(--cr); border: 2px solid var(--ink);
  border-radius: 999px; padding: 2px 8px; flex: none;
}

.sp-empty { padding: 18px 14px; color: var(--soft); font-weight: 800; font-size: 14px; }

/* homepage platform stats strip */
.platform-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 24px 0 8px;
  background: var(--wh);
  border: var(--bw) solid var(--ink);
  border-radius: calc(var(--r) + 2px);
  box-shadow: var(--shb);
  overflow: hidden;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 12px;
  text-align: center;
  min-width: 0;
}
.pstat + .pstat {
  border-left: var(--bw) solid var(--ink);
}

.pstat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1;
  color: var(--pk);
  font-variant-numeric: tabular-nums;
}

.pstat-label {
  display: block;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 560px) {
  .platform-stats {
    grid-template-columns: 1fr;
  }
  .pstat + .pstat {
    border-left: none;
    border-top: var(--bw) solid var(--ink);
  }
  .pstat { padding: 16px 12px; }
  .pstat-num { font-size: 36px; }
  .pstat-label { font-size: 10px; letter-spacing: 0.06em; }
}
