/* ==========================================================================
   디자인 토큰 — 라비팜 (벚꽃)
   연분홍 배경 + 로즈 브랜드 + 잎사귀 그린 포인트.
   장식용 분홍(--primary-blossom)과 인터랙션용 로즈(--primary)를 분리해
   귀여운 톤을 유지하면서 흰 글씨 대비 4.5:1 을 확보한다.
   컨테이너 1120px, 4px 스페이싱 배수.
   ========================================================================== */
:root {
  /* 표면 */
  --base-100: #ffffff;
  --base-200: #fdf3f6;
  --base-300: #f8e7ec;
  --base-content: #3d2b33;

  /* 텍스트 */
  --fg: #5c4a51;
  --fg-muted: #7d6a71;
  --fg-subtle: #a4919a;
  --fg-disabled: #c6b4bb;

  /* 브랜드 */
  --primary: #b8496f;          /* 버튼·강조 (흰 글씨 4.98:1) */
  --primary-ink: #9c3a5c;      /* 밝은 배경 위 텍스트 */
  --primary-soft: #fbdae6;     /* 칩·호버 배경 (배경 #fdf3f6 과 확실히 구분되도록 진하게) */
  --primary-blossom: #f7bfd0;  /* 꽃잎 등 장식 전용 */
  --primary-content: #ffffff;
  --secondary: #4f7a58;        /* 잎사귀 그린 (흰 글씨 4.93:1) */
  --secondary-soft: #e4efe5;
  --secondary-content: #ffffff;
  --neutral: #3d2b33;
  --neutral-content: #f9edf1;

  /* 상태 */
  --success: #4f7a58;
  --success-ink: #3d6146;
  --success-content: #ffffff;
  --warning: #c2872b;
  --error: #c4544f;
  --info: #6383a8;

  --medal-gold: #8a6516;
  --medal-gold-bg: #f7e8c4;

  /* 기능 카드 색 */
  --f-newbie: #b8496f;
  --f-convenience: #6f7fa8;
  --f-farming: #ab8329;
  --f-diving: #3d8798;
  --f-fishing: #5b74ab;
  --f-mining: #8a6f60;
  --f-combat: #b3524b;
  --f-furniture: #a06e4d;
  --f-cosmetic: #8a5fa8;

  --border-light: #f2dfe5;
  --border-strong: #e6cbd5;

  /* 형태 — 둥글둥글하게 (귀여운 톤), 버튼은 알약이 아닌 큰 라운드 */
  --container: 1120px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 9999px;
  /* 아이콘 칩용 물방울 모양 */
  --r-blob: 58% 42% 52% 48% / 48% 54% 46% 52%;

  --shadow-sm: 0 1px 2px rgba(61, 43, 51, .06);
  --shadow-md: 0 6px 16px -6px rgba(61, 43, 51, .12), 0 2px 4px -2px rgba(61, 43, 51, .06);
  --shadow-lg: 0 18px 36px -14px rgba(61, 43, 51, .18), 0 4px 8px -4px rgba(61, 43, 51, .08);
  --shadow-primary: 0 10px 22px -10px rgba(184, 73, 111, .5);
  --shadow-secondary: 0 10px 22px -10px rgba(79, 122, 88, .45);
  --shadow-blossom: 0 12px 26px -12px rgba(184, 73, 111, .3);
}

/* ==========================================================================
   리셋
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 스크롤바 자리를 항상 비워둔다.
     이게 없으면 내용이 짧아 스크롤바가 없는 페이지(404·게시판 등)와
     있는 페이지 사이를 오갈 때 본문이 좌우로 7~8px 씩 튄다. */
  scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Segoe UI', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  /* 연분홍 바탕 + 아주 옅은 벚꽃 타일 패턴 (가독성 해치지 않는 선) */
  background-color: var(--base-200);
  background-image: url('/img/bg-petals.svg');
  background-size: 320px 320px;
  background-repeat: repeat;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* padding 을 빼먹으면 크롬 기본값(1px 6px)이 남아 배경색 요소 옆에 흰 틈이 생긴다 */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4 { color: var(--base-content); line-height: 1.25; letter-spacing: -.02em; }
ul, ol { list-style: none; padding: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 16px; left: 16px; z-index: 100;
  width: auto; height: auto; clip: auto;
  padding: 8px 16px; border-radius: var(--r-sm);
  background: var(--base-100); box-shadow: var(--shadow-lg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) { .container { padding-inline: 24px; } }

/* flex/grid 자식의 기본 min-width:auto 때문에 좁은 화면에서 가로 스크롤이 생기는 것을 차단 */
.features > .card,
.link-list a > span,
.status-panel__head,
.board li,
.step > div,
.event__what,
.rank li,
.wiki-card { min-width: 0; }

/* 아이콘 스프라이트 기본값 (icons.ejs의 symbol을 use로 참조) */
.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   공통 파츠
   ========================================================================== */
/* 각진 태그 — 원형 알약 대신 사각 라운드 + 자간 넓힌 소문자 라벨 */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--primary-ink); background: var(--primary-soft);
}
.pill--outline {
  background: var(--base-100);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.pill--light { background: var(--base-100); }
.pill .icon { width: 15px; height: 15px; }

.dot-live {
  width: 8px; height: 8px; border-radius: var(--r-full);
  background: var(--primary); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.btn--primary { background: var(--primary); color: var(--primary-content); box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: #a33e61; }
.btn--secondary { background: var(--secondary); color: var(--secondary-content); box-shadow: var(--shadow-secondary); }
.btn--secondary:hover { background: #446a4c; }
.btn--ghost {
  background: var(--base-100); color: var(--fg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* 마이크로소프트 로그인 — 브랜드 가이드대로 흰 바탕 + 회색 테두리에 4색 로고를 얹는다.
   로고가 원색이라 버튼까지 색을 쓰면 헤더가 시끄러워진다. */
.btn--ms {
  background: #fff; color: #2f2f2f;
  border: 1px solid #d7d0d3; box-shadow: var(--shadow-sm);
}
.btn--ms:hover { border-color: var(--primary); }
.btn--ms .icon { width: 17px; height: 17px; }

/* 팝업 로그인 실패 알림 — 팝업이 닫힌 뒤 부모 창에 띄운다 */
.auth-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 90; max-width: min(92vw, 420px);
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--neutral); color: #fff;
  font-size: 14px; line-height: 1.5; box-shadow: var(--shadow-lg);
  animation: auth-toast-in .2s ease;
}
.auth-toast .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
@keyframes auth-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .auth-toast { animation: none; } }

.section { padding-block: 64px; }
@media (min-width: 640px) { .section { padding-block: 88px; } }

/* 물결 대신 넓은 라운드 슬랩으로 섹션을 끊는다 */
.section--slab {
  background: var(--base-100);
  border-radius: var(--r-xl);
  margin-inline: 10px;
}
/* 슬랩 여백과 컨테이너 패딩이 겹쳐 모바일에서 본문이 지나치게 좁아지는 것을 방지 */
@media (max-width: 639px) {
  .section--slab { border-radius: var(--r-lg); }
  .section--slab > .container { padding-inline: 12px; }
}
@media (min-width: 1024px) {
  .section--slab { margin-inline: auto; max-width: calc(var(--container) + 48px); }
}
.section--ink {
  background: var(--neutral);
  color: var(--neutral-content);
  border-radius: var(--r-xl);
  margin-inline: 16px;
}
.section--ink h2, .section--ink h3 { color: var(--neutral-content); }
@media (min-width: 1024px) {
  .section--ink { margin-inline: auto; max-width: calc(var(--container) + 48px); }
}

/* 좌측 정렬 섹션 헤드 + 벚꽃잎 점 세 개 */
.section-head { max-width: 620px; }
.section-head::before {
  content: ''; display: block;
  width: 46px; height: 10px; margin-bottom: 18px;
  background:
    radial-gradient(circle 5px at 5px 5px, var(--primary-blossom) 98%, transparent 100%) 0 0 / 18px 10px repeat-x;
}
.section-head h2 { margin-top: 14px; font-size: 28px; font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--fg-muted); }
@media (min-width: 640px) { .section-head h2 { font-size: 34px; } }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center::before { margin-inline: auto; }

/* ==========================================================================
   헤더 — 상단 다크바 없이 한 줄, 좌측 로고 + 메뉴, 우측 소셜/CTA
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 242, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}
.header__inner {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 12px;
  height: 68px;
}
@media (min-width: 1024px) { .header__inner { height: 76px; gap: 24px; } }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text {
  font-size: 19px; font-weight: 800; color: var(--base-content);
  letter-spacing: -.02em; white-space: nowrap;
}

.gnb { display: none; }
@media (min-width: 1024px) { .gnb { display: block; margin-right: auto; } }
.gnb > ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.gnb > ul > li { flex-shrink: 0; }
.gnb__link, .gnb__trigger {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; color: var(--fg-muted);
  transition: background-color .15s ease, color .15s ease;
}
.gnb__link:hover, .gnb__trigger:hover,
.gnb__item[data-open='true'] .gnb__trigger {
  background: var(--base-100); color: var(--base-content);
}

/* 현재 보고 있는 섹션 — 아래 분홍 밑줄로 표시 */
.gnb__item, .gnb > ul > li { position: relative; }
.gnb__link.is-current, .gnb__item.is-current .gnb__trigger {
  color: var(--primary-ink); font-weight: 700;
}
.gnb__link.is-current::after, .gnb__item.is-current .gnb__trigger::after {
  content: ''; position: absolute;
  left: 14px; right: 14px; bottom: -2px;
  height: 3px; border-radius: 2px 2px 0 0;
  background: var(--primary);
}
.gnb__item.is-current .gnb__trigger::after { right: 30px; }

/* 드롭다운 안 현재 문서 */
.gnb__panel a[aria-current='page'] { background: var(--primary-soft); }
.gnb__panel a[aria-current='page'] strong { color: var(--primary-ink); }
.gnb__panel a[aria-current='page'] .icon-chip { background: var(--base-100); }
.gnb__trigger .chevron { width: 12px; height: 12px; color: var(--fg-disabled); transition: transform .2s ease; }
.gnb__item[data-open='true'] .chevron { transform: rotate(180deg); }

.gnb__item { position: relative; }
.gnb__panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 290px; padding: 8px;
  background: var(--base-100); border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.gnb__item[data-open='true'] .gnb__panel { opacity: 1; visibility: visible; transform: none; }
.gnb__panel a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--r-sm);
  transition: background-color .15s ease;
}
.gnb__panel a:hover { background: var(--base-200); }
.gnb__panel .icon-chip {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: var(--r-blob);
  background: var(--primary-soft); color: var(--primary-ink);
}
.gnb__panel .icon-chip .icon { width: 16px; height: 16px; }
.gnb__panel strong { display: block; font-size: 15px; font-weight: 700; color: var(--base-content); }
.gnb__panel span { font-size: 13px; color: var(--fg-muted); }

.header__actions {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  margin-left: auto; flex-shrink: 0;
}
@media (min-width: 1024px) { .header__actions { margin-left: 0; } }
.header__cta { display: none; flex-shrink: 0; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

/* 헤더 우측 소셜 아이콘 (구 상단 다크바 대체) */
.header__social {
  display: none; flex-wrap: nowrap; align-items: center; gap: 2px;
  padding-right: 6px; flex-shrink: 0;
}
@media (min-width: 1024px) { .header__social { display: flex; } }
.header__social a {
  display: grid; place-items: center; flex: 0 0 36px;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  color: var(--fg-subtle); transition: background-color .15s ease, color .15s ease;
}
.header__social a:hover { background: var(--base-100); color: var(--primary-ink); }
.header__social .icon { width: 18px; height: 18px; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  color: var(--fg-muted); transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--base-100); }
.icon-btn .icon { width: 24px; height: 24px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* 모바일 메뉴 */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  display: none;
}
.drawer[data-open='true'] { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(62, 50, 38, .45); }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(340px, 88vw); padding: 20px;
  background: var(--base-200); overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slide-in .2s ease;
}
@keyframes slide-in { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
/* 모바일 메뉴도 그룹을 선으로 끊고, 현재 항목을 분명히 표시 */
.drawer__group { margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.drawer__group:last-of-type { border-bottom: 0; }
.drawer__group > p {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 12px 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--fg-subtle);
}
.drawer__group > p::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-blossom);
}
.drawer__group a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--fg);
}
.drawer__group a .icon { width: 17px; height: 17px; color: var(--fg-disabled); }
.drawer__group a:hover { background: var(--base-200); color: var(--base-content); }
.drawer__group a[aria-current='page'] {
  background: var(--base-100); color: var(--primary-ink); font-weight: 800;
  box-shadow: inset 3px 0 0 var(--primary), var(--shadow-sm);
}
.drawer__group a[aria-current='page'] .icon { color: var(--primary); }
.drawer .btn { width: 100%; }

/* ==========================================================================
   히어로 — 중앙 정렬 카피 + 하단 와이드 배너 (좌우 2단 분할 대신)
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
@media (min-width: 1024px) { .hero { padding: 80px 0 0; } }
.hero > .container { position: relative; z-index: 1; }

/* 흩날리는 벚꽃잎 장식 (장식 전용, 클릭 통과) */
.hero__petals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__petals .icon {
  position: absolute; stroke: none;
  color: var(--primary-blossom); opacity: .5;
  animation: petal-drift 11s ease-in-out infinite;
}
.hero__petals .icon:nth-child(1) { left: 3%;  top: 12%; width: 30px; height: 30px; animation-delay: 0s;   transform: rotate(-18deg); }
.hero__petals .icon:nth-child(2) { left: 9%;  top: 52%; width: 20px; height: 20px; animation-delay: -2.5s; opacity: .38; }
.hero__petals .icon:nth-child(3) { right: 5%; top: 16%; width: 26px; height: 26px; animation-delay: -5s;  transform: rotate(24deg); }
.hero__petals .icon:nth-child(4) { right: 11%; top: 58%; width: 34px; height: 34px; animation-delay: -7.5s; opacity: .32; }
.hero__petals .icon:nth-child(5) { left: 46%; top: 4%;  width: 18px; height: 18px; animation-delay: -1.2s; opacity: .34; }
.hero__petals .icon:nth-child(6) { right: 24%; top: 44%; width: 16px; height: 16px; animation-delay: -6.2s; opacity: .3; }
/* 좁은 화면에서는 본문을 가리지 않게 바깥쪽 두 개만 남긴다 */
@media (max-width: 767px) {
  .hero__petals .icon:nth-child(n+3) { display: none; }
  .hero__petals .icon:nth-child(1) { width: 22px; height: 22px; }
}

@keyframes petal-drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 6px -14px; rotate: 12deg; }
}

/* 반짝임 — 느리게(7초) 떴다 사라지고 최대 불투명도 .45 라 눈이 피로하지 않다 */
.hero__sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__sparkles i {
  position: absolute; display: block;
  width: 14px; height: 14px; opacity: 0;
  background: var(--primary-blossom);
  clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
  animation: twinkle 7s ease-in-out infinite;
}
.hero__sparkles i:nth-child(1) { left: 14%; top: 20%; animation-delay: 0s; }
.hero__sparkles i:nth-child(2) { left: 27%; top: 62%; width: 10px; height: 10px; animation-delay: -1.1s; background: #f2c96b; }
.hero__sparkles i:nth-child(3) { left: 40%; top: 10%; width: 11px; height: 11px; animation-delay: -2.4s; }
.hero__sparkles i:nth-child(4) { right: 16%; top: 30%; width: 16px; height: 16px; animation-delay: -3.3s; }
.hero__sparkles i:nth-child(5) { right: 30%; top: 68%; width: 10px; height: 10px; animation-delay: -4.2s; background: #f2c96b; }
.hero__sparkles i:nth-child(6) { left: 8%;  top: 44%; width: 12px; height: 12px; animation-delay: -5.1s; }
.hero__sparkles i:nth-child(7) { right: 8%; top: 54%; width: 13px; height: 13px; animation-delay: -6s; }
.hero__sparkles i:nth-child(8) { left: 55%; top: 76%; width: 9px;  height: 9px;  animation-delay: -2.9s; background: #f2c96b; }
@media (max-width: 767px) {
  .hero__sparkles i:nth-child(n+4) { display: none; }
}

@keyframes twinkle {
  0%, 72%, 100% { opacity: 0; scale: .55; }
  84%           { opacity: .45; scale: 1; }
}

/* 제목 뒤 은은한 분홍 번짐 */
.hero__copy { position: relative; }
.hero__copy::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; top: 16%; translate: -50% 0;
  width: min(560px, 88%); aspect-ratio: 1.9;
  background: radial-gradient(closest-side, rgba(247, 191, 208, .38), rgba(247, 191, 208, 0));
  pointer-events: none;
}

.hero__copy { max-width: 680px; margin-inline: auto; text-align: center; }
.hero h1 {
  margin-top: 20px;
  font-size: 34px; font-weight: 800; line-height: 1.22;
}
@media (min-width: 640px) { .hero h1 { font-size: 46px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 56px; } }
.hero h1 em {
  font-style: normal; color: var(--primary-ink);
  background: linear-gradient(transparent 62%, var(--primary-soft) 62%);
}
.hero__lead {
  margin: 18px auto 0; max-width: 520px;
  font-size: 17px; color: var(--fg-muted);
}

/* 주소 필드와 버튼 줄의 좌우 끝을 맞춘다.
   align-items:center + fit-content 조합은 두 줄의 폭이 달라져 어긋나 보인다. */
.hero__cta {
  margin: 28px auto 0;
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.hero__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__buttons .btn { padding-inline: 12px; }
/* 아주 좁은 화면에서는 버튼도 한 줄씩 (줄바꿈으로 높이가 들쭉날쭉해지는 것 방지) */
@media (max-width: 399px) {
  .hero__buttons { grid-template-columns: 1fr; }
}

/* 히어로 하단 지표 스트립 */
.hero__strip {
  margin: 40px auto 0; max-width: 720px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  background: var(--base-100); overflow: hidden;
}
.hero__strip div { padding: 16px 12px; text-align: center; min-width: 0; }
.hero__strip div + div { border-left: 1px solid var(--border-light); }
.hero__strip dt { font-size: 12px; font-weight: 700; color: var(--fg-subtle); }
.hero__strip dd {
  margin-top: 2px; font-size: 20px; font-weight: 800;
  color: var(--base-content); font-variant-numeric: tabular-nums;
}
.hero__strip dd.is-text { font-size: 17px; }

/* 좁은 화면에서는 3분할 대신 라벨-값 세로 목록으로 */
@media (max-width: 519px) {
  .hero__strip { grid-template-columns: 1fr; margin-top: 28px; }
  .hero__strip div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 11px 16px; text-align: left;
  }
  .hero__strip div + div { border-left: 0; border-top: 1px solid var(--border-light); }
  .hero__strip dd, .hero__strip dd.is-text { margin-top: 0; font-size: 16px; }
}

/* 서버 주소 복사 — 점선 테두리 대신 좌측 라벨이 붙은 실선 인라인 필드 */
.address { position: relative; }
.address__btn {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--base-100);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.address__btn:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.address__tag {
  display: flex; align-items: center; flex-shrink: 0;
  padding: 0 14px;
  background: var(--primary); color: var(--primary-content);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.address__main {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 2px 10px; flex: 1; padding: 12px 18px;
}
.address__value {
  font-size: 19px; font-weight: 800; color: var(--base-content);
  letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.address__meta { font-size: 13px; color: var(--fg-subtle); }
.address__done {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-content);
  font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.address__btn[data-copied='true'] .address__done { opacity: 1; }
.address__done .icon { width: 16px; height: 16px; }


/* 와이드 배너 — 기울어진 스티커 대신 하단 좌측 캡션 바 */
.hero__media { position: relative; margin-top: 48px; }
.hero__frame {
  position: relative; aspect-ratio: 21 / 9; overflow: hidden;
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #dceaf2 0%, #fbeaf0 100%);
}
@media (max-width: 639px) { .hero__frame { aspect-ratio: 16 / 10; } }
.hero__frame img, .hero__frame video { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   기능 카드
   ========================================================================== */
/* 3열 × 3행 = 9칸 균등 그리드. 카드마다 카테고리 색을 갖는다. */
.features { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }

.card {
  /* 카테고리별로 .k-* 가 이 세 값을 덮어쓴다 */
  --accent: var(--primary);
  --accent-ink: var(--primary-ink);
  --accent-soft: rgba(184, 73, 111, .12);

  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px 22px 24px; border-radius: var(--r-lg);
  background: var(--base-100); border: 1px solid var(--border-light);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
/* 카드 위쪽 카테고리 색 띠 */
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent); opacity: .5;
  transition: opacity .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }

/* 아이콘 칩 — 물방울 모양, 호버 시 살짝 기울며 부푼다 */
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-blob);
  background: var(--accent-soft); color: var(--accent);
  transition: transform .25s ease, border-radius .25s ease;
}
.card:hover .card__icon {
  transform: rotate(-7deg) scale(1.06);
  border-radius: 50% 50% 46% 54% / 54% 46% 54% 46%;
}
.card__icon .icon { width: 21px; height: 21px; }

.card__title { margin-top: 16px; padding-right: 56px; }
.card__title h3 { font-size: 17px; font-weight: 700; }

/* 배지는 카드 우상단 고정 — 제목 줄이 배지 때문에 접히지 않는다 */
.card__badge {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.card__body { margin-top: 8px; font-size: 14px; color: var(--fg-muted); }

/* 카테고리 팔레트 — accent(아이콘)·accent-ink(배지 글씨, 대비 4.5:1 이상)·accent-soft(배경) */
.k-newbie      { --accent: var(--f-newbie);      --accent-ink: #96385a; --accent-soft: rgba(184, 73, 111, .12); }
.k-convenience { --accent: var(--f-convenience); --accent-ink: #4f5d82; --accent-soft: rgba(111, 127, 168, .14); }
.k-farming     { --accent: var(--f-farming);     --accent-ink: #7d5d1e; --accent-soft: rgba(171, 131, 41, .15); }
.k-diving      { --accent: var(--f-diving);      --accent-ink: #2c626f; --accent-soft: rgba(61, 135, 152, .14); }
.k-fishing     { --accent: var(--f-fishing);     --accent-ink: #445887; --accent-soft: rgba(91, 116, 171, .13); }
.k-mining      { --accent: var(--f-mining);      --accent-ink: #665045; --accent-soft: rgba(138, 111, 96, .15); }
.k-combat      { --accent: var(--f-combat);      --accent-ink: #8b3d37; --accent-soft: rgba(179, 82, 75, .13); }
.k-furniture   { --accent: var(--f-furniture);   --accent-ink: #7a5136; --accent-soft: rgba(160, 110, 77, .14); }
.k-cosmetic    { --accent: var(--f-cosmetic);    --accent-ink: #684480; --accent-soft: rgba(138, 95, 168, .13); }

/* ==========================================================================
   커뮤니티 섹션
   ========================================================================== */
/* 좌우 2단은 두 열의 높이가 90px 넘게 어긋나 밑단이 지저분했다.
   머리말 → 링크 3열 → 현황 패널 순서의 세로 스택으로 정렬을 맞춘다. */
.community { display: grid; gap: 28px; }
.community > * { min-width: 0; }

/* 링크 3장을 같은 폭으로 나란히 */
.link-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .link-list { grid-template-columns: repeat(3, 1fr); } }
.link-list a {
  display: flex; align-items: center; gap: 14px; min-width: 0;
  padding: 16px; border-radius: var(--r-md);
  background: var(--base-100); border: 1px solid var(--border-light);
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.link-list a:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blossom); background: var(--primary-soft);
}
.link-list .icon-chip {
  display: grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--r-blob);
  background: var(--primary-soft); color: var(--primary-ink);
}
.link-list a:hover .icon-chip { background: var(--base-100); }
.link-list .icon-chip .icon { width: 20px; height: 20px; }
.link-list__text { min-width: 0; }
.link-list strong { display: block; font-size: 15px; font-weight: 700; color: var(--base-content); }
.link-list span { font-size: 13px; color: var(--fg-muted); }
.link-list .arrow { margin-left: auto; flex-shrink: 0; width: 14px; height: 14px; color: var(--fg-disabled); }

/* 서버 현황 패널 */
.status-panel {
  min-width: 0;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--base-100); border: 1px solid var(--border-light);
}
@media (max-width: 479px) { .status-panel { padding: 20px 16px; } }
.status-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-panel__head h3 { font-size: 17px; font-weight: 800; }
.status-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .status-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 14px; border-radius: var(--r-sm);
  background: var(--base-200); text-align: left;
}
.stat dt { font-size: 12px; font-weight: 700; color: var(--fg-subtle); }
.stat dd { margin-top: 2px; font-size: 19px; font-weight: 800; color: var(--base-content); font-variant-numeric: tabular-nums; }

.board { margin-top: 18px; border-top: 1px solid var(--border-light); }
.board li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--border-light);
}
.board .tag {
  flex-shrink: 0; padding: 2px 8px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary-ink);
}
/* width:0 + flex-grow 로 최소폭 기여를 0으로 만들어야 말줄임이 실제로 동작한다 */
.board .title {
  flex: 1 1 0; width: 0; min-width: 0; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board .date { flex-shrink: 0; font-size: 12px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   이벤트 토스트
   ========================================================================== */
.ticker {
  position: fixed; z-index: 55;
  left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  animation: ticker-in .35s ease;
}
@media (min-width: 640px) {
  .ticker { left: auto; right: 24px; bottom: 24px; width: 384px; max-width: calc(100vw - 48px); }
}
@keyframes ticker-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ticker[hidden] { display: none; }
/* 티커: 그라데이션 대신 잉크 배경 + 좌측 액센트 바 */
.ticker__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-radius: var(--r-md);
  background: var(--neutral); color: var(--neutral-content);
  box-shadow: var(--shadow-lg);
}
.ticker__inner::before {
  content: ''; position: absolute; inset-block: 0; left: 0;
  width: 4px; background: var(--primary-blossom);
}
.ticker__icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--primary-blossom); animation: pulse 2s ease-in-out infinite; }
.ticker__text { flex: 1; min-width: 0; }
.ticker__text strong { display: block; font-size: 14px; font-weight: 800; color: var(--neutral-content); }
.ticker__text span { display: block; font-size: 12px; color: rgba(249, 237, 241, .62); }
.ticker__count { flex-shrink: 0; font-size: 19px; font-weight: 800; color: var(--primary-blossom); font-variant-numeric: tabular-nums; }
.ticker__close {
  flex-shrink: 0; display: grid; place-items: center;
  width: 30px; height: 30px; margin-right: -6px; border-radius: var(--r-xs);
  color: rgba(249, 237, 241, .55);
}
.ticker__close:hover { background: rgba(255, 255, 255, .1); color: var(--neutral-content); }
.ticker__close .icon { width: 14px; height: 14px; }

/* ==========================================================================
   서브 페이지 공통
   ========================================================================== */
/* 서브 페이지 헤드 — 좌측 정렬 + 하단 구분선
   .container 와 함께 쓰이므로 padding 단축 속성 금지 (좌우 패딩이 0으로 덮인다) */
.page-head { padding-block: 44px 28px; border-bottom: 1px solid var(--border-light); }
.page-head h1 { margin-top: 14px; font-size: 30px; font-weight: 800; }
@media (min-width: 640px) { .page-head h1 { font-size: 38px; } }
.page-head p { margin-top: 10px; max-width: 620px; color: var(--fg-muted); }

.panel {
  padding: 24px; border-radius: var(--r-lg);
  background: var(--base-100); border: 1px solid var(--border-light);
}
@media (min-width: 640px) { .panel { padding: 32px; } }

/* 접속 방법 단계 — 좌측 세로 라인으로 연결된 타임라인 */
.steps { margin-top: 28px; display: grid; gap: 0; }
.step {
  position: relative;
  display: flex; gap: 18px;
  padding: 20px 0 20px 4px;
}
.step:not(:last-child)::before {
  content: ''; position: absolute;
  left: 21px; top: 56px; bottom: 0;
  width: 1px; background: var(--border-strong);
}
.step__no {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: var(--r-xs);
  background: var(--primary); color: var(--primary-content);
  font-size: 14px; font-weight: 800;
}
.step h3 { font-size: 17px; font-weight: 700; padding-top: 4px; }
.step p { margin-top: 6px; font-size: 14px; color: var(--fg-muted); }
.step .address { margin-top: 14px; max-width: 380px; }

.info-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

/* 위키 */
/* 탭 — 알약 대신 밑줄형 */
.tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid transparent; }
.tabs a {
  padding: 10px 4px; margin-right: 20px;
  border-bottom: 2px solid transparent;
  font-size: 15px; font-weight: 700; color: var(--fg-subtle);
  transition: color .15s ease, border-color .15s ease;
}
.tabs a:hover { color: var(--base-content); }
.tabs a[aria-current='page'] { color: var(--primary-ink); border-bottom-color: var(--primary); }

.wiki-grid { margin-top: 32px; display: grid; gap: 12px; }
@media (min-width: 640px) { .wiki-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wiki-grid { grid-template-columns: repeat(4, 1fr); } }
.wiki-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: var(--r-lg);
  background: var(--base-100); border: 1px solid var(--border-light);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wiki-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blossom); box-shadow: var(--shadow-blossom);
}
.wiki-card .icon-chip {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-blob);
  background: var(--primary-soft); color: var(--primary-ink);
  transition: transform .25s ease;
}
.wiki-card:hover .icon-chip { transform: rotate(-7deg) scale(1.06); }
.wiki-card .icon-chip .icon { width: 18px; height: 18px; }
.wiki-card h3 { font-size: 16px; font-weight: 700; }
.wiki-card p { font-size: 13px; color: var(--fg-muted); }

/* ==========================================================================
   위키 문서 (사이드바 + 본문)
   ========================================================================== */
.docs { display: grid; gap: 28px; padding-block: 32px 64px; align-items: start; }
@media (min-width: 1024px) {
  .docs { grid-template-columns: 236px minmax(0, 1fr); gap: 48px; padding-block: 44px 88px; }
}

/* --- 사이드바 --- */
.docs__side { min-width: 0; }
@media (min-width: 1024px) { .docs__side { position: sticky; top: 96px; } }

.docs__toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--base-100); border: 1px solid var(--border-strong);
  font-size: 15px; font-weight: 700; color: var(--base-content);
}
.docs__toggle .chevron { margin-left: auto; width: 14px; height: 14px; transition: transform .2s ease; }
.docs__toggle[aria-expanded='true'] .chevron { transform: rotate(180deg); }
@media (min-width: 1024px) { .docs__toggle { display: none; } }

.docs__nav { display: none; }
.docs__nav[data-open='true'] { display: block; margin-top: 8px; }
@media (min-width: 1024px) { .docs__nav { display: block; margin-top: 0; } }

/* 그룹 제목 — 꽃잎 점 + 구분선으로 묶음을 분명히 한다 */
.docs__group {
  display: flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 14px 0 10px;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--fg-subtle);
}
.docs__group::before {
  content: ''; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-blossom);
}
.docs__nav > .docs__group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* 세로 레일 + 항목 */
.docs__nav > ul {
  display: grid; gap: 2px;
  margin-left: 3px; padding-left: 0;
  border-left: 1px solid var(--border-light);
}
.docs__nav a {
  display: flex; align-items: center; gap: 10px;
  margin-left: -1px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px; font-weight: 600; color: var(--fg-muted);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.docs__nav a .icon { width: 16px; height: 16px; color: var(--fg-disabled); }
.docs__nav a:hover {
  background: var(--base-100); color: var(--base-content);
  border-left-color: var(--border-strong);
}
.docs__nav a:hover .icon { color: var(--fg-muted); }

/* 현재 문서 — 흰 카드 + 분홍 레일 바 + 굵은 글씨 */
.docs__nav a[aria-current='page'] {
  background: var(--base-100);
  border-left-color: var(--primary);
  color: var(--primary-ink); font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.docs__nav a[aria-current='page'] .icon { color: var(--primary); }

/* --- 본문 --- */
.docs__main { min-width: 0; }
.docs__crumb { font-size: 13px; color: var(--fg-subtle); }
.docs__crumb a { color: var(--primary-ink); font-weight: 600; }
.docs__title { margin-top: 6px; font-size: 30px; font-weight: 800; }
@media (min-width: 640px) { .docs__title { font-size: 36px; } }
.docs__desc { margin-top: 8px; font-size: 16px; color: var(--fg-muted); }

.doc-body { margin-top: 28px; }
.doc-body > * + * { margin-top: 18px; }
.doc-h {
  margin-top: 40px !important; padding-top: 4px;
  font-size: 21px; font-weight: 800;
}
.doc-p { font-size: 15.5px; color: var(--fg); line-height: 1.75; }

.doc-list { display: grid; gap: 8px; counter-reset: docnum; }
.doc-list li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--fg); line-height: 1.7;
}
.doc-list li::before {
  content: ''; position: absolute; left: 6px; top: 10px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary-blossom);
}
.doc-list--num li { counter-increment: docnum; }
.doc-list--num li::before {
  content: counter(docnum); left: 0; top: 0;
  width: 20px; height: 20px; border-radius: var(--r-xs);
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}

/* 콜아웃 */
.callout {
  display: flex; gap: 12px;
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--base-100);
}
.callout .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.callout p { font-size: 14.5px; line-height: 1.7; color: var(--fg); }
.callout--info { border-color: #cfdcea; background: #f4f8fc; }
.callout--info .icon { color: var(--info); }
.callout--tip { border-color: var(--primary-blossom); background: var(--primary-soft); }
.callout--tip .icon { color: var(--primary); stroke: none; }
.callout--warn { border-color: #ecd6a8; background: #fdf6e7; }
.callout--warn .icon { color: var(--warning); }
.callout--danger { border-color: #eec4c0; background: #fdf1f0; }
.callout--danger .icon { color: var(--error); }

/* 표 */
.doc-table__search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; margin-bottom: 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--base-100);
}
.doc-table__search:focus-within { border-color: var(--primary); }
.doc-table__search .icon { width: 16px; height: 16px; color: var(--fg-disabled); }
.doc-table__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }

.doc-table__scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  background: var(--base-100);
}
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th {
  padding: 12px 16px; text-align: left; white-space: nowrap;
  background: var(--base-200); color: var(--fg-muted);
  font-size: 12.5px; font-weight: 700;
  border-bottom: 1px solid var(--border-light);
}
.doc-table td {
  padding: 12px 16px; vertical-align: top;
  color: var(--fg); line-height: 1.6;
  border-bottom: 1px solid var(--border-light);
}
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td.is-key {
  white-space: nowrap; font-weight: 700; color: var(--primary-ink);
  font-feature-settings: 'tnum';
}
.doc-table__empty { padding: 20px; text-align: center; font-size: 14px; color: var(--fg-subtle); }
.doc-note { margin-top: 10px; font-size: 12.5px; color: var(--fg-subtle); }

/* FAQ */
.faq { display: grid; gap: 8px; }
.faq__item {
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  background: var(--base-100); overflow: hidden;
}
.faq__item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 700; color: var(--base-content);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span { flex: 1; min-width: 0; }
.faq__item summary .icon { flex-shrink: 0; width: 15px; height: 15px; color: var(--fg-disabled); transition: transform .2s ease; }
.faq__item[open] summary { color: var(--primary-ink); }
.faq__item[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq__item p {
  padding: 0 18px 16px; font-size: 14.5px; line-height: 1.75; color: var(--fg-muted);
}

.doc-cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .doc-cards { grid-template-columns: repeat(2, 1fr); } }

/* 이전/다음 */
.docs__pager {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: grid; gap: 10px;
}
@media (min-width: 560px) { .docs__pager { grid-template-columns: 1fr 1fr; } }
.docs__pager-link {
  display: block; padding: 14px 18px;
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  background: var(--base-100);
  transition: border-color .15s ease, background-color .15s ease;
}
.docs__pager-link:hover { border-color: var(--primary-blossom); background: var(--primary-soft); }
.docs__pager-link span { font-size: 12px; color: var(--fg-subtle); }
.docs__pager-link strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--base-content); }
.docs__pager-link--next { text-align: right; }

/* ==========================================================================
   커뮤니티 게시판
   ========================================================================== */
.board-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.board-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.board-tabs a {
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 700; color: var(--fg-muted);
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.board-tabs a:hover { background: var(--base-100); color: var(--base-content); }
.board-tabs a[aria-current='page'] {
  background: var(--primary); color: var(--primary-content);
  box-shadow: var(--shadow-primary);
}
/* 탭 옆 글 개수 */
.board-tabs b {
  margin-left: 6px; font-size: 11.5px; font-weight: 700;
  color: var(--fg-disabled); font-variant-numeric: tabular-nums;
}
.board-tabs a[aria-current='page'] b { color: rgba(255, 255, 255, .8); }

/* 목록 위 요약 줄 */
.board-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
/* flex 로 두면 "전체 100 개의 글" 처럼 숫자 양옆이 벌어진다. 일반 텍스트 흐름 유지. */
.board-meta p { font-size: 13px; color: var(--fg-muted); }
.board-meta b { font-weight: 800; color: var(--primary-ink); }
.board-meta span {
  margin-left: 12px;
  font-size: 12.5px; color: var(--fg-subtle); font-variant-numeric: tabular-nums;
}

.board-empty { text-align: center; display: grid; gap: 14px; justify-items: center; }
.board-empty p { color: var(--fg-muted); }

.board-search {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; flex: 0 1 260px;
  padding: 8px 14px; border-radius: var(--r-md);
  background: var(--base-100); border: 1px solid var(--border-strong);
}
.board-search:focus-within { border-color: var(--primary); }
.board-search .icon { width: 16px; height: 16px; color: var(--fg-disabled); }
.board-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }

/* 글 목록 */
.post-list {
  border-top: 2px solid var(--border-strong);
  background: var(--base-100);
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
}
.post-row {
  display: grid; gap: 4px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
}
/* 글번호는 넓은 화면에서만 */
.post-row__no { display: none; }
@media (min-width: 768px) {
  .post-row { grid-template-columns: 54px 78px minmax(0, 1fr) auto; }
  .post-row__no {
    display: grid; place-items: center;
    font-size: 12.5px; color: var(--fg-disabled); font-variant-numeric: tabular-nums;
  }
  .post-row__no .pin { width: 14px; height: 14px; stroke: none; color: var(--primary); }
}
.post-row:last-child { border-bottom: 0; }
.post-row.is-pinned { background: var(--primary-soft); }
.post-row:hover { background: var(--base-200); }
.post-row.is-pinned:hover { background: #f8d0df; }

.post-row__cat {
  justify-self: start;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 800; white-space: nowrap; text-align: center;
}
/* 글번호 열이 생기는 넓은 화면에서는 배지도 열 가운데로 */
@media (min-width: 768px) { .post-row__cat { justify-self: center; } }
.c-notice   { background: rgba(184, 73, 111, .14); color: #96385a; }
.c-free     { background: rgba(111, 127, 168, .16); color: #4f5d82; }
.c-build    { background: rgba(79, 122, 88, .16); color: #3d6146; }
.c-question { background: rgba(171, 131, 41, .18); color: #7d5d1e; }

.post-row__title {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 15px; font-weight: 600; color: var(--base-content);
}
.post-row__title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row__title:hover > span { color: var(--primary-ink); text-decoration: underline; }
.post-row__title .pin { width: 14px; height: 14px; flex-shrink: 0; stroke: none; color: var(--primary); }
.post-row__cnt {
  flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--primary);
}
.post-row__meta {
  grid-column: 2 / -1;
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 12.5px; color: var(--fg-subtle);
}
@media (min-width: 768px) {
  .post-row__meta { grid-column: auto; justify-content: flex-end; white-space: nowrap; }
}
.post-row__author { font-weight: 700; color: var(--fg-muted); }
@media (max-width: 479px) { .post-row__views { display: none; } }

/* 현재 페이지를 중심으로 연속된 9칸 + 다음 / 끝으로 */
.pager {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
}
.pager a {
  display: grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  background: var(--base-100); border: 1px solid var(--border-light);
  transition: border-color .15s ease, color .15s ease;
}
.pager a:hover { border-color: var(--primary-blossom); color: var(--primary-ink); }
.pager a[aria-current='page'] {
  background: var(--primary); color: var(--primary-content); border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
/* 다음 / 끝으로 — 숫자와 구분되게 살짝 띄우고 글자색을 낮춘다 */
.pager__edge { padding: 0 14px; color: var(--fg-subtle); font-size: 13.5px; }
.pager__edge--first { margin-left: 8px; }
.pager__edge.is-off {
  opacity: .45; pointer-events: none; background: var(--base-200); border-color: transparent;
}

/* 글 상세 */
.post-wrap { max-width: 820px; }
.post__head { padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
.post__title { margin-top: 10px; font-size: 24px; font-weight: 800; }
@media (min-width: 640px) { .post__title { font-size: 28px; } }
.post__meta {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 13px; color: var(--fg-subtle);
}
.post__meta b { color: var(--fg-muted); font-weight: 700; }
.post__body { margin-top: 22px; }
.post__body p { min-height: 1em; font-size: 15.5px; line-height: 1.8; color: var(--fg); }

/* 댓글 */
.comments { margin-top: 16px; }
.comments__title { font-size: 16px; font-weight: 800; }
.comments__title b { color: var(--primary); }
.comments__list { margin-top: 14px; display: grid; gap: 2px; }
.comments__list li { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.comments__meta { display: flex; gap: 10px; font-size: 13px; color: var(--fg-subtle); }
.comments__meta b { color: var(--base-content); font-weight: 700; }
.comments__body { margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--fg); }
.comments__empty { margin-top: 14px; font-size: 14px; color: var(--fg-subtle); }

.comment-form { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-form .field--grow { flex: 1 1 220px; min-width: 0; }
.comment-form input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--base-100); outline: none; font-size: 14px;
}
.comment-form input:focus { border-color: var(--primary); }

/* 글쓰기 폼 */
.write-form { display: grid; gap: 16px; }
.write-form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .write-form__row { grid-template-columns: 180px 1fr; } }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--fg-muted); }
.write-form input, .write-form select, .write-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--base-100); color: var(--fg);
  font: inherit; font-size: 15px; outline: none;
}
.write-form textarea { resize: vertical; line-height: 1.7; }
.write-form input:focus, .write-form select:focus, .write-form textarea:focus { border-color: var(--primary); }
.write-form__actions { display: flex; justify-content: flex-end; gap: 8px; }

.form-error {
  margin-bottom: 14px; padding: 12px 16px;
  border: 1px solid #eec4c0; border-radius: var(--r-md);
  background: #fdf1f0; color: #a8433a;
  font-size: 14px; font-weight: 600;
}

/* ==========================================================================
   로그인 · 계정
   ========================================================================== */
.avatar {
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 12px; font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 헤더 우측 계정 칩 */
.header__me {
  display: none; align-items: center; gap: 8px;
  padding: 5px 8px 5px 6px; border-radius: var(--r-full);
  background: var(--base-100); border: 1px solid var(--border-light);
}
@media (min-width: 1024px) { .header__me { display: flex; } }
.header__me-name {
  max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; color: var(--base-content);
}
.header__me button {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  color: var(--fg-disabled); transition: background-color .15s ease, color .15s ease;
}
.header__me button:hover { background: var(--base-200); color: var(--error); }
.header__me .icon { width: 12px; height: 12px; }
.header__login { display: none; }
@media (min-width: 1024px) { .header__login { display: inline-flex; } }

/* 모바일 메뉴 계정 */
.drawer__me { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.drawer__me b { font-size: 15.5px; color: var(--base-content); }
.drawer__logout {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--fg);
}
.drawer__logout:hover { background: var(--base-200); color: var(--error); }
.drawer__logout .icon { width: 17px; height: 17px; color: var(--fg-disabled); }

/* 로그인 페이지 */
.auth-wrap { display: grid; place-items: center; }
.auth-card {
  max-width: 440px; margin-inline: auto; text-align: center;
  padding: 36px 28px; border-radius: var(--r-xl);
  background: var(--base-100); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}
.auth-card__icon {
  display: grid; place-items: center; margin-inline: auto;
  width: 56px; height: 56px; border-radius: var(--r-blob);
  background: var(--primary-soft); color: var(--primary);
}
.auth-card__icon .icon { width: 26px; height: 26px; stroke: none; }
.auth-card h1 { margin-top: 18px; font-size: 24px; font-weight: 800; }
.auth-card__lead { margin-top: 10px; font-size: 14.5px; color: var(--fg-muted); }
/* 카드는 가운데 정렬이지만 오류 문구는 여러 줄이 될 수 있어 왼쪽 정렬이 읽기 좋다.
   .form-error 기본값에는 margin-top 이 없어 윗 문단에 붙어버리므로 여기서 리듬을 맞춘다. */
.auth-card .form-error { margin-top: 22px; margin-bottom: 0; text-align: left; }
.auth-card__discord { width: 100%; margin-top: 24px; }
.auth-card__note { margin-top: 12px; font-size: 12.5px; color: var(--fg-subtle); }
.auth-card__setup { margin-top: 22px; text-align: left; }
.auth-card__back {
  display: inline-block; margin-top: 22px;
  font-size: 13px; font-weight: 600; color: var(--primary-ink);
}
.auth-card__back:hover { text-decoration: underline; }

.auth-form { margin-top: 20px; display: grid; gap: 14px; text-align: left; }
.auth-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--fg-muted); }
.auth-form input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--base-100); font: inherit; font-size: 15px; outline: none;
}
.auth-form input:focus { border-color: var(--primary); }

/* 글쓴이 표시 (닉네임 입력 대신) */
.write-form__author {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--base-200);
}
.write-form__author b { font-size: 14.5px; color: var(--base-content); }
.tag-staff {
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--primary); color: var(--primary-content);
  font-size: 10.5px; font-weight: 800;
}

/* 글 수정/삭제 */
.post__edited { color: var(--primary-ink); font-weight: 600; }
.post__actions { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.post__actions a,
.post__actions button {
  padding: 3px 10px; border-radius: var(--r-xs);
  font-size: 12.5px; font-weight: 700; color: var(--fg-subtle);
  transition: background-color .15s ease, color .15s ease;
}
.post__actions a:hover { background: var(--primary-soft); color: var(--primary-ink); }
.post__actions button:hover { background: #fdf1f0; color: var(--error); }

/* 수정 화면에서 바꿀 수 없는 값 (게시판 등) */
.write-form__fixed {
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--base-200); color: var(--fg-muted);
  font-size: 15px;
}

/* 로그인 안내 목록 */
.auth-points { margin-top: 22px; display: grid; gap: 10px; text-align: left; }
.auth-points li { display: flex; gap: 10px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; }
.auth-points .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; color: var(--success); }
.auth-points b { color: var(--base-content); font-weight: 700; }
.auth-card code {
  padding: 1px 5px; border-radius: 4px;
  background: rgba(61, 43, 51, .07); font-size: .92em;
}

.comment-login {
  margin-top: 18px; padding: 16px; border-radius: var(--r-md);
  background: var(--base-200); text-align: center;
  font-size: 14px; color: var(--fg-muted);
}
.comment-login a { font-weight: 700; color: var(--primary-ink); }
.comment-login a:hover { text-decoration: underline; }

/* 플레이어 검색 */
.search {
  display: flex; gap: 8px; max-width: 520px; margin-top: 20px;
  padding: 6px; border-radius: var(--r-md);
  background: var(--base-100); border: 1px solid var(--border-strong);
}
.search:focus-within { border-color: var(--primary); }
.search input {
  flex: 1; min-width: 0; padding: 10px 12px;
  border: 0; background: none; outline: none; font-size: 15px;
}
.search input::placeholder { color: var(--fg-disabled); }

.rank-grid { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 768px) { .rank-grid { grid-template-columns: repeat(2, 1fr); } }
.rank li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--border-light);
}
.rank li:last-child { border-bottom: 0; }
.rank__no {
  display: grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: var(--r-xs);
  background: var(--base-200); color: var(--fg-muted);
  font-size: 12px; font-weight: 800;
}
.rank li:nth-child(1) .rank__no { background: var(--medal-gold-bg); color: var(--medal-gold); }
.rank__face { width: 28px; height: 28px; border-radius: var(--r-xs); background: var(--base-300); }
.rank__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__score { font-size: 14px; font-weight: 800; color: var(--primary-ink); font-variant-numeric: tabular-nums; }

/* 이벤트 일정 */
/* 이벤트 — 좌측 굵은 바 대신 상태 점 + 실선 카드 */
.event-list { display: grid; gap: 8px; margin-top: 28px; }
.event {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 20px 16px 32px; border-radius: var(--r-md);
  background: var(--base-100); border: 1px solid var(--border-light);
}
.event::before {
  content: ''; position: absolute; left: 16px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--primary);
}
.event[data-tone='error']::before { background: var(--error); }
.event[data-tone='warning']::before { background: var(--warning); }
.event[data-tone='info']::before { background: var(--info); }
.event__when { flex-shrink: 0; width: 148px; }
.event__when b { display: block; font-size: 14px; font-weight: 800; color: var(--base-content); }
.event__when span { font-size: 13px; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.event__what h3 { font-size: 16px; font-weight: 700; }
.event__what p { font-size: 13px; color: var(--fg-muted); }
@media (max-width: 639px) {
  .event { flex-direction: column; align-items: flex-start; gap: 8px; }
  .event__when { width: auto; }
}

/* ==========================================================================
   약관 · 개인정보처리방침
   머리말과 본문이 같은 폭·같은 좌우 끝을 쓰도록 한 컨테이너로 묶는다.
   (예전에는 머리말은 좌측 정렬, 본문 패널은 가운데 정렬이라 어긋나 보였다)
   ========================================================================== */
.legal { max-width: 820px; padding-block: 44px 72px; }

.legal__head { padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.legal__head h1 { margin-top: 14px; font-size: 30px; font-weight: 800; }
@media (min-width: 640px) { .legal__head h1 { font-size: 36px; } }
.legal__updated { margin-top: 8px; font-size: 13px; color: var(--fg-subtle); }

/* 목차 */
.legal__toc {
  margin-top: 24px; padding: 20px 24px;
  border-radius: var(--r-lg); background: var(--base-100);
  border: 1px solid var(--border-light);
}
.legal__toc > p {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--fg-subtle);
}
.legal__toc > p::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-blossom);
}
.legal__toc ol { margin-top: 12px; display: grid; gap: 8px; counter-reset: toc; }
@media (min-width: 640px) { .legal__toc ol { grid-template-columns: repeat(2, 1fr); gap: 8px 24px; } }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex; gap: 8px;
  font-size: 14px; color: var(--fg-muted); transition: color .15s ease;
}
.legal__toc a::before {
  content: counter(toc); flex-shrink: 0;
  min-width: 18px; text-align: right;
  font-weight: 700; color: var(--primary-blossom);
}
.legal__toc a:hover { color: var(--primary-ink); }

/* 본문 */
.legal__body { margin-top: 8px; }
.legal__body section { padding-top: 36px; scroll-margin-top: 96px; }
.legal__body h2 {
  font-size: 18px; font-weight: 800; color: var(--base-content);
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.legal__body p { margin-top: 12px; font-size: 15px; line-height: 1.85; color: var(--fg); }

.legal__list { margin-top: 12px; display: grid; gap: 9px; counter-reset: legal; }
.legal__list li {
  counter-increment: legal;
  position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.8; color: var(--fg);
}
.legal__list li::before {
  content: counter(legal);
  position: absolute; left: 0; top: 4px;
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: var(--r-xs);
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 11px; font-weight: 800;
}

.legal__foot {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: 13.5px; color: var(--fg-subtle);
}
.legal__foot a { color: var(--primary-ink); font-weight: 600; }
.legal__foot a:hover { text-decoration: underline; }

/* 404 */
.notfound { flex: 1; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.notfound h1 { font-size: 60px; font-weight: 800; color: var(--primary); letter-spacing: -.04em; }
.notfound p { margin-top: 12px; color: var(--fg-muted); }
.notfound .btn { margin-top: 24px; }

/* ==========================================================================
   푸터
   ========================================================================== */
/* 브랜드 한 줄 + 그 아래 사업자 정보 / 약관 */
.footer {
  margin-top: auto;
  background: var(--base-100); border-top: 1px solid var(--border-light);
}
/* 브랜드·사업자·약관을 한 덩어리로. 내부 구분선 없음. */
.footer__inner { padding-block: 30px; display: grid; gap: 18px; }
.footer__brandline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer__inner .logo__mark { width: 30px; height: 30px; }
.footer__inner .logo__text { font-size: 17px; }
.footer__desc { font-size: 13px; color: var(--fg-subtle); }

/* 식별 정보 / 연락처를 각각 한 줄로 묶는다.
   7개를 한 흐름에 늘어놓으면 라벨과 값이 줄 경계에서 갈라져 읽기 나쁘다. */
.footer__biz { display: grid; gap: 7px; }
.footer__biz-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0;
  font-size: 12.5px; line-height: 1.6; color: var(--fg-subtle);
}
/* 한 항목은 라벨+값이 절대 갈라지지 않는다 */
.footer__biz-row span {
  display: inline-flex; gap: 6px; white-space: nowrap;
  padding-right: 14px; margin-right: 14px;
  border-right: 1px solid var(--border-light);
}
.footer__biz-row span:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.footer__biz b { flex-shrink: 0; font-weight: 700; color: var(--fg-muted); }
.footer__biz a { font-size: 12.5px; color: var(--fg-subtle); transition: color .15s ease; }
.footer__biz a:hover { color: var(--primary-ink); }
/* 좁은 화면에서는 구분선을 빼고 한 항목씩 쌓는다 */
@media (max-width: 639px) {
  .footer__biz-row span {
    padding-right: 0; margin-right: 0; border-right: 0;
    white-space: normal; flex: 0 0 100%;
  }
}

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between;
  font-size: 12px; color: var(--fg-subtle);
}
.footer__policy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer__policy a { font-size: 12px; font-weight: 600; color: var(--fg-muted); transition: color .15s ease; }
.footer__policy a:hover { color: var(--primary-ink); }
.footer__policy i { font-style: normal; color: var(--fg-disabled); }

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
