* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg:#090c12;
  --panel:#111722;
  --panel2:#161e2c;
  --line:#293349;
  --text:#f4f7fb;
  --muted:#929db0;
  --gold:#e5bd69;
  --gold2:#f3d99a;
  --blue:#90b8ff;
}

body {
  margin:0;
  font-family:Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 70% 0%, rgba(60,101,170,.12), transparent 32rem),
    radial-gradient(circle at 20% 12%, rgba(229,189,105,.10), transparent 28rem),
    var(--bg);
}

button,input { font:inherit; }
button { color:inherit; }
a { color:inherit; }

.wrap { width:min(1180px, calc(100% - 32px)); margin:0 auto; }

.topbar {
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(18px);
  background:rgba(9,12,18,.78);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark {
  display:grid; place-items:center;
  width:38px; height:38px;
  border:1px solid rgba(229,189,105,.45);
  border-radius:10px;
  color:var(--gold2);
  font-weight:900;
  background:rgba(229,189,105,.07);
}
.brand strong,.brand small { display:block; }
.brand strong { font-size:14px; }
.brand small { margin-top:2px; color:var(--muted); font-size:11px; }
.topbar-actions {
  display:flex;
  align-items:center;
  gap:10px;
}
.creator-mini {
  color:#8d99ac;
  font-size:9px;
  font-weight:800;
  letter-spacing:.16em;
}
.install-app-button {
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid rgba(229,189,105,.34);
  border-radius:999px;
  padding:7px 11px;
  background:rgba(229,189,105,.07);
  color:#d7deea;
  cursor:pointer;
  font-size:10px;
  font-weight:800;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.install-app-button:hover,
.install-app-button.ready {
  border-color:rgba(229,189,105,.68);
  background:rgba(229,189,105,.13);
}
.install-app-button:hover {
  transform:translateY(-1px);
}
.install-app-button.installed {
  cursor:default;
  border-color:#2d3a4d;
  background:#111722;
  color:#738095;
}
.install-phone {
  color:var(--gold2);
  font-size:11px;
}
.beta {
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 9px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.12em;
}

.hero { padding:74px 0 48px; }
.eyebrow,.section-kicker {
  margin:0 0 11px;
  color:var(--gold);
  font-size:11px;
  font-weight:800;
  letter-spacing:.17em;
}
h1 {
  margin:0;
  max-width:850px;
  font-size:clamp(42px,7vw,76px);
  line-height:1.02;
  letter-spacing:-.06em;
}
h1 span { color:#abb5c5; }
.lead { margin:20px 0 26px; color:var(--muted); font-size:16px; }

.searchbox {
  max-width:820px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 10px 8px 16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(17,23,34,.88);
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.searchbox:focus-within {
  border-color:rgba(229,189,105,.75);
  box-shadow:0 0 0 3px rgba(229,189,105,.10);
}
.search-icon { color:var(--gold); font-size:25px; }
.searchbox input {
  flex:1; min-width:0;
  border:0; outline:0; background:transparent;
  color:var(--text); padding:13px 0;
}
.searchbox input::placeholder { color:#6d788d; }
.searchbox button {
  border:1px solid var(--line);
  background:#171e2b;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
  font-size:12px;
}

.creator-banner {
  max-width:960px;
  margin-top:18px;
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  border:1px solid rgba(229,189,105,.26);
  border-radius:16px;
  background:
    linear-gradient(120deg,rgba(229,189,105,.075),rgba(17,23,34,.90) 46%,rgba(17,23,34,.96));
  box-shadow:0 16px 44px rgba(0,0,0,.18);
}
.creator-mascot-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
}
.creator-mascot {
  width:84px;
  height:84px;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.24);
  background:#fff;
}
.creator-label {
  display:block;
  margin-bottom:5px;
  color:var(--gold);
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
}
.creator-title-row {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.creator-title-row strong {
  font-size:23px;
  letter-spacing:-.035em;
}
.fan-badge {
  border:1px solid #354157;
  border-radius:999px;
  padding:4px 7px;
  color:#9da9bb;
  font-size:9px;
  font-weight:700;
}
.creator-banner-copy p {
  max-width:600px;
  margin:7px 0 0;
  color:#9aa6b8;
  font-size:12px;
  line-height:1.65;
}
.youtube-cta {
  min-width:258px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 14px;
  border:1px solid rgba(255,92,92,.28);
  border-radius:13px;
  background:#151a24;
  text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.youtube-cta:hover {
  transform:translateY(-2px);
  border-color:rgba(255,92,92,.65);
  background:#191f2b;
}
.youtube-icon {
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:11px;
  background:#ff2f2f;
  box-shadow:0 8px 24px rgba(255,47,47,.18);
}
.youtube-icon svg {
  width:23px;
  height:23px;
  fill:#fff;
}
.youtube-cta small,
.youtube-cta strong {
  display:block;
}
.youtube-cta small {
  margin-bottom:2px;
  color:#8f9bae;
  font-size:9px;
}
.youtube-cta strong {
  font-size:12px;
}
.cta-arrow {
  margin-left:auto;
  color:#d8deea;
  font-size:17px;
}

.faction-section { padding:16px 0 44px; }
.section-title h2,.roster-head h2 {
  margin:0;
  font-size:28px;
  letter-spacing:-.035em;
}
.faction-tabs {
  margin-top:18px;
  display:flex;
  align-items:stretch;
  gap:12px;
}
.faction-card {
  width:min(420px,100%);
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  padding:18px;
  border:1px solid rgba(229,189,105,.5);
  border-radius:15px;
  background:linear-gradient(135deg, rgba(229,189,105,.12), rgba(17,23,34,.9));
}
.faction-card strong,.faction-card small { display:block; }
.faction-card strong { font-size:17px; }
.faction-card small { margin-top:3px; color:var(--muted); }
.faction-card b { margin-left:auto; color:var(--gold2); font-size:12px; }
.faction-emblem {
  display:grid; place-items:center;
  width:42px; height:42px;
  border-radius:11px;
  color:#fff1c8;
  background:linear-gradient(145deg,#bb7b21,#f0ca72);
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18);
}
.faction-coming {
  display:flex; align-items:center;
  padding:0 16px;
  color:#69758a;
  border:1px dashed #273146;
  border-radius:15px;
  font-size:13px;
}

.roster {
  padding:36px 0 70px;
  border-top:1px solid rgba(255,255,255,.06);
}
.roster-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
}
.roster-head p:last-child {
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}
.count-badge {
  display:flex;
  align-items:baseline;
  gap:5px;
  color:var(--muted);
}
.count-badge strong { color:var(--gold2); font-size:30px; }
.count-badge span { font-size:13px; }

.filters { margin:24px 0; display:grid; gap:10px; }
.filter-group {
  display:flex; flex-wrap:wrap; align-items:center; gap:7px;
}
.filter-group > span {
  width:52px;
  color:#727f93;
  font-size:12px;
  font-weight:700;
}
.filter {
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 11px;
  background:var(--panel);
  color:#aeb8c7;
  font-size:12px;
  cursor:pointer;
}
.filter.active {
  color:#16120b;
  border-color:var(--gold);
  background:var(--gold);
  font-weight:800;
}

.hero-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.hero-card {
  position:relative;
  overflow:hidden;
  min-height:296px;
  border:1px solid var(--line);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(255,255,255,.025),transparent 40%),var(--panel);
  transition:transform .16s ease,border-color .16s ease;
}
.hero-card:hover {
  transform:translateY(-3px);
  border-color:rgba(229,189,105,.5);
}
.card-visual {
  height:188px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 80%, rgba(229,189,105,.15), transparent 55%),
    #0c111a;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.card-visual img {
  display:block;
  width:auto;
  height:100%;
  max-width:100%;
  object-fit:contain;
  image-rendering:auto;
}
.card-visual span {
  display:grid; place-items:center;
  width:58px; height:58px;
  border-radius:50%;
  border:1px solid rgba(229,189,105,.42);
  background:rgba(229,189,105,.07);
  color:var(--gold2);
  font-size:24px;
  font-weight:900;
}
.card-body { padding:15px; }
.card-topline { display:flex; gap:6px; margin-bottom:8px; flex-wrap:wrap; }
.tag {
  padding:4px 7px;
  border-radius:999px;
  background:#1c2534;
  color:#9eabc0;
  font-size:10px;
  font-weight:700;
}
.tag.lord {
  background:rgba(229,189,105,.13);
  color:var(--gold2);
}
.tag.legendary { color:#f3cf79; }
.tag.epic { color:#c59cff; }
.tag.rare { color:#7eb6ff; }
.tag.common { color:#d7e0e8; }
.tag.unknown { color:#9aa4b6; }
.tag.dual {
  border:1px solid rgba(135,181,255,.24);
  background:rgba(77,122,194,.10);
  color:#a9c9ff;
}

.hero-card h3 {
  margin:0;
  font-size:19px;
  letter-spacing:-.025em;
}
.hero-card .en {
  margin:4px 0 0;
  color:var(--gold);
  font-size:13px;
  font-weight:700;
}
.hero-card .meta {
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
}
.empty {
  padding:70px 20px;
  text-align:center;
  color:var(--muted);
}
.empty strong,.empty span { display:block; }
.empty strong { color:var(--text); margin-bottom:7px; }

.data-note {
  margin-top:22px;
  padding:14px 16px;
  border:1px solid #252f42;
  border-radius:12px;
  background:#0d121b;
  color:#7f8ba0;
  font-size:12px;
  line-height:1.6;
}
footer {
  border-top:1px solid rgba(255,255,255,.06);
  padding:30px 0 38px;
  color:#677286;
  font-size:12px;
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}
.footer-copy strong {
  display:block;
  color:#c7cfdb;
  font-size:13px;
}
.footer-copy p {
  margin:5px 0 3px;
  color:#7e899c;
}
.footer-copy small {
  color:#596477;
  font-size:10px;
}
.footer-youtube {
  flex:0 0 auto;
  padding:10px 12px;
  border:1px solid #293449;
  border-radius:10px;
  color:#aeb8c7;
  text-decoration:none;
  font-size:11px;
  font-weight:700;
}
.footer-youtube:hover {
  border-color:rgba(229,189,105,.48);
  color:var(--gold2);
}

@media (max-width:900px) {
  .hero-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .creator-banner {
    grid-template-columns:84px minmax(0,1fr);
  }
  .youtube-cta {
    grid-column:1 / -1;
  }
}
@media (max-width:760px) {
  .creator-mini { display:none; }
  .creator-banner {
    grid-template-columns:1fr;
    gap:14px;
    padding:16px;
  }
  .creator-mascot-wrap {
    justify-content:flex-start;
  }
  .youtube-cta {
    width:100%;
    min-width:0;
    grid-column:auto;
  }
  .footer-inner {
    align-items:flex-start;
    flex-direction:column;
  }
}
@media (max-width:680px) {
  .wrap { width:min(100% - 24px,1180px); }
  .hero { padding-top:48px; }
  .faction-tabs { display:block; }
  .faction-coming { margin-top:8px; min-height:48px; }
  .hero-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-group > span { width:100%; margin:5px 0 1px; }
}
@media (max-width:430px) {
  .hero-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .hero-card { min-height:270px; }
  .card-visual { height:156px; }
  .card-body { padding:12px; }
  .hero-card h3 { font-size:16px; }
  .hero-card .en { font-size:11px; }
  .hero-card .meta { font-size:11px; }
  .roster-head { align-items:center; }
  .count-badge strong { font-size:25px; }
  .brand strong { font-size:12px; }
  .brand small { font-size:9px; }
  .creator-title-row strong { font-size:20px; }
  .creator-banner-copy p { font-size:11px; }
}


body.modal-open {
  overflow:hidden;
}
.install-modal[hidden] {
  display:none;
}
.install-modal {
  position:fixed;
  inset:0;
  z-index:100;
  display:grid;
  place-items:center;
  padding:18px;
}
.install-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(3,6,10,.78);
  backdrop-filter:blur(8px);
}
.install-modal-card {
  position:relative;
  z-index:1;
  width:min(420px,100%);
  padding:30px 26px 24px;
  border:1px solid rgba(229,189,105,.35);
  border-radius:20px;
  background:
    radial-gradient(circle at 70% 0%,rgba(229,189,105,.09),transparent 15rem),
    #111722;
  box-shadow:0 28px 90px rgba(0,0,0,.46);
}
.install-modal-close {
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border:1px solid #2b3548;
  border-radius:50%;
  background:#161e2b;
  color:#a6b0c0;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
.install-modal-icon {
  width:70px;
  height:70px;
  border-radius:17px;
  margin-bottom:18px;
}
.install-modal-card h2 {
  margin:0;
  font-size:25px;
  line-height:1.25;
  letter-spacing:-.035em;
}
.install-modal-body {
  margin:16px 0 20px;
  color:#9ba6b8;
  font-size:13px;
  line-height:1.7;
}
.install-modal-body p {
  margin:0 0 10px;
}
.install-modal-body ol {
  margin:10px 0 0;
  padding-left:20px;
}
.install-modal-body li {
  margin:6px 0;
}
.install-modal-body strong {
  color:#e9edf4;
}
.install-note {
  font-size:11px;
  color:#6f7c91;
}
.install-modal-action {
  width:100%;
  border:1px solid var(--gold);
  border-radius:12px;
  padding:12px 14px;
  background:var(--gold);
  color:#17120a;
  font-weight:900;
  cursor:pointer;
}

@media (max-width:760px) {
  .topbar-actions {
    gap:6px;
  }
  .install-app-button {
    padding:7px 9px;
    font-size:9px;
  }
  .beta {
    display:none;
  }
}
@media (max-width:480px) {
  .creator-mini {
    display:none;
  }
  .install-app-button span:last-child {
    display:inline;
  }
  .install-modal-card {
    padding:26px 20px 20px;
  }
}


/* v2.5 — faction cards: 3 columns desktop, 2 tablet, 1 mobile */
.faction-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch;
  overflow: visible !important;
}

.faction-tabs .faction-card,
.faction-tabs .faction-coming {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
}

.faction-tabs .faction-card {
  min-height: 112px;
}

@media (max-width: 900px) {
  .faction-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .faction-tabs {
    grid-template-columns: 1fr !important;
  }

  .faction-tabs .faction-card {
    min-height: 96px;
  }
}


/* v2.5.2 — compact faction grid
   Goal: keep the 3-column faction overview while revealing the hero roster
   within the first desktop viewport. */
.faction-section {
  padding: 10px 0 24px !important;
}

.section-title h2 {
  font-size: 25px !important;
}

.faction-tabs {
  margin-top: 12px !important;
  gap: 10px !important;
}

.faction-tabs .faction-card {
  min-height: 76px !important;
  padding: 11px 14px !important;
  gap: 11px !important;
  border-radius: 13px !important;
}

.faction-tabs .faction-card strong {
  font-size: 15px !important;
  line-height: 1.22;
}

.faction-tabs .faction-card small {
  margin-top: 2px !important;
  font-size: 12px !important;
}

.faction-tabs .faction-card b {
  font-size: 11px !important;
  white-space: nowrap;
}

.faction-tabs .faction-emblem {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  border-radius: 10px !important;
  font-size: 14px;
}

.faction-tabs .faction-coming {
  min-height: 54px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  border-radius: 13px !important;
}

.roster {
  padding: 22px 0 64px !important;
}

.roster-head h2 {
  font-size: 25px !important;
}

.roster-head p:last-child {
  margin-top: 5px !important;
}

@media (max-width: 900px) {
  .faction-tabs .faction-card {
    min-height: 72px !important;
  }
}

@media (max-width: 560px) {
  .faction-section {
    padding-bottom: 20px !important;
  }

  .faction-tabs {
    gap: 8px !important;
  }

  .faction-tabs .faction-card {
    min-height: 68px !important;
    padding: 10px 12px !important;
  }

  .faction-tabs .faction-coming {
    min-height: 46px !important;
  }

  .roster {
    padding-top: 18px !important;
  }
}


/* v2.6.3 — creator-first hero layout + unmistakable selected faction */

/* Branding appears before the main search headline. */
.hero > .creator-banner {
  margin-top: 14px;
  margin-bottom: 22px;
}

.hero > .creator-banner + h1 {
  margin-top: 0;
}

/* Faction buttons are interactive: make that visually obvious. */
.faction-tabs .faction-card {
  position: relative;
  cursor: pointer;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.faction-tabs .faction-card:hover {
  border-color: rgba(240, 202, 114, .82);
  transform: translateY(-1px);
}

/* Current faction */
.faction-tabs .faction-card.active {
  border-color: #f0ca72 !important;
  background:
    linear-gradient(
      135deg,
      rgba(240, 202, 114, .25),
      rgba(31, 29, 25, .96) 48%,
      rgba(17, 23, 34, .96)
    ) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 183, .34),
    0 0 0 1px rgba(240, 202, 114, .22),
    0 8px 26px rgba(229, 189, 105, .13);
}

.faction-tabs .faction-card.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #f0ca72;
  box-shadow: 0 0 12px rgba(240, 202, 114, .55);
}

.faction-tabs .faction-card.active::after {
  content: "✓ 선택됨";
  position: absolute;
  right: 12px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(240, 202, 114, .16);
  border: 1px solid rgba(240, 202, 114, .42);
  color: #ffe6a5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.faction-tabs .faction-card.active .faction-emblem {
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.28),
    0 0 0 2px rgba(240, 202, 114, .28),
    0 0 18px rgba(240, 202, 114, .22);
}

.faction-tabs .faction-card.active strong {
  color: #fff7df;
}

.faction-tabs .faction-card.active small,
.faction-tabs .faction-card.active b {
  color: #f3cf7b;
}

@media (max-width: 560px) {
  .hero > .creator-banner {
    margin-bottom: 18px;
  }

  .faction-tabs .faction-card.active::after {
    right: 10px;
    bottom: 5px;
    font-size: 8px;
  }
}


/* =========================================================
   v2.6.4 — compact game-style faction selector
   ========================================================= */

/* Creator banner restored to the original information flow:
   headline -> search -> creator banner */
.hero > .creator-banner {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}
.hero > .creator-banner + h1 {
  margin-top: initial;
}

/* Old faction-card layout is no longer used. */
.faction-section {
  padding: 12px 0 30px !important;
}

.faction-select-shell {
  position: relative;
  width: min(100%, 760px);
  margin-top: 13px;
}

.faction-select-label {
  display: block;
  margin: 0 0 7px 3px;
  color: #758299;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.faction-select-button {
  position: relative;
  z-index: 21;
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto 26px;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid rgba(229,189,105,.58);
  border-radius: 15px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 20%, rgba(240,202,114,.13), transparent 31%),
    linear-gradient(135deg, rgba(229,189,105,.075), rgba(17,23,34,.98) 42%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 14px 35px rgba(0,0,0,.18);
  text-align: left;
  cursor: pointer;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.faction-select-button:hover,
.faction-select-shell.open .faction-select-button {
  border-color: rgba(240,202,114,.95);
  box-shadow:
    inset 0 0 0 1px rgba(255,244,207,.08),
    0 0 0 3px rgba(229,189,105,.075),
    0 16px 38px rgba(0,0,0,.22);
}

.faction-select-button:hover {
  transform: translateY(-1px);
}

.faction-select-emblem,
.faction-option-emblem {
  display: grid;
  place-items: center;
  color: #fff1c8;
  background: linear-gradient(145deg,#b9761d,#f0ca72);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.17),
    0 8px 18px rgba(184,121,28,.16);
}

.faction-select-emblem {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 17px;
}

.faction-select-current {
  min-width: 0;
}

.faction-select-current strong,
.faction-select-current small {
  display: block;
}

.faction-select-current strong {
  overflow: hidden;
  color: #f4f6fa;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faction-select-current small {
  margin-top: 3px;
  overflow: hidden;
  color: #94a3ba;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faction-select-count {
  padding: 6px 9px;
  border: 1px solid rgba(229,189,105,.2);
  border-radius: 999px;
  color: #f0ca72;
  background: rgba(229,189,105,.07);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.faction-select-button.search-mode .faction-select-count {
  border-color: rgba(126,182,255,.22);
  color: #9dc6ff;
  background: rgba(92,144,220,.08);
}

.faction-select-chevron {
  display: grid;
  place-items: center;
  color: #d7c69e;
  font-size: 22px;
  transition: transform .18s ease;
}

.faction-select-shell.open .faction-select-chevron {
  transform: rotate(180deg);
}

.faction-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(540px, 68vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(229,189,105,.48);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(21,27,38,.995), rgba(10,14,21,.995));
  box-shadow:
    0 26px 65px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px);
}

.faction-select-menu[hidden] {
  display: none !important;
}

.faction-option {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto 24px;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #dce2eb;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    background .14s ease,
    border-color .14s ease,
    transform .14s ease;
}

.faction-option + .faction-option {
  margin-top: 2px;
}

.faction-option:hover {
  border-color: rgba(229,189,105,.23);
  background: rgba(255,255,255,.035);
}

.faction-option.selected {
  border-color: rgba(240,202,114,.48);
  background:
    linear-gradient(90deg, rgba(229,189,105,.14), rgba(229,189,105,.035) 55%, transparent);
}

.faction-option.selected::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #f0ca72;
  box-shadow: 0 0 10px rgba(240,202,114,.4);
}

.faction-option-emblem {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
}

.faction-option-copy {
  min-width: 0;
}

.faction-option-copy strong,
.faction-option-copy small {
  display: block;
}

.faction-option-copy strong {
  font-size: 13px;
  line-height: 1.25;
}

.faction-option-copy small {
  margin-top: 2px;
  color: #8491a6;
  font-size: 10px;
}

.faction-option-count {
  color: #8491a6;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.faction-option-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
  font-weight: 1000;
}

.faction-option.selected .faction-option-count {
  color: #e8c978;
}

.faction-option.selected .faction-option-check {
  color: #1a150b;
  background: #f0ca72;
}

.faction-select-hint {
  margin: 7px 3px 0;
  color: #69758a;
  font-size: 10px;
}

/* Selector compresses the faction navigation enough that the hero roster
   starts noticeably higher on desktop. */
.roster {
  padding-top: 26px !important;
}

@media (max-width: 680px) {
  .faction-select-shell {
    width: 100%;
  }

  .faction-select-button {
    min-height: 68px;
    grid-template-columns: 42px minmax(0,1fr) 24px;
    gap: 10px;
    padding: 10px 12px;
  }

  .faction-select-emblem {
    width: 42px;
    height: 42px;
  }

  .faction-select-count {
    display: none;
  }

  .faction-select-current strong {
    font-size: 15px;
  }

  .faction-select-current small {
    font-size: 11px;
  }

  .faction-select-menu {
    max-height: 62vh;
  }
}


/* v2.6.5 — All Heroes option */
.faction-option-all {
  margin-bottom: 7px !important;
  border-bottom-color: rgba(229,189,105,.18);
}

.faction-option-all::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(229,189,105,.28),
    transparent
  );
}

.faction-option-all .faction-option-emblem,
.faction-select-button:not(.search-mode) .faction-select-emblem {
  font-weight: 900;
}

.faction-option-all.selected {
  background:
    radial-gradient(circle at 12% 50%, rgba(240,202,114,.16), transparent 30%),
    linear-gradient(90deg, rgba(229,189,105,.13), rgba(229,189,105,.025) 62%, transparent);
}


/* v2.6.6 — align primary control widths
   Search and faction selector use one 820px content width.
   Creator banner intentionally remains wider as a branding block. */
.searchbox,
.faction-select-shell {
  width: 100%;
  max-width: 820px;
}

.faction-select-shell {
  width: 100%;
}


/* v2.6.12 — 콘텐츠 필터 / 심연 추천 태그 */
.content-filter-group {
  padding-top: 2px;
}

.content-filter small {
  margin-left: 3px;
  opacity: .72;
  font-size: 9px;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.content-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(116, 185, 255, .27);
  border-radius: 999px;
  background: rgba(64, 126, 197, .10);
  color: #9fd0ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.content-tag.abyss::before {
  content: "◆";
  margin-right: 4px;
  color: #73b9ff;
  font-size: 7px;
}

@media (max-width: 560px) {
  .filter-group > span {
    width: 48px;
  }

  .content-tag {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 9px;
  }
}


/* v2.6.13 — 아레나 콘텐츠 3종 */
.content-tag.arena-air {
  border-color: rgba(91, 211, 226, .30);
  background: rgba(52, 166, 188, .11);
  color: #9eeaf2;
}
.content-tag.arena-air::before {
  content: "▲";
  margin-right: 4px;
  color: #6bdce8;
  font-size: 7px;
}

.content-tag.arena-aoe {
  border-color: rgba(185, 126, 255, .28);
  background: rgba(127, 78, 191, .10);
  color: #d3b0ff;
}
.content-tag.arena-aoe::before {
  content: "✦";
  margin-right: 4px;
  color: #c695ff;
  font-size: 8px;
}

.content-tag.arena-single {
  border-color: rgba(244, 177, 89, .29);
  background: rgba(184, 117, 42, .10);
  color: #ffd09a;
}
.content-tag.arena-single::before {
  content: "◆";
  margin-right: 4px;
  color: #f5b866;
  font-size: 7px;
}

.content-filter-group .filter[data-value="arena-air"].active {
  border-color: #75dce8;
  background: #75dce8;
  color: #071316;
}
.content-filter-group .filter[data-value="arena-aoe"].active {
  border-color: #c9a1ff;
  background: #c9a1ff;
  color: #170f21;
}
.content-filter-group .filter[data-value="arena-single"].active {
  border-color: #f3bd77;
  background: #f3bd77;
  color: #1c1208;
}


/* =========================================================
   v2.7.0 — Hero detail pages / internal hero links
   ========================================================= */
.hero-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 15px;
}
.hero-card-link .hero-card { height: 100%; }
.hero-card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero-detail-page { min-height: 100vh; }
.detail-topbar {
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(8,12,18,.9);
  backdrop-filter: blur(14px);
}
.detail-topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.detail-brand,
.detail-back,
.detail-footer a {
  color: inherit;
  text-decoration: none;
}
.detail-brand {
  color: var(--gold2);
  font-size: 15px;
  font-weight: 900;
}
.detail-brand span {
  margin-left: 8px;
  color: #8995a8;
  font-size: 11px;
  font-weight: 700;
}
.detail-back {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
}
.detail-back:hover { border-color: rgba(229,189,105,.5); color: var(--gold2); }

.hero-detail-main { padding-top: 22px; padding-bottom: 60px; }
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #69758a;
  font-size: 11px;
}
.detail-breadcrumb a { color: #8795aa; text-decoration: none; }
.detail-breadcrumb strong { color: #c9d1dc; }

.hero-detail-card {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0,1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(229,189,105,.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 20%, rgba(229,189,105,.10), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.028), transparent 48%),
    var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.20);
}
.hero-detail-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 75%, rgba(229,189,105,.16), transparent 58%), #0b1018;
}
.hero-detail-visual img {
  display: block;
  width: auto;
  height: 360px;
  max-width: 100%;
  object-fit: contain;
}
.hero-detail-placeholder {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(229,189,105,.45);
  border-radius: 50%;
  color: var(--gold2);
  font-size: 34px;
  font-weight: 900;
}
.hero-detail-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(34px,5vw,58px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.hero-detail-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: .42em;
  letter-spacing: -.015em;
}
.hero-detail-summary {
  margin: 19px 0 0;
  color: #a9b4c4;
  font-size: 15px;
  line-height: 1.7;
}
.hero-detail-summary strong { color: #f0cf82; }
.hero-detail-basic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.detail-class-tag { color: #d9e0e9; }
.hero-detail-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 23px 0 0;
}
.hero-detail-facts div {
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}
.hero-detail-facts dt { color: #6f7d91; font-size: 10px; font-weight: 800; }
.hero-detail-facts dd { margin: 5px 0 0; color: #dbe1e9; font-size: 13px; font-weight: 800; }

.detail-section {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16,22,32,.72);
}
.detail-section-head h2 {
  margin: 4px 0 0;
  font-size: 21px;
  letter-spacing: -.025em;
}
.detail-faction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.detail-faction-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(229,189,105,.22);
  border-radius: 11px;
  background: rgba(229,189,105,.055);
  color: #e3e7ed;
  font-size: 12px;
  font-weight: 800;
}
.detail-faction-chip b {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(229,189,105,.15);
  color: var(--gold2);
  font-size: 8px;
}
.detail-faction-chip small { color: #7e8ca2; font-size: 9px; font-weight: 700; }
.detail-content-tags { margin-top: 14px; }
.detail-readable-copy {
  margin: 16px 0 0;
  color: #8895a9;
  font-size: 12px;
  line-height: 1.7;
}
.detail-readable-copy p { margin: 0; }
.detail-readable-copy strong { color: #bdc8d6; }

.detail-cta {
  margin-top: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(229,189,105,.30);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(229,189,105,.10), rgba(18,24,34,.82) 55%);
}
.detail-cta h2 { margin: 4px 0 0; font-size: 20px; }
.detail-cta p:not(.section-kicker) { margin: 6px 0 0; color: #7f8da2; font-size: 11px; }
.detail-cta > a,
.detail-back-home {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #171208;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}
.detail-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 26px 0 34px; }
.detail-footer-inner { display: flex; justify-content: space-between; gap: 20px; color: #667286; font-size: 10px; }
.detail-footer a { color: #a99567; font-weight: 800; }
.detail-not-found { padding-top: 110px; }
.detail-not-found h1 { margin: 8px 0; font-size: 36px; }
.detail-not-found p { margin-bottom: 28px; color: #8793a5; }

@media (max-width: 760px) {
  .detail-brand span { display: none; }
  .hero-detail-card { grid-template-columns: 1fr; gap: 22px; padding: 18px; }
  .hero-detail-visual { min-height: 315px; }
  .hero-detail-visual img { height: 315px; }
  .hero-detail-facts { grid-template-columns: 1fr 1fr; }
  .detail-cta { align-items: flex-start; flex-direction: column; }
  .detail-footer-inner { flex-direction: column; }
}


/* =========================================================
   v2.8.0 — Hero guide detail blocks
   ========================================================= */
.detail-highlight {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(229,189,105,.34);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(229,189,105,.12), rgba(16,22,32,.86) 58%);
}
.detail-highlight h2 {
  margin: 4px 0 8px;
  font-size: 21px;
}
.detail-highlight > p:last-child {
  margin: 0;
  color: #e2e6ec;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.75;
}

.detail-guide-lead {
  margin: 14px 0 0;
  color: #b0bac8;
  font-size: 13px;
  line-height: 1.75;
}

.detail-stat-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stat-order;
  display: grid;
  gap: 8px;
}
.detail-stat-list li {
  counter-increment: stat-order;
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: #c7d0dc;
  font-size: 12px;
  line-height: 1.6;
}
.detail-stat-list li::before {
  content: counter(stat-order);
  position: absolute;
  left: 11px;
  top: 10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(229,189,105,.13);
  color: var(--gold2);
  font-size: 9px;
  font-weight: 900;
}
.detail-tip {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(229,189,105,.65);
  background: rgba(229,189,105,.045);
  color: #9ca9ba;
  font-size: 11px;
  line-height: 1.65;
}

.detail-awakening-list {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}
.detail-awakening-row {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  background: rgba(255,255,255,.018);
}
.detail-awakening-level {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229,189,105,.3);
  border-radius: 9px;
  color: var(--gold2);
  font-size: 15px;
  font-weight: 900;
}
.detail-awakening-grade {
  display: inline-block;
  margin-bottom: 5px;
  color: #f0cf82;
  font-size: 10px;
  font-weight: 900;
}
.detail-awakening-copy p {
  margin: 0;
  color: #a7b2c2;
  font-size: 11px;
  line-height: 1.65;
}

.detail-artifact-box {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid rgba(229,189,105,.22);
  border-radius: 12px;
  background: rgba(229,189,105,.045);
}
.detail-artifact-box > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.detail-artifact-box span {
  color: #8895a8;
  font-size: 9px;
  font-weight: 800;
}
.detail-artifact-box strong {
  color: #f0cf82;
  font-size: 15px;
}
.detail-artifact-box p {
  margin: 8px 0 0;
  color: #a5b0bf;
  font-size: 11px;
  line-height: 1.7;
}

.detail-skill-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.detail-skill-row {
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.detail-skill-row strong {
  color: #d9e0e8;
  font-size: 12px;
}
.detail-skill-row p {
  margin: 5px 0 0;
  color: #929fb1;
  font-size: 11px;
  line-height: 1.65;
}
.detail-source-note {
  margin: 14px 0 0;
  color: #5f6b7d;
  font-size: 9px;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .detail-highlight,
  .detail-section {
    padding: 18px;
  }
  .detail-awakening-row {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 10px;
  }
}

.detail-source-standalone{margin:14px 4px 0;color:#667286;font-size:9px;line-height:1.6;}


/* =========================================================
   v2.8.5 — Wiki report / correction channel
   ========================================================= */
.footer-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.footer-report {
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 12px; border:1px solid rgba(229,189,105,.30); border-radius:999px;
  color:#c9b27d; text-decoration:none; font-size:11px; font-weight:900;
  background:rgba(229,189,105,.05);
}
.footer-report:hover { border-color:rgba(229,189,105,.62); background:rgba(229,189,105,.10); }

.detail-report {
  margin-top:18px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px;
  border:1px solid rgba(123,163,204,.24); border-radius:16px;
  background:linear-gradient(120deg, rgba(83,122,163,.08), rgba(18,24,34,.70) 62%);
}
.detail-report h2 { margin:4px 0 0; font-size:18px; }
.detail-report p:not(.section-kicker) { margin:7px 0 0; color:#7f8da2; font-size:11px; line-height:1.7; max-width:680px; }
.detail-report > a {
  flex:0 0 auto; padding:10px 13px; border:1px solid rgba(229,189,105,.50); border-radius:999px;
  color:#e7c878; text-decoration:none; font-size:11px; font-weight:900; background:rgba(229,189,105,.06);
}
.detail-report > a:hover { border-color:var(--gold); background:rgba(229,189,105,.11); }
.detail-footer-links { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }

@media (max-width:760px) {
  .footer-actions { justify-content:flex-start; }
  .detail-report { align-items:flex-start; flex-direction:column; }
}


/* v2.9.2 — Official in-game hero trait badges: clearer separation */
.detail-traits-section {
  margin-top: 18px;
}

.detail-trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.detail-trait-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(229, 189, 105, .32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(229, 189, 105, .10), rgba(255, 255, 255, .025));
  color: #e7edf5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 2px 8px rgba(0,0,0,.12);
}

.detail-trait-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold2);
  box-shadow: 0 0 8px rgba(229, 189, 105, .45);
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .detail-trait-list {
    gap: 8px;
  }

  .detail-trait-badge {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }
}
