/* Oyuncu kartı — modern oyun HUD paneli */
.nova-player-card-trigger{
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nova-player-card-trigger:active{
  transform: scale(1.02);
  filter: brightness(1.06);
}

.nova-player-card-overlay{
  position: fixed;
  inset: 0;
  z-index: 101360;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(56, 189, 248, .14), transparent 58%),
    rgba(2, 6, 23, .84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nova-player-card-overlay.is-open{
  display: flex;
}
body.nova-player-card-open{
  overflow: hidden;
}

.nova-player-card{
  position: relative;
  width: min(520px, 100%);
  height: auto;
  max-height: min(92vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, transparent 14%),
    radial-gradient(ellipse 120% 70% at 50% -15%, rgba(96, 165, 250, .18), transparent 52%),
    linear-gradient(168deg, #162033 0%, #0b1220 46%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(255, 255, 255, .04) inset,
    0 0 48px rgba(56, 189, 248, .08);
  animation: novaPlayerCardIn .34s cubic-bezier(.22, 1.08, .42, 1) both;
}
@keyframes novaPlayerCardIn{
  from{ opacity: 0; transform: translateY(16px) scale(.95); }
  to{ opacity: 1; transform: none; }
}

/* Üst başlık şeridi */
.npc-header{
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 50px 10px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
}
.npc-header-accent{
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #38bdf8, #818cf8 55%, #a78bfa);
  box-shadow: 0 0 14px rgba(56, 189, 248, .45);
}
.nova-player-card-kicker{
  margin: 0;
  text-align: center;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #93c5fd;
}
.nova-player-card-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, .78);
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .12s ease;
  border: 1px solid rgba(255, 255, 255, .1);
}
.nova-player-card-close:hover{
  background: rgba(30, 41, 59, .95);
  color: #fff;
  transform: scale(1.04);
}

/* Ana gövde — dikey alanı verimli paylaştır */
.nova-player-card-body{
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Profil paneli — BİLGİLERİN kartı (kahraman paneli ayrı) */
.npc-profile-panel{
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.nova-player-card .nova-player-card-bilgi{
  width: 100%;
}
.nova-player-card .nova-bilgi-card__photo-ring{
  max-width: 128px;
}
.nova-player-card .nova-bilgi-card__chip,
.nova-player-card .nova-bilgi-card__league-row{
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 0 12px 0 10px;
  overflow: visible;
}
.nova-player-card .nova-bilgi-card__league-title,
.nova-player-card #nova_player_card_name .nova-name-basic,
.nova-player-card #nova_player_card_name .nova-name-frame{
  line-height: 1 !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.nova-player-card #nova_player_card_name .nova-name-basic,
.nova-player-card #nova_player_card_name .nova-name-frame{
  /* Alt padding — Comfortaa dikey optik merkez (yalnızca isim) */
  padding: 0 0 0.28em !important;
}

.nova-player-card .nova-bilgi-card__league-title{
  padding: 0 !important;
  transform: none !important;
}
.nova-player-card .nova-lig-stat,
.nova-player-card .stats-item{
  min-height: 48px;
}

/* Kahraman paneli — kompakt */
.npc-hero-panel{
  flex: 0 0 auto;
  max-height: min(34vh, 260px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 8px 10px 8px;
  background:
    radial-gradient(ellipse 90% 65% at 50% 100%, rgba(99, 102, 241, .14), transparent 62%),
    rgba(2, 6, 23, .52);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.nova-player-card-hero.is-epic-buz{
  background:
    radial-gradient(ellipse 90% 65% at 50% 100%, rgba(56, 189, 248, .2), transparent 62%),
    rgba(2, 6, 23, .52);
  border-color: rgba(125, 211, 252, .22);
}
.nova-player-card-hero.is-epic-alev{
  background:
    radial-gradient(ellipse 90% 65% at 50% 100%, rgba(249, 115, 22, .18), transparent 62%),
    rgba(2, 6, 23, .52);
  border-color: rgba(251, 146, 60, .22);
}
.nova-player-card-hero.is-epic-gece{
  background:
    radial-gradient(ellipse 90% 65% at 50% 100%, rgba(139, 92, 246, .18), transparent 62%),
    rgba(2, 6, 23, .52);
  border-color: rgba(167, 139, 250, .22);
}

.npc-section-head{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.npc-section-head::before,
.npc-section-head::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 116, 139, .45), transparent);
}
.npc-section-head span{
  flex-shrink: 0;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.nova-player-card-hero-host{
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 78% 58% at 50% 92%, rgba(99, 102, 241, .16), transparent),
    linear-gradient(180deg, rgba(15, 23, 42, .28), rgba(15, 23, 42, .82));
  border: 1px solid rgba(255, 255, 255, .06);
}
.nova-player-card-hero-host .npc-hero-mount{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nova-player-card-hero-host .nsr-hero-fallback,
.nova-player-card-hero-host .npc-hero-empty{
  color: #94a3b8;
  font-size: .86rem;
  font-weight: 700;
}

.npc-hero-footer{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.nova-player-card-hero-meta{
  margin-top: 0;
  text-align: left;
}
.npc-hero-name{
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(.94rem, 3vw, 1.06rem);
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: .01em;
  line-height: 1.2;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.npc-hero-stars{
  flex-shrink: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}
.npc-star{
  font-size: .86rem;
  color: rgba(100, 116, 139, .5);
}
.npc-star.is-on{
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, .5);
}
.npc-hero-epic-tag{
  font-size: .62rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(88, 28, 135, .48);
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, .38);
  letter-spacing: .04em;
  white-space: nowrap;
}
.npc-hero-lvl{
  font-size: .64rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 41, 59, .85);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, .28);
  white-space: nowrap;
}

.nova-player-card-loading{
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: rgba(15, 23, 42, .62);
  color: #cbd5e1;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(3px);
  z-index: 5;
}
.nova-player-card.is-loading .nova-player-card-loading{
  display: flex;
}

@media (min-width: 520px){
  .nova-player-card-body{
    padding: 10px 16px 14px;
  }
  .nova-player-card .nova-bilgi-card__photo-ring{
    max-width: 136px;
  }
}

@media (max-width: 480px){
  .nova-player-card{
    width: 100%;
    height: auto;
    max-height: 94vh;
    border-radius: 18px;
  }
  .npc-hero-panel{
    max-height: min(32vh, 230px);
  }
  .nova-player-card-hero-host{
    max-height: 148px;
  }
}

@media (max-width: 360px){
  .npc-hero-footer{
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .npc-hero-name{
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  .npc-hero-stars{
    justify-content: center;
  }
}

@media (max-height: 620px){
  .nova-player-card{
    height: auto;
    max-height: 94vh;
  }
  .npc-hero-panel{
    max-height: min(30vh, 210px);
  }
  .nova-player-card-hero-host{
    max-height: 130px;
  }
}

@media (prefers-reduced-motion: reduce){
  .nova-player-card,
  .nova-player-card-trigger:active{
    animation: none;
    transform: none;
  }
}
