/* 메이플 영웅전 공식 홈페이지 레이아웃 (다크 전용) */
:root {
	--mh-bg: #0b0a14; --mh-bg-2: #14122a; --mh-bg-3: #1c1937; --mh-panel: #15132a; --mh-line: rgba(255,255,255,.08); --mh-line-2: rgba(255,255,255,.16);
	--mh-ink: #f3f2fb; --mh-sub: #aaa7c2; --mh-mute: #6f6c8a;
	--mh-amber: #d8262f; --mh-amber-ink: #ffffff; --mh-amber-2: #ff4a52; --mh-mint: #5ee0c0; --mh-rift: #7c4dff;
	--mh-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
	--mh-head: 72px; --mh-inner: 1280px;
	--point-color: var(--mh-amber); --bg: var(--mh-bg); --text: var(--mh-ink);
}
html, body { margin: 0; padding: 0; background: var(--mh-bg); color: var(--mh-ink); }
body { font-family: var(--mh-font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
body.mh-no-scroll { overflow: hidden; }
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh a { color: var(--mh-ink); text-decoration: none; }
.mh img { max-width: 100%; height: auto; }
.mh-inner { width: 100%; max-width: var(--mh-inner); margin: 0 auto; padding: 0 28px; }

/* 버튼 */
.mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--mh-line-2); border-radius: 999px; background: transparent; color: var(--mh-ink); font: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.mh-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.3); }
.mh-btn-primary, .mh-btn-play { background: var(--mh-amber); border-color: var(--mh-amber); color: var(--mh-amber-ink) !important; box-shadow: 0 6px 22px -8px rgba(216,38,47,.8); }
.mh-btn-primary:hover, .mh-btn-play:hover { background: #e8343d; box-shadow: 0 10px 28px -8px rgba(216,38,47,.9); }
.mh-btn-play svg { width: 16px; height: 16px; fill: currentColor; }
.mh-btn-ghost { background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }

/* 로고 */
.mh-logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.mh .mh-logo img { height: 56px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); transition: height .25s cubic-bezier(.2,.7,.2,1); }
.mh-logo-text { font-weight: 500; font-size: 20px; letter-spacing: .12em; color: var(--mh-ink); white-space: nowrap; }
.mh-logo-text b { font-weight: 900; color: var(--mh-amber); letter-spacing: .04em; }

/* GNB (풀폭 고정) */
.mh-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--mh-head); background: linear-gradient(to bottom, rgba(11,10,20,.85), rgba(11,10,20,0)); transition: background .25s, backdrop-filter .25s, box-shadow .25s, height .25s cubic-bezier(.2,.7,.2,1); }
/* 스크롤하면 GNB 가 낮아진다 (72 → 56px). 로고·버튼 글자도 같이 줄어든다 */
.mh-header.is-solid { height: 56px; }
.mh-header.is-solid .mh-logo img { height: 44px; }
.mh-header.is-solid .mh-gnb > ul > li > a { padding: 8px 12px; font-size: 15px; }
.mh-header.is-solid .mh-play-t1 { font-size: 14px; }
.mh-header.is-solid .mh-play-t2 { font-size: 18px; }
.mh-header.is-solid .mh-play { width: 200px; }
.mh-header.is-solid { background: rgba(11,10,20,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--mh-line); }
.mh-sub .mh-header { background: rgba(11,10,20,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--mh-line); }
/* GNB 는 풀페이지: 로고와 게임 시작이 화면 양끝에 붙는다 */
.mh-header-inner { display: flex; align-items: center; height: 100%; gap: 34px; max-width: none; padding: 0 0 0 40px; }
.mh-gnb { flex: 1; min-width: 0; }
.mh-gnb > ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mh-gnb > ul > li { position: relative; }
.mh-gnb > ul > li > a { display: block; padding: 10px 14px; font-size: 15.5px; font-weight: 700; color: #d9d7ea; letter-spacing: .01em; position: relative; transition: color .15s; }
.mh-gnb > ul > li > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mh-amber); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.mh-gnb > ul > li:hover > a, .mh-gnb > ul > li.active > a { color: #fff; }
.mh-gnb > ul > li:hover > a::after, .mh-gnb > ul > li.active > a::after { transform: scaleX(1); }
.mh-gnb-sub { position: absolute; top: 100%; left: 6px; min-width: 180px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--mh-line-2); border-radius: 12px; background: rgba(20,18,42,.96); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.mh-gnb > ul > li:hover .mh-gnb-sub, .mh-gnb > ul > li:focus-within .mh-gnb-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.mh-gnb-sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--mh-sub); }
.mh-gnb-sub a:hover, .mh-gnb-sub li.active a { background: rgba(216,38,47,.12); color: var(--mh-amber); }
.mh-utils { display: flex; align-items: center; gap: 18px; flex-shrink: 0; height: 100%; margin-left: auto; }
.mh-util-link { font-size: 14px; font-weight: 600; color: #d9d7ea; }
.mh-util-link:hover { color: #fff; }
.mh-util-dim { color: var(--mh-mute); }
.mh-menu-btn { display: none; width: 40px; height: 40px; padding: 8px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.mh-menu-btn span { display: block; height: 2px; border-radius: 2px; background: #fff; }

/* GAME START: GNB 높이 전체를 덮는 버튼 + 캔버스 연출 */
.mh-play { position: relative; display: inline-flex; align-items: stretch; justify-content: center; height: 100%; width: 220px; padding: 0; border: 0; background: linear-gradient(100deg, #b81e27 0%, #e0323b 55%, #b81e27 100%); color: var(--mh-amber-ink) !important; text-decoration: none !important; cursor: pointer; overflow: hidden; isolation: isolate; font: inherit; clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); transition: filter .2s; }
.mh-play::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); transform: translateX(-120%) skewX(-18deg); animation: mh-sheen 5.5s ease-in-out infinite; z-index: 2; pointer-events: none; }
@keyframes mh-sheen { 0%, 70% { transform: translateX(-120%) skewX(-18deg); } 100% { transform: translateX(220%) skewX(-18deg); } }
.mh-play::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 rgba(255,255,255,.0); transition: box-shadow .25s; z-index: 2; pointer-events: none; }
.mh-play:hover { filter: brightness(1.08) saturate(1.1); }
.mh-play:hover::after { box-shadow: inset 0 -3px 0 0 #ffd9db, inset 0 0 24px rgba(255,255,255,.3); }
.mh-play-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
/* 글자: 롤오버하면 작은 글자가 위로 빠지고 큰 글자가 아래에서 올라온다 */
.mh-play-label { position: relative; z-index: 3; display: block; height: 100%; width: 100%; overflow: hidden; }
.mh-play-label b { position: absolute; left: 0; right: 0; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 900; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.mh-play-t1 { font-size: 15.5px; letter-spacing: .18em; padding-left: calc(16px + .18em); }
.mh-play-t2 { font-size: 21px; letter-spacing: .22em; padding-left: calc(16px + .22em); transform: translateY(100%); opacity: 0; }
.mh-play:hover .mh-play-t1 { transform: translateY(-100%); opacity: 0; }
.mh-play:hover .mh-play-t2 { transform: translateY(0); opacity: 1; }
.mh-play:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .mh-play::before { animation: none; } }

/* 드로어 */
.mh-drawer-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6); }
.mh-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(320px, 86vw); padding: 20px; background: var(--mh-bg-2); border-left: 1px solid var(--mh-line); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; display: flex; flex-direction: column; }
.mh-drawer.is-open { transform: translateX(0); }
.mh-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mh-drawer-close { border: 0; background: none; color: var(--mh-sub); font-size: 28px; line-height: 1; cursor: pointer; }
.mh-drawer-menu { flex: 1; margin: 0; padding: 0; list-style: none; }
.mh-drawer-menu > li > a { display: block; padding: 12px 10px; font-size: 17px; font-weight: 800; border-bottom: 1px solid var(--mh-line); }
.mh-drawer-menu > li.is-current > a { color: var(--mh-amber); }
.mh-drawer-sub { margin: 0; padding: 6px 0 10px 18px; list-style: none; }
.mh-drawer-sub a { display: block; padding: 8px 6px; font-size: 14.5px; color: var(--mh-sub); }
.mh-drawer-foot { display: flex; gap: 14px; padding-top: 16px; border-top: 1px solid var(--mh-line); font-size: 14px; }
.mh-drawer-foot a { color: var(--mh-sub); }

/* 히어로 슬라이더 */
.mh-hero { position: relative; height: 100vh; min-height: 600px; max-height: 960px; overflow: hidden; background: var(--mh-bg); }
.mh-hero-track, .mh-slide { position: absolute; inset: 0; }
.mh-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.mh-slide.is-active { opacity: 1; visibility: visible; }
.mh-slide-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, #3a1a2e 0%, #16122a 45%, #0b0a14 100%); background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease-out; }
.mh-slide.is-active .mh-slide-bg { transform: scale(1); }
.mh-slide-veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,10,20,.85) 0%, rgba(11,10,20,.45) 50%, rgba(11,10,20,.15) 100%), linear-gradient(to top, var(--mh-bg) 0%, rgba(11,10,20,0) 40%); }
.mh-slide-body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; padding-top: var(--mh-head); max-width: var(--mh-inner); }
.mh-slide-eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--mh-amber); opacity: 0; transform: translateY(14px); }
.mh-slide-title { margin: 0 0 18px; font-size: clamp(36px, 5.2vw, 68px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; text-shadow: 0 10px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(18px); }
.mh-slide-text { margin: 0 0 28px; max-width: 560px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; color: #d5d2ea; opacity: 0; transform: translateY(18px); }
.mh-slide-btn { align-self: flex-start; opacity: 0; transform: translateY(18px); }
.mh-slide.is-active .mh-slide-eyebrow, .mh-slide.is-active .mh-slide-title, .mh-slide.is-active .mh-slide-text, .mh-slide.is-active .mh-slide-btn { animation: mh-rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.mh-slide.is-active .mh-slide-title { animation-delay: .12s; }
.mh-slide.is-active .mh-slide-text { animation-delay: .24s; }
.mh-slide.is-active .mh-slide-btn { animation-delay: .36s; }
@keyframes mh-rise { to { opacity: 1; transform: translateY(0); } }
.mh-rift { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.mh-rift canvas { display: block; width: 100%; height: 100%; }
.mh-hero-ctrl { position: absolute; z-index: 3; left: 50%; bottom: 64px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.mh-hero-arrow { width: 40px; height: 40px; border: 1px solid var(--mh-line-2); border-radius: 50%; background: rgba(11,10,20,.5); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.mh-hero-arrow svg { width: 18px; height: 18px; }
.mh-hero-arrow:hover { border-color: var(--mh-amber); color: var(--mh-amber); }
.mh-hero-dots { display: flex; gap: 8px; }
.mh-hero-dots button { width: 28px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.mh-hero-dots button i { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); transition: background .2s; }
.mh-hero-dots button.is-active i { background: var(--mh-amber); }
.mh-hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 20px; width: 22px; height: 34px; margin-left: -11px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; }
.mh-hero-scroll span { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--mh-amber-2); animation: mh-scroll 1.8s infinite; }
@keyframes mh-scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* 섹션 공통 */
.mh-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.mh-sec-title { margin: 0; font-size: 34px; font-weight: 900; letter-spacing: .04em; line-height: 1; }
.mh-sec-title small { display: inline-block; margin-left: 12px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--mh-sub); vertical-align: 4px; }
.mh-sec-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--mh-sub); }
.mh-sec-more svg { width: 14px; height: 14px; }
.mh-sec-more:hover { color: var(--mh-amber); }
.mh-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.mh-reveal.is-in { opacity: 1; transform: none; }

/* 새소식 카드 */
.mh-news { position: relative; padding: 80px 0 90px; background: linear-gradient(to bottom, var(--mh-bg) 0%, var(--mh-bg-2) 100%); }
.mh-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mh-card { display: flex; flex-direction: column; border: 1px solid var(--mh-line); border-radius: 16px; background: var(--mh-panel); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.mh-card:hover { transform: translateY(-4px); border-color: rgba(216,38,47,.5); box-shadow: 0 24px 40px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(216,38,47,.2); }
.mh-card:nth-child(2).mh-reveal { transition-delay: .08s; } .mh-card:nth-child(3).mh-reveal { transition-delay: .16s; } .mh-card:nth-child(4).mh-reveal { transition-delay: .24s; }
.mh-card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--mh-bg-3); overflow: hidden; }
.mh-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mh-card:hover .mh-card-thumb img { transform: scale(1.05); }
.mh-card-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; background: radial-gradient(ellipse at 50% 60%, #2a2450, #14122a); }
.mh-card-thumb-empty .mh-logo-text { font-size: 15px; opacity: .55; }
.mh-card-cat { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11,10,20,.75); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; color: var(--mh-mint); }
.mh-card-new { position: absolute; right: 12px; top: 12px; padding: 3px 8px; border-radius: 6px; background: var(--mh-amber); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.mh-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.mh-card-title { margin: 0 0 8px; font-size: 17px; font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-card-summary { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--mh-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-card-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 12.5px; color: var(--mh-mute); }
.mh-card-meta time { color: var(--mh-sub); font-weight: 600; }
.mh-card-cmt { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.mh-card-cmt svg { width: 13px; height: 13px; }
.mh-news-empty { padding: 56px 20px; text-align: center; border: 1px dashed var(--mh-line-2); border-radius: 16px; color: var(--mh-sub); }
.mh-news-empty p { margin: 0 0 6px; font-size: 15px; }
.mh-news-empty small { font-size: 12.5px; color: var(--mh-mute); }
.mh-news-empty code { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--mh-amber); }
.mh-extra { padding: 40px 0 80px; background: var(--mh-bg-2); }

/* 서브 페이지 */
.mh-sub .mh-main { padding-top: var(--mh-head); }
@media (max-width: 900px) { .mh-sub-band { height: 180px; } }
/* 서브 배너 띠: 게임 이미지가 깔리고 브레드크럼은 띠 아래쪽에 얹힌다 */
.mh-sub-band { position: relative; height: 260px; background: radial-gradient(ellipse at 25% 30%, #3a1a2e 0%, #16122a 45%, var(--mh-bg) 100%); background-size: cover; background-position: center 40%; overflow: hidden; }
.mh-sub-band-veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--mh-bg) 0%, rgba(11,10,20,.2) 45%, rgba(11,10,20,.45) 100%); }
.mh-sub-band.has-image .mh-sub-band-veil { background: linear-gradient(to top, var(--mh-bg) 0%, rgba(11,10,20,.15) 40%, rgba(11,10,20,.55) 100%); }
.mh-sub-band-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; height: 100%; padding-bottom: 18px; }
.mh-sub-body { padding: 26px 0 90px; min-height: 50vh; }
/* 브레드크럼: 제목 없이 현재 위치만 */
.mh-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13px; color: var(--mh-sub); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.mh-crumb a { color: var(--mh-sub); }
.mh-crumb a:hover { color: var(--mh-ink); }
.mh-crumb-home svg { width: 16px; height: 16px; display: block; }
.mh-crumb-sep { color: var(--mh-mute); }
.mh-crumb-cur { color: var(--mh-ink); font-weight: 700; }

/* 푸터 */
.mh-footer { padding: 48px 0 36px; background: #07060e; border-top: 1px solid var(--mh-line); color: var(--mh-sub); font-size: 13px; }
.mh-footer-top { display: flex; align-items: flex-start; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--mh-line); }
.mh-footer-logo { font-size: 18px; flex-shrink: 0; }
.mh .mh-footer-logo-img { height: 72px; width: auto; max-width: 240px; flex-shrink: 0; opacity: .9; }
.mh .mh-drawer-logo { height: 40px; width: auto; }
.mh-footer-msw { margin: 0; line-height: 1.7; max-width: 760px; }
.mh-footer-msw b { color: var(--mh-ink); }
.mh-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.mh-footer-copy { margin: 0; color: var(--mh-mute); }
.mh-footer-links { display: flex; gap: 18px; }
.mh-footer-links a { color: var(--mh-sub); font-weight: 600; }
.mh-footer-links a:hover { color: var(--mh-amber); }

/* 모달 */
.mh-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.mh-modal.is-open { opacity: 1; }
.mh-modal[hidden] { display: none; }
.mh-modal-dim { position: absolute; inset: 0; background: rgba(4,3,10,.75); backdrop-filter: blur(4px); }
.mh-modal-box { position: relative; width: min(420px, calc(100vw - 32px)); padding: 36px 28px 28px; border: 1px solid var(--mh-line-2); border-radius: 20px; background: var(--mh-bg-2); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.7); transform: translateY(10px); transition: transform .2s; }
.mh-modal.is-open .mh-modal-box { transform: none; }
.mh-modal-x { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: var(--mh-sub); font-size: 26px; line-height: 1; cursor: pointer; }
.mh-modal-glyph { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--mh-amber); }
.mh-modal-glyph svg { width: 100%; height: 100%; }
.mh-modal-title { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.mh-modal-desc { margin: 0 0 22px; color: var(--mh-sub); line-height: 1.6; white-space: pre-line; }
.mh-modal-ok { min-width: 140px; }

/* 코어 스킨이 어두운 배경 위에서 읽히도록 기본 글자색만 맞춘다 */
.mh-sub-body, .mh-extra { color: var(--mh-ink); }
.mh-sub-body a { color: var(--mh-amber); }
.mh-sub-body table { color: var(--mh-ink); }

/* 반응형 */
@media (max-width: 1100px) { .mh-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	:root { --mh-head: 60px; }
	.mh-inner { padding: 0 18px; }
	/* 모바일: 위 60px 바(로고 + 우측 끝 햄버거), 아래 44px 띠 전체가 GAME START */
	:root { --mh-head: 104px; }
	.mh-header-inner { height: 60px; gap: 14px; padding: 0 8px 0 16px; }
	.mh-utils { gap: 0; height: 60px; }
	.mh-menu-btn { order: 2; margin: 0; }
	.mh-play { position: absolute; left: 0; right: 0; top: 60px; height: 44px; padding: 0; clip-path: none; order: 1; transition: transform .25s cubic-bezier(.2,.7,.2,1), opacity .2s; }
	/* 스크롤 내리면 GAME START 띠를 감춰 화면을 넓게 쓴다 (헤더도 60px 로 줄어든다) */
	.mh-header.is-solid { height: 60px; }
	.mh-header.is-solid .mh-play { transform: translateY(-100%); opacity: 0; pointer-events: none; }
	.mh-play { width: auto; }
	.mh .mh-logo img { height: 44px; }
	.mh-play-t1 { font-size: 14px; letter-spacing: .22em; padding-left: .22em; }
	.mh-play-t2 { font-size: 17px; padding-left: .22em; }
	.mh-play { box-shadow: 0 6px 18px -8px rgba(216,38,47,.7); }
	.mh-header.is-solid .mh-play { box-shadow: none; }
	.mh-header.is-solid .mh-play { width: auto; }
	.mh-gnb { display: none; }
	.mh-util-link { display: none; }
	.mh-menu-btn { display: inline-flex; }
	.mh-hero { min-height: 520px; max-height: 720px; }
	.mh-slide-body { justify-content: flex-end; padding-bottom: 120px; }
	.mh-hero-ctrl { bottom: 44px; }
	.mh-hero-scroll { display: none; }
	.mh-news { padding: 56px 0 64px; }
	.mh-sec-title { font-size: 28px; }
	.mh-footer-top { flex-direction: column; gap: 14px; }
}
@media (max-width: 560px) { .mh-news-grid { grid-template-columns: 1fr; } }

/* 스크롤바: 네이티브는 숨기고 오버레이 바를 직접 그린다 (거터 없이 콘텐츠가 화면 끝까지) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mh-sb { position: fixed; top: 0; right: 3px; bottom: 0; width: 10px; z-index: 400; pointer-events: none; }
.mh-sb-thumb { position: absolute; left: 1px; width: 8px; min-height: 40px; border-radius: 8px; background: rgba(255,255,255,.16); opacity: 0; transition: opacity .35s, background .2s, width .15s, left .15s; pointer-events: auto; cursor: pointer; }
.mh-sb.is-on .mh-sb-thumb { opacity: 1; }
.mh-sb.is-active .mh-sb-thumb { background: rgba(216,38,47,.85); }
.mh-sb:hover .mh-sb-thumb, .mh-sb.is-drag .mh-sb-thumb { opacity: 1; background: rgba(216,38,47,.95); width: 10px; left: 0; }
.mh-sb.is-hidden { display: none; }
@media (pointer: coarse) { .mh-sb { display: none; } html { scrollbar-width: auto; } html::-webkit-scrollbar { display: block; width: auto; } }

/* 세계관 페이지: 풀페이지 스크롤텔링 */
.mh-feature .mh-main { padding-top: 0; }
.mh-ft { background: var(--mh-bg); }
.mh-ft-veil { position: absolute; inset: 0; }
.mh-ft-slot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; color: var(--mh-sub); border: 1px dashed rgba(255,255,255,.18); }
.mh-ft-slot b { font-size: 13px; letter-spacing: .12em; color: var(--mh-amber-2); }
.mh-ft-slot span { max-width: 420px; font-size: 13.5px; line-height: 1.7; color: #bdb9d6; }
.mh-ft-slot-hero, .mh-ft-slot-end { border: 0; justify-content: flex-start; padding-top: 110px; }
.mh-ft-slot-hero span, .mh-ft-slot-end span { max-width: 560px; }
.mh-ft-hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; background: radial-gradient(ellipse at 50% 20%, #3a1a2e 0%, #16122a 45%, var(--mh-bg) 100%); background-size: cover; background-position: center; overflow: hidden; }
.mh-ft-hero .mh-ft-veil { background: linear-gradient(to top, var(--mh-bg) 0%, rgba(11,10,20,.3) 50%, rgba(11,10,20,.6) 100%); }
.mh-ft-hero-body { position: relative; z-index: 2; padding: 0 6vw 16vh; max-width: 900px; }
.mh-ft-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .32em; color: var(--mh-amber-2); }
.mh-ft-title { margin: 0 0 18px; font-size: clamp(44px, 7vw, 96px); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 12px 50px rgba(0,0,0,.6); }
.mh-ft-lead { margin: 0; font-size: clamp(16px, 1.4vw, 20px); color: #d5d2ea; line-height: 1.7; max-width: 620px; }
.mh-ft-ch { display: grid; grid-template-columns: 1fr 1fr; min-height: 82vh; }
.mh-ft-ch.is-reverse .mh-ft-media { order: 2; }
.mh-ft-media { position: relative; min-height: 420px; background: radial-gradient(ellipse at 50% 50%, #2a2450 0%, #15132a 60%, var(--mh-bg) 100%); background-size: cover; background-position: center; }
.mh-ft-media.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,10,20,.35), rgba(11,10,20,0) 40%, rgba(11,10,20,0) 60%, rgba(11,10,20,.35)); }
.mh-ft-text { display: flex; flex-direction: column; justify-content: center; padding: 9vh 7vw; }
.mh-ft-num { font-family: var(--mh-mono, monospace); font-size: 13px; letter-spacing: .3em; color: var(--mh-amber-2); margin-bottom: 14px; }
.mh-ft-text h2 { margin: 0 0 22px; font-size: clamp(30px, 3.2vw, 46px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.mh-ft-text p { margin: 0 0 16px; max-width: 520px; font-size: 16.5px; line-height: 1.85; color: #d5d2ea; }
.mh-ft-quote { position: relative; margin-top: 10px !important; padding-left: 18px; border-left: 3px solid var(--mh-amber); color: #fff !important; font-weight: 600; }
.mh-ft-ch-2 { background: linear-gradient(to bottom, var(--mh-bg), #100e1f); }
.mh-ft-ch-3 { background: linear-gradient(to bottom, #100e1f, #14112a); }
.mh-ft-ch-4 { background: linear-gradient(to bottom, #14112a, #191634); }
.mh-ft-end { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at 50% 100%, #3b2a2a 0%, #1b1a34 45%, #191634 100%); background-size: cover; background-position: center; overflow: hidden; }
.mh-ft-end .mh-ft-veil { background: linear-gradient(to bottom, #191634 0%, rgba(25,22,52,.2) 40%, rgba(11,10,20,.75) 100%); }
.mh-ft-end-body { position: relative; z-index: 2; padding: 0 6vw; }
.mh-ft-end-line { margin: 0 0 30px; font-size: clamp(22px, 2.6vw, 36px); font-weight: 800; line-height: 1.5; text-shadow: 0 8px 30px rgba(0,0,0,.6); }
.mh-ft-cta { padding: 14px 38px; font-size: 15px; letter-spacing: .18em; }
.mh-ft-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.mh-ft-reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 900px) {
	.mh-ft-hero { min-height: 80vh; }
	.mh-ft-hero-body { padding: 0 20px 12vh; }
	.mh-ft-ch { grid-template-columns: 1fr; min-height: 0; }
	.mh-ft-ch.is-reverse .mh-ft-media { order: 0; }
	.mh-ft-media { min-height: 56vw; }
	.mh-ft-text { padding: 36px 20px 48px; }
	.mh-ft-slot { padding: 20px; }
	.mh-ft-slot span { font-size: 12.5px; }
}
/* GM 뱃지 (GNB 닉네임) */
.mh-gm { display: inline-flex; align-items: center; height: 17px; margin-right: 6px; padding: 0 6px; border-radius: 5px; background: var(--mh-amber); color: #fff; font-size: 10.5px; font-weight: 900; font-style: normal; letter-spacing: .06em; line-height: 1; vertical-align: 1px; }

/* 영웅 소개: 화면 전체를 쓴다. 위에 MAPLE HEROES 타이틀, 아래에 캐릭터 카드 */
.mh-heroes .mh-main { padding-top: 0; }
.mh-hx { background: var(--mh-bg); }

/* 타이틀 */
.mh-hx-head { position: relative; display: flex; align-items: flex-end; min-height: 46vh; padding-top: var(--mh-head); background: radial-gradient(ellipse at 50% 20%, #3a1a2e 0%, #16122a 50%, var(--mh-bg) 100%); background-size: cover; background-position: center 40%; overflow: hidden; }
.mh-hx-head-veil { position: absolute; inset: 0; background: linear-gradient(to top, var(--mh-bg) 0%, rgba(11,10,20,.25) 55%, rgba(11,10,20,.55) 100%); }
.mh-hx-head-body { position: relative; z-index: 1; width: 100%; padding: 0 40px 44px; }
.mh-hx-crumb { margin-bottom: 20px; }
.mh-hx-title { margin: 0 0 14px; font-size: clamp(40px, 6vw, 84px); font-weight: 500; letter-spacing: .12em; line-height: 1; text-shadow: 0 12px 46px rgba(0,0,0,.6); }
.mh-hx-title b { font-weight: 900; color: var(--mh-amber); letter-spacing: .04em; }
.mh-hx-sub { margin: 0; font-size: clamp(14px, 1.2vw, 17px); color: #d5d2ea; }

.mh-hx-empty { padding: 18vh 20px; text-align: center; color: var(--mh-sub); }
.mh-hx-empty p { margin: 0 0 6px; font-size: 17px; }
.mh-hx-empty small { color: var(--mh-mute); font-size: 13px; }

/* 캐릭터 카드 */
.mh-hx-cards { padding: 8px 40px 90px; }
.mh-hx-cards-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mh-hx-count { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--mh-sub); }
.mh-hx-count b { color: var(--mh-amber); }
.mh-hx-search { margin-left: auto; width: 220px; padding: 8px 12px; border: 1px solid var(--mh-line-2); border-radius: 8px; background: #0f0d1e; color: var(--mh-ink); font-size: 13.5px; }
.mh-hx-search:focus { outline: none; border-color: var(--mh-amber); }
.mh-hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.mh-hx-card { position: relative; display: block; aspect-ratio: 3 / 4; padding: 0; border: 1px solid var(--mh-line); border-radius: 16px; background: var(--mh-bg-3); overflow: hidden; cursor: pointer; font: inherit; color: var(--mh-ink); text-align: left; transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s; }
.mh-hx-card:hover { transform: translateY(-6px); border-color: var(--mh-amber); box-shadow: 0 26px 50px -26px rgba(0,0,0,.9), 0 0 0 1px rgba(216,38,47,.35); }
.mh-hx-card.is-off { filter: saturate(.5); }
.mh-hx-card.is-hidden { display: none; }
.mh-hx-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 35%, #2f2352 0%, #1a1533 60%, #12101f 100%); background-size: cover; background-position: center top; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mh-hx-card:hover .mh-hx-art { transform: scale(1.06); }
.mh-hx-initial { font-style: normal; font-size: 64px; font-weight: 900; color: rgba(255,255,255,.1); }
.mh-hx-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,7,16,.95) 0%, rgba(8,7,16,.55) 34%, rgba(8,7,16,0) 62%); }
.mh-hx-cardtext { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; display: block; }
.mh-hx-cardlabel { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--mh-amber); }
.mh-hx-cardname { display: block; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
.mh-hx-carddesc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; max-height: 0; opacity: 0; font-size: 13.5px; line-height: 1.6; color: #cfcbe6; transition: max-height .25s, opacity .25s, margin-top .25s; }
.mh-hx-card:hover .mh-hx-carddesc { max-height: 46px; opacity: 1; }
.mh-hx-soon { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(8,7,16,.8); backdrop-filter: blur(6px); color: var(--mh-sub); font-size: 11.5px; font-weight: 700; font-style: normal; letter-spacing: 0; }
.mh-hx-none { margin: 18px 2px 0; font-size: 14px; color: var(--mh-mute); }

/* 카드를 누르면 열리는 소개 */
.mh-hx-view { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.mh-hx-view.is-open { opacity: 1; }
.mh-hx-view[hidden] { display: none; }
.mh-hx-view-dim { position: absolute; inset: 0; background: rgba(6,5,12,.86); backdrop-filter: blur(6px); }
.mh-hx-view-box { position: relative; width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 1px solid var(--mh-line-2); border-radius: 20px; background: var(--mh-bg-2); box-shadow: 0 40px 90px rgba(0,0,0,.8); overflow: hidden; transform: translateY(12px) scale(.99); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.mh-hx-view.is-open .mh-hx-view-box { transform: none; }
.mh-hx-view-x { position: absolute; right: 14px; top: 10px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(8,7,16,.6); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.mh-hx-view-x:hover { background: var(--mh-amber); }
.mh-hx-panel { display: none; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); max-height: calc(100vh - 64px); }
.mh-hx-panel.is-on { display: grid; }
.mh-hx-panel-art { position: relative; min-height: 420px; background: radial-gradient(ellipse at 50% 35%, #3a1a2e 0%, #16122a 55%, var(--mh-bg) 100%); background-size: cover; background-position: center top; }
.mh-hx-panel-art .mh-ft-slot { border: 0; }
.mh-hx-panel-info { padding: 44px 40px; overflow-y: auto; }
.mh-hx-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--mh-amber); }
.mh-hx-name { margin: 0 0 20px; font-size: clamp(28px, 3vw, 42px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-hx-name .mh-hx-soon { position: static; padding: 3px 10px; font-size: 12px; background: rgba(255,255,255,.12); backdrop-filter: none; }
.mh-hx-desc { margin: 0 0 16px; font-size: 16px; line-height: 1.85; color: #d5d2ea; }
.mh-hx-story { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--mh-line-2); font-size: 14.5px; line-height: 1.85; color: var(--mh-sub); }
.mh-hx-cta { margin-top: 26px; }
.mh-hx-cta .mh-btn { padding: 13px 30px; font-size: 15px; }
.mh-hx-extra { padding: 60px 0 80px; background: var(--mh-bg-2); }

@media (max-width: 900px) {
	.mh-hx-head { min-height: 34vh; }
	.mh-hx-head-body { padding: 0 18px 30px; }
	.mh-hx-cards { padding: 8px 18px 70px; }
	.mh-hx-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.mh-hx-cardname { font-size: 17px; }
	.mh-hx-carddesc { display: none; }
	.mh-hx-search { width: 150px; }
	.mh-hx-view-box { width: calc(100vw - 20px); max-height: calc(100vh - 40px); }
	.mh-hx-panel, .mh-hx-panel.is-on { grid-template-columns: 1fr; display: block; overflow-y: auto; max-height: calc(100vh - 40px); }
	.mh-hx-panel-art { min-height: 0; height: 46vh; }
	.mh-hx-panel-info { padding: 26px 20px 34px; }
}
/* 안쪽 스크롤 영역(팝업 레이어·드로어·본문 상자 등)도 같은 스크롤바를 쓴다.
   바깥(문서) 스크롤바는 JS 오버레이가 그리지만, 안쪽 영역은 브라우저가 그리므로 여기서 칠한다.
   표준 속성(scrollbar-color)을 같이 쓰면 크롬이 webkit 규칙을 버리고 자기 트랙을 그린다 — 갈라 둔다 */
.mh *::-webkit-scrollbar, .mh-modal *::-webkit-scrollbar { width: 8px; height: 8px; }
.mh *::-webkit-scrollbar-track, .mh *::-webkit-scrollbar-track-piece, .mh *::-webkit-scrollbar-corner,
.mh-modal *::-webkit-scrollbar-track, .mh-modal *::-webkit-scrollbar-track-piece, .mh-modal *::-webkit-scrollbar-corner {
	background: transparent; border: 0; box-shadow: none;
}
.mh *::-webkit-scrollbar-button, .mh-modal *::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.mh *::-webkit-scrollbar-thumb, .mh-modal *::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .16);
	border: 2px solid transparent;
	background-clip: padding-box;
	border-radius: 8px;
	transition: background .2s;
}
.mh *::-webkit-scrollbar-thumb:hover, .mh-modal *::-webkit-scrollbar-thumb:hover {
	background: rgba(216, 38, 47, .9);
	background-clip: padding-box;
}
@supports not selector(::-webkit-scrollbar) {
	.mh *, .mh-modal * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
}
