/* ---------- En İyi Oyuncular: dikey kart + 3D karakter ----------
   Üstte madalya, ortada oyuncunun giydiği eşyalarla 3D karakter (kanat, peri, Pathos dahil),
   altta isim ve puan. 3D yüklenene kadar sınıf görseli görünür. app.css'teki .top3-card
   stilinin (honor_bg arka planı, madalya görselleri) üzerine eklenir. */
.top3-card.top3-card--3d {
  --t3-color: #f0c040;
  --t3-line: rgba(240, 192, 64, .55);
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 14px 14px 16px;
  border: 1px solid var(--t3-line) !important;
  border-radius: 6px;
  background: #000;
}
.top3-card.top3-card--3d > * { position: relative; }
.top3-card--3d.t3-rank-2 { --t3-color: #eef0f4; --t3-line: rgba(200, 204, 212, .5); }
.top3-card--3d.t3-rank-3 { --t3-color: #d98a4e; --t3-line: rgba(205, 127, 50, .5); }

/* 3D karakter alanı: kartın en tepesinden başlar; arkada oyuncunun ulusunun odası görünür */
.top3-card--3d .top3-3d {
  position: relative;
  z-index: 3;
  height: 314px;
  margin: -14px -14px 0;
}
.top3-card--3d .top3-3d__fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transition: opacity .4s ease;
}
.top3-card--3d .top3-3d__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: dark;
  opacity: 0;
  transition: opacity .5s ease;
}
.top3-card--3d .top3-3d.is-ready .top3-3d__frame { opacity: 1; }
.top3-card--3d .top3-3d.is-ready .top3-3d__fallback { opacity: 0; }

/* İsim ve puan */
.top3-card--3d .top3-info {
  position: relative;
  z-index: 4;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
}
.top3-card--3d .top3-info .nick {
  color: var(--t3-color) !important;
  font-family: Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.top3-card--3d .top3-info .stat {
  color: var(--t3-color) !important;
  font-family: Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  opacity: .85;
}
