/* Framed team portraits with the supplied corner mascot. */
#a-takim .player-track,
#teknik-kadro .player-track { padding-top: 54px; row-gap: 70px; }
.team-card-shell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  border: 5px solid white;
  border-radius: 14px;
  outline: 1px solid var(--nask-border);
  box-shadow: 0 8px 24px #10152b14;
  transition: transform .3s ease, box-shadow .3s ease, outline-color .3s ease;
}
.team-card-shell > .player-card {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 9px;
}
.team-card-shell::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -55px;
  right: 14px;
  width: 90px;
  height: 90px;
  background: white url('../images/mascot/flaming-basketball.webp') center / contain no-repeat;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 5px 14px #10152b26;
  pointer-events: none;
  opacity: 0;
  transform: translateY(56px) rotate(12deg) scale(.8);
  transition: opacity .22s ease, transform .42s cubic-bezier(.2,.85,.25,1.3);
}
@media (hover: hover) and (pointer: fine) {
  .team-card-shell:hover {
    z-index: 2;
    transform: translateY(-6px);
    outline-color: var(--nask-green);
    box-shadow: 0 16px 32px #10152b26;
  }
  .team-card-shell:hover::before { opacity: 1; transform: translateY(0) rotate(-8deg) scale(1); }
}
@media (max-width: 900px) {
  .team-card-shell { flex: 0 0 270px; }
}
@media (max-width: 600px) {
  .team-card-shell { flex-basis: 245px; border-width: 4px; }
  .team-card-shell > .player-card { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-card-shell, .team-card-shell::before { transition: none; }
  .team-card-shell:hover { transform: none; }
  .team-card-shell:hover::before { transform: none; }
}
