:root {
  --bg-0: #0b0c0f;
  --bg-1: #10131a;
  --bg-2: #141823;
  --accent: #ff5a1f;
  --accent-2: #24f4ff;
  --text: #e9eef5;
  --text-strong: #ffffff;
  --muted: #9aa3b2;
  --card-bg: rgba(12, 14, 20, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 18px rgba(36, 244, 255, 0.2), 0 0 28px rgba(255, 90, 31, 0.12);
  --win: #1f9d55;
  --lose: #c53030;
  --primary: #ff5a1f;
}

body {
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1200px 600px at 10% -10%,
      rgba(36, 244, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 90% 10%,
      rgba(255, 90, 31, 0.18),
      transparent 55%
    ),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 40%, var(--bg-2) 100%);
  min-height: 100vh;
  padding-top: var(--site-nav-height);
}

:root {
  --site-nav-height: 80px;
}

#mainNav {
  background: rgba(8, 9, 12, 0.9) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

#mainNav .site-nav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  gap: 8px;
}

#mainNav .nav-brand-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}

#mainNav .nav-right-cluster {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

#mainNav .navbar-collapse {
  flex-grow: 1;
}

@media (min-width: 992px) {
  #mainNav .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }

  #mainNav .nav-right-cluster {
    margin-left: auto !important;
  }
}

#mainNav .navbar-brand.brand-logo {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text-strong) !important;
  text-transform: uppercase;
  text-decoration: none !important;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  margin-right: 0.15rem;
  flex: 0 0 auto;
}

#mainNav .navbar-brand.brand-logo span {
  color: var(--accent);
}

#mainNav .navbar-brand.brand-logo:hover {
  color: var(--text-strong) !important;
  text-shadow: 0 0 18px rgba(255, 90, 31, 0.25);
}

#mainNav .navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(36, 244, 255, 0.4));
}

#mainNav .navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.35rem 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(233, 238, 245, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

#mainNav .nav-link:hover {
  color: var(--accent-2) !important;
  text-shadow: 0 0 10px rgba(36, 244, 255, 0.6);
}

@media (max-width: 991.98px) {
  #mainNav .site-nav-inner {
    flex-wrap: wrap;
  }

  #mainNav .nav-brand-cluster {
    flex: 1 1 auto;
    min-width: 0;
  }

  #mainNav .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  #mainNav .nav-right-cluster {
    width: 100%;
  }

  #mainNav .nav-link-priority {
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
    font-size: 0.78rem;
  }
}

@media (max-width: 520px) {
  #mainNav .nav-link-priority {
    max-width: 4.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

header.masthead,
main.page-main {
  background: linear-gradient(
    180deg,
    rgba(15, 18, 26, 0.95),
    rgba(16, 20, 30, 0.9)
  ) !important;
  color: var(--text-strong);
  padding-top: 28px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
  display: block;
}

/* Agency styles.css sets `section { padding: 9rem 0 }` on desktop.
   That was the empty black band at the top of team cards. */
.page-main section:not(.profile-hero) {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .page-main section:not(.profile-hero) {
    padding-top: 0;
    padding-bottom: 0;
  }
}

header.masthead hr,
main.page-main hr {
  border-color: var(--border);
  max-width: 720px;
  margin: 22px auto 18px;
}

.masthead h1,
.masthead h3,
.masthead h4,
.masthead h5,
.masthead h6,
.page-main h1,
.page-main h3,
.page-main h4,
.page-main h5,
.page-main h6 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  letter-spacing: 0.05em;
  color: var(--text-strong) !important;
}

.masthead h2,
.page-main h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text) !important;
}

.hero-block {
  text-align: center;
}

.page-hero {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.brand-hero {
  margin: 0 auto 18px;
  max-width: 720px;
}

.brand-mark {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--text-strong);
  margin: 0 0 10px;
}

.brand-mark span {
  color: var(--accent);
}

.hero-title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted) !important;
  margin: 0 auto 8px;
  max-width: 560px;
}

.hero-kicker {
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--accent-2) !important;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.hero-actions .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.hero-btn {
  width: 170px;
  white-space: nowrap;
}

.section-header {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.6rem;
  margin: 26px 0 12px;
  color: var(--text-strong) !important;
}

.stats-labels {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
  font-weight: 600;
}

.stats-values {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-strong) !important;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: var(--accent);
}

.btn-warning,
.btn-primary,
.btn-search,
.btn-round,
.btn-simple {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #ff7a2e 100%
  ) !important;
  border: 0 !important;
  color: #0b0c0f !important;
  box-shadow: var(--glow);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-warning:hover,
.btn-primary:hover,
.btn-search:hover,
.btn-round:hover,
.btn-simple:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.s008 .inner-form {
  background: rgba(9, 11, 16, 0.75);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
}

.s008 {
  max-width: 920px;
  margin: 12px auto 0;
  padding: 0 14px;
  min-height: auto;
}

.s008 .input-field input,
.s008 select {
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
}

.s008 .icon-wrap svg {
  fill: var(--accent-2);
}

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

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
  border-radius: 0 0 14px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.team-panel .table-wrap,
.profile-section .table-wrap {
  overflow-x: hidden;
}

.table,
.table-bordered,
.table-dark {
  background: transparent !important;
  color: var(--text);
  border-radius: 0;
  overflow: hidden;
  border-color: transparent !important;
  box-shadow: none;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.table thead th {
  background: rgba(10, 12, 18, 0.96) !important;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  font-weight: 700;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 8px !important;
  white-space: nowrap;
  position: static;
  top: auto;
  z-index: auto;
}

.table td {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 10px 8px !important;
  vertical-align: middle !important;
  background: transparent !important;
  font-size: 0.88rem;
  word-break: break-word;
}

.table tbody tr {
  transition: background 0.18s ease;
}

.table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.015);
}

.table tbody tr:hover {
  background: rgba(36, 244, 255, 0.06) !important;
}

.table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.table td.bg-success,
.table td.bg-danger {
  background: transparent !important;
}

.table .col-num,
.table th.col-num,
.table td.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.table .col-center,
.table th.col-center,
.table td.col-center {
  text-align: center;
}

.table .col-rank,
.table th.col-rank,
.table td.col-rank {
  width: 72px;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

.rank-pill.is-top {
  background: rgba(255, 90, 31, 0.16);
  border-color: rgba(255, 90, 31, 0.4);
  color: #ffb089;
}

.player-link {
  color: var(--text-strong) !important;
  text-decoration: none !important;
  font-weight: 700;
}

.player-link:hover {
  color: var(--accent-2) !important;
}

.elo-value {
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.country-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.map-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.map-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.map-thumb {
  width: 44px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-stats-table th:first-child,
.map-stats-table td:first-child {
  width: 34%;
}

.map-stats-table th.col-num,
.map-stats-table td.col-num {
  width: 13%;
}

.map-stats-table th.col-center,
.map-stats-table td.col-center {
  width: 18%;
}

.map-stats-table .metric-badge {
  min-width: 3rem;
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
}

.leaderboard-table th.col-rank,
.leaderboard-table td.col-rank {
  width: 64px;
}

.leaderboard-table th.col-num,
.leaderboard-table td.col-num {
  width: 18%;
}

.status-badge,
.metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.status-badge.is-win,
.metric-badge.is-good {
  background: rgba(31, 157, 85, 0.18);
  color: #8cf0b0;
  border: 1px solid rgba(31, 157, 85, 0.4);
}

.status-badge.is-lose,
.metric-badge.is-bad {
  background: rgba(197, 48, 48, 0.18);
  color: #ffb4b4;
  border: 1px solid rgba(197, 48, 48, 0.4);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: 1rem;
  vertical-align: middle;
}

.level-icon {
  width: 38px;
  height: 38px;
  margin-left: 8px;
  border-radius: 0;
  vertical-align: middle;
  object-fit: contain;
}

.elo-progress {
  margin-top: 12px;
  width: min(100%, 280px);
}

.elo-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.elo-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a1f, #ffb089);
}

.elo-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats-panel {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.82);
}

.stats-panel.is-recent {
  border-color: rgba(255, 90, 31, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 90, 31, 0.12), transparent 45%),
    rgba(12, 14, 20, 0.88);
}

.stats-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.stats-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.stats-panel-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.stats-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.stats-panel-grid div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stats-panel-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-panel-grid strong {
  color: var(--text-strong);
  font-size: 1.05rem;
}

.recent-form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.form-pill.is-win {
  background: rgba(36, 200, 120, 0.16);
  color: #8cf0b0;
}

.form-pill.is-lose {
  background: rgba(255, 90, 90, 0.14);
  color: #ff8f8f;
}

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

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.profile-links a {
  text-decoration: none;
}

.profile-elo {
  margin: 12px 0;
}

.profile-elo h6 {
  margin-bottom: 10px;
}

.avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 90, 31, 0.35), rgba(36, 244, 255, 0.2));
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
}

.player-chip-avatar.is-broken,
.havewemet-avatar.is-broken,
.teammates-row-avatar.is-broken,
.profile-hero-avatar.is-broken,
.pros-player-avatar.is-broken,
.pros-showcase-avatar.is-broken,
.profile-teammate-chip img.is-broken {
  display: none !important;
}

.card,
.card-header,
.card-body {
  border-color: var(--border) !important;
}

.card-header {
  background: linear-gradient(
    135deg,
    rgba(255, 90, 31, 0.9),
    rgba(36, 244, 255, 0.25)
  ) !important;
}

.card-body {
  background: var(--card-bg) !important;
}

.card {
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
}

.footer {
  background: rgba(8, 9, 12, 0.95) !important;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.footer-link:hover {
  color: var(--accent-2);
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .footer-links {
    justify-content: flex-start;
    margin-top: 10px;
  }
}

.latest-search {
  margin-top: 28px;
}

.img-latest {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.masthead .container,
.masthead .container-fluid,
.page-main .container,
.page-main .container-fluid,
.masthead-center {
  animation: enter 0.6s ease-out;
}

@media (max-width: 768px) {
  .hero-actions {
    gap: 8px;
  }

  .hero-btn {
    min-width: 135px;
    width: auto;
  }

  .brand-mark {
    font-size: 2.4rem;
  }
}

/* ── Homepage redesign ── */
.home-page {
  padding-top: 12px !important;
  padding-bottom: 48px !important;
  position: relative;
}

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

.home-shell-wide {
  width: min(100%, 1240px);
}

.home-hero {
  text-align: center;
  padding: 10px 0 4px;
}

/* Analyser-style cinematic home */
.home-page-analyser {
  overflow: hidden;
  padding-bottom: 72px !important;
}

.home-hero-cinematic {
  position: relative;
  isolation: isolate;
  padding: 8px 4px 6px;
  margin: 0 0 4px;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.home-hero-atmosphere {
  position: absolute;
  inset: -40% -18% auto -18%;
  height: 180%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 90, 31, 0.18), transparent 58%),
    radial-gradient(ellipse 45% 50% at 85% 40%, rgba(36, 244, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 45% at 12% 70%, rgba(255, 180, 40, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(18, 22, 32, 0.15) 0%, rgba(8, 10, 14, 0.55) 72%, transparent 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 14px,
      rgba(255, 255, 255, 0.01) 14px,
      rgba(255, 255, 255, 0.01) 15px
    );
  filter: blur(0.2px);
  transform: scale(1.02);
  animation: home-atmosphere-drift 18s ease-in-out infinite alternate;
}

.home-hero-content {
  position: relative;
  z-index: 1;
}

.home-page-analyser .hero-heading {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-strong);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.home-page-analyser .hero-subtitle {
  margin: 0 auto 14px;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted) !important;
}

.home-page-analyser .player-search {
  width: min(100%, 560px);
  margin: 0 auto 10px;
}

.home-page-analyser .player-search-form {
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
}

.home-page-analyser .player-search-field input {
  height: 46px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.home-page-analyser .player-search-submit {
  min-width: 132px;
  height: 40px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.home-page-analyser .player-search-matches select {
  height: 36px;
}

@keyframes home-atmosphere-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.05) translate3d(0, -8px, 0);
  }
}

@keyframes home-hero-settle {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-card-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.home-hero-cinematic .hero-heading,
.home-hero-cinematic .hero-subtitle,
.home-hero-cinematic .player-search {
  animation: home-hero-settle 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero-cinematic .hero-subtitle {
  animation-delay: 0.08s;
}

.home-hero-cinematic .player-search {
  animation-delay: 0.14s;
}

.home-showcase {
  margin: 10px 0 18px;
}

.home-showcase-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-showcase-card,
.home-lb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  border-radius: 14px;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  animation: home-card-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--card-i, 0) * 0.06s);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.home-showcase-card:hover,
.home-lb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.35);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 90, 31, 0.12);
}

.home-showcase-card {
  padding: 12px 12px 14px;
  background:
    linear-gradient(180deg, rgba(42, 34, 18, 0.55) 0%, rgba(12, 14, 20, 0.96) 42%, #090b10 100%);
  color: var(--text);
  content-visibility: auto;
  contain-intrinsic-size: 180px 280px;
}

.home-showcase-glow {
  position: absolute;
  top: -40%;
  left: 10%;
  right: 10%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(255, 196, 70, 0.28), transparent 70%);
  pointer-events: none;
}

.home-showcase-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 8px;
}

.home-showcase-elo {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 2.2vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: #ffc94a;
  text-shadow: 0 0 22px rgba(255, 201, 74, 0.25);
}

.home-showcase-team {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-showcase-avatar {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 201, 74, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  margin: 2px 0 8px;
  background: rgba(0, 0, 0, 0.35);
}

.home-showcase-avatar.avatar-fallback,
.home-showcase-avatar.is-broken + .avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  color: #ffc94a;
  background: rgba(20, 22, 28, 0.95);
}

.home-showcase-avatar.is-broken {
  display: none;
}

.home-showcase-name {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffc94a;
  text-align: center;
  line-height: 1.05;
  word-break: break-word;
}

.home-showcase-stats {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: auto 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.home-showcase-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-showcase-stats dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc94a;
}

.home-showcase-stats dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-showcase-stats dd.home-showcase-stat-text {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.home-lb-card {
  padding: 14px 12px 12px;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(18, 48, 34, 0.95) 0%, rgba(8, 22, 16, 0.98) 55%, #06140f 100%);
  border-color: rgba(56, 200, 120, 0.25);
  color: #d7ffe8;
}

.home-lb-card:hover {
  border-color: rgba(56, 200, 120, 0.55);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(56, 200, 120, 0.16);
}

.home-lb-kicker {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 255, 210, 0.75);
}

.home-lb-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.home-lb-trophy {
  color: #ffc94a;
  filter: drop-shadow(0 0 14px rgba(255, 201, 74, 0.35));
}

.home-lb-mini {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}

.home-lb-mini li {
  display: grid;
  grid-template-columns: 18px 28px 1fr;
  align-items: center;
  gap: 8px;
}

.home-lb-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(210, 255, 230, 0.8);
}

.home-lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-lb-avatar.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: #9dffc4;
}

.home-lb-avatar.is-broken {
  display: none;
}

.home-lb-bar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 200, 120, 0.95), rgba(255, 201, 74, 0.75));
  opacity: 0.9;
}

.home-lb-mini li:nth-child(1) .home-lb-bar {
  width: 92%;
}

.home-lb-mini li:nth-child(2) .home-lb-bar {
  width: 76%;
}

.home-lb-mini li:nth-child(3) .home-lb-bar {
  width: 62%;
}

.home-lb-title {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3dff9a;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 22px rgba(61, 255, 154, 0.25);
}

.home-lb-regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.home-lb-regions span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(190, 255, 220, 0.7);
  border: 1px solid rgba(61, 255, 154, 0.22);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.home-tools-quiet {
  margin-top: 6px;
  opacity: 0.95;
}

.home-seo {
  margin: 28px auto 8px;
  max-width: 720px;
  text-align: center;
  padding: 0 8px 12px;
}

.home-seo h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.home-seo p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-seo a {
  color: #ffb089;
  text-decoration: none;
  font-weight: 600;
}

.home-seo a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.home-tip-chip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: home-hero-settle 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-tip-label {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b0c0f;
  background: linear-gradient(135deg, #ff5a1f 0%, #ff7a2e 100%);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.home-tip-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .home-showcase-track {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .home-showcase-card,
  .home-lb-card {
    scroll-snap-align: start;
    min-width: 220px;
  }
}

@media (max-width: 720px) {
  .home-showcase-track {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .home-showcase-card,
  .home-lb-card {
    min-height: 260px;
  }

  .home-tip-chip {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: 10px;
  }
}

@media (max-width: 520px) {
  .home-showcase-track {
    grid-template-columns: minmax(240px, 1fr);
  }

  .home-hero-cinematic {
    padding: 6px 2px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-atmosphere,
  .home-hero-cinematic .hero-heading,
  .home-hero-cinematic .hero-subtitle,
  .home-hero-cinematic .player-search,
  .home-showcase-card,
  .home-lb-card,
  .home-tip-chip {
    animation: none !important;
  }
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: rgba(255, 90, 31, 0.1);
  color: #ffb089;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-page .brand-mark {
  margin: 0 0 8px;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.home-page .hero-title {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif !important;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text) !important;
  text-transform: none;
}

.home-page .hero-subtitle {
  margin: 0 auto 18px;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted) !important;
}

/* Unified dark search panel */
.player-search {
  width: min(100%, 680px);
  margin: 0 auto 16px;
}

.player-search-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(22, 26, 36, 0.95), rgba(12, 14, 20, 0.92));
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-search-field {
  position: relative;
}

.player-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}

.player-search-field input {
  width: 100%;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.92);
  color: var(--text-strong);
  padding: 0 18px 0 48px;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.player-search-field input::placeholder {
  color: #7d8798;
}

.player-search-field input:hover {
  border-color: rgba(255, 90, 31, 0.35);
}

.player-search-field input:focus {
  border-color: rgba(36, 244, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(36, 244, 255, 0.12);
  background: rgba(10, 12, 18, 0.98);
}

.player-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.player-search-matches {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.player-search-matches select {
  min-width: 78px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.95);
  color: var(--text-strong);
  padding: 0 10px;
  font-family: inherit;
  font-weight: 600;
}

.player-search-submit {
  margin-left: auto;
  min-width: 160px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5a1f 0%, #ff7a2e 100%);
  color: #0b0c0f;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.28);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.player-search-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.home-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.tool-link-primary {
  min-width: 0;
  background: linear-gradient(135deg, #ff5a1f 0%, #ff7a2e 100%);
  color: #0b0c0f !important;
  box-shadow: 0 8px 18px rgba(255, 90, 31, 0.22);
}

.tool-link-primary:hover {
  transform: translateY(-1px);
  color: #0b0c0f !important;
}

.region-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.region-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: 2px;
}

.tool-link-ghost {
  min-width: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text) !important;
}

.tool-link-ghost:hover {
  border-color: rgba(36, 244, 255, 0.45);
  color: var(--accent-2) !important;
  background: rgba(36, 244, 255, 0.08);
}

.latest-search {
  margin-top: 24px;
  text-align: left;
}

.latest-search-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.latest-search .section-header {
  margin: 0;
  font-size: 1.35rem;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.latest-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-chip {
  display: block;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.78);
  text-decoration: none !important;
  color: inherit !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.player-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 31, 0.35);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.player-chip-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.player-chip-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-chip-avatar.avatar-fallback {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  border-radius: 12px;
}

.player-chip-id {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-chip-id strong {
  font-size: 0.98rem;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-chip-id span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.player-chip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-chip-stats div {
  text-align: center;
}

.player-chip-stats dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-chip-stats dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  :root {
    --site-nav-height: 72px;
  }
}

/* Soften old card headers site-wide */
.card-header {
  background: rgba(18, 22, 30, 0.95) !important;
  border-bottom: 1px solid var(--border) !important;
}

.card-header a,
.card-header h4 {
  color: var(--text-strong) !important;
  text-decoration: none;
}

.card-header h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

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

  .latest-search-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .player-search-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .player-search-submit {
    width: 100%;
    margin-left: 0;
  }

  .player-search-matches {
    justify-content: space-between;
  }

  .home-tools-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-tools-row .tool-link-primary {
    grid-column: 1 / -1;
  }

  .home-tools-row .tool-link {
    width: 100%;
  }

  .region-links {
    width: 100%;
    justify-content: center;
  }

  .home-page .hero-subtitle {
    margin-bottom: 14px;
    font-size: 0.9rem;
  }
}

/* ── Profile page ── */
.profile-shell,
.results-shell {
  width: min(100%, 1100px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 8px;
  overflow-x: hidden;
}

.page-main section.profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 20px 16px;
  margin-bottom: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 90, 31, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(22, 26, 36, 0.96), rgba(12, 14, 20, 0.92));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-hero-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}

.profile-hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  background: rgba(8, 10, 14, 0.9);
}

.profile-hero-avatar.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
  font-size: 2rem;
  font-weight: 800;
}

.profile-hero-meta {
  min-width: 0;
  flex: 1;
}

.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.page-main .profile-name {
  margin: 0;
  padding: 0;
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 2.45rem);
  letter-spacing: 0.06em;
  color: var(--text-strong);
  line-height: 1.12;
}

.profile-level-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: rgba(255, 90, 31, 0.12);
  color: #ffb089;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-progress {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.elo-progress {
  margin-top: 2px;
  width: 100%;
}

.elo-progress-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.elo-progress-copy span {
  opacity: 0.75;
}

.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.profile-hero-stat {
  min-width: 0;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.62);
  text-align: center;
}

.profile-hero-stat span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-hero-stat strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-strong);
  font-size: 1.12rem;
  line-height: 1;
}

.profile-hero-stat.is-elo {
  border-color: rgba(255, 90, 31, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 90, 31, 0.12), rgba(8, 10, 14, 0.72));
}

.profile-hero-stat.is-elo strong {
  font-size: 1.25rem;
}

.profile-hero-stat .faceit-level-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.profile-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-action-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.7);
  color: var(--text-strong) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.profile-action:hover {
  border-color: rgba(36, 244, 255, 0.35);
  background: rgba(36, 244, 255, 0.08);
  transform: translateY(-1px);
}

.profile-action.is-faceit {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.14);
  color: #ffb089 !important;
}

.profile-action.is-faceit:hover {
  border-color: rgba(255, 90, 31, 0.7);
  background: rgba(255, 90, 31, 0.22);
}

.profile-action-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: block;
  opacity: 0.95;
}

@media (min-width: 900px) {
  .page-main section.profile-hero {
    grid-template-columns: minmax(260px, 1.05fr) minmax(300px, 1fr);
    grid-template-areas:
      "identity stats"
      "actions actions";
    align-items: center;
    gap: 14px 22px;
    padding: 18px 22px 16px;
  }

  .profile-hero-identity {
    grid-area: identity;
  }

  .profile-hero-stats {
    grid-area: stats;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-hero-actions {
    grid-area: actions;
  }
}

.profile-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 20px;
}

.profile-subnav a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 20, 0.7);
  color: var(--muted);
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-subnav a:hover {
  color: var(--text-strong);
  border-color: rgba(255, 90, 31, 0.35);
}

@media (max-width: 720px) {
  .profile-hero-actions {
    grid-template-columns: 1fr;
  }

  .profile-action-group,
  .profile-action-group-external {
    width: 100%;
  }
}

.profile-hero-elo {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.elo-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  justify-self: end;
}

.profile-hero-highlights {
  display: none;
}

.elo-chip-meta {
  display: grid;
  gap: 2px;
}

.faceit-level-icon,
.level-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  display: block;
}

.elo-chip-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.elo-chip-value {
  font-size: 1.6rem;
  color: var(--text-strong);
  line-height: 1;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.stat-tile {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.78);
  text-align: center;
}

.stat-tile-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-tile-value {
  display: block;
  color: var(--text-strong);
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-section {
  margin-top: 34px;
}

.empty-row {
  text-align: center !important;
  color: var(--muted) !important;
  padding: 28px 12px !important;
}

/* ── Match search (map picker) ── */
.match-search {
  width: min(100%, 640px);
  margin: 0 auto;
}

.match-search-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.95), rgba(12, 14, 20, 0.92));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.match-search-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.match-search-copy strong {
  color: var(--text-strong);
}

.match-search-field input {
  width: 100%;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.92);
  color: var(--text-strong);
  padding: 0 16px;
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
}

.match-search-field input:focus {
  border-color: rgba(36, 244, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(36, 244, 255, 0.12);
}

.match-search-submit {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5a1f 0%, #ff7a2e 100%);
  color: #0b0c0f;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.match-search-submit:hover {
  filter: brightness(1.08);
}

.match-search-error {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(197, 48, 48, 0.45);
  background: rgba(197, 48, 48, 0.16);
  color: #ffb4b4;
  font-size: 0.9rem;
}

.match-search-error code {
  color: #ffd0d0;
  font-size: 0.78rem;
  word-break: break-all;
}

.ext-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 244, 255, 0.12);
  border: 1px solid rgba(36, 244, 255, 0.35);
  color: var(--accent-2) !important;
  text-decoration: none !important;
  font-weight: 700;
}

/* ── Map picker results ── */
.map-results-page {
  padding-top: 20px !important;
}

.results-hero {
  text-align: center;
  margin-bottom: 24px;
}

.results-title {
  margin: 0 0 10px;
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: var(--text-strong);
}

.results-title em {
  font-style: normal;
  color: var(--muted);
  margin: 0 10px;
  font-size: 0.7em;
}

.results-title span {
  color: var(--accent);
}

.team-maps-grid,
.player-tables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

.team-panel {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.82);
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding: 0;
}

.team-panel-head {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.98), rgba(14, 16, 22, 0.95));
}

.team-panel-head h2,
.team-subhead {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-strong);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 1.2;
}

.team-subhead {
  margin: 0 0 10px;
  color: var(--accent-2);
}

.player-collapse-card {
  margin-bottom: 10px;
  background: rgba(12, 14, 20, 0.78) !important;
}

.player-collapse-toggle {
  color: var(--text-strong) !important;
  text-decoration: none !important;
  font-size: 0.95rem;
}

.player-collapse-toggle:hover {
  color: var(--accent-2) !important;
}

.collapse-chevron {
  float: right;
  width: 0.55em;
  height: 0.55em;
  margin-top: 0.35em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.player-collapse-toggle:not(.collapsed) .collapse-chevron {
  transform: rotate(225deg);
  margin-top: 0.55em;
}

@media (max-width: 900px) {
  .stat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-maps-grid,
  .player-tables-grid {
    grid-template-columns: 1fr;
  }

  .team-panel .table-wrap,
  .profile-section .table-wrap {
    overflow-x: auto;
  }

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

  .profile-hero-stat.is-elo {
    grid-column: auto;
  }

  .elo-chip {
    justify-self: start;
  }

  .profile-hero-elo {
    justify-items: start;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .stat-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .page-main section.profile-hero {
    padding: 16px 14px 14px;
    gap: 12px;
  }

  .profile-hero-identity {
    gap: 12px;
  }

  .profile-hero-avatar-wrap,
  .profile-hero-avatar {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 16px;
  }

  .profile-hero-stats {
    gap: 8px;
  }

  .profile-hero-stat {
    padding: 10px 8px;
  }
}

.match-search-example {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(36, 244, 255, 0.35);
  background: rgba(36, 244, 255, 0.06);
}

.match-search-example span {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-search-example code {
  color: var(--text);
  font-size: 0.82rem;
  word-break: break-all;
  line-height: 1.45;
}

.tool-link-ghost.is-active {
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089 !important;
}

.flag-thumb {
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 6px;
}

.flag-code {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.team-search {
  width: min(100%, 640px);
  margin: 0 auto;
}

.team-search-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.95), rgba(12, 14, 20, 0.92));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.team-search-fields {
  display: grid;
  gap: 10px;
}

.team-search-fields input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.92);
  color: var(--text-strong);
  padding: 0 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.team-search-fields input:focus {
  border-color: rgba(36, 244, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(36, 244, 255, 0.12);
}

.havewemet-shell,
.home-shell.havewemet-shell {
  width: min(100%, 1100px);
}

.havewemet-results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.havewemet-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.havewemet-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.82);
  color: inherit;
  text-decoration: none !important;
}

.havewemet-player strong {
  display: block;
  color: var(--text-strong);
  font-size: 1rem;
}

.havewemet-player span {
  color: var(--muted);
  font-size: 0.82rem;
}

.havewemet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.havewemet-avatar.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
  font-weight: 800;
}

.havewemet-vs {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.havewemet-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.havewemet-scan-note {
  margin: 0;
}

.havewemet-table {
  table-layout: fixed;
  width: 100%;
  min-width: 560px;
}

.havewemet-table th,
.havewemet-table td {
  word-break: normal !important;
  overflow-wrap: normal;
  white-space: nowrap;
  vertical-align: middle !important;
}

.havewemet-table .col-map {
  width: 28%;
}

.havewemet-table .col-map .map-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.havewemet-table .col-map .map-thumb {
  width: 48px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}

.havewemet-table .col-map strong {
  color: var(--text-strong);
  font-weight: 700;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.havewemet-table .col-when {
  width: 24%;
}

.havewemet-table .col-score {
  width: 14%;
  font-variant-numeric: tabular-nums;
}

.havewemet-table .col-relation {
  width: 22%;
}

.havewemet-table .col-room {
  width: 12%;
}

.havewemet-table .metric-badge {
  min-width: 5.5rem;
  white-space: nowrap;
}

.havewemet-table-panel {
  margin-top: 4px;
  border-radius: 16px;
  overflow: hidden;
}

.havewemet-table-panel .table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.havewemet-empty {
  display: grid;
  gap: 6px;
  padding: 22px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(12, 14, 20, 0.55);
  text-align: center;
}

.havewemet-empty strong {
  color: var(--text-strong);
}

.havewemet-empty span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .havewemet-players {
    grid-template-columns: 1fr;
  }

  .havewemet-vs {
    justify-self: center;
  }

  .havewemet-summary {
    grid-template-columns: 1fr;
  }
}

/* ── Teammates page ── */
.teammates-shell,
.home-shell.teammates-shell {
  width: min(100%, 1100px);
}

.teammates-results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.teammates-hero-player {
  grid-template-columns: 1fr auto;
}

.teammates-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.teammates-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.best-duo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, 0.16), transparent 50%),
    rgba(12, 14, 20, 0.88);
}

.best-duo-kicker {
  margin: 0 0 4px;
  color: #ffb089;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.best-duo-title {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 700;
}

.best-duo-title a {
  color: var(--accent);
  text-decoration: none;
}

.best-duo-title a:hover {
  text-decoration: underline;
}

.best-duo-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.teammates-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teammates-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.teammates-tab {
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.teammates-tab.is-active {
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
}

.teammates-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teammates-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.teammates-filters select {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.92);
  color: var(--text-strong);
  padding: 0 10px;
  font: inherit;
}

.teammates-table-panel.is-hidden {
  display: none;
}

.teammates-table {
  table-layout: fixed;
  width: 100%;
  min-width: 620px;
}

.teammates-table th,
.teammates-table td {
  word-break: normal !important;
  white-space: nowrap;
  vertical-align: middle !important;
}

.teammates-table .col-player {
  width: 42%;
}

.teammates-table .col-num {
  width: 14%;
}

.teammates-table .col-center {
  width: 15%;
}

.teammates-player-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none !important;
}

.teammates-player-link strong {
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
}

.teammates-row-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.teammates-row-avatar.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
  font-size: 0.8rem;
  font-weight: 800;
}

.teammates-row-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.teammates-empty-row td {
  text-align: center;
  color: var(--muted);
  padding: 24px 12px !important;
}

.teammates-filter-note {
  margin: 0;
}

.team-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-good-text {
  color: #8cf0b0 !important;
}

.is-bad-text {
  color: #ff8f8f !important;
}

.recent-form-tiles {
  margin-top: -8px;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-teammates-strip {
  margin-top: 8px;
}

.profile-teammates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.profile-teammate-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.82);
  color: inherit;
  text-decoration: none !important;
}

.profile-teammate-chip img,
.profile-teammate-chip .avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-teammate-chip .avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
  font-weight: 800;
  font-size: 0.95rem;
}

.profile-teammate-chip strong {
  display: block;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-teammate-chip small {
  color: var(--muted);
  font-size: 0.78rem;
}

.compare-shell,
.home-shell.compare-shell {
  width: min(100%, 1100px);
}

.compare-results {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-stat-grid {
  display: grid;
  gap: 8px;
}

.compare-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.72);
}

.compare-stat-row strong {
  color: var(--text-strong);
  font-size: 1.15rem;
}

.compare-stat-row strong:last-child {
  text-align: right;
}

.compare-stat-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.compare-maps-table {
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
}

.compare-maps-table th,
.compare-maps-table td {
  word-break: normal !important;
  white-space: nowrap;
  vertical-align: middle !important;
}

.compare-maps-table .col-map {
  width: 34%;
}

.compare-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.compare-edge {
  font-weight: 800;
  color: var(--muted);
}

.compare-edge.is-good {
  color: #8cf0b0;
}

.compare-edge.is-bad {
  color: #ff8f8f;
}

@media (max-width: 720px) {
  .teammates-hero-player {
    grid-template-columns: 1fr;
  }

  .teammates-hero-actions {
    justify-content: flex-start;
  }

  .teammates-controls {
    align-items: stretch;
  }

  .teammates-tabs,
  .teammates-filters {
    width: 100%;
  }

  .recent-form-tiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* home-eyebrow pills removed from UI */
.home-eyebrow { display: none !important; }

/* ── Pro showcase room ── */
.pros-shell {
  width: min(100%, 1240px);
}

.pros-showcase {
  margin-top: 6px;
  text-align: left;
}

.pros-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pros-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.pros-filter span {
  color: var(--muted);
  font-size: 0.72rem;
}

.pros-filter:hover {
  border-color: rgba(36, 244, 255, 0.4);
  color: var(--accent-2);
}

.pros-filter.is-active {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.14);
  color: #ffb089;
}

.pros-filter.is-active span {
  color: #ffb089;
}

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

.pros-showcase-grid .home-showcase-card {
  min-width: 0;
  width: 100%;
}

.pros-showcase-grid .home-showcase-card[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .pros-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pros-showcase-grid .home-showcase-card {
    min-height: 250px;
  }
}



/* ── Map picker: my team + best maps ── */
.my-team-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.my-team-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.my-team-btn {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.my-team-btn:hover {
  border-color: rgba(36, 244, 255, 0.4);
  color: var(--accent-2);
}

.my-team-btn.is-active {
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.16);
  color: #ffb089;
  box-shadow: 0 8px 18px rgba(255, 90, 31, 0.18);
}

.best-maps-card {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 90, 31, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, 0.16), transparent 45%),
    rgba(12, 14, 20, 0.88);
}

.best-maps-card.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 20, 0.55);
}

.best-maps-card.is-empty .best-maps-content {
  display: none;
}

.best-maps-card:not(.is-empty) .best-maps-empty {
  display: none;
}

.best-maps-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.best-maps-head {
  margin-bottom: 12px;
}

.best-maps-kicker {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 700;
}

.best-maps-kicker strong {
  color: var(--accent);
}

.best-maps-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.best-map-item {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 14, 0.7);
}

.best-map-item.is-top {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.1);
}

.best-map-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
}

.best-map-thumb {
  width: 44px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.best-map-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.best-map-meta strong {
  color: var(--text-strong);
}

.best-map-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.best-map-edge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #8cf0b0;
  white-space: nowrap;
}

.team-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-panel-tag {
  display: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.14);
  color: #ffb089;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-panel.is-my-team {
  border-color: rgba(255, 90, 31, 0.4);
  box-shadow: 0 18px 36px rgba(255, 90, 31, 0.12);
}

.team-panel.is-my-team .team-panel-tag {
  display: inline-flex;
}

.map-stats-table tbody tr.is-dimmed {
  opacity: 0.42;
}

.map-stats-table tbody tr.is-good-map {
  background: rgba(36, 244, 255, 0.06) !important;
}

.map-stats-table tbody tr.is-best-map {
  background: rgba(255, 90, 31, 0.12) !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.map-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.2);
  border: 1px solid rgba(255, 90, 31, 0.45);
  color: #ffb089;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.map-stats-table tbody tr.is-good-map .map-rank-badge {
  background: rgba(36, 244, 255, 0.12);
  border-color: rgba(36, 244, 255, 0.35);
  color: var(--accent-2);
}

@media (max-width: 720px) {
  .best-map-item {
    grid-template-columns: auto 1fr;
  }

  .best-map-thumb,
  .best-map-edge {
    grid-column: 2;
  }
}
