/* ==========================================================================
   클래식 메이플 UI (2026-11-04) — 모든 페이지 공통, style.css 다음에 읽는다
   옛날 메이플 클라이언트 창과 2007년 홈페이지를 웹사이트로 옮긴 모양.
   · 창(.mw): 흰 본문 + 옅은 파란 이중 테두리, 머리에 파란 캡슐 점 + 메이플스토리 서체 제목 + 작은 영문
   · 버튼: 클라이언트처럼 위가 밝은 광택 버튼 (회색 / 주황 / 파랑)
   · 분류 표식: 작은 네모 딱지 (필독·공지·점검·진행 중·종료·패치노트) + 새 글 N
   · NPC 그림은 /img/npc/*.png (GMS v83 렌더, 2배 픽셀 확대로 그린다)
   ========================================================================== */
@font-face {
  font-family: "Maplestory";
  src: url("/fonts/Maplestory-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --cl-ground: #e4edf8;
  --cl-ink: #26334d;
  --cl-soft: #5f6b82;
  --cl-line: #d3deec;
  --cl-frame: #9cb6d8;
  --cl-frame-2: #e7f0fb;
  --cl-navy: #183c78;
  --cl-navy-2: #10295a;
  --cl-blue: #1f6fd1;
  --cl-sky-1: #4aa6ee;
  --cl-sky-2: #a9dcff;
  --cl-orange: #f7931e;
  --cl-orange-2: #e06d00;
  --cl-red: #e5483c;
  --cl-gold: #f2b705;
  --font-maple: "Maplestory", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --nav-h: 64px;
}

html, body:not(.rk-embed) { background: var(--cl-ground); }
body { color: var(--cl-ink); }
a { color: var(--cl-blue); }
h1, h2, h3, .page-hero h1 { font-family: var(--font-maple); font-weight: 700; letter-spacing: 0; }

/* ---------- 메뉴바: 남색 광택 막대 (2007 홈페이지 메뉴) ---------- */
.site-nav {
  height: var(--nav-h);
  background: linear-gradient(180deg, #2a5dab 0%, #1b4489 48%, #163a78 52%, #12306a 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid #0b1f47;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 0 rgba(8, 26, 64, 0.25);
}
.site-nav .container { width: min(1180px, 100% - 32px); }
.brand-name { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.brand:hover, .brand:hover .brand-name { color: #fff; }
.nav-logo { height: 40px; }
.nav-menu { gap: 2px; }
.nav-menu a {
  display: grid; justify-items: center; gap: 1px; padding: 7px 16px 6px; border-radius: 8px;
  color: #fff; background: transparent; line-height: 1.15;
}
.nav-menu a b { font-family: var(--font-maple); font-weight: 700; font-size: 1rem; letter-spacing: 0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.nav-menu a small { font: 700 10px/1 Verdana, Tahoma, sans-serif; letter-spacing: 0.08em; color: #9cc6ff; }
.nav-menu a::after { content: none; }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-menu a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 -3px 0 var(--cl-orange); color: #fff; }
.nav-menu a[aria-current="page"] small, .nav-menu a:hover small { color: #ffd27a; }
.nav-toggle { background: rgba(255, 255, 255, 0.14); }
.nav-toggle span { background: #fff; }
.btn-discord { background: linear-gradient(180deg, #7480ff, #5865f2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px #3b45b8; }
@media (max-width: 1100px) {
  .nav-menu { background: #15346d; box-shadow: 0 18px 30px -16px rgba(5, 15, 40, 0.6); }
  .nav-menu a { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 13px 14px; }
  .nav-menu a b { font-size: 1.05rem; }
  .nav-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cl-orange); }
}

/* ---------- 창 (옛날 클라이언트 창 / 2007 홈페이지 상자) ---------- */
.mw {
  position: relative; background: #fff; border: 1px solid var(--cl-frame); border-radius: 10px;
  box-shadow: 0 0 0 3px var(--cl-frame-2), 0 8px 18px -12px rgba(20, 50, 100, 0.45);
}
.mw-head { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 16px 8px; border-bottom: 2px solid #edf2f9; }
.mw-head::before {
  content: ""; flex: none; width: 9px; height: 18px; border-radius: 5px;
  background: linear-gradient(180deg, #7fd0ff 0%, #2389e8 55%, #1468c8 100%); box-shadow: inset 0 0 0 1px rgba(10, 70, 150, 0.35);
}
.mw-head h2, .mw-head h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; color: #1d3766; }
.mw-en { font: 700 11px/1 Verdana, Tahoma, sans-serif; letter-spacing: 0.08em; color: #8da2c0; text-transform: uppercase; }
.mw-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #5b6c88; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #fff, #eef3fa); box-shadow: inset 0 0 0 1px #cbd7e8;
}
.mw-more::before { content: "+"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #8ea3c2; color: #fff; font: 800 13px/1 Verdana, sans-serif; }
.mw-more:hover { color: var(--cl-blue); box-shadow: inset 0 0 0 1px #9fbbe0; }
.mw-more:hover::before { background: var(--cl-blue); }
.mw-body { padding: 10px 16px 14px; }

/* ---------- 광택 버튼 (클라이언트 버튼) ---------- */
.mbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px;
  border: 0; border-radius: 7px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-maple); font-weight: 700; font-size: 0.98rem; color: #33405a;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5f9 50%, #e2e8f0 51%, #eef2f7 100%);
  box-shadow: inset 0 0 0 1px #9eabbf, inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 1px 0 rgba(20, 40, 80, 0.15);
}
.mbtn:hover { color: var(--cl-ink); filter: brightness(1.04); }
.mbtn:active { transform: translateY(1px); }
.mbtn-orange { color: #fff; text-shadow: 0 1px 0 rgba(140, 60, 0, 0.55); background: linear-gradient(180deg, #ffc061 0%, #ff9b22 50%, #f38300 51%, #ff9a1c 100%); box-shadow: inset 0 0 0 1px #c45f00, inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(120, 50, 0, 0.3); }
.mbtn-orange:hover { color: #fff; }
.mbtn-blue { color: #fff; text-shadow: 0 1px 0 rgba(0, 40, 110, 0.5); background: linear-gradient(180deg, #6fc0ff 0%, #3592ec 50%, #1f7ae0 51%, #3a8eea 100%); box-shadow: inset 0 0 0 1px #13509f, inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 1px 0 rgba(0, 30, 80, 0.3); }
.mbtn-blue:hover { color: #fff; }

/* ---------- 분류 딱지 + 새 글 ---------- */
.tag {
  flex: none; display: inline-grid; place-items: center; min-width: 54px; height: 22px; padding: 0 7px; border-radius: 4px;
  font-size: 12px; font-weight: 800; line-height: 1; color: #fff; white-space: nowrap; letter-spacing: 0;
  background: #6f86ab; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.tag-must { background: var(--cl-red); }
.tag-notice { background: #5b80bd; }
.tag-check { background: #e2649b; }
.tag-live { background: #26a37a; }
.tag-end { background: #9aa4b4; }
.tag-patch { background: #f28b1d; }
.tag-new {
  flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px;
  background: #ff4733; color: #fff; font: 800 10px/1 Verdana, sans-serif;
}

/* 글 목록 (메인·게시판 공용) */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list > li + li { border-top: 1px dashed #dde5f0; }
.post-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 7px 4px; color: var(--cl-ink); text-decoration: none; }
.post-row:hover { color: var(--cl-ink); background: #f3f8ff; }
.post-row .p-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15.5px; }
.post-row:hover .p-title { color: var(--cl-blue); text-decoration: underline; text-underline-offset: 3px; }
.post-row.is-must .p-title { color: #d2382d; }
.post-row .p-date { margin-left: auto; flex: none; padding-left: 8px; color: var(--cl-soft); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.post-row .p-views { flex: none; width: 64px; text-align: right; color: var(--cl-soft); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.post-note { padding: 26px 8px; text-align: center; color: var(--cl-soft); }
.post-skel { height: 42px; }
.post-skel::before { content: ""; display: block; height: 14px; margin-top: 14px; width: 70%; border-radius: 7px; background: #edf2f8; }

/* ---------- 서브 페이지 머리: 하늘 띠 + 게임 제목 글씨 + NPC ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: left;
  padding: calc(var(--nav-h) + 30px) 0 34px;
  background:
    radial-gradient(200px 50px at 78% 34%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(160px 40px at 90% 70%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(240px 56px at 52% 82%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(180deg, var(--cl-sky-1) 0%, var(--cl-sky-2) 100%);
  border-bottom: 3px solid #fff;
  box-shadow: 0 3px 0 var(--cl-frame-2);
}
.page-hero .container, body .page-hero > .container { width: min(1180px, 100% - 32px); }
.page-hero h1 {
  margin: 0 0 6px; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; color: #fff; animation: none;
  text-shadow: 0 2px 0 #1b4d8f, 2px 0 0 #1b4d8f, -2px 0 0 #1b4d8f, 0 -2px 0 #1b4d8f, 2px 2px 0 #1b4d8f, -2px 2px 0 #1b4d8f, 2px -2px 0 #1b4d8f, -2px -2px 0 #1b4d8f, 0 5px 0 rgba(10, 40, 90, 0.35);
}
.page-hero p { margin: 0; color: #12366e; font-weight: 700; font-size: 1rem; animation: none; }
.page-hero .container::after {
  content: ""; position: absolute; right: 24px; bottom: -34px; width: 160px; height: 150px;
  background: var(--hero-npc, none) no-repeat right bottom / auto 100%; image-rendering: pixelated; pointer-events: none;
}
body[data-page="notices"], body[data-page="notice"] { --hero-npc: url("/img/npc/admin.png"); }
body[data-page="guide"] { --hero-npc: url("/img/npc/spinel.png"); }
body[data-page="monsters"] { --hero-npc: url("/img/npc/kyrin.png"); }
body[data-page="runes"] { --hero-npc: url("/img/npc/heinz.png"); }
body[data-page="ranking"] { --hero-npc: url("/img/npc/dances.png"); }
.page-hero .container { position: relative; }
@media (max-width: 700px) { .page-hero .container::after { width: 96px; height: 96px; right: 8px; opacity: 0.9; } }

/* ---------- 서브 페이지 공통 패널을 창 모양으로 ---------- */
.notice-panel, .article-card, .rk-panel, .dex-toolbar, .dex-list-panel, .dex-detail, .rune-list-panel, .rune-detail, .gd-doc section, .gd-toc, .gd-intro {
  background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--cl-frame); border-radius: 10px;
  box-shadow: 0 0 0 3px var(--cl-frame-2), 0 8px 18px -12px rgba(20, 50, 100, 0.45);
}
body .dex-list-head, body .rune-list-head, body .rune-panel-head, body .rk-panel-head {
  background: linear-gradient(180deg, #f7faff 0%, #e9f1fb 100%); box-shadow: inset 0 -2px 0 #e3ebf6;
}
.page-body { padding: 40px 0 80px; }
.page-body > .container { width: min(1180px, 100% - 32px); }

/* 탭: 클라이언트 창의 탭 (위가 둥근 칸, 고른 칸은 흰색으로 튀어나옴) */
.filter-tabs { gap: 4px; border-bottom: 2px solid var(--cl-frame); padding: 0 6px; margin-bottom: 0; }
.tab-btn {
  font-family: var(--font-maple); font-weight: 700; border-radius: 9px 9px 0 0; margin-bottom: -2px; padding: 10px 20px 9px;
  color: #49618a; background: linear-gradient(180deg, #f1f6fd, #dfe9f6); box-shadow: inset 0 0 0 1px #b7c9e2;
}
.tab-btn:hover { color: var(--cl-navy); background: linear-gradient(180deg, #fff, #e8f0fa); }
.tab-btn.is-active { color: var(--cl-navy); background: #fff; box-shadow: inset 1px 0 0 var(--cl-frame), inset -1px 0 0 var(--cl-frame), inset 0 3px 0 var(--cl-orange); }

/* 페이지 번호 */
.page-btn { font-family: inherit; border-radius: 6px; background: linear-gradient(180deg, #fff, #eef2f7); box-shadow: inset 0 0 0 1px #b9c6d8; color: #44516b; }
.page-btn:hover { color: var(--cl-blue); }
.page-btn.is-current { background: linear-gradient(180deg, #4d9cf0, #1f6fd1); color: #fff; box-shadow: inset 0 0 0 1px #13509f; }

/* ---------- 푸터 ---------- */
.site-footer { background: linear-gradient(180deg, #1a3567, #12264d); border-top: 3px solid #2c5aa8; }
.site-footer .container { width: min(1180px, 100% - 32px); }

/* 메인이 아닌 페이지의 옛 버튼도 광택 버튼 모양으로 */
.btn-ghost { background: linear-gradient(180deg, #ffffff 0%, #f2f5f9 50%, #e2e8f0 51%, #eef2f7 100%); box-shadow: inset 0 0 0 1px #9eabbf; color: #33405a; }

/* ---------- 게시판 (notices.html) ---------- */
.board-tabs { display: flex; }
.board-tabs .tab-btn { text-decoration: none; display: inline-flex; align-items: center; }
.board-win { border-top-left-radius: 0; }
.board-count { margin-left: auto; font-size: 13.5px; color: var(--cl-soft); }
.board-cols { display: grid; grid-template-columns: 70px minmax(0, 1fr) 96px 64px; gap: 10px; padding: 8px 20px; font-size: 13px; font-weight: 800; color: #5a6f92; background: #f2f6fc; border-bottom: 1px solid var(--cl-line); }
.board-cols span:nth-child(2) { text-align: center; }
.board-cols span:nth-child(3), .board-cols span:nth-child(4) { text-align: right; }
.board-list { padding: 4px 16px 12px; }
.board-list .post-row { min-height: 52px; padding: 8px 4px; }
.board-list .post-row .tag { min-width: 62px; }
.board-list .post-row .p-date { width: 96px; text-align: right; }
@media (max-width: 640px) {
  .board-cols { display: none; }
  .board-list { padding: 4px 10px 10px; }
  .board-list .post-row { flex-wrap: wrap; row-gap: 2px; }
  .board-list .post-row .p-title { flex: 1 1 60%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .board-list .post-row .p-date { width: auto; margin-left: 72px; text-align: left; padding-left: 0; }
  .board-list .post-row .p-views { width: auto; }
  .board-list .post-row .p-views::before { content: "조회 "; }
}
body[data-board="event"] { --hero-npc: url("/img/npc/cassandra.png"); }
body[data-board="patch"] { --hero-npc: url("/img/npc/heinz.png"); }

/* ---------- 글 보기 (notice.html) ---------- */
.article-win { overflow: hidden; }
.article-board { font-size: 1.1rem !important; }
.article-board a { color: inherit; text-decoration: none; }
.article-board a:hover { color: var(--cl-blue); }
.article-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--cl-line); background: linear-gradient(180deg, #fbfdff, #f4f8fd); }
.article-chips { display: flex; align-items: center; gap: 6px; }
.article-head h1 { margin: 10px 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35; color: var(--cl-ink); text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--cl-soft); font-size: 14px; }
.article-body { padding: 26px 26px 34px; font-size: 16px; line-height: 1.85; }
.article-nav { list-style: none; margin: 0; padding: 0; border-top: 2px solid #e7eef8; }
.article-nav li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; min-height: 50px; padding: 0 20px; }
.article-nav li + li { border-top: 1px solid var(--cl-line); }
.article-nav .an-label { font-size: 14px; font-weight: 800; color: #5a6f92; }
.article-nav .an-label::before { display: inline-block; width: 16px; color: #8ea3c2; }
.article-nav .an-next .an-label::before { content: "▲"; }
.article-nav .an-prev .an-label::before { content: "▼"; }
.article-nav .an-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--cl-ink); text-decoration: none; }
.article-nav a.an-title:hover { color: var(--cl-blue); text-decoration: underline; }
.article-nav .an-title.is-none { color: #9aa6b8; font-weight: 500; }
.article-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.article-actions .mbtn { min-width: 96px; }
@media (max-width: 640px) {
  .article-head { padding: 18px 16px 14px; }
  .article-body { padding: 20px 16px 26px; }
  .article-nav li { grid-template-columns: 76px minmax(0, 1fr); padding: 0 14px; }
}

/* 탭은 창 왼쪽 위에 붙는다 (클라이언트 창 탭) */
.filter-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.board-tabs { border-bottom: 0; padding: 0 0 0 10px; margin-bottom: 3px; }
.board-tabs + .board-win { border-top-left-radius: 10px; }
.tab-btn { flex: none; }

/* ==========================================================================
   2003 감성 층 (2026-11-04 추가) — 2003~2005년 메이플 홈페이지처럼
   · 글꼴: 갈무리(Galmuri, OFL) — 옛날 굴림·돋움 비트맵 글씨를 되살린 픽셀 서체.
     픽셀 서체는 배수 크기에서만 또렷하다: Galmuri11 = 12px, Galmuri14 = 15·30px, Galmuri9 = 10px, Galmuri7 = 8·16px
   · 상자: 흰 바탕 + 회색 1px 테두리 + 점선 구분, 주황빨강 제목 + 작은 영문 | NOTICE
   · 버튼: 윈도우 98 식 돋을새김 회색 버튼, ": MORE" 회색 알약
   ========================================================================== */
@font-face { font-family: "Galmuri11"; src: url("/fonts/Galmuri11.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("/fonts/Galmuri11-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Galmuri14"; src: url("/fonts/Galmuri14.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Galmuri9"; src: url("/fonts/Galmuri9.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Galmuri7"; src: url("/fonts/Galmuri7.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --rt-text: "Galmuri11", "Gulim", "굴림", "Dotum", "돋움", sans-serif;
  --rt-title: "Galmuri14", "Galmuri11", "Gulim", "굴림", sans-serif;
  --rt-tiny: "Galmuri7", "Galmuri9", Verdana, sans-serif;
  --font-maple: var(--rt-title);
  --font-display: var(--rt-text);
  --font-pixel: var(--rt-text);
  --rt-line: #c9c9c9;
  --rt-dot: #d6d6d6;
  --rt-head: #e0531f;
  --rt-ink: #333;
  --rt-soft: #888;
  --rt-link: #2a55a8;
  --cl-ground: #efefef;
}
html { -webkit-font-smoothing: none; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--rt-text); font-size: 12px; line-height: 1.75; color: var(--rt-ink); letter-spacing: 0; }
h1, h2, h3, h4, .page-hero h1 { font-family: var(--rt-title); font-weight: 400; letter-spacing: 0; }
b, strong { font-weight: 700; }
input, select, button, textarea { font-family: var(--rt-text); }
a { color: var(--rt-link); }

/* 메뉴바: 옛날 포털의 밝은 회색 막대 */
.site-nav { background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 55%, #e4e4e4 100%); border-bottom: 1px solid #a9a9a9; box-shadow: 0 1px 0 #fff, 0 2px 0 rgba(0, 0, 0, 0.06); }
.brand-name { font-family: "Galmuri11"; font-weight: 700; font-size: 12px; color: #333; text-shadow: none; letter-spacing: 0.04em; }
.brand:hover .brand-name { color: var(--rt-head); }
.nav-logo { height: 36px; }
.nav-menu a { padding: 6px 14px 5px; border-radius: 3px; color: #444; position: relative; }
.nav-menu a + a::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 1px; background: #c8c8c8; }
.nav-menu a b { font-family: "Galmuri11"; font-weight: 700; font-size: 12px; text-shadow: none; }
.nav-menu a small { font-family: var(--rt-tiny); font-size: 8px; letter-spacing: 0.06em; color: #a0a0a0; }
.nav-menu a:hover { background: transparent; color: var(--rt-head); }
.nav-menu a:hover small, .nav-menu a[aria-current="page"] small { color: #f29a6a; }
.nav-menu a[aria-current="page"] { background: transparent; color: var(--rt-head); box-shadow: inset 0 -2px 0 var(--rt-head); }
.nav-toggle { background: #e6e6e6; box-shadow: inset 0 0 0 1px #aaa; }
.nav-toggle span { background: #444; }
.btn-discord { font-family: "Galmuri11"; font-weight: 700; font-size: 12px; border-radius: 3px; }
@media (max-width: 1100px) {
  .nav-menu { background: #f6f6f6; border-bottom: 1px solid #aaa; }
  .nav-menu a + a::before { content: none; }
  .nav-menu a b { font-size: 12px; }
  .nav-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--rt-head); }
}

/* 상자 */
.mw { border: 1px solid var(--rt-line); border-radius: 5px; box-shadow: none; background: #fff; }
.mw-head { min-height: 38px; padding: 8px 12px 6px; gap: 6px; border-bottom: 1px dotted var(--rt-dot); }
.mw-head::before { width: 16px; height: 16px; border-radius: 0; box-shadow: none; background: url("/img/logo2.png?v=6") center / contain no-repeat; }
.mw-head h2, .mw-head h3 { font-family: var(--rt-title); font-size: 15px; line-height: 1.2; color: var(--rt-head); }
.mw-en { font-family: var(--rt-tiny); font-size: 8px; font-weight: 400; color: #a3a3a3; letter-spacing: 0.04em; }
.mw-en::before { content: "| "; color: #cfcfcf; }
.mw-more {
  padding: 1px 8px 1px 7px; border-radius: 8px; gap: 3px; font-family: var(--rt-tiny); font-size: 8px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #b9b9b9, #8f8f8f); box-shadow: inset 0 0 0 1px #7d7d7d;
}
.mw-more::before { content: ":"; width: auto; height: auto; border-radius: 0; background: none; color: #fff; font: inherit; }
.mw-more:hover { color: #fff; background: linear-gradient(180deg, #f4a06d, #e0531f); box-shadow: inset 0 0 0 1px #b8401a; }
.mw-more:hover::before { background: none; }
.mw-body { padding: 6px 12px 10px; }

/* 버튼: 돋을새김 회색 / 주황 */
.mbtn {
  min-height: 26px; padding: 0 12px; border-radius: 2px; font-family: "Galmuri11"; font-weight: 700; font-size: 12px; color: #333;
  background: #e9e9e9; box-shadow: inset 0 0 0 1px #7f7f7f, inset 1px 1px 0 2px #fff, inset -1px -1px 0 2px #b3b3b3;
}
.mbtn:hover { color: #000; background: #f2f2f2; filter: none; }
.mbtn:active { transform: none; box-shadow: inset 0 0 0 1px #7f7f7f, inset -1px -1px 0 2px #fff, inset 1px 1px 0 2px #b3b3b3; }
.mbtn-orange { color: #fff; text-shadow: none; background: #f08a3c; box-shadow: inset 0 0 0 1px #a8460f, inset 1px 1px 0 2px #ffc79a, inset -1px -1px 0 2px #c8601d; }
.mbtn-orange:hover { color: #fff; background: #f59a52; }
.mbtn-blue { color: #fff; text-shadow: none; background: #4f86d6; box-shadow: inset 0 0 0 1px #1f4f9a, inset 1px 1px 0 2px #a9c8f5, inset -1px -1px 0 2px #2f64b4; }

/* 딱지: 작은 네모 (2004~2007 홈페이지) */
.tag { min-width: 46px; height: 17px; padding: 0 5px; border-radius: 2px; font-family: "Galmuri11"; font-weight: 400; font-size: 12px; box-shadow: none; }
.tag-must { background: #e5483c; }
.tag-notice { background: #7f95b9; }
.tag-check { background: #d779a3; }
.tag-live { background: #df6a4d; }
.tag-end { background: #a9a9a9; }
.tag-patch { background: #f0962e; }
.tag-new { width: 13px; height: 13px; border-radius: 2px; font-family: var(--rt-tiny); font-size: 8px; font-weight: 400; background: #ff6b1a; }

/* 글 목록: 점선 줄 */
.post-list > li + li { border-top: 1px dotted var(--rt-dot); }
.post-row { min-height: 26px; padding: 3px 2px; gap: 6px; }
.post-row:hover { background: #fbf5ef; }
.post-row .p-title { font-weight: 400; font-size: 12px; color: #333; }
.post-row:hover .p-title { color: var(--rt-head); text-decoration: underline; }
.post-row.is-must .p-title { color: #d2382d; font-weight: 700; }
.post-row .p-date, .post-row .p-views { font-size: 12px; color: #999; }
.post-note { font-size: 12px; color: #999; padding: 18px 6px; }
.post-skel { height: 26px; }
.post-skel::before { height: 10px; margin-top: 8px; border-radius: 0; }

/* 서브 페이지 머리 */
.page-hero { padding: calc(var(--nav-h) + 22px) 0 24px; border-bottom: 1px solid #a9a9a9; box-shadow: none; }
.page-hero h1 { font-size: 30px; line-height: 1.2; text-shadow: 0 2px 0 #3a6fb0, 2px 0 0 #3a6fb0, -2px 0 0 #3a6fb0, 0 -2px 0 #3a6fb0, 2px 2px 0 #3a6fb0, -2px 2px 0 #3a6fb0, 2px -2px 0 #3a6fb0, -2px -2px 0 #3a6fb0; }
.page-hero p { font-size: 12px; font-weight: 700; color: #174a8a; }
.page-hero .container::after { bottom: -24px; height: 130px; }

/* 서브 페이지 공용 패널 */
.notice-panel, .article-card, .rk-panel, .dex-toolbar, .dex-list-panel, .dex-detail, .rune-list-panel, .rune-detail, .gd-doc section, .gd-toc, .gd-intro {
  border: 1px solid var(--rt-line); border-radius: 5px; box-shadow: none;
}
body .dex-list-head, body .rune-list-head, body .rune-panel-head, body .rk-panel-head { background: linear-gradient(180deg, #fafafa, #ededed); box-shadow: inset 0 -1px 0 #d4d4d4; }

/* 탭: 회색 돋을새김 칸 */
.filter-tabs { border-bottom: 1px solid #aaa; gap: 2px; }
.tab-btn { border-radius: 4px 4px 0 0; padding: 5px 14px 4px; font-family: "Galmuri11"; font-weight: 700; font-size: 12px; color: #666; background: linear-gradient(180deg, #fbfbfb, #e2e2e2); box-shadow: inset 0 0 0 1px #aaa; margin-bottom: -1px; }
.tab-btn:hover { color: var(--rt-head); background: linear-gradient(180deg, #fff, #ececec); }
.tab-btn.is-active { color: var(--rt-head); background: #fff; box-shadow: inset 1px 0 0 #aaa, inset -1px 0 0 #aaa, inset 0 1px 0 #aaa, inset 0 3px 0 var(--rt-head); }
.board-tabs { margin-bottom: 0; border-bottom: 0; padding-left: 8px; }
.board-tabs + .board-win { border-top-left-radius: 5px; }
.page-btn { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 2px; font-family: "Galmuri11"; font-size: 12px; background: #fff; box-shadow: inset 0 0 0 1px #bbb; color: #555; }
.page-btn.is-current { background: var(--rt-head); color: #fff; box-shadow: inset 0 0 0 1px #b8401a; }

/* 게시판·글 보기 */
.board-count { font-size: 12px; color: #999; }
.board-cols { grid-template-columns: 52px minmax(0, 1fr) 80px 52px; padding: 4px 14px; font-size: 12px; font-weight: 700; color: #777; background: #f3f3f3; border-bottom: 1px solid #ddd; }
.board-list { padding: 2px 12px 8px; }
.board-list .post-row { min-height: 30px; padding: 4px 2px; }
.board-list .post-row .tag { min-width: 52px; }
.board-list .post-row .p-date { width: 80px; }
.board-list .post-row .p-views { width: 52px; }
.article-head { padding: 14px 18px 12px; background: #f8f8f8; border-bottom: 1px dotted var(--rt-dot); }
.article-head h1 { font-size: 15px; margin: 8px 0 6px; color: #222; }
.article-meta { font-size: 12px; color: #999; }
.article-body { padding: 18px 18px 24px; font-size: 12px; line-height: 1.9; }
.article-body.md-body h1, .article-body.md-body h2, .article-body.md-body h3 { font-family: var(--rt-title); font-size: 15px; color: var(--rt-head); }
.article-nav { border-top: 1px solid #ddd; }
.article-nav li { min-height: 30px; padding: 0 14px; grid-template-columns: 70px minmax(0, 1fr); }
.article-nav li + li { border-top: 1px dotted var(--rt-dot); }
.article-nav .an-label { font-size: 12px; color: #777; }
.article-nav .an-title { font-size: 12px; font-weight: 400; }
.article-board { font-size: 15px !important; }

/* 푸터: 옛날 회사 정보 줄 */
.site-footer { background: #e9e9e9; border-top: 1px solid #b9b9b9; color: #777; }
.site-footer .brand-name { color: #555; }
.footer-links a { color: #555; font-weight: 700; font-size: 12px; }
.footer-links a:hover { color: var(--rt-head); }
.footer-legal { font-size: 12px !important; color: #888; line-height: 1.8; }
/* 픽셀 제목은 1px 옆으로 한 번 더 찍어 굵게 (옛날 이미지 글씨처럼) */
.mw-head h2, .mw-head h3, .page-hero h1, .cl-start strong, .rk3 li.rk3-top .rk3-who strong, .article-head h1 { text-shadow: 1px 0 0 currentColor; }
.page-hero h1 { text-shadow: 1px 0 0 #fff, 0 2px 0 #3a6fb0, 3px 0 0 #3a6fb0, -2px 0 0 #3a6fb0, 0 -2px 0 #3a6fb0, 3px 2px 0 #3a6fb0, -2px 2px 0 #3a6fb0, 3px -2px 0 #3a6fb0, -2px -2px 0 #3a6fb0; }
.cl-start strong { text-shadow: 1px 0 0 #fff, 0 2px 0 #0a3f8f, 3px 0 0 #0a3f8f, -2px 0 0 #0a3f8f, 0 -2px 0 #0a3f8f; }

/* 검사 반영 (2026-11-04) */
/* 서브 페이지 머리 NPC: 띠 안에 다 들어오게 */
.page-hero .container::after { height: 104px; bottom: -24px; }
@media (max-width: 700px) { .page-hero .container::after { height: 80px; } }
/* 도감·룬은 표가 많아 본문이 넓다 — 머리줄·제목 띠·바닥줄도 같은 폭 */
body[data-page="monsters"] .site-nav .container, body[data-page="monsters"] .page-hero > .container, body[data-page="monsters"] .site-footer .container { width: min(1400px, 100% - 48px); }
body[data-page="runes"] .site-nav .container, body[data-page="runes"] .page-hero > .container, body[data-page="runes"] .site-footer .container { width: var(--rune-w, min(1400px, 100% - 48px)); }
/* 폰 메뉴: 누르기 쉬운 높이 */
@media (max-width: 1100px) { .nav-menu a { min-height: 44px; padding: 12px 14px; align-items: center; } }

/* 푸터 오른쪽 아래: 메이플스토리 월드 로고 */
.footer-legal { width: auto; flex: 1 1 520px; }
.footer-msw { flex: none; align-self: flex-end; margin-left: auto; display: block; line-height: 0; opacity: 0.92; }
.footer-msw:hover { opacity: 1; }
.footer-msw img { width: 108px; height: auto; }
/* 좁은 화면은 푸터가 세로로 쌓인다 — 글 칸이 520px 높이로 늘지 않게 */
@media (max-width: 760px) { .footer-legal { flex: none; width: 100%; } .footer-msw { margin-left: auto; } }

/* 푸터 저작권 문구 위: 게임 운영정책 단추 */
.footer-policy {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 2px; font-weight: 700; font-size: 12px; line-height: 1.6;
  color: #333; text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1px #9a9a9a, inset 1px 1px 0 1px #fff, inset -1px -1px 0 1px #c9c9c9;
}
.footer-policy:hover { color: var(--rt-head); box-shadow: inset 0 0 0 1px #e0531f, inset 1px 1px 0 1px #fff; }
.footer-legal .footer-policy { color: #333; }
.footer-legal .footer-policy:hover { color: var(--rt-head); }
.footer-policy + .footer-policy { margin-left: 4px; }
