/* ==========================================================================
   넥슨 FC 온라인 공식 선수 카드 (div.playerCard) & 스쿼드메이커형 빈 방패 카드 슬롯
   ========================================================================== */

/* 상단 중앙 히어로 카드 스테이지 */
.hero-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 38px 0 32px;
  position: relative;
  z-index: 200;
}

.hero-prompt-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.hero-card-anchor {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   스쿼드메이커 공식 돋보기 미니 검색창 (.quickSearchContent)
   - 출처: https://ssl.nexon.com/s1/fc/online/obt/squadMaker/app.css
   ========================================================================== */
.quickSearchContent {
  z-index: 10000;
  overscroll-behavior: contain;
  width: 285px;
  position: absolute;
  top: -7px;
  left: -20px;
  display: none;
}

.quickSearchContent.is-open {
  display: block;
}

.quickSearchContent .quickForm {
  background-color: #ffffff;
  border-radius: 3px;
  width: 100%;
  height: 34px;
  line-height: 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.quickSearchContent .quickForm .quickClose {
  background: url(https://ssl.nexon.com/s2/game/fc/online/obt/squadMaker/btn_quick_close.png) no-repeat;
  width: 26px;
  height: 26px;
  position: absolute;
  top: 4px;
  left: 3px;
  border: 0;
  cursor: pointer;
}

.quickSearchContent .quickForm input {
  color: #000000;
  box-sizing: border-box;
  -webkit-user-select: text;
  user-select: text;
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  height: 34px;
  padding: 0 90px 0 35px;
  font-size: 14px;
  line-height: 34px;
  font-family: inherit;
}

.quickSearchContent .quickForm input:focus {
  outline: none;
}

.quickSearchContent .quickForm .quickSubmit {
  text-align: center;
  color: #000000;
  background-color: #16f364;
  border-radius: 3px;
  width: 84px;
  height: 34px;
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.quickSearchContent .quickList {
  background-color: #ffffff;
  border-radius: 3px;
  margin-top: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: none;
}

.quickSearchContent .quickList.is-open {
  display: block;
}

.quickSearchContent .quickList ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overscroll-behavior: contain;
  max-height: 200px;
  overflow-y: auto;
}

.quickSearchContent .quickList ul::-webkit-scrollbar {
  width: 10px;
}

.quickSearchContent .quickList ul::-webkit-scrollbar-track {
  background: #c9c9c9;
}

.quickSearchContent .quickList ul::-webkit-scrollbar-thumb {
  background: #15e75f;
}

.quickSearchContent .quickList ul li.loading {
  box-sizing: border-box;
  border-bottom: 1px solid #e7eaf1;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 6px;
  line-height: 40px;
  display: flex;
  position: relative;
  color: #7e7e8c;
  font-size: 12px;
}

/* 스쿼드메이커 선수 리스트 행 (.quickPlayer) - 최상단 검색바 드롭다운과 공통 사용 */
.quickPlayer {
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e7eaf1;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 6px;
  line-height: 40px;
  display: flex;
  position: relative;
  font-family: inherit;
}

.quickPlayer:not(:disabled):focus,
.quickPlayer:not(:disabled):hover {
  background-color: #16f364;
}

.quickPlayer:not(:disabled):focus > span:not(.trait).name strong,
.quickPlayer:not(:disabled):hover > span:not(.trait).name strong {
  color: #fffc00;
}

.quickPlayer:not(:disabled):focus > span:not(.trait).name,
.quickPlayer:not(:disabled):hover > span:not(.trait).name,
.quickPlayer:not(:disabled):focus > span:not(.trait).ovr,
.quickPlayer:not(:disabled):hover > span:not(.trait).ovr {
  color: #191919;
}

.quickPlayer > span {
  position: relative;
}

.quickPlayer > span.season {
  margin-right: 5px;
  font-size: 0;
  flex-shrink: 0;
}

.quickPlayer > span.season img {
  width: 20px;
  display: block;
}

.quickPlayer > span.payQ {
  color: #000000;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' stroke='%23cccccc' stroke-width='2' stroke-linecap='butt' stroke-linejoin='miter' d='M17 33 L1 26 L1 8 L17 1 L33 8 L33 26 L17 33 Z'/%3E%3C/svg%3E") 50% / 26px no-repeat;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 36px;
  font-family: Pretendard, Dotum, "돋움", Helvetica, Apple SD Gothic Neo, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 33px;
  display: flex;
  flex-shrink: 0;
}

.quickPlayer > span.ovr {
  color: #7e7e8c;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.quickPlayer > span.name {
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: keep-all;
  max-width: 133px;
  overflow: hidden;
  color: #7e7e8c;
  font-size: 12px;
  font-weight: 500;
}

.quickPlayer > span.name strong {
  color: #16f364;
  font-size: 12px;
  font-weight: 500;
  display: inline;
}

.quickPlayer > .trait {
  z-index: 1;
  cursor: help;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  line-height: 0;
  display: flex;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.quickPlayer > .trait img {
  width: 25px;
  height: 25px;
  display: block;
}

/* ==========================================================================
   1) 미선택 초기 상태: 스쿼드메이커 공식 빈 방패형 카드 슬롯 (.empty-shield-slot)
   - 선택 전(default_card.png)과 선택 후(playerCardWrap 210x336 * 0.85714) 모두
     실제 눈에 보이는 방패 본체 크기를 180px x 288px로 완벽히 통일하여
     돋보기(🔍)와 하단 BP 받침대 위치가 1px도 흔들리지 않도록 고정
   ========================================================================== */
.empty-shield-slot {
  position: relative;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

/* 좌측 상단 공식 돋보기 버튼 (quick_search.png) - 선택 전/후 동일 좌표 */
.shield-search-badge {
  text-indent: -9999px;
  z-index: 100;
  cursor: pointer;
  appearance: none;
  background: url(https://ssl.nexon.com/s2/game/fc/online/obt/datacenter/squad/quick_search.png) 0 0 / 40px no-repeat;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  position: absolute;
  top: -6px;
  left: -14px;
  transition: transform 0.15s ease;
}

.shield-search-badge:hover {
  transform: scale(1.08);
}

.shield-search-badge.is-selected-mode {
  top: -6px;
  left: -14px;
}

/* 스쿼드메이커 공식 방패형(Shield) 카드 본체 (180x288 통일 규격) */
.shield-body {
  width: 180px;
  height: 288px;
  position: relative;
  border: none;
  padding: 0;
  cursor: pointer;
  background: url(https://ssl.nexon.com/s2/game/fc/online/obt/squadMaker/default_card.png) 50% / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.shield-body:hover {
  transform: translateY(-3px);
}

.empty-shield-slot.is-mini-active .shield-body {
  filter: hue-rotate(-10deg) saturate(1.45);
}

/* 스쿼드메이커 공식 하단 사다리꼴 BP 받침대 (price.png) - 선택 전/후 동일 규격 및 위치 */
.shield-pedestal {
  box-sizing: border-box;
  margin-top: -12px;
  background: url(https://ssl.nexon.com/s2/game/fc/online/obt/squadMaker/price.png) 0 0 / 100% 100% no-repeat;
  width: 180px;
  height: 40px;
  padding-top: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 35;
}

.selected-pedestal {
  margin-top: -12px;
}

/* ==========================================================================
   2) 선수 선택 완료 상태: 실제 FC 온라인 선수 카드 (div.playerCard)
   ========================================================================== */
.selected-card-wrap {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-card-col {
  position: relative;
  width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-role-badge {
  font-size: 11px;
  font-weight: 700;
  color: #8da4be;
  background: rgba(25, 33, 46, 0.9);
  border: 1px solid rgba(80, 100, 130, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  user-select: none;
}

.target-role-badge {
  color: #16f364;
  background: rgba(22, 243, 100, 0.08);
  border-color: rgba(22, 243, 100, 0.35);
}

.cards-bridge-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 24, 38, 0.85);
  border: 1.5px solid rgba(22, 243, 100, 0.4);
  box-shadow: 0 0 16px rgba(22, 243, 100, 0.25);
  color: #16f364;
  margin-top: 18px; /* 상단 롤 배지 높이 보정 */
  margin-bottom: 30px; /* 받침대 높이 보정 */
  flex-shrink: 0;
  animation: bridgePulse 2.5s infinite ease-in-out;
}

@keyframes bridgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(22, 243, 100, 0.25);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(22, 243, 100, 0.5);
  }
}

.is-hidden {
  display: none !important;
}

/* 340x400 캔버스 내부의 실제 방패(210x336)가 0.85714배 스케일링되어 정확히 180x288 박스에 일치 */
.card-scale-box {
  width: 180px;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
}

.playerCard {
  position: relative;
  width: 340px;
  height: 400px;
  flex-shrink: 0;
  font-family: "FCOAllSans", "Noto Sans KR", sans-serif;
  font-weight: 400;
  transform: scale(0.85714);
  transform-origin: center center;
  user-select: none;
}

.playerCard .cardBack {
  position: relative;
  z-index: 10;
  width: 340px;
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.playerCard .playerCardWrap {
  position: absolute;
  width: 210px;
  height: 336px;
  z-index: 20;
  top: 32px;
  left: 65px;
}

.playerCard .playerCardWrap .playerCardInfoSide {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 182px;
  padding-left: 7px;
  padding-top: 58px;
  z-index: 2;
}

.playerCard .playerCardWrap .playerCardInfoSide .ovr {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  width: 100%;
  margin-bottom: 11px;
  line-height: 29px;
}

.playerCard .playerCardWrap .playerCardInfoSide .position {
  font-size: 25px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  width: 100%;
  margin-bottom: 9px;
  line-height: 19px;
}

.playerCard .playerCardWrap .playerCardInfoSide .pay {
  width: 100%;
  height: 34px;
  text-align: center;
  position: relative;
}

.playerCard .playerCardWrap .playerCardInfoSide .pay svg {
  margin: 0 auto;
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  transform: translateX(-50%);
}

.playerCard .playerCardWrap .playerCardInfoSide .pay svg path {
  fill: rgba(10, 20, 41, 0.8);
}

.playerCard .playerCardWrap .playerCardInfoSide .pay span {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  width: 100%;
  line-height: 36px;
  position: relative;
  z-index: 10;
}

/* 카드 우하단 강화 등급 뱃지 (스쿼드메이커 캡처화면 우측하단 시즌변경 기능 위치) */
.hero-card-col .card-buildup-wrap {
  position: absolute;
  bottom: 24px;
  right: -10px;
  z-index: 120;
}

.hero-card-col .card-buildup-wrap .ability {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  width: 48px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  border-radius: 3px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-card-col .card-buildup-wrap .ability:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* 카드 우하단 버튼 클릭 시 해당 버튼 자리에서 바로 열리는 인플레이스 등급 선택 팝오버 */
.hero-card-col .card-buildup-wrap .card-badge-popover {
  top: -10px;
  left: -10px;
  z-index: 400;
}

.playerCard .playerCardWrap .playerCardThumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 240px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.playerCard .playerCardWrap .playerCardThumb .img.action {
  position: absolute;
  bottom: 0;
  right: 0;
  margin-right: -10px;
  line-height: 0;
}

.playerCard .playerCardWrap .playerCardThumb .img.action img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.playerCard .playerCardWrap .playerCardInfoBottom {
  position: absolute;
  top: 240px;
  left: 0;
  width: 100%;
  height: 96px;
  overflow: hidden;
}

.playerCard .playerCardWrap .playerCardInfoBottom .nameWrap {
  padding-top: 10px;
  width: 100%;
  text-align: center;
  height: 34px;
  line-height: 24px;
  margin-bottom: 5px;
}

.playerCard .playerCardWrap .playerCardInfoBottom .nameWrap .season {
  margin-right: 5px;
  display: inline-block;
  vertical-align: top;
}

.playerCard .playerCardWrap .playerCardInfoBottom .nameWrap .season img {
  height: 24px;
  vertical-align: top;
}

.playerCard .playerCardWrap .playerCardInfoBottom .nameWrap .name {
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  display: inline-block;
  white-space: nowrap;
}

.playerCard .playerCardWrap .playerCardInfoBottom .playerCardInfoSort {
  display: flex;
  height: 32px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.playerCard .playerCardWrap .playerCardInfoBottom .playerCardInfoSort img {
  max-height: 26px;
  width: auto;
}

/* ==========================================================================
   카드 좌하단 시즌 변경 버튼 & 시즌 팝오버 (.btnSeasonChange / .seasonWrap 대응)
   ========================================================================== */
.hero-card-col .card-season-wrap {
  position: absolute;
  bottom: 24px;
  left: -10px;
  z-index: 120;
}

.hero-card-col .card-season-wrap .btn-season-change {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #252c38;
  border: 1.5px solid #434e62;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.hero-card-col .card-season-wrap .btn-season-change:hover {
  transform: scale(1.1);
  background: #172920;
  border-color: #16f364;
  box-shadow: 0 0 16px rgba(22, 243, 100, 0.5);
}

.hero-card-col .card-season-wrap .btn-season-change img {
  width: 24px;
  height: auto;
  max-height: 24px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* 시즌 변경 팝오버 컨테이너 */
.hero-card-col .card-season-wrap .season-popover {
  position: absolute;
  bottom: 48px;
  left: -10px;
  width: 320px;
  background: #191f2b;
  border: 1px solid #384357;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.85);
  z-index: 450;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: popoverFadeIn 0.15s ease-out;
}

.hero-card-col .card-season-wrap .season-popover.is-open {
  display: flex;
}

.season-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #121620;
  border-bottom: 1px solid #2a3344;
}

.season-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: #e5eaf2;
  letter-spacing: -0.3px;
}

.season-popover-sub {
  font-size: 12px;
  font-weight: 600;
  color: #16f364;
}

.season-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.season-list::-webkit-scrollbar {
  width: 6px;
}

.season-list::-webkit-scrollbar-thumb {
  background: #343e52;
  border-radius: 3px;
}

.season-list::-webkit-scrollbar-thumb:hover {
  background: #16f364;
}

/* 개별 시즌 항목 버튼 */
.season-item-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  background: #212836;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d8e0ec;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  gap: 8px;
  box-sizing: border-box;
}

.season-item-btn:hover {
  background: #2c3649;
  border-color: #16f364;
  transform: translateX(2px);
}

.season-item-btn.is-current {
  background: rgba(22, 243, 100, 0.12);
  border-color: #16f364;
  color: #ffffff;
  font-weight: 600;
}

.season-item-logo {
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.season-item-logo img {
  max-width: 24px;
  max-height: 20px;
  object-fit: contain;
}

.season-item-name-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.season-item-name {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.season-item-check {
  font-size: 13px;
  color: #16f364;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.season-item-trait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.season-item-trait img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.season-item-pay {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' stroke='%23cccccc' stroke-width='2' stroke-linecap='butt' stroke-linejoin='miter' d='M17 33 L1 26 L1 8 L17 1 L33 8 L33 26 L17 33 Z'/%3E%3C/svg%3E") 50% / 22px no-repeat;
  width: 24px;
  height: 24px;
  font-size: 9px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.season-item-ovr {
  font-size: 13px;
  font-weight: 700;
  color: #16f364;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.season-loading,
.season-empty {
  padding: 24px 12px;
  text-align: center;
  color: #8b9bb4;
  font-size: 12px;
}

/* 모바일/소형 화면 듀얼 카드 레이아웃 반응형 */
@media (max-width: 520px) {
  .selected-card-wrap {
    gap: 12px;
  }
  .hero-card-col {
    width: 154px;
  }
  .hero-card-col .card-scale-box {
    width: 154px;
    height: 246px;
  }
  .hero-card-col .playerCard {
    transform: scale(0.733);
  }
  .cards-bridge-connector {
    width: 32px;
    height: 32px;
    margin-top: 10px;
    margin-bottom: 24px;
  }
  .cards-bridge-connector svg {
    width: 16px;
    height: 16px;
  }
}
