@font-face {
  font-family: 'MaplestoryLight';
  src: url('../fonts/Maplestory-Light.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'RegularFont';
  font-weight: 400;
  font-style: normal;
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindRegular.woff') format('woff');
  font-display: swap;
}


:root {
  --sidebar: 244px;
  --accent: #ff5366;
  --accent-2: #23c7e7;
  --blue: #167ab5;
  --blue-dark: #12689c;
  --ink: #323946;
  --muted: #8a93a3;
  --line: #edf0f4;
  --panel: #ffffff;
  --soft: #f7f9fc;
  --code: #1f2937;
}

* { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'RegularFont', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.82;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e8ebf0;
  box-shadow: 8px 0 28px rgba(18, 28, 45, .08);
}

.profile-cover {
  height: 94px;
  background: url('../images/sidebar-cover.svg') center/cover no-repeat;
}

.profile-box {
  margin-top: -48px;
  padding: 0 18px 20px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  margin: 0 auto 14px;
  border: 5px solid #fff;
  border-radius: 28px;
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, transparent 15%), linear-gradient(145deg, #101827, #05070d);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(20, 31, 47, .22);
}

.profile-name { margin: 0; font-size: 1.05rem; font-weight: 900; color: #111827; }
.profile-sub { margin: 4px 0 18px; color: #8f98a7; font-size: .88rem; }

.container44 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 224px;
  margin: 0 0 22px;
  padding: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 37, 50, .13);
}

.container44 ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  min-height: 52px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
}

.container44 li {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  text-align: center;
}

.container44 a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #97a5b5;
  font-weight: 900;
}

.container44 a:hover {
  background: #f6f8fb;
  color: var(--accent);
}

.container44 p {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quick-icon {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1;
}

.quick-home { color: #c9867a; }
.quick-search { color: #8aabc8; }
.quick-user { color: #d7a970; }

.sidebar-nav { padding: 0 14px 34px; }
.nav-group-title {
  margin: 4px 4px 13px;
  color: #20a8ee;
  background: linear-gradient(90deg, #17c4d7 0%, #2f8df4 58%, #7168ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.sidebar-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sidebar-list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 7px;
  border-radius: 14px;
  color: #3d4655;
  font-size: .92rem;
  font-weight: 800;
}
.sidebar-list a:hover, .sidebar-list a.is-active { background: #f7f9fc; color: #111827; }
.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f4f8;
  color: #9ca3af;
  font-size: .76rem;
}
.mobile-menu {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 70;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #167ab5;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .2);
  cursor: pointer;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(16, 24, 40, .42);
}

.site-main {
  min-height: 100vh;
  margin-top: -30px;
  margin-left: var(--sidebar);
  padding-top: 0;
  background: #fff;
}

.hero {
  position: relative;
  margin-top: 0;
  min-height: 550px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(rgba(19, 115, 175, .92), rgba(19, 115, 175, .86)), url('../images/hero-dns.svg') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -78px;
  height: 150px;
  border-radius: 50% 50% 0 0;
  background: #fff;
}

.topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 36px;
  color: rgba(255,255,255,.74);
  font-weight: 900;
}
.topbar-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 30px;
}
.topbar-centered .brand { justify-self: center; }
.topbar-left, .topbar-right { display: flex; gap: 28px; align-items: center; }
.topbar-right { justify-content: flex-end; }
.brand { color: #fff; font-size: 1rem; }

.hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 400px;
  padding: 20px 28px 96px;
  text-align: center;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255,83,102,.35);
}
.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.25;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(7, 50, 82, .3);
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255,255,255,.88);
  font-size: .95rem;
  font-weight: 800;
}

.content-wrap {
  position: relative;
  z-index: 3;
  width: min(860px, calc(100% - 48px));
  margin: -42px auto 90px;
}

.article-panel {
  padding: 42px 42px 54px;
  border-top: 3px solid var(--accent);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(24, 35, 52, .12);
}
.index-panel { padding-top: 28px; }

.toc-box {
  margin: 0 0 34px;
  padding: 22px 26px;
  border: 1px solid #edf0f5;
  border-radius: 22px;
  background: #fbfcfe;
}
.toc-box strong { display: block; margin-bottom: 12px; color: #1f2937; font-size: 1.08rem; font-weight: 900; }
.toc-box ol { margin: 0; padding-left: 22px; }
.toc-box li { margin: 5px 0; color: #4b5563; font-weight: 700; }

h2 {
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid #202938;
  color: #202938;
  font-size: 1.62rem;
  font-weight: 900;
  line-height: 1.38;
}
p { margin: 12px 0; }
.figure { margin: 28px 0 24px; text-align: center; }
.figure img { width: 100%; max-width: 780px; border: 1px solid #e4e8ef; border-radius: 20px; box-shadow: 0 12px 26px rgba(17,24,39,.08); cursor: zoom-in; }
.figure figcaption { margin-top: 10px; color: #7b8493; font-size: .9rem; }
.key-box,.warn-box,.summary-box,.info-box,.danger-box { margin: 22px 0; padding: 20px 22px; border-radius: 20px; }
.key-box { border-left: 7px solid #23b7e5; background: #eef9ff; }
.warn-box { border-left: 7px solid #f8b84e; background: #fff8e8; }
.summary-box { border: 1px solid #e8edf3; background: #f8fafc; }
.info-box { border-left: 7px solid #2ec28b; background: #effbf5; }
.danger-box { border-left: 7px solid #ff5366; background: #fff0f3; }
.big-point { display: block; margin-bottom: 8px; color: #1f2937; font-size: 1.12rem; font-weight: 900; }
.easy-box {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #d8eef8;
  border-radius: 20px;
  background: #f4fbff;
}
.easy-box strong {
  display: block;
  margin-bottom: 8px;
  color: #147da2;
  font-weight: 900;
}
.important {
  color: #e63f5c;
  font-weight: 900;
  border-bottom: 3px solid rgba(230, 63, 92, .28);
  background: linear-gradient(transparent 62%, rgba(255, 83, 102, .14) 0);
}
.important-blue {
  color: #147dab;
  font-weight: 900;
  border-bottom: 3px solid rgba(35, 183, 229, .3);
  background: linear-gradient(transparent 62%, rgba(35, 183, 229, .13) 0);
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 34px;
}
.web-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 35, 52, .07);
}
.web-figure img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 10px;
  cursor: zoom-in;
}
.web-figure figcaption {
  color: #687386;
  font-size: .84rem;
  line-height: 1.55;
  text-align: center;
}
.web-figure figcaption a {
  color: #147dab;
  font-weight: 900;
}

table { width: 100%; margin: 20px 0 30px; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 11px 13px; border: 1px solid #e3e8ef; vertical-align: top; }
th { background: #f4f7fb; color: #1f2937; font-weight: 900; }
code { padding: 2px 5px; border-radius: 5px; background: #eef2f7; font-family: Consolas, Monaco, monospace; }
pre { margin: 20px 0 28px; padding: 18px 20px; overflow-x: auto; border-radius: 18px; background: var(--code); color: #eef2ff; line-height: 1.68; }
pre code { padding: 0; background: transparent; color: inherit; }

.page-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 58px; padding-top: 24px; border-top: 1px solid #e9edf3; }
.page-nav a { min-width: 130px; padding: 11px 16px; border-radius: 999px; background: #f5f8fc; color: #526071; font-weight: 900; text-align: center; }
.page-nav a:hover { background: #fff0f3; color: var(--accent); }

.index-grid { display: grid; gap: 14px; margin-top: 18px; }
.index-link {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #e9edf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24,35,52,.06);
}
.index-link:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(24,35,52,.1); }
.index-no {display: grid !important;place-items: center;width: 44px;height: 44px;border-radius: 50%;background: #eef9ff;color: #18a8d4 !important;font-weight: 900;}
.index-link strong { display: block; color: #263142; font-size: 1.06rem; }
.index-link span { display: block; margin-top: 3px; color: #7b8493; font-size: .9rem; }
.index-arrow { color: var(--accent); font-weight: 900; }

.top-button { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #7768ff, #ff5366); color: #fff; font-size: 1rem; font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 10px 24px rgba(88,75,255,.32); }
.top-button.is-visible { display: inline-flex; }
.top-button i { display: block; line-height: 1; }

body.lightbox-open { overflow: hidden; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 22px 34px;
  background: rgba(30, 30, 30, .96);
}

.image-lightbox.is-open { display: flex; }

.image-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1120px, 100%);
  max-height: 100%;
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.image-lightbox-caption {
  width: min(1120px, 100%);
  margin: 18px 0 0;
  color: #f5f7fb;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  text-align: left;
}

.image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:hover { background: rgba(255,255,255,.12); }
.image-lightbox-close i { display: block; line-height: 1; }

@media (max-width: 1020px) {
  .mobile-menu { display: block; }
  .site-sidebar { transform: translateX(-105%); transition: transform .25s ease; }
  body.sidebar-open .site-sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .site-main { margin-left: 0; }
  .topbar { padding-left: 72px; }
  .topbar.topbar-centered { padding-left: 36px; padding-right: 36px; }
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .hero { min-height: 470px; }
  .topbar { grid-template-columns: 1fr; gap: 10px; padding: 22px 18px 0 70px; }
  .topbar.topbar-centered {
    padding: 22px 18px 0;
    justify-items: center;
  }
  .topbar-left, .topbar-right { display: none; }
  .brand { justify-self: end; }
  .topbar.topbar-centered .brand { justify-self: center; }
  .hero-center { min-height: 360px; padding: 20px 18px 78px; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.8rem); }
  .content-wrap { width: min(100% - 28px, 860px); margin-top: -34px; }
  .article-panel { padding: 28px 20px 38px; border-radius: 22px; }
  h2 { margin-top: 42px; font-size: 1.34rem; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .index-link { grid-template-columns: 44px 1fr; }
  .visual-grid { grid-template-columns: 1fr; }
  .web-figure img { height: 180px; }
  .index-arrow {display: none !important;}
  .page-nav { flex-direction: column; }
  .page-nav a { width: 100%; }
}


.hero h1,
.hero-meta,
.category-pill,
.brand,
.profile-name,
.index-title,
.post-maple-title {
  font-family: 'MaplestoryLight', 'RegularFont', sans-serif;
}
