/* 메이플 오리진 홈페이지 — 메이플랜드(maple.land) 화면 체계를 따른다(2026-10-17 사용자 지시 "메이플랜드처럼 짜치는 것 없이").
   색·크기는 메이플랜드 어두운 판의 값(바탕 #0a1018, 판 #0e1620, 글 #e2ecf5/#90aac4/#5a7a94, 꼬리표 색, 본문 976px, 줄 40px …).
   다른 점: 강조색은 메이플랜드의 파랑 대신 우리 단풍 주황, 로고·그림은 우리 것. */
:root {
  --bg: #0a1018;
  --panel: #0e1620;
  --panel-2: #182636;
  --elev: #1c2c3e;
  --hover: #243a50;
  --line: #283c52;
  --sep: rgba(40, 60, 82, .5);
  --fg: #e2ecf5;
  --fg-2: #90aac4;
  --fg-3: #7290aa;  /* 10-19 전수조사: #5a7a94 는 바탕 대비 4.2:1·판 3.4:1 로 날짜·보조 글이 잘 안 읽힘 → 판 위 4.5:1 이상 */
  --link: #6cb4ff;
  --brand: #f39a3d;
  --brand-hover: #e2862a;
  --brand-text: #ffad5c;
  --brand-ink: #0e1620;
  --new: #ef4444;
  --sans: "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --top-h: 248px;
  --wrap: 976px;
  --shell: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);     /* 부드럽게 멈추는 움직임(대부분의 반응) */
  --discord: 88, 101, 242;                  /* 디스코드 공식 색 #5865F2 */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; font-weight: 350; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { flex: 1; display: flex; flex-direction: column; }  /* 안쪽 쪽의 왼쪽 메뉴가 바닥까지 닿게 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(243, 154, 61, .35); color: #fff; }
html { scrollbar-color: #283c52 var(--bg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------ 꼬리표(메이플랜드 badge) */
.badge { display: inline-flex; align-items: center; flex: none; white-space: nowrap; height: 20px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 400; line-height: 1; }
.badge-hot { background: #3d2208; color: #ffad5c; }
.badge-update { background: #3e2d00; color: #ffd850; }
.badge-warn { background: #3d2e0a; color: #f1e4c6; }
.badge-danger { background: #3a1414; color: #ff8888; }
.badge-info { background: #162c4e; color: #6cb4ff; }
.badge-success { background: #143220; color: #68e078; }
.badge-neutral { background: #1a2c3e; color: #88a4bc; }
.new { flex: none; margin-left: 4px; font-size: 10px; font-weight: 700; color: var(--new); line-height: 1; }

/* ------------------------------------------------------------ 단추 */
/* 폰에서 빨리 두 번 누르면 확대되지 않고 두 번 눌리게(10-19 "모바일에서 잘 안눌러지고") */
a, button, input, select, summary, label { touch-action: manipulation; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg-2); font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease); }
.btn:hover { background: var(--hover); border-color: #36506b; color: var(--fg); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn-brand:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn.is-off { cursor: default; opacity: .6; }
.btn.is-off:active { transform: none; }
.btn.is-off:hover { background: var(--panel); color: var(--fg-2); }
.btn-brand.is-off:hover { background: var(--brand); color: var(--brand-ink); }

/* ------------------------------------------------------------ 머리(윗 그림 띠 + 메뉴) */
.top { position: relative; z-index: 50; height: var(--top-h); background: var(--panel); border-bottom: 1px solid var(--line); }
.top-art { position: absolute; inset: 0; overflow: hidden; }
.top-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.82) brightness(.86); }
/* 메이플랜드 실측(10-18): 메뉴 줄 80px 뒤에 #080e18 70% 띠. 그 아래는 우리 그림(오르비스)이 더 쨍해서 30%로 한 번 누르고 바닥 쪽은 쪽 바탕으로 녹인다 */
.top-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 24, .7) 0, rgba(8, 14, 24, .7) 80px, rgba(8, 14, 24, .3) 80px, rgba(8, 14, 24, .26) 62%, rgba(8, 14, 24, .62) 100%); }
.top-bar { position: relative; z-index: 2; height: 80px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; align-items: start;
  max-width: 1345px; margin: 0 auto; padding: 0 24px; }
.top-logo { margin-top: 10px; justify-self: start; transition: opacity .2s ease, transform .3s var(--ease); }
.top-logo:hover { opacity: .9; transform: translateY(-1px) scale(1.02); }
.top-logo img { height: 92px; width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.top-nav { justify-self: center; width: min(100%, 1015px); }
.top-menu { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.top-item { display: flex; flex-direction: column; align-items: center; gap: 34px; padding-top: 15px; }
.top-link { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px; font-size: 23px; font-weight: 500; line-height: 1.5;
  color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .55); transition: background .2s ease, color .2s ease; }
.top-item:hover .top-link, .top-link:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; }
.top-item.is-on .top-link { color: #fff; }
.top-sub { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.top-sub a, .top-sub span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .8); white-space: nowrap; }
.top-sub a { transition: color .15s ease; }
.top-sub a:hover { color: #fff; }
.top-sub span { color: rgba(255, 255, 255, .4); }
.top-sub small { font-size: 11px; color: rgba(255, 255, 255, .4); }
.ext { width: 12px; height: 12px; opacity: .6; }
.dot { display: block; flex: none; align-self: flex-start; width: 6px; height: 6px; margin: 2px 0 0 -2px; border-radius: 50%; background: var(--new); box-shadow: 0 0 4px rgba(239, 68, 68, .6); }
.top-link .dot { margin-top: 4px; }
/* 메뉴에 올리면 머리 전체가 어두운 판이 되고 모든 하위 메뉴가 열린다(메이플랜드식 큰 메뉴) */
.top::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: 1; background: rgba(10, 16, 24, .94); opacity: 0; pointer-events: none;
  border-bottom: 1px solid var(--line); box-shadow: 0 28px 48px -16px rgba(0, 0, 0, .65); transition: opacity .2s ease; }
.top:has(.top-nav:hover)::before, .top:has(.top-nav:focus-within)::before, .top.menu-open::before { opacity: 1; height: max(100%, 296px); }
.top-nav:hover .top-sub, .top-nav:focus-within .top-sub, .top.menu-open .top-sub { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.top-end { justify-self: end; display: flex; align-items: center; gap: 8px; padding-top: 22px; }
.top-burger, .top-dim { display: none; }

/* ------------------------------------------------------------ 홈 */
.home { display: flex; flex-direction: column; gap: 24px; padding-block: 31px 64px; }
.slides { position: relative; }
.slides-view { position: relative; aspect-ratio: 16 / 5; border-radius: 8px; overflow: hidden; background: var(--panel); touch-action: pan-y pinch-zoom;
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .7s ease; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; -webkit-user-drag: none; user-select: none; }
.slides-arrow { position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background-color .15s ease, transform .25s var(--ease), opacity .25s ease; }
.slides-arrow:hover { background: rgba(0, 0, 0, .5); transform: scale(1.08); }
.slides-arrow:active { transform: scale(.94); transition-duration: .08s; }
@media (hover: hover) { .slides-arrow { opacity: .75; } .slides:hover .slides-arrow { opacity: 1; } }
.slides-arrow.is-prev { left: 8px; }
.slides-arrow.is-next { right: 8px; }
.slides-arrow svg { width: 20px; height: 20px; }
.slides-bar { position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; }
.slides-dots { display: flex; }
.slides-dots button, .slides-pause { border: 0; background: none; padding: 6px 3px; cursor: pointer; display: grid; place-items: center; }
.slides-dots button { position: relative; }
.slides-dots button::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .3s var(--ease), background-color .3s ease; }
.slides-dots button:hover::before { background: rgba(255, 255, 255, .75); }
.slides-dots button[aria-current="true"]::before { width: 24px; background: #fff; }
/* 다음 장까지 남은 시간(5초)을 지금 점 안에 차오르는 막대로 */
.slides.is-run .slides-dots button[aria-current="true"]::before { background: rgba(255, 255, 255, .4); }
.slides-dots button::after { content: ""; position: absolute; left: 3px; top: 6px; width: 24px; height: 6px; border-radius: 999px; background: #fff;
  transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.slides.is-run .slides-dots button[aria-current="true"]::after { opacity: 1; animation: slide-fill 5s linear forwards; }
@keyframes slide-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slides-pause { width: 18px; opacity: .7; }
.slides-pause:hover { opacity: 1; }
.slides-pause i { display: block; width: 6px; height: 7px; border: solid #fff; border-width: 0 2px; }
.slides-pause[aria-pressed="true"] i { width: 0; height: 0; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; }

.board { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.card { background: var(--panel); border-radius: 8px; overflow: hidden; min-width: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.card-head h2 { font-size: 16px; font-weight: 600; }
.more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--fg-3); transition: color .2s ease; }
.more:hover { color: var(--brand-text); }
.more svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.more:hover svg { transform: translateX(2px); }
.rows { list-style: none; }
.rows li + li { border-top: 1px solid var(--sep); }
.rows a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; min-width: 0; transition: background .3s ease; }
.rows a:hover { background: var(--hover); }
.row-title { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 14px; }
.row-title b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.rows a:hover .row-title b { color: #fff; }
.row-date { flex: none; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px 28px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--fg-3); }
.empty .btn { margin-top: 4px; }
.empty svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: var(--fg-3); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

.quicks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* 카드마다 강조색(--q = r, g, b)을 두고, 올리면 그 색으로 아이콘 칩·테두리·위쪽 빛이 살아난다 */
.quick { --q: 243, 154, 61; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 24px 16px 22px; border-radius: 10px; background: var(--panel); text-align: center; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.quick::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(120% 90% at 50% -10%, rgba(var(--q), .16), transparent 62%); }
.quick-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; color: var(--fg-2);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.quick-ico svg { width: 22px; height: 22px; }
.quick b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.quick-desc { font-size: 12px; color: var(--fg-3); transition: color .35s var(--ease); }
a.quick:hover { transform: translateY(-3px); background: #111c28;
  box-shadow: inset 0 0 0 1px rgba(var(--q), .32), 0 14px 30px -12px rgba(0, 0, 0, .75); }
a.quick:hover::before { opacity: 1; }
a.quick:hover .quick-ico { transform: translateY(-1px) scale(1.06); color: rgb(var(--q)); background: rgba(var(--q), .14); box-shadow: inset 0 0 0 1px rgba(var(--q), .3); }
a.quick:hover .quick-desc { color: var(--fg-2); }
a.quick:active { transform: translateY(-1px) scale(.985); transition-duration: .1s; }
.quick-discord { --q: var(--discord); }
a.quick-discord:hover .quick-ico { color: #8c95ff; }
/* 아직 주소가 없는 카드: 설명은 그대로 두고 오른쪽 위에 '준비 중' */
.quick.is-off { cursor: default; }
.quick.is-off b { color: var(--fg-2); }
.quick.is-off .quick-ico { color: var(--fg-3); }
.quick-soon { position: absolute; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 500;
  color: var(--fg-3); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* 게임 시작: 메이플랜드 '월드 플레이' 카드와 같은 방식 — 다른 카드와 같은 크기·같은 글꼴, 바탕만 브랜드색으로 채움(실측 10-18:
   #4a94e0 바탕·짙은 글자·14px 600). 우리는 단풍 주황 + 아이콘 자리에 머리 로고 스티커.
   (10-18 사용자: 음원 재생 단추·GAME START 금화·옛 로그인 단추 모두 "짜친다"/"화면과 안 어울린다") */
.quick-play { --q: 255, 255, 255; gap: 3px; padding-top: 18px; color: #1d1206;
  background: linear-gradient(180deg, #ffb057, #f3922f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -14px rgba(243, 154, 61, .7); }
.quick-play img { width: auto; height: 54px; margin-bottom: 4px; filter: drop-shadow(0 3px 4px rgba(110, 50, 0, .32));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.quick-play b { color: #1d1206; font-weight: 700; }
.quick-play .quick-desc { color: rgba(29, 18, 6, .7); }
/* 올리면: 조금 밝아지고, 로고가 까딱, 빛이 한 번 지나감 */
.quick-play::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 250% 100%; background-position: 130% 0;
  background-image: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%); background-repeat: no-repeat; }
a.quick-play:hover { background: linear-gradient(180deg, #ffbd6e, #f89d3c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 34px -14px rgba(243, 154, 61, .85); }
a.quick-play:hover::after { background-position: -30% 0; transition: background-position .9s var(--ease); }
a.quick-play:hover img { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
a.quick-play:hover .quick-desc { color: rgba(29, 18, 6, .85); }

/* 홈 들어올 때 위에서부터 차례로 살짝 떠오른다 */
.home > * { animation: rise .35s var(--ease) both; }
.home > :nth-child(2) { animation-delay: .07s; }
.home > :nth-child(3) { animation-delay: .14s; }
.page { animation: rise .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 안쪽 쪽: 왼쪽 메뉴 + 본문(메이플랜드 게시판) */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; display: flex; flex: 1; align-items: stretch; }
.side { width: 240px; flex: none; background: var(--panel); border-right: 1px solid var(--line); padding-top: 66px; }
.side h2 { margin-bottom: 8px; padding: 0 20px; font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--fg-3); }
.side ul { list-style: none; }
.side a, .side span { display: flex; align-items: center; gap: 4px; padding: 10px 20px; font-size: 16px; border-right: 2px solid transparent; transition: background .2s ease, color .2s ease; }
.side a:hover { background: var(--hover); }
.side a[aria-current="page"] { background: var(--hover); color: var(--brand-text); font-weight: 500; border-right-color: var(--brand); }
.side span { color: var(--fg-3); }
.side small { font-size: 11px; color: var(--fg-3); }
.page { flex: 1; min-width: 0; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; min-height: 36px; }
.page-head h1 { font-size: 25px; font-weight: 500; }
.page-desc { width: 100%; margin-top: -4px; font-size: 14px; color: var(--fg-2); }

.seg { display: inline-flex; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 8px; background: var(--panel); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; border-right: 1px solid var(--sep); background: none; padding: 8px 28px; font-size: 13px; color: var(--fg-2); cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--hover); color: var(--fg); }
.seg button:active { background: #2e4660; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 500; }

.table-list { border-radius: 8px; overflow: hidden; background: var(--panel); }
.tl-head, .tl-row a { display: grid; grid-template-columns: 76px minmax(0, 1fr) 104px; align-items: center; gap: 0 24px; padding: 0 16px; }
.tl-head { height: 41px; background: var(--panel-2); font-size: 13px; font-weight: 500; color: var(--fg-3); border-bottom: 1px solid var(--sep); }
.tl-head span:last-child, .tl-date { text-align: right; }
.tl-list { list-style: none; }
.tl-row + .tl-row { border-top: 1px solid var(--sep); }
.tl-row a { min-height: 48px; padding-block: 12px; transition: background .3s ease; }
.tl-row a:hover { background: var(--hover); }
.tl-row a:hover .tl-title b { color: var(--brand-text); }
.tl-title { display: flex; align-items: center; min-width: 0; font-size: 15px; font-weight: 300; }
.tl-title b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.tl-row.is-pin { background: rgba(243, 154, 61, .06); box-shadow: inset 2px 0 0 var(--brand); }
.tl-row.is-pin .tl-title { font-weight: 400; }
.tl-date { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tl-date svg { width: 12px; height: 12px; }
.tl-none { padding: 48px 16px; text-align: center; font-size: 14px; color: var(--fg-3); }

/* 글 */
.post { border-radius: 8px; background: var(--panel); overflow: hidden; }
.post-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px 24px; border-bottom: 1px solid var(--sep); }
.post-head h1 { flex: 1; min-width: 0; font-size: 18px; font-weight: 500; }
.post-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.post-meta svg { width: 12px; height: 12px; }
.post-body { padding: 24px 24px 32px; }
.post-nav { list-style: none; border-top: 1px solid var(--sep); }
.post-nav li + li { border-top: 1px solid var(--sep); }
.post-nav a { display: flex; align-items: center; gap: 16px; padding: 12px 24px; font-size: 14px; min-width: 0; transition: background .3s ease; }
.post-nav a:hover { background: var(--hover); }
.post-nav span { flex: none; width: 48px; font-size: 12px; color: var(--fg-3); }
.post-nav b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-end { display: flex; justify-content: center; }

/* 본문 글(마크다운) */
.prose { font-size: 15px; line-height: 1.8; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 19px; font-weight: 600; margin-top: 18px; }
.prose h3 { font-size: 16px; font-weight: 600; margin-top: 8px; }
.prose h4 { font-size: 15px; font-weight: 600; color: var(--brand-text); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.prose li::marker { color: var(--fg-3); }
.prose a { color: var(--brand-text); text-decoration: underline; text-decoration-color: rgba(255, 173, 92, .4); text-underline-offset: 3px; transition: text-decoration-color .2s ease, color .2s ease; }
.prose a:hover { color: #ffc27f; text-decoration-color: currentColor; }
.link { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }  /* 글 속 링크(랭킹 안내 등 — js 가 만드는 글) */
.link:hover { color: #ffc27f; }
.prose strong { font-weight: 600; color: #fff; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }
.prose pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--sep); margin: 6px 0; width: 100%; }
.prose blockquote { margin: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--line); color: var(--fg-2); }
.prose kbd { font-family: var(--mono); font-size: .85em; padding: 1px 7px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px; }
.callout { background: var(--panel-2); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.callout-title { font-weight: 600; color: var(--brand-text); }
.table { overflow-x: auto; border-radius: 8px; border: 1px solid var(--sep); }
.table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--sep); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td { overflow-wrap: normal; }  /* '30일' 같은 짧은 값이 글자 단위로 쪼개지지 않게(낱말 단위로만 줄바꿈) */
.table th { background: var(--panel-2); color: var(--fg-3); font-size: 13px; font-weight: 500; white-space: nowrap; }
.doc h2 { padding-top: 16px; border-top: 1px solid var(--sep); }
.doc h2:first-child { padding-top: 0; border-top: 0; }
.box { border-radius: 8px; background: var(--panel); padding: 24px; }
.cta-line { display: flex; justify-content: center; padding-top: 8px; }

/* 게임 소개 */
.towns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.town { margin: 0; grid-column: span 2; border-radius: 8px; overflow: hidden; background: var(--panel); min-width: 0; }
.town:nth-child(-n+2) { grid-column: span 3; }
.town img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.town { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.town:hover img { transform: scale(1.04); }
.town figcaption { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.town b { font-size: 15px; font-weight: 600; }
.town span { color: var(--fg-3); font-size: 13px; }
.sub-title { font-size: 18px; font-weight: 600; margin-top: 8px; }

.jobx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.jobx > img { transition: transform .8s var(--ease); }
.jobx:hover > img { transform: scale(1.03); }
.jobx img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.jobx-text { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.job-en { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--fg-3); }
.jobx h2 { font-size: 22px; font-weight: 600; }
.jobx-tag { color: var(--brand-text); font-size: 14px; font-weight: 500; }
.jobx-about { font-size: 14px; color: var(--fg-2); }
.jobx dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.jobx dt { color: var(--fg-3); white-space: nowrap; }
.jobx dd { margin: 0; }
.lines { list-style: none; display: flex; flex-direction: column; gap: 2px; }
/* 계열 줄 = 스킬 시뮬레이터로 가는 단추(그 계열을 골라 둔 채로) */
.lines a { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -8px; padding: 5px 8px; border-radius: 6px; color: var(--fg);
  transition: background .15s ease, color .15s ease; }
.lines a:hover { background: var(--hover); }
.lines-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--fg-3); transition: color .15s ease; }
.lines-go svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.lines a:hover .lines-go { color: var(--brand-text); }
.lines a:hover .lines-go svg { transform: translateX(2px); }
.jobx-skill { align-self: flex-start; margin-top: 10px; }

/* 자주 묻는 질문 */
.qas { border-radius: 8px; overflow: hidden; background: var(--panel); }
.qa + .qa { border-top: 1px solid var(--sep); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-size: 15px; font-weight: 400; transition: background .3s ease; }
.qa summary:hover { background: var(--hover); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 16px; height: 16px; margin-left: auto; color: var(--fg-3); transition: transform .2s ease; }
.qa[open] summary svg { transform: rotate(180deg); }
.qa .q { flex: none; font-weight: 700; color: var(--brand-text); }
.qa .prose { padding: 4px 20px 18px 45px; font-size: 14px; color: var(--fg-2); }
.ask { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; font-size: 14px; color: var(--fg-3); }

/* ------------------------------------------------------------ 바닥 */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-in { max-width: var(--shell); margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; }
.foot-links { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--fg-3); }
.foot-links a { transition: color .2s ease; }
.foot-links a:hover { color: var(--fg); }
.foot-links i { width: 1px; height: 14px; background: var(--line); }
.foot-links strong { font-weight: 700; }
.foot-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.65; color: var(--fg-3); }

/* ------------------------------------------------------------ 영상 창 */
.vid { width: min(1100px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #000; color: var(--fg); overflow: visible; }
.vid::backdrop { background: rgba(4, 6, 10, .85); }
.vid video { width: 100%; height: auto; display: block; border-radius: 8px; }
.vid-close { position: absolute; right: -4px; top: -44px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); font-size: 22px; line-height: 1; cursor: pointer; }
.vid-close:hover { background: rgba(255, 255, 255, .2); }

.lost { max-width: 520px; margin: 0 auto; padding: 80px 16px 120px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lost b { font-size: 48px; font-weight: 700; color: var(--fg-3); line-height: 1; }
.lost h1 { font-size: 22px; font-weight: 500; }
.lost p { color: var(--fg-2); font-size: 14px; margin-bottom: 8px; }
.lost-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ------------------------------------------------------------ 좁은 화면 */
@media (max-width: 1023px) {
  :root { --top-h: 60px; }
  /* z-index: auto — 막대가 따로 층(z 2)을 만들면 그 안의 서랍(z 60)·닫기 단추(z 61)가 옆의 어두운 바탕(.top-dim z 55) 밑에 깔려
     메뉴를 눌러도 바탕만 눌려 닫힌다(10-19 "모바일에서 메뉴탭 눌러도 무반응"). 머리 그림(.top-art)보다는 문서 순서로 위에 그려진다 */
  .top-bar { z-index: auto; height: 60px; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; padding: 0 8px; }
  .top-art::after { background: rgba(8, 14, 24, .5); }
  .top-logo { grid-column: 2; justify-self: center; margin-top: 0; }
  .top-logo img { height: 50px; }
  .top-end { grid-column: 3; padding-top: 0; }
  .top-burger { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px;
    background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; }
  .top-burger svg { width: 24px; height: 24px; }
  .top::before { display: none; }
  /* 메뉴판: 왼쪽에서 나오는 서랍 */
  .top-nav { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); background: var(--panel); border-right: 1px solid var(--line);
    overflow-y: auto; padding: 72px 0 32px; transform: translateX(-102%); transition: transform .25s ease; visibility: hidden; }
  .nav-open .top-nav { transform: none; visibility: visible; }
  .top-dim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .55); border: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; display: block; }
  .nav-open .top-dim { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-open .top-burger { position: fixed; z-index: 61; left: 8px; top: 10px; background: transparent; }
  .top-menu { display: flex; flex-direction: column; gap: 20px; }
  .top-item { align-items: stretch; gap: 0; padding: 0; }
  .top-link { font-size: 14px; font-weight: 500; letter-spacing: .1em; color: var(--fg-3); text-shadow: none; padding: 0 20px 6px; }
  .top-item:hover .top-link, .top-link:focus-visible { background: none; color: var(--fg-3); }
  .top-item.is-on .top-link { color: var(--fg-3); }
  .top-item.is-on .top-link::after { display: none; }
  .top-sub, .top-nav:hover .top-sub, .top-nav:focus-within .top-sub { opacity: 1; visibility: visible; align-items: stretch; gap: 0; }
  .top-sub a, .top-sub span { display: flex; padding: 10px 20px; font-size: 16px; font-weight: 350; color: var(--fg); }  /* 줄 전체를 눌러도 되게 */
  .top-sub a:hover { background: var(--hover); color: var(--fg); }
  .top-sub a[aria-current="page"] { background: var(--hover); color: var(--brand-text); box-shadow: inset -2px 0 0 var(--brand); }
  .top-sub span { color: var(--fg-3); }

  .shell { flex-direction: column; }
  .side { width: auto; padding: 0; background: var(--panel); border-right: 0; border-bottom: 1px solid var(--line); }
  .side h2 { display: none; }
  .side ul { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
  .side ul::-webkit-scrollbar { display: none; }
  .side a, .side span { padding: 12px 12px 10px; font-size: 14px; white-space: nowrap; border-right: 0; border-bottom: 2px solid transparent; }
  .side a:hover { background: none; }
  .side a[aria-current="page"] { background: none; border-bottom-color: var(--brand); }
  .page { padding: 20px 16px 48px; }
  .page-head h1 { font-size: 20px; }
  .jobx { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .home { gap: 16px; padding-block: 16px 40px; }
  .jobx-text { padding: 20px; }
  .jobx dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }  /* 이름 칸을 위로 — 계열 줄(스킬 보기)이 한 줄에 들어가게 */
  .jobx dd + dt { margin-top: 8px; }
  .jobx-skill { align-self: stretch; }
  .slides-view { aspect-ratio: 4 / 3; }
  .slides-arrow { width: 32px; height: 32px; margin-top: -16px; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .quicks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .quick { padding: 20px 12px 18px; }
  .quick-soon { top: 8px; right: 8px; }
  .quick-play { padding-top: 16px; }
  .quick-play img { height: 50px; }
  /* 고르기 단추 줄은 화면 폭을 나눠 쓴다 — 랭킹 직업 7개도 옆으로 밀지 않고 한눈에(10-19 "이용자가 불편할수있는걸 전수조사") */
  .seg { width: 100%; }
  .seg button { flex: 1 1 auto; padding: 8px 6px; }
  .table th, .table td { padding: 10px; }
  .tl-head { display: none; }
  .tl-row a { grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
  .tl-date { grid-column: 2; justify-content: flex-start; }
  .post-head, .post-body { padding-left: 16px; padding-right: 16px; }
  .post-head h1 { flex-basis: 100%; order: 2; font-size: 17px; }
  .post-meta { order: 3; }
  .post-nav a { padding-left: 16px; padding-right: 16px; }
  .box { padding: 18px 16px; }
  .towns { grid-template-columns: minmax(0, 1fr); }
  .town, .town:nth-child(-n+2) { grid-column: auto; }
  .qa summary { padding: 14px 16px; }
  .qa .prose { padding: 2px 16px 16px 41px; }
  .foot-in { padding: 24px 16px; }
  .foot-links { font-size: 14px; }
  .foot-text { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 360px) { .seg button { padding-left: 4px; padding-right: 4px; } }
/* 옆으로 밀리는 줄(좁은 화면 왼쪽 메뉴 줄·표 등): 가려진 쪽 끝을 흐리게 해 더 있다는 걸 보인다 — js/site.js 가 hs-l·hs-r 를 붙인다 */
.hs-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.hs-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.hs-l.hs-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
/* 손가락 화면: 고르기 단추·접기 줄을 누르기 쉽게 40px 안팎으로 — 위 좁은 화면 규칙보다 뒤에 둔다(10-19 "모바일에서 잘 안눌러지고") */
@media (pointer: coarse) {
  .seg button { padding-top: 12px; padding-bottom: 12px; }
  .dr-notes summary, .rk-notes summary, .sd-all summary, .sim-notes summary { padding: 10px 0; }
  /* 대문 배너 점·멈춤 단추, '더보기': 보이는 모습·자리는 그대로 두고 손가락으로 누르는 칸만 넓게(점 12×18 → 26×32) */
  .slides-dots button, .slides-pause { padding: 13px 10px; margin: -7px; }
  .slides-dots button::after { left: 10px; top: 13px; }
  .slides-pause { width: 32px; }
  .more { padding: 10px 0; margin: -10px 0; }
}

/* 인쇄: 흰 종이에 검은 글씨, 머리·발·옆 메뉴는 빼고 본문만 */
@media print {
  :root { --bg: #fff; --panel: #fff; --panel-2: #f3f3f3; --elev: #fff; --hover: #eee; --fg: #000; --fg-2: #222; --fg-3: #555; --line: #bbb; --sep: #ddd; --link: #0645ad; --brand-text: #a85400; }
  body { background: #fff; color: #000; }
  .top, .top-dim, .skip, .foot, .side, .post-nav, .slides-dots, .slides-pause { display: none !important; }
  .box, .jobx, .town, .table { box-shadow: none !important; border: 1px solid #ccc; }
  .page, .home, .post { animation: none !important; }
  a { color: inherit; }
}
