/* ==========================================================================
   아리아월드 홈페이지 — 공통 스타일
   색·글꼴·간격은 아래 :root 변수만 바꾸면 전체에 적용됩니다. (디자이너용)
   ========================================================================== */
@font-face {
  font-family: "DNF Bit Bit v2";
  src: url("../assets/fonts/DNFBitBitv2-subset.woff") format("woff");
  font-display: swap;
}

:root {
  /* 브랜드 (로고 색에서 가져옴) */
  --brand: #ff8a1e;          /* 주황 — 버튼, 강조 */
  --brand-strong: #f27200;   /* 주황 진하게 — hover */
  --brand-soft: #fff3e3;     /* 주황 아주 연하게 — 배경 칠 */
  --brand-ink: #5e2e0e;      /* 로고 테두리 갈색 */
  --gold: #ffc233;
  --discord: #5865f2;
  --discord-strong: #4752c4;

  /* 글자·면 */
  --ink: #1b1c22;
  --ink-2: #3c3e48;
  --muted: #6e717d;
  --faint: #9a9ca6;
  --line: #e7e8ec;
  --line-strong: #1b1c22;
  --surface: #ffffff;
  --panel: #f5f5f7;
  --panel-2: #ececf0;

  /* 글꼴 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-display: "DNF Bit Bit v2", var(--font);

  /* 크기 */
  --gnb-h: 80px;
  --wrap: 968px;             /* 본문 폭 = 배너 폭 */
  --header-wrap: 1240px;
  --radius: 16px;
  --radius-lg: 24px;
  --banner-w: 968px;         /* 접속기 배너 칸과 같은 크기 */
  --banner-h: 248px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--gnb-h) + 16px); }
body {
  margin: 0;
  padding-top: var(--gnb-h);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { padding: 80px 20px; text-align: center; color: var(--muted); }

.ico { display: inline-flex; width: 1em; height: 1em; flex: none; }
.ico svg, .icon-btn svg, .btn-discord svg { width: 100%; height: 100%; }
.ico svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   GNB
   ========================================================================== */
.gnb {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--gnb-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s;
}
.gnb.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20, 22, 30, .04); }
.gnb__inner {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--header-wrap); height: 100%; margin: 0 auto; padding: 0 24px;
}
.gnb__logo { flex: none; display: block; line-height: 0; }
.gnb__logo img { width: 164px; height: auto; }
.gnb__menu { flex: 1; display: flex; justify-content: center; gap: clamp(8px, 3.4vw, 48px); }
.gnb__menu a {
  position: relative; padding: 10px 16px;
  font-size: 18px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .15s;
}
.gnb__menu a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.gnb__menu a:hover { color: var(--ink); }
.gnb__menu a:hover::after { transform: scaleX(1); }
.gnb__menu a.is-on { color: var(--ink); font-weight: 700; }
.gnb__menu a.is-on::after { transform: scaleX(1); background: var(--brand); height: 3px; }
.gnb__util { flex: none; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--muted); background: var(--panel); transition: background .15s, color .15s;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); }
.btn-discord {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px;
  border-radius: 999px; background: var(--discord); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.btn-discord svg { width: 20px; height: 20px; fill: currentColor; }
.btn-discord:hover { background: var(--discord-strong); }
.gnb__burger { display: none; }

/* 모바일 메뉴 */
.drawer-dim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 16, 22, .45); opacity: 0; transition: opacity .25s; }
.drawer-dim.is-on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(320px, 86vw);
  display: flex; flex-direction: column; background: #fff;
  transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; box-shadow: -20px 0 40px rgba(0, 0, 0, .12); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.drawer__head img { width: 120px; height: auto; }
.drawer__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.drawer__close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.drawer__menu { display: flex; flex-direction: column; padding: 12px 0; }
.drawer__menu a { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; font-size: 17px; font-weight: 600; }
.drawer__menu a::after { content: ""; width: 7px; height: 7px; border: solid var(--faint); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.drawer__menu a.is-on { color: var(--brand-strong); }
.drawer__menu a.is-on::after { border-color: var(--brand); }
.drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.btn-discord--block { justify-content: center; height: 48px; border-radius: 12px; font-size: 15px; }
.drawer__sub { text-align: center; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   화면 전환
   ========================================================================== */
#app { outline: none; min-height: calc(100vh - var(--gnb-h) - 220px); }
.view.is-enter { animation: viewIn .35s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   배너 슬라이더 (홈) — 크기는 접속기와 같은 968 x 248
   ========================================================================== */
.home-visual { position: relative; padding-top: 28px; overflow: hidden; isolation: isolate; }
.bs__ambient { position: absolute; z-index: -1; inset: -28px 0 0; overflow: hidden; }
.bs__ambient i {
  position: absolute; inset: -60px; background: center 40% / cover no-repeat;
  filter: blur(42px) saturate(1.25); opacity: 0; transform: scale(1.1); transition: opacity .9s ease;
}
.bs__ambient i.is-on { opacity: .55; }
.bs__ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, 0) 45%, #fff 100%); }
.bs { position: relative; }
.bs__stage { position: relative; }
.bs--home .bs__stage {
  width: min(var(--banner-w), calc(100vw - 32px));
  aspect-ratio: 968 / 248;
  margin: 0 auto;
}
.bs__slide {
  position: absolute; inset: 0;
  container-type: inline-size;
  border-radius: 16px; overflow: hidden; background: #cfd9ea;
  transform: translateX(calc(var(--rel, 0) * (100% + 16px)));
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .6s;
}
.bs__slide.is-jump { transition: none; }
.bs--home .bs__slide:not(.is-active) { opacity: .7; cursor: pointer; }
.bs--home .bs__slide:not(.is-active):hover { opacity: .9; }
.bs--home .bs__slide.is-active { box-shadow: 0 18px 40px -18px rgba(20, 30, 60, .45); }
.bs--home .bs__slide:not(.is-active) .bs__text,
.bs--home .bs__slide:not(.is-active) .bs__scrim { opacity: 0; }
.bs__scrim { transition: opacity .6s; }
.bs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bs__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 36, .58) 0%, rgba(10, 18, 36, .32) 38%, rgba(10, 18, 36, 0) 62%); }
/* 글자 위치·크기는 접속기 좌표(968 기준 px)를 cqw 로 옮긴 값입니다. 968px 에서 접속기와 같습니다. */
.bs__text { position: absolute; left: 6.921cqw; top: 4.029cqw; right: 40cqw; transition: opacity .4s; }
.bs__badge {
  display: inline-flex; align-items: center; height: 2.273cqw; padding: 0 .93cqw; border-radius: .517cqw;
  background: linear-gradient(135deg, #ffe066 0%, #ffb02e 55%, #ff8a1f 100%); color: #4a2200; font-size: 1.188cqw; font-weight: 800;
  box-shadow: 0 .2cqw .6cqw rgba(255, 138, 31, .35), inset 0 1px 0 rgba(255, 255, 255, .5); /* // 배지: 노랑→주황 그라데이션 */
}
.bs__title {
  display: block; margin-top: 1.55cqw; font-size: 2.996cqw; line-height: 1.32; font-weight: 700; color: #fff6e6;
  text-shadow: 0 .2cqw .5cqw rgba(0, 0, 0, .4); letter-spacing: -0.02em;
}
.bs__body { margin-top: .45cqw; font-size: 1.291cqw; line-height: 1.5; color: rgba(240, 228, 214, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.bs__more {
  display: inline-flex; align-items: center; gap: .3cqw; margin-top: 1.3cqw;
  height: 3.512cqw; padding: 0 .9cqw 0 1.15cqw; border-radius: .826cqw;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 196, 77, .75);
  color: #fff3d6; /* // 자세히 보기: 배지와 같은 노랑·주황 톤 */ font-size: 1.291cqw; font-weight: 600; transition: background .15s;
}
.bs__more svg { width: 1.55cqw; height: 1.55cqw; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bs__more:hover { background: rgba(255, 255, 255, .2); }

/* 홈 컨트롤: 오른쪽 아래 ‹ 1 / 3 › ❚❚ */
.bs__ctl {
  position: absolute; z-index: 3;
  right: 16px;
  bottom: 14px;
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(12, 16, 28, .45); backdrop-filter: blur(6px); color: #fff;
}
.bs__btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.bs__btn:hover { background: rgba(255, 255, 255, .16); }
.bs__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bs__btn--pause svg { width: 14px; height: 14px; }
.bs.is-paused .bs__btn--pause svg { fill: currentColor; stroke-width: 1.5; }
.bs__count { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); }
.bs__count b { color: #fff; font-weight: 700; }
.bs__bar {
  position: relative; width: min(var(--banner-w), calc(100vw - 32px)); height: 3px; margin: 16px auto 0;
  border-radius: 3px; background: rgba(27, 28, 34, .08); overflow: hidden;
}
.bs__bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; animation: bsProgress var(--progress-dur, 6s) linear forwards; }
.bs.is-hover .bs__bar i, .bs.is-paused .bs__bar i { animation-play-state: paused; }
@keyframes bsProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ==========================================================================
   홈 — 다운로드 버튼 (배너 바로 아래 가운데)
   ========================================================================== */
.home-start { display: flex; flex-direction: column; align-items: center; padding: 30px 20px 8px; text-align: center; }
.dl-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(440px, 100%); height: 92px; padding: 0 22px 0 34px; border-radius: 20px;
  background: linear-gradient(180deg, #ffa53d 0%, #ff8a1e 55%, #f47a08 100%);
  color: #fff; text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(150, 64, 0, .35), 0 10px 24px -8px rgba(242, 114, 0, .55);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.dl-btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(150, 64, 0, .35), 0 16px 30px -10px rgba(242, 114, 0, .6); }
.dl-btn:active { transform: translateY(0); }
.dl-btn__shine {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.dl-btn__txt { display: flex; flex-direction: column; gap: 2px; }
.dl-btn__en { font-family: var(--font-display); font-size: 34px; line-height: 1; font-weight: 400; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(140, 58, 0, .45); }
.dl-btn__ko { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.dl-btn__ico {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55); transition: background .2s;
}
.dl-btn__ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn:hover .dl-btn__ico { background: rgba(255, 255, 255, .16); }
.home-start__meta { display: flex; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.home-start__meta span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: 10px; background: var(--line); vertical-align: -1px; }
.home-start__links { display: flex; gap: 6px; margin-top: 6px; font-size: 13px; }
.home-start__links a { padding: 2px 6px; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.home-start__links a:hover { color: var(--brand-strong); text-decoration-color: currentColor; }

/* 홈 — 바로가기 카드 */
.home-links { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin-top: 44px; margin-bottom: 24px; }
.home-links__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qcard {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 22px 22px 20px;
  border-radius: var(--radius); background: var(--panel); transition: background .2s, transform .2s var(--ease);
}
.qcard:hover { background: var(--panel-2); }
.qcard__ico { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.qcard__ico svg { stroke-width: 1.8; }
.qcard__title { font-size: 17px; font-weight: 700; }
.qcard__desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.qcard__out { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; color: var(--faint); transition: transform .2s var(--ease), color .2s; }
.qcard__out svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qcard:hover .qcard__out { color: var(--ink); transform: translateX(2px); }
.qcard--discord { background: var(--discord); color: #fff; padding: 26px 24px; justify-content: flex-end; overflow: hidden; }
.qcard--discord:hover { background: var(--discord-strong); }
.qcard--discord .qcard__out { color: rgba(255, 255, 255, .7); }
.qcard--discord:hover .qcard__out { color: #fff; transform: translate(2px, -2px); }
.qcard__dc { position: absolute; right: -26px; top: 26px; width: 150px; height: 150px; opacity: .1; }
.qcard__dc svg { width: 100%; height: 100%; fill: #fff; }
.qcard--discord .qcard__title { font-size: 21px; }
.qcard--discord .qcard__desc { color: rgba(255, 255, 255, .82); font-size: 14px; max-width: 250px; }
.qcard__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.qcard__chips span { padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 600; }

/* ==========================================================================
   서브 페이지 공통
   ========================================================================== */
.phead {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: var(--wrap); min-height: 196px; margin: 24px auto 0;
  border-radius: var(--radius-lg); background: var(--brand-soft);
}
.phead__art {
  position: absolute; z-index: -1; inset: 0 0 0 38%;
  background: url("../assets/world.jpg") no-repeat;
  background-size: 760px auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 30%, #000 70%);
}
.phead::after { /* 테두리 장식 링 */
  content: ""; position: absolute; z-index: -1; left: -90px; bottom: -170px; width: 300px; height: 300px;
  border-radius: 50%; border: 44px solid rgba(255, 255, 255, .55);
}
.phead--castle .phead__art { background-position: 64% 22%; }
.phead--field .phead__art { background-position: 0% 92%; background-size: 680px auto; }
.phead--tree .phead__art { background-position: 0% 0%; background-size: 700px auto; }
.phead--sky .phead__art { background-position: 92% 6%; background-size: 820px auto; }
.phead--isle .phead__art { background-position: 100% 30%; background-size: 900px auto; }
.phead__body { position: relative; padding: 30px 36px 32px; max-width: 560px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.crumb li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 1px 2px; border: solid var(--faint); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.crumb a:hover { color: var(--ink); }
.phead__title { margin-top: 18px; font-size: 38px; line-height: 1.2; font-weight: 800; letter-spacing: -0.035em; outline: none; }
.phead__desc { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

.page { padding-top: 40px; padding-bottom: 72px; }
.sec + .sec { margin-top: 56px; }
.sec--tight { margin-top: 28px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--line-strong); margin-bottom: 4px; }
.sec-title h2 { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.sec-title__num { color: var(--brand-strong); font-weight: 800; font-variant-numeric: tabular-nums; }
.sec-title__count { font-size: 13px; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.more .ico { font-size: 15px; }
.more:hover { color: var(--brand-strong); }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--brand-soft); color: var(--brand-strong); }
.ver-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px;
  border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn .ico { font-size: 16px; }
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { background: var(--discord-strong); }
.btn--line { margin-top: 14px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }

.notice { display: flex; gap: 12px; margin-top: 20px; padding: 18px 22px; border-radius: var(--radius); background: var(--panel); font-size: 14px; color: var(--ink-2); }
.notice > .ico { font-size: 18px; margin-top: 2px; color: var(--muted); }
.notice ul { display: grid; gap: 4px; }
.notice li { position: relative; padding-left: 12px; }
.notice li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  position: relative; flex: none; padding: 12px 18px 14px; font-size: 16px; font-weight: 600; color: var(--muted);
  transition: color .15s;
}
.tabs__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs__item:hover { color: var(--ink); }
.tabs__item.is-on { color: var(--brand-strong); font-weight: 700; }
.tabs__item.is-on::after { transform: scaleX(1); }
.tabs--page { margin-bottom: 28px; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ==========================================================================
   서버소개
   ========================================================================== */
.intro-top { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-top: 24px; }
.intro-top__text p { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.intro-top__text p + p { margin-top: 6px; }
.intro-top__name { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.intro-top__en { font-family: var(--font-display); font-size: 15px; color: var(--brand-ink); letter-spacing: .06em; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 1px solid var(--line); }
.spec th, .spec td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { width: 120px; background: var(--panel); font-weight: 600; color: var(--ink-2); }
.spec td { font-weight: 500; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 24px; }
.feat__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 160px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.feat__item.is-link:hover { border-color: var(--ink); box-shadow: 0 8px 24px -12px rgba(20, 22, 30, .18); }
.feat__no { position: absolute; top: 20px; right: 24px; font-size: 13px; font-weight: 800; color: var(--line); font-variant-numeric: tabular-nums; }
.feat__item.is-link .feat__no { right: 54px; }
.feat__title { margin-top: 4px; font-size: 18px; font-weight: 700; }
.feat__body { font-size: 14px; color: var(--muted); line-height: 1.65; }
.feat__go { position: absolute; top: 20px; right: 22px; width: 18px; height: 18px; color: var(--faint); }
.feat__go svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat__item.is-link:hover .feat__go { color: var(--ink); }

.community { margin-top: 24px; border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.community__lead { display: flex; align-items: center; gap: 18px; padding: 24px 26px; }
.community__lead > div { flex: 1; }
.community__lead strong { font-size: 17px; }
.community__lead p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.community__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--discord); }
.community__ico svg { width: 28px; height: 28px; fill: #fff; }
.channels { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--panel-2); }
.channels li { display: flex; flex-direction: column; gap: 2px; padding: 16px 26px; font-size: 13px; color: var(--muted); }
.channels li + li { border-left: 1px solid var(--panel-2); }
.channels b { font-size: 14px; color: var(--ink); }

/* ==========================================================================
   다운로드
   ========================================================================== */
.dl-card { display: grid; grid-template-columns: 1fr 340px; gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dl-card__info { padding: 28px 30px; }
.dl-card__head { display: flex; align-items: center; gap: 16px; }
.dl-card__emblem { width: 60px; height: 60px; border-radius: 16px; }
.dl-card__title { font-size: 20px; font-weight: 700; }
.dl-card__sub { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.dl-card__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.dl-card__meta div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl-card__meta dt { width: 64px; flex: none; color: var(--muted); }
.dl-card__meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-card__sha { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel); font-size: 12px; }
.dl-card__sha span { color: var(--muted); font-weight: 600; }
.dl-card__sha code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.copy { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: #fff; cursor: pointer; }
.copy svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 2; }
.copy.is-done { background: var(--brand); }
.copy.is-done svg { stroke: #fff; }
.dl-card__mirrors { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px 30px; background: var(--panel); }
.mirror {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 14px 12px 20px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.mirror:hover { border-color: var(--ink); }
.mirror__txt { display: flex; flex-direction: column; }
.mirror__txt b { font-size: 16px; }
.mirror__txt small { font-size: 12px; color: var(--muted); }
.mirror__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); }
.mirror__ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mirror--main { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: inset 0 -3px 0 rgba(150, 64, 0, .25); }
.mirror--main:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.mirror--main small { color: rgba(255, 255, 255, .85); }
.mirror--main .mirror__ico { background: rgba(255, 255, 255, .2); }
.mirror--main .mirror__ico svg { stroke: #fff; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; counter-reset: flow; }
.flow li { position: relative; padding: 4px 22px 4px 0; }
.flow li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.flow__no { display: block; font-size: 12px; font-weight: 800; color: var(--brand-strong); letter-spacing: .04em; }
.flow strong { display: block; margin-top: 6px; font-size: 16px; }
.flow p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   이용가이드
   ========================================================================== */
.page--side { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.side { position: sticky; top: calc(var(--gnb-h) + 24px); }
.side__title { padding: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: .02em; }
.side ul { display: grid; gap: 2px; border-left: 2px solid var(--line); }
.side a { position: relative; display: block; padding: 10px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .15s, border-color .15s; }
.side a:hover { color: var(--ink); }
.side a.is-on { color: var(--brand-strong); border-left-color: var(--brand); font-weight: 700; }
.guide-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.guide-head p { margin-top: 6px; color: var(--muted); }
.toc { margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.toc strong { font-size: 13px; }
.toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; margin-top: 10px; }
.toc a { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.toc a b { color: var(--brand-strong); font-weight: 700; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gstep { margin-top: 40px; }
.gstep .sec-title h2 { font-size: 19px; }
.gstep__list { display: grid; gap: 6px; padding: 16px 0 0; counter-reset: g; }
.gstep__list li { position: relative; padding-left: 16px; color: var(--ink-2); }
.gstep__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.faq-bar .tabs { border-bottom: 0; }
.search { position: relative; display: block; width: 280px; margin-bottom: 8px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--faint); }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); outline: none; font-size: 14px; transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--brand); background: #fff; }
.faq { border-bottom: 1px solid var(--line); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; gap: 14px; width: 100%; padding: 22px 20px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 16px; font-weight: 600; }
.faq__q:hover .faq__text { color: var(--brand-strong); }
.faq__mark { flex: none; width: 22px; font-weight: 800; color: var(--brand-strong); }
.faq__mark--a { color: var(--ink); }
.faq__cat { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 600; }
.faq__text { flex: 1; transition: color .15s; }
.faq__chev { font-size: 18px; color: var(--faint); transition: transform .25s var(--ease); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); color: var(--ink); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__inner { display: flex; gap: 14px; min-height: 0; overflow: hidden; margin: 0 0 0; padding: 0 20px; background: var(--panel); font-size: 15px; color: var(--ink-2); line-height: 1.75; visibility: hidden; transition: padding .3s var(--ease), visibility .3s; }
.faq__item.is-open .faq__inner { padding: 20px 20px 22px; margin-bottom: 18px; border-radius: 12px; visibility: visible; }
.faq__inner p + p { margin-top: 4px; }
.faq__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--brand-strong); }
.faq__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 22px 26px; border-radius: var(--radius); background: var(--panel); font-size: 14px; color: var(--ink-2); }

/* 맨 위로 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 22, 30, .1); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { border-color: var(--ink); }

/* ==========================================================================
   푸터
   ========================================================================== */
.footer { margin-top: 40px; padding: 36px 0 48px; border-top: 1px solid var(--line); background: #fafafb; color: var(--muted); }
.footer__inner { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.footer__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__logo { width: 112px; height: auto; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }
.footer__sns { margin-left: auto; display: flex; gap: 14px; font-size: 13px; }
.footer__sns a { font-weight: 600; color: var(--ink-2); }
.footer__sns a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__sns i { font-style: normal; color: var(--faint); }
.footer__note { margin-top: 20px; font-size: 12px; }
.footer__legal, .footer__copy { margin-top: 4px; font-size: 12px; color: var(--faint); }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1024px) {
  .gnb__menu { gap: 4px; }
  .gnb__menu a { font-size: 16px; padding: 10px 12px; }
}
@media (max-width: 860px) {
  :root { --gnb-h: 64px; }
  .gnb__inner { padding: 0 12px 0 16px; }
  .gnb__logo img { width: 124px; }
  .gnb__menu { display: none; }
  .gnb__util { margin-left: auto; }
  .gnb__util .icon-btn { display: none; }
  .btn-discord { height: 36px; padding: 0 12px; font-size: 13px; }
  .btn-discord svg { width: 18px; height: 18px; }
  .gnb__burger { display: grid; align-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 0; background: none; cursor: pointer; }
  .gnb__burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); }
  .home-links { grid-template-columns: 1fr; }
  .intro-top { grid-template-columns: 1fr; gap: 24px; }
  .dl-card { grid-template-columns: 1fr; }
  .page--side { grid-template-columns: 1fr; gap: 24px; }
  .side { position: static; }
  .side__title { display: none; }
  .side ul { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .side a { margin: 0 0 -1px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 12px 14px; }
  .side a.is-on { border-bottom-color: var(--brand); }
  .channels { grid-template-columns: 1fr 1fr; }
  .channels li:nth-child(3) { border-left: 0; }
  .channels li:nth-child(n+3) { border-top: 1px solid var(--panel-2); }
  .flow { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .faq-bar { flex-direction: column; align-items: stretch; gap: 0; }
  .search { width: 100%; margin: 12px 0 0; }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .home-visual { padding-top: 12px; }
  .bs--home .bs__stage { width: calc(100vw - 32px); }
  .bs__slide { border-radius: 12px; }
  .bs__text { top: 12px; left: 14px; right: 46cqw; }
  .bs__badge { height: 18px; padding: 0 6px; font-size: 10.5px; border-radius: 4px; }
  .bs__title { margin-top: 6px; font-size: 15px; line-height: 1.3; }
  .bs__body, .bs__more { display: none; }
  .bs__ctl { right: 8px; bottom: 8px; transform: scale(.85); transform-origin: right bottom; }
  .home-start { padding-top: 24px; }
  .dl-btn { height: 80px; padding: 0 16px 0 24px; border-radius: 18px; }
  .dl-btn__en { font-size: 28px; }
  .home-links__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qcard { min-height: 120px; padding: 18px; }
  .phead { margin: 12px 12px 0; min-height: 150px; border-radius: 18px; }
  .phead__art { left: 30%; opacity: .7; }
  .phead__body { padding: 22px 22px 24px; }
  .phead__title { margin-top: 12px; font-size: 28px; }
  .phead__desc { font-size: 14px; }
  .page { padding-top: 28px; }
  .sec + .sec { margin-top: 44px; }
  .sec-title h2 { font-size: 19px; }
  .feat { grid-template-columns: 1fr; }
  .community__lead { flex-wrap: wrap; }
  .community__lead .btn { width: 100%; }
  .dl-card__info, .dl-card__mirrors { padding: 22px; }
  .dl-card__meta { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 0 0 0 16px; border-left: 2px solid var(--line); }
  .toc ol { grid-template-columns: 1fr; }
  .faq__q { padding: 18px 8px; font-size: 15px; gap: 10px; }
  .faq__cat { display: none; }
  .faq-more { flex-direction: column; align-items: stretch; }
  .footer__sns { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
