/* EloFY platform extensions — glass cards, coach, compare */
.ps-platform {
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ps-platform__block {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(22, 28, 38, 0.72), rgba(8, 10, 14, 0.65));
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-platform__block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.ps-platform__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--trk-muted);
}

.ps-platform__chart-wrap {
  height: 200px;
  position: relative;
}

.ps-platform__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ps-platform__table th,
.ps-platform__table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ps-platform__table .col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ps-map-perf-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ps-map-perf-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.ps-map-perf-name {
  font-weight: 600;
  color: #e2e8f0;
}

.ps-platform__table .ps-map-perf-td {
  vertical-align: middle;
}

.ps-coach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ps-coach-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.ps-coach-card__cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7dd3fc;
  margin-bottom: 0.2rem;
}

.ps-coach-card p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.ps-coach-lead {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--trk-muted, #94a3b8);
  line-height: 1.5;
}

.ps-coach-scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.ps-coach-score {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ps-coach-score__lab {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.ps-coach-score__val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.ps-coach-score__track {
  margin-top: 0.35rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ps-coach-score__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
}

.ps-coach-card--focus {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}

.ps-coach-card--focus .ps-coach-card__cat {
  color: #fcd34d;
}

.ps-platform__block--gamification,
.ps-gamification {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(155deg, rgba(28, 22, 42, 0.88), rgba(10, 10, 18, 0.82));
}

.ps-elofy-community .ps-gamification--embedded {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.ps-elofy-block--xp .ps-elofy-sub {
  margin-bottom: 0.65rem;
}

.ps-elofy-community .ps-gamification-slot:empty {
  display: none;
}

.ps-xp-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.ps-xp-level-ring {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.35), rgba(88, 28, 135, 0.2));
  border: 2px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.2);
}

.ps-xp-level-ring__num {
  font-size: 1.55rem;
  font-weight: 900;
  color: #e9d5ff;
  line-height: 1;
}

.ps-xp-level-ring__lab {
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4b5fd;
}

.ps-xp-head__meta {
  flex: 1;
  min-width: 0;
}

.ps-xp-total {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.ps-xp-streak {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #fcd34d;
}

.ps-xp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.ps-xp-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  transition: width 0.35s ease;
}

.ps-xp-next {
  margin: 0;
  font-size: 0.72rem;
  color: var(--trk-muted, #94a3b8);
}

.ps-xp-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c4b5fd;
}

.ps-challenge-group {
  margin-bottom: 0.65rem;
}

.ps-challenge-group__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.ps-challenge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ps-challenge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.ps-challenge--done {
  border-color: rgba(126, 231, 135, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.ps-challenge__icon {
  width: 1.25rem;
  text-align: center;
  font-weight: 800;
  color: #7ee787;
}

.ps-challenge:not(.ps-challenge--done) .ps-challenge__icon {
  color: #64748b;
}

.ps-challenge__label {
  flex: 1;
  color: #e2e8f0;
}

.ps-challenge__xp {
  font-size: 0.7rem;
  font-weight: 700;
  color: #c4b5fd;
  white-space: nowrap;
}

.ps-xp-ach-meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--trk-muted, #94a3b8);
}

.ps-ach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ps-ach-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 4.5rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.ps-ach-badge--on {
  opacity: 1;
  filter: none;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

.ps-ach-badge__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.ps-ach-badge__label {
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
  color: #cbd5e1;
  line-height: 1.2;
}

.ps-xp-loading {
  margin: 0;
  font-size: 0.82rem;
  color: var(--trk-muted, #94a3b8);
}

.ps-platform__block--elofy {
  border-color: rgba(126, 231, 135, 0.22);
  background: linear-gradient(145deg, rgba(22, 32, 28, 0.9), rgba(8, 12, 10, 0.85));
}

.ps-elofy-overall {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.ps-elofy-overall__val {
  font-size: 2.4rem;
  font-weight: 900;
  color: #7ee787;
  line-height: 1;
}

.ps-elofy-overall__of {
  font-size: 1rem;
  color: var(--trk-muted, #94a3b8);
  font-weight: 600;
}

.ps-elofy-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ps-elofy-bar {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.75rem;
}

.ps-elofy-bar__lab {
  color: #cbd5e1;
  font-weight: 600;
}

.ps-elofy-bar__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ps-elofy-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #7ee787);
}

.ps-elofy-bar__num {
  text-align: right;
  font-weight: 800;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.ps-share-btn {
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.ps-share-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
}

.csstats-timeline {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 14px;
  -webkit-overflow-scrolling: touch;
}

.csstats-timeline__item {
  flex: 0 0 auto;
  min-width: 2.4rem;
  padding: 6px 4px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.csstats-timeline__item--ct {
  border-color: rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.csstats-timeline__item--t {
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
}

.csstats-rounds-summary {
  padding: 12px 14px 0;
  margin: 0;
  color: var(--trk-muted);
  font-size: 0.82rem;
}

.compare-page__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 720px) {
  .compare-page__grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
}

.compare-vs {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--trk-muted);
}

.panel-upload {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.panel-upload__progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.5rem;
}

.panel-upload__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.15s ease;
}

.trk-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  text-decoration: none;
}

.ps-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.5rem;
}

.ps-metric-pill {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s, background 0.15s;
}

.ps-metric-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.ps-metric-pill__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--trk-muted);
}

.ps-metric-pill__value {
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #eef1f5;
}

.ps-heatmap-canvas {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ps-platform__hint {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  color: var(--trk-muted);
}

.ps-legend {
  display: inline-block;
  margin-right: 0.75rem;
  padding-left: 1rem;
  position: relative;
}

.ps-legend::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: translateY(-50%);
}

.ps-legend--kill::before {
  background: #38bdf8;
}

.ps-legend--death::before {
  background: #f87171;
}

.ps-platform__foot {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

.ps-platform__foot a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 700;
}

.ps-platform__foot a:hover {
  text-decoration: underline;
}

.compare-metric--win .col-num {
  color: #4ade80;
}

.trk-notify-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f97316;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
