/* EverPlanet 코디마법사 스타일 (game_hub 셸 내부) */
.gh-ep { max-width: 1180px; margin: 0 auto; padding: 16px; position: relative; }

/* 최근 코디 추천 ("이런 코디 어때요?") */
.gh-ep__recent { margin: 28px auto 8px; max-width: 1180px; padding: 22px 16px 8px; border-top: 1px solid rgba(127,127,127,.18); }
.gh-ep__recent-h { font-size: 19px; font-weight: 900; margin: 0 0 4px; text-align: center; }
.gh-ep__recent-sub { font-size: 13px; color: var(--gh-muted, #888); text-align: center; margin: 0 0 20px; }
.gh-ep__recent-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ep-recent__card { background: rgba(127,127,127,.06); border: 1px solid rgba(127,127,127,.16); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ep-recent__cv { display: block; width: 100%; height: auto; aspect-ratio: 1/1; background: rgba(127,127,127,.08); }
.ep-recent__nick { font-size: 11.5px; font-weight: 700; color: var(--gh-muted, #888); padding: 7px 8px 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-recent__load { margin: 8px; border: 0; cursor: pointer; font-size: 12px; font-weight: 800; color: #fff; padding: 7px 0; border-radius: 9px; background: linear-gradient(135deg, #ff5fa2, #ff8d3f); }
.ep-recent__load:hover { filter: brightness(1.06); }
@media (max-width: 900px) { .gh-ep__recent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .gh-ep__recent-grid { grid-template-columns: repeat(2, 1fr); } }
.gh-ep__ver {
  position: absolute; top: 8px; left: 10px; z-index: 5;
  font-size: 11px; opacity: .55; letter-spacing: .2px;
}
.gh-ep__ver b { opacity: .85; }

/* 원제작자 안내 뱃지 + 호버 툴팁 */
.gh-ep__credit { position: absolute; top: 26px; left: 10px; z-index: 6; outline: none; }
.gh-ep__credit-badge {
  display: inline-flex; align-items: center; gap: 3px; cursor: help;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  color: var(--gh-accent, #5b8cff); background: rgba(91,140,255,.12);
  border: 1px solid rgba(91,140,255,.28); padding: 2px 9px; border-radius: 999px;
}
.gh-ep__credit-tip {
  position: absolute; left: 0; top: calc(100% + 7px); width: 300px; max-width: 78vw;
  background: #1b1d26; color: #e7e9f2; border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 11px 13px; font-size: 11.5px; line-height: 1.6; font-weight: 400; letter-spacing: 0; text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s; z-index: 50; pointer-events: none;
}
.gh-ep__credit-tip b { color: #8fe9ff; opacity: 1; }
.gh-ep__credit:hover .gh-ep__credit-tip,
.gh-ep__credit:focus-within .gh-ep__credit-tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* 성별전환 확인 모달 */
.ep-modal__ov {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
}
.ep-modal {
  background: #1b1d26; color: #eee; border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 22px 24px; max-width: 340px; width: 86%;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); text-align: center;
}
.ep-modal__msg { font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; }
.ep-modal__btns { display: flex; gap: 10px; justify-content: center; }
.ep-modal__ok, .ep-modal__cancel {
  border: 0; border-radius: 10px; padding: 9px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.ep-modal__ok { background: var(--gh-accent, #5b8cff); color: #fff; }
.ep-modal__cancel { background: rgba(127,127,127,.22); color: inherit; }
.ep-modal__ok:disabled { opacity: .6; cursor: default; }

/* 자랑하기 모달 */
.ep-modal--share { max-width: 420px; text-align: left; padding: 22px 22px 20px; }
.ep-share__h { font-size: 17px; font-weight: 800; margin: 0 0 16px; text-align: center; }
.ep-share__lbl { display: block; font-size: 12.5px; font-weight: 700; color: #b9bdcc; margin: 0 0 6px; }
.ep-share__lbl em { font-weight: 500; color: #888; font-style: normal; }
.ep-share__in, .ep-share__ta {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff;
  padding: 9px 11px; font-size: 14px; font-family: inherit; margin: 0 0 14px;
}
.ep-share__in:focus, .ep-share__ta:focus { outline: none; border-color: #ff5fa2; }
.ep-share__in--err { border-color: #ff4d4d; background: rgba(255,77,77,.08); }
.ep-share__ta { resize: vertical; line-height: 1.5; }
/* AI SD 일러스트 (코디갤러리 글 상세) */
.gh-aisd {
  margin: 6px auto 18px; max-width: 460px; padding: 16px;
  border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(120,90,255,.08), rgba(255,95,162,.07));
  border: 1.5px solid rgba(140,110,255,.28);
}
.gh-aisd__head { font-size: 14px; font-weight: 800; color: var(--gh-ink, #e9ecf3); margin-bottom: 12px; }
.gh-aisd__result { min-height: 0; }
.gh-aisd__result img {
  max-width: 100%; width: 320px; border-radius: 14px; display: block; margin: 0 auto 12px;
  background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.gh-aisd__result:empty { margin-bottom: 0; }
.gh-aisd__actions { }
.gh-aisd__cost {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; background: rgba(0,0,0,.18); color: #ffe6a3;
}
.gh-aisd__note { font-size: 11.5px; color: var(--gh-muted, #8a8f9c); margin: 9px 0 0; line-height: 1.5; }
.gh-aisd__note--warn { margin-top: 5px; color: #e0a64b; opacity: .95; }

/* 자랑 모달 내 인라인 SNS 연동 단계 */
.ep-link {
  margin: 4px 0 16px; padding: 14px; border-radius: 12px;
  background: rgba(72,197,180,.07); border: 1.5px solid rgba(72,197,180,.32);
}
.ep-link__head { font-size: 14px; font-weight: 800; color: var(--gh-ink, #e9ecf3); margin-bottom: 6px; }
.ep-link__desc { font-size: 12.5px; line-height: 1.6; color: var(--gh-muted, #8a8f9c); margin: 0 0 12px; }
.ep-link__desc b { color: #48c5b4; font-weight: 800; }
.ep-link .ep-share__in { margin-bottom: 10px; }
.ep-link__err { font-size: 12px; color: #ff6b6b; margin: 0 0 10px; }
.ep-link__btn { width: 100%; display: block; }
.ep-share__box {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 12px; margin: 0 0 18px; max-height: 168px; overflow-y: auto;
}
.ep-share__box-h { font-size: 12.5px; font-weight: 700; color: #b9bdcc; margin: 0 0 8px; }
.ep-share__box-h b { color: #ff8d3f; }
.ep-share__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ep-share__list li { display: flex; gap: 8px; font-size: 13px; align-items: baseline; }
.ep-share__slot { flex: 0 0 56px; color: #8f93a6; font-size: 11.5px; }
.ep-share__name { color: #eee; }
.gh-ep__head { text-align: center; margin-bottom: 14px; }
.gh-ep__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.gh-ep__sub { font-size: 13px; opacity: .7; margin: 0; }

/* 듀얼 화면 토글 바 */
.gh-ep__modebar { display: flex; justify-content: flex-end; max-width: 1180px; margin: 0 auto 8px; }
.ep-modebtn {
  background: rgba(127,127,127,.14); border: 0; border-radius: 8px;
  padding: 6px 14px; color: inherit; cursor: pointer; font-size: 13px; font-weight: 600;
}
.ep-modebtn.on { background: var(--gh-accent, #5b8cff); color: #fff; }

/* 듀얼 모드: 좌 캐릭터 / 우 아이템 패널 나란히 */
.gh-ep--dual .gh-ep__body {
  display: flex; gap: 24px; align-items: flex-start; max-width: 1180px; margin: 0 auto;
}
.gh-ep--dual .gh-ep__main { flex: 0 0 auto; margin-bottom: 0; position: sticky; top: 12px; }
.gh-ep--dual .gh-ep__panel { flex: 1 1 auto; min-width: 0; }
.gh-ep--dual .gh-ep__grid { max-height: 72vh; overflow-y: auto; padding-right: 4px; }

@media (max-width: 900px) {
  .gh-ep__modebar { display: none; }                 /* 좁은 화면: 듀얼 토글 숨김 */
  .gh-ep--dual .gh-ep__body { display: block; }       /* 좁으면 듀얼 무효(단일) */
  .gh-ep--dual .gh-ep__main { position: static; }
  .gh-ep--dual .gh-ep__grid { max-height: none; overflow: visible; }
}

/* 좌 슬롯 | 중앙(캐릭터) | 우 슬롯 */
.gh-ep__main {
  display: flex; align-items: flex-start; justify-content: center; gap: 14px;
  margin: 8px 0 18px;
}
.gh-ep__center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gh-ep__slots { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }

/* 장착 슬롯 셀 */
.ep-slot {
  position: relative; width: 66px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; cursor: pointer; padding: 4px; border-radius: 10px; border: 2px solid transparent;
  transition: background .12s, border-color .12s;
}
.ep-slot:hover { background: rgba(127,127,127,.1); }
.ep-slot.active { border-color: var(--gh-accent, #5b8cff); background: rgba(91,140,255,.1); }
.ep-slot__icon {
  width: 50px; height: 50px; border-radius: 10px; background-color: rgba(127,127,127,.12);
  background-repeat: no-repeat; background-position: left center; background-size: auto 100%;
  border: 1px dashed rgba(127,127,127,.4);
}
.ep-slot__icon.filled { border-style: solid; border-color: rgba(127,127,127,.5); }
.ep-slot__label { font-size: 11px; opacity: .8; white-space: nowrap; }
.ep-slot__x {
  position: absolute; top: 0; right: 0; width: 18px; height: 18px; line-height: 16px;
  border: 0; border-radius: 50%; background: #e2483d; color: #fff; font-size: 13px;
  cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* 무기 슬롯 (캐릭터 아래 가로) */
.gh-ep__wslots { display: flex; gap: 12px; justify-content: center; }
.gh-ep__wslots .ep-slot { width: 80px; }

/* 무기 직업 필터 */
.gh-ep__jobs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.ep-jobpill {
  background: rgba(127,127,127,.14); color: inherit; border: 0; border-radius: 999px;
  padding: 5px 11px; font-size: 12px; cursor: pointer;
}
.ep-jobpill:hover { background: rgba(127,127,127,.26); }
.ep-jobpill.on { background: var(--gh-accent, #5b8cff); color: #fff; }
.ep-jobhint { font-size: 12px; opacity: .6; padding: 5px 0; }
.ep-slot.disabled { opacity: .4; }

/* 아이템 이름 검색 */
.gh-ep__search { position: relative; max-width: 320px; margin: 0 auto 12px; }
.ep-search {
  width: 100%; box-sizing: border-box; padding: 8px 30px 8px 12px;
  border-radius: 999px; border: 1px solid rgba(127,127,127,.35);
  background: rgba(127,127,127,.1); color: inherit; font-size: 13px;
}
.ep-search:focus { outline: none; border-color: var(--gh-accent, #5b8cff); }
.ep-search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(127,127,127,.3); color: inherit; cursor: pointer; font-size: 13px; line-height: 1;
}

@media (max-width: 720px) {
  /* 버전/원제작자 안내는 절대위치 → 일반흐름 중앙배치 (타이틀 겹침 해결) */
  .gh-ep__ver { position: static; text-align: center; margin: 0 0 4px; }
  /* relative 유지(툴팁 기준점) + 흐름상 중앙배치 */
  .gh-ep__credit { position: relative; display: flex; justify-content: center; margin: 0 0 12px; top: auto; left: auto; }
  .gh-ep__credit-tip { left: 50%; right: auto; transform: translateX(-50%) translateY(-4px); width: 280px; max-width: 90vw; }
  .gh-ep__credit:hover .gh-ep__credit-tip,
  .gh-ep__credit:focus-within .gh-ep__credit-tip { transform: translateX(-50%) translateY(0); }

  /* 모바일: 모든 슬롯 셀을 하나의 흐름으로 통합 (컨테이너 펼침) + 아이콘 축소로 2~3줄에 끝냄 */
  .gh-ep__main { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 4px; margin: 8px 0 14px; }
  .gh-ep__center, .gh-ep__slots, .gh-ep__wslots { display: contents; }
  .gh-ep__stage { order: 0; flex: 0 0 100%; display: flex; justify-content: center; }
  .gh-ep__dye   { order: 1; flex: 0 0 100%; }
  /* 좌/우/무기 슬롯 셀이 전부 같은 order로 한 그리드처럼 줄바꿈 */
  .ep-slot { order: 2; width: 48px; padding: 2px; gap: 2px; }
  .gh-ep__wslots .ep-slot { width: 48px; }
  .ep-slot__icon { width: 38px; height: 38px; }
  .ep-slot__label { font-size: 9px; }
  .ep-slot__x { width: 16px; height: 16px; line-height: 14px; font-size: 11px; }
  /* 액션 버튼: 슬롯 아래 한 줄(전체폭), 2열 + 아이템 리스트와 간격 */
  .gh-ep__actions { order: 9; flex: 0 0 100%; gap: 8px; margin: 6px 0 22px; }
  .gh-ep__actions .gh-ep__btn { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 10px 8px; }
}

.gh-ep__stage-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.gh-ep__controls { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ep-ctlrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.ep-ctlrow--rnd { margin-top: 8px; }
.ep-randombtn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0;
  font-size: 13px; font-weight: 800; color: #fff; padding: 8px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #ff6fae, #7a6cff); box-shadow: 0 4px 14px rgba(122,108,255,.32);
  transition: transform .12s, filter .12s;
}
.ep-randombtn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ep-randombtn:active { transform: scale(.97); }
.ep-ctlrow__label { font-size: 12px; opacity: .65; margin-right: 4px; min-width: 30px; }
.ep-pill {
  background: rgba(127,127,127,.14); color: inherit; border: 0; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; cursor: pointer; transition: background .15s;
}
.ep-pill:hover { background: rgba(127,127,127,.26); }
.ep-pill.on { background: var(--gh-accent, #5b8cff); color: #fff; }

/* ===== 배경 선택기 (없음 / 단색 / 이미지 그리드 팝오버) ===== */
.ep-bgsel { position: relative; display: inline-block; }
.ep-bgsel__trig {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(127,127,127,.14); color: inherit; border: 0; border-radius: 999px;
  padding: 4px 11px 4px 5px; font-size: 12px; cursor: pointer; transition: background .15s;
}
.ep-bgsel__trig:hover { background: rgba(127,127,127,.26); }
.ep-bgsel__sw {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.35);
}
.ep-bgsel__sw.is-none {
  background-image: linear-gradient(45deg, rgba(127,127,127,.25) 25%, transparent 25%, transparent 75%, rgba(127,127,127,.25) 75%),
                    linear-gradient(45deg, rgba(127,127,127,.25) 25%, transparent 25%, transparent 75%, rgba(127,127,127,.25) 75%);
  background-size: 8px 8px; background-position: 0 0, 4px 4px;
}
.ep-bgsel__tx { font-weight: 700; }
.ep-bgsel__arr { font-size: 9px; opacity: .6; }
.ep-bgsel__pop {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 60; width: 268px; max-width: 86vw;
  background: var(--gh-pop-bg, #1b1d28); border: 1px solid rgba(127,127,127,.25);
  border-radius: 14px; padding: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.4);
  color: var(--gh-ink, #e9ecf3);
}
.ep-bgsel__trig, .ep-bgsel__tx, .ep-bgchip, .ep-bgchip__tx { color: var(--gh-ink, #e9ecf3); }
.ep-bgpop__head { display: flex; gap: 8px; margin-bottom: 10px; }
.ep-bgpop__head .ep-bgchip { flex: 1 1 0; }
.ep-bgpop__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-height: 232px; overflow-y: auto;
}
.ep-bgchip {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: rgba(127,127,127,.10); border: 1.5px solid transparent; border-radius: 11px;
  padding: 7px 5px 6px; cursor: pointer; transition: background .14s, border-color .14s;
}
.ep-bgchip:hover { background: rgba(127,127,127,.2); }
.ep-bgchip.on { border-color: var(--gh-accent, #5b8cff); background: rgba(91,140,255,.14); }
.ep-bgchip__sw {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(127,127,127,.3);
}
.ep-bgchip__sw.is-none {
  background-image: linear-gradient(45deg, rgba(127,127,127,.25) 25%, transparent 25%, transparent 75%, rgba(127,127,127,.25) 75%),
                    linear-gradient(45deg, rgba(127,127,127,.25) 25%, transparent 25%, transparent 75%, rgba(127,127,127,.25) 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px;
}
.ep-bgchip__tx { font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; }
.ep-bgchip--color { overflow: hidden; }
.ep-bgchip__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; padding: 0; border: 0;
}
.ep-ctl {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(127,127,127,.12); border-radius: 8px; padding: 4px 10px; font-size: 12px;
}
.ep-ctl select {
  background: rgba(127,127,127,.15); color: inherit; border: 1px solid rgba(127,127,127,.3);
  border-radius: 6px; padding: 3px 6px; font-size: 12px;
}

.gh-ep__stage {
  width: 460px; max-width: 92vw; aspect-ratio: 1 / 1;
  background: #0e0f16; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.gh-ep__stage canvas { width: 100%; height: 100%; display: block; }

/* 머리색 스와치 (캐릭터 바로 아래) */
.gh-ep__dye {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  max-width: 460px; margin: 2px auto 0;
}
.ep-dye__sw {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 2px solid rgba(127,127,127,.35);
  box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .1s, border-color .1s;
}
.ep-dye__sw:hover { transform: scale(1.12); }
.ep-dye__sw.on { border-color: var(--gh-accent, #5b8cff); border-width: 3px; }

.gh-ep__actions { display: flex; gap: 10px; }
.gh-ep__btn {
  background: var(--gh-accent, #5b8cff); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.gh-ep__btn--ghost { background: rgba(127,127,127,.18); color: inherit; }
.gh-ep__btn--accent {
  background: linear-gradient(135deg, #ff5fa2, #ff8d3f); color: #fff;
  box-shadow: 0 3px 10px rgba(255,95,162,.35);
}
.gh-ep__btn--accent:hover { filter: brightness(1.05); }
.gh-ep__btn:disabled { opacity: .6; cursor: default; }
.gh-ep__actions { flex-wrap: wrap; }

.gh-ep__tabs {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px;
}
.ep-tab {
  background: rgba(127,127,127,.14); color: inherit; border: 0; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.ep-tab:hover { background: rgba(127,127,127,.25); }
.ep-tab.on { background: var(--gh-accent, #5b8cff); color: #fff; }

/* 도구줄: 검색 + 뷰토글 */
.gh-ep__toolbar { display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.gh-ep__toolbar .gh-ep__search { margin: 0; }
.gh-ep__view { display: flex; gap: 4px; }
.ep-viewbtn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(127,127,127,.35);
  background: rgba(127,127,127,.1); color: inherit; cursor: pointer; font-size: 15px; line-height: 1;
}
.ep-viewbtn.on { background: var(--gh-accent, #5b8cff); color: #fff; border-color: transparent; }

/* 아이콘 그리드 (기본) */
.gh-ep__grid {
  display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: 8px;
  justify-content: center; max-width: 900px; margin: 0 auto;
}
.ep-item {
  position: relative; width: 64px; cursor: pointer;
  border-radius: 10px; border: 2px solid transparent; transition: border-color .12s;
}
.ep-item__icon {
  width: 100%; height: 60px; background-color: rgba(127,127,127,.1);
  /* _n(250x40)에서 왼쪽 정사각(아이콘)만 노출 */
  background-repeat: no-repeat; background-position: left center; background-size: auto 100%;
  border-radius: 8px; position: relative;
}
.ep-item__name { display: none; }
.ep-item:hover { border-color: rgba(127,127,127,.4); }
.ep-item.on { border-color: var(--gh-accent, #5b8cff); }

/* 목록 보기 (2~3열, 아이콘+이름) */
.gh-ep__grid--list {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-width: 760px; gap: 6px;
}
.gh-ep__grid--list .ep-item {
  width: auto; display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; background: rgba(127,127,127,.08); border-radius: 10px;
}
.gh-ep__grid--list .ep-item__icon { width: 42px; height: 42px; flex: 0 0 42px; }
.gh-ep__grid--list .ep-item__name {
  display: block; font-size: 12.5px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gh-ep__grid--list .ep-item.on { background: rgba(91,140,255,.15); }

/* 성별 배지 (썸네일 우상단) */
.ep-badge {
  position: absolute; top: 2px; right: 2px;
  font-size: 9px; line-height: 1; font-weight: 700;
  padding: 2px 4px; border-radius: 5px; color: #fff;
  pointer-events: none; box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.ep-badge--man { background: #3b82f6; }
.ep-badge--woman { background: #ec4899; }
.ep-badge--common { background: rgba(90,90,100,.85); }

/* 롤오버 툴팁 */
.ep-tip {
  position: fixed; z-index: 9999; transform: translate(-50%, -100%);
  display: flex; align-items: center; gap: 6px;
  background: #14151c; color: #fff; border: 1px solid rgba(255,255,255,.12);
  padding: 5px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.45); pointer-events: none;
}
.ep-tip__name { font-weight: 600; }
.ep-tip__g { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 999px; color: #fff; }
.ep-tip__g--man { background: #3b82f6; }
.ep-tip__g--woman { background: #ec4899; }
.ep-tip__g--common { background: rgba(120,120,130,.9); }

@media (max-width: 520px) {
  .gh-ep__grid { grid-template-columns: repeat(auto-fill, 56px); }
  .ep-item { width: 56px; }
  .ep-item__icon { height: 52px; }
  .gh-ep__grid--list { grid-template-columns: 1fr; }
}

/* 코디갤러리 상세 뷰어 (캐릭터 + 좌우 장착슬롯) */
.gh-codiview { display: flex; align-items: flex-start; justify-content: center; gap: 14px; margin: 6px auto 22px; max-width: 760px; }
.gh-codiview__slots { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.gh-codiview__stage { flex: 0 0 auto; width: min(360px, 58vw); }
.gh-codiview__cv { display: block; width: 100%; height: auto; aspect-ratio: 1/1; }
.gh-codiview__slot { cursor: default; }
.gh-codiview__tip { position: fixed; z-index: 10000; transform: translate(-50%, -100%);
  background: #1b1d26; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px;
  border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.45); pointer-events: none; white-space: nowrap; }
@media (max-width: 720px) {
  .gh-codiview { flex-direction: column; align-items: center; gap: 8px; }
  .gh-codiview__stage { width: min(280px, 72vw); order: 0; }
  .gh-codiview__slots { flex-direction: row; flex-wrap: wrap; justify-content: center; padding-top: 0; gap: 5px; }
  .gh-codiview__slots--left { order: 1; }
  .gh-codiview__slots--right { order: 2; }
  .gh-codiview .ep-slot { width: 46px; }
  .gh-codiview .ep-slot__icon { width: 36px; height: 36px; }
  .gh-codiview .ep-slot__label { font-size: 9px; }
}
