/* Cards-specific (matches docs/app.js markup) */

.cardsView{
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){ .cardsView{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 620px){ .cardsView{grid-template-columns: 1fr;} }

.card{
  position:relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  overflow:hidden;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  border-color: rgba(212,175,55,.28);
  background: rgba(0,0,0,.26);
}

/* EN GAME highlight */
.card.inGame{
  border-color: rgba(72,239,155,.65);
  box-shadow: 0 0 0 1px rgba(72,239,155,.35), 0 0 24px rgba(72,239,155,.18);
  background: rgba(0,80,45,.18);
}
.card.inGame:hover{
  border-color: rgba(72,239,155,.85);
  box-shadow: 0 0 0 2px rgba(72,239,155,.38), 0 0 30px rgba(72,239,155,.22);
}

.ingameBadge{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  pointer-events: none;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(72,239,155,.55);
  background: rgba(13,90,54,.65);
  color: rgba(235,255,245,.95);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .6px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* EN GAME badge placement: under the pseudo (inside .who) */
.who .ingameBadge{
  position: static;
  top: auto;
  right: auto;
  margin-top: 6px;
}

.ingameBadge .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(72,239,155,.95);
  box-shadow: 0 0 0 0 rgba(72,239,155,.55);
  animation: ingamePulse 1.25s ease-out infinite;
}
@keyframes ingamePulse{
  0%{ box-shadow: 0 0 0 0 rgba(72,239,155,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(72,239,155,0); }
  100%{ box-shadow: 0 0 0 0 rgba(72,239,155,0); }
}

.cardHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  padding: 14px 18px 10px 14px;
}

.who .name{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
}
.who .sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
  font-weight: 850;
}


.rank{
  display:flex;
  min-width: 100px;
  justify-content:flex-end;
  text-align:right;
}
.rankText .rankLabel{
  font-weight: 950;
  font-size: 13px;
}
.rankText .rankMeta{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted2);
}

.cardBody{
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.miniStats{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini{
  flex: 1;
  min-width: 90px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.mini .k{
  font-size: 11px;
  color: var(--muted2);
  font-weight: 800;
}
.mini .v{
  margin-top: 4px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.rankIcon{
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
}

.rankLabel.unranked{opacity:.78;}
