/* 메이플런 공개 사이트 — 게임 UI 에서 가져온 디자인: 청록·짙은 청회색 · 노란 강조 · 굵은 외곽선 + 아래 그림자 · 메이플스토리 글꼴 */
@font-face { font-family: "Maple"; font-weight: 700; src: url("font/MaplestoryOTFBold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Maple"; font-weight: 300; src: url("font/MaplestoryOTFLight.woff") format("woff"); font-display: swap; }

:root {
  --ink: #1f2f3b; --ink-2: #2c4452; --sub: #586d7a; --mute: #8aa0ac;
  --bg: #f1f6f5; --paper: #ffffff; --line: #d5e2e1; --line-2: #e6eeed;
  --mint: #1ec8a0; --mint-2: #14a886; --mint-soft: #ddf6ef; --teal: #20857b;
  --yellow: #ffe24a; --yellow-2: #f6c51b; --yellow-soft: #fff6c7;
  --blue: #7f9de6; --blue-soft: #e5ecff;
  --outline: #233240; --danger: #d64545;
  --r: 16px; --r-sm: 10px; --r-pill: 999px;
  --wrap: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --font-game: "Maple", var(--font);
  --pop: 0 4px 0 var(--outline);
}
:lang(zh-TW) { --font: "Pretendard Variable", Pretendard, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:lang(zh-CN) { --font: "Pretendard Variable", Pretendard, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ja) { --font: "Pretendard Variable", Pretendard, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif; }
/* 메이플스토리 글꼴은 한글·영문만 있어(가나·한자 없음) 중국어·일본어 화면의 제목은 본문 글꼴로 */
:lang(zh-TW), :lang(zh-CN), :lang(ja) { --font-game: var(--font); }
/* keep-all(한국어 낱말 단위 줄바꿈)은 일본어·중국어에선 문장부호에서만 줄이 바뀌어 어색 → 일반 줄바꿈 */
:lang(zh-TW), :lang(zh-CN), :lang(ja) { word-break: normal; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.game { font-family: var(--font-game); font-weight: 700; letter-spacing: -0.01em; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ── 버튼 (게임 버튼처럼 외곽선 + 아래 그림자, 누르면 내려감) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  border: 2px solid var(--outline); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: var(--pop);
  cursor: pointer; transition: transform .08s, box-shadow .08s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--outline); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.btn.play { background: var(--yellow); }
.btn.play:hover { background: #ffe964; }
.btn.mint { background: var(--mint); color: #fff; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn.play .game, .btn .game { font-size: 1.05em; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ── 상단 메뉴 (밝은 바탕) */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--outline); }
.hd-in { display: flex; align-items: center; height: 70px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-text { font-family: "Maple", var(--font); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.gnb { display: flex; gap: 4px; flex: 1; }
.gnb > div { position: relative; }
.gnb > div > a { display: flex; align-items: center; height: 70px; padding: 0 14px; font-weight: 700; font-size: 16px; color: var(--ink-2); position: relative; }
.gnb > div > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 4px; border-radius: 4px 4px 0 0; background: var(--mint); transform: scaleX(0); transition: transform .15s; }
.gnb > div:hover > a::after, .gnb > div.on > a::after { transform: scaleX(1); }
.gnb .sub { position: absolute; left: 0; top: 64px; min-width: 160px; padding: 8px; background: var(--paper); border: 2px solid var(--outline); border-radius: 14px; box-shadow: var(--pop);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.gnb > div:hover .sub, .gnb > div:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.gnb .sub a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.gnb .sub a:hover, .gnb .sub a.on { background: var(--mint-soft); color: var(--ink); }
.utils { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { position: relative; }
.lang > button { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; }
.lang > button:hover { border-color: var(--outline); color: var(--ink); }
.lang ul { position: absolute; right: 0; top: 46px; list-style: none; margin: 0; padding: 6px; min-width: 140px; background: var(--paper); border: 2px solid var(--outline); border-radius: 12px; box-shadow: var(--pop); }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--sub); }
.lang li a:hover, .lang li a.on { background: var(--mint-soft); color: var(--ink); font-weight: 700; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--outline); background: #5865f2; color: #fff; box-shadow: 0 3px 0 var(--outline); }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--outline); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 2px solid var(--outline); background: var(--paper); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--outline); border-radius: 2px; }

/* 모바일 메뉴 */
.drawer-bg { position: fixed; inset: 0; background: rgba(20, 30, 40, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); z-index: 61; border-left: 2px solid var(--outline); padding: 18px 20px 28px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-head button { width: 40px; height: 40px; border: 2px solid var(--outline); border-radius: 12px; background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer h4 { margin: 18px 0 6px; font-size: 13px; color: var(--mute); }
.drawer a.dl { display: block; padding: 9px 4px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line-2); }
.drawer .langs { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer .langs a { padding: 6px 12px; border-radius: var(--r-pill); border: 2px solid var(--line); font-size: 13px; font-weight: 600; }
.drawer .langs a.on { border-color: var(--outline); background: var(--mint-soft); }
.drawer .btns { display: grid; gap: 10px; margin-top: 22px; }

/* ── 대표 영역 */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(165deg, #23998b 0%, #20857b 28%, #2c4452 72%, #26323f 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse at 85% 15%, rgba(255, 226, 74, .16), transparent 50%),
  radial-gradient(ellipse at 10% 90%, rgba(30, 200, 160, .28), transparent 55%); pointer-events: none; }
.hero-in { position: relative; padding: 84px 24px 110px; }
.hero-eyebrow { display: inline-block; padding: 4px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .35); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hero h1 { margin: 18px 0 14px; font-family: "Maple", var(--font); font-weight: 700; font-size: clamp(48px, 7vw, 88px); line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; -webkit-text-stroke: 8px var(--outline); paint-order: stroke fill; text-shadow: 0 6px 0 rgba(20, 30, 40, .35); }
.hero p { margin: 0 0 30px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* 아래 가장자리: 달리기 트랙 */
.track { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: #3a5566; border-top: 3px solid var(--outline); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 5px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 46px, transparent 46px 86px); }

/* ── 바로가기 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--paper); border: 2px solid var(--outline); border-radius: var(--r); box-shadow: var(--pop); transition: transform .1s, box-shadow .1s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--outline); }
.tile-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 2px solid var(--outline); flex: none; }
.tile-ic svg { width: 24px; height: 24px; }
.tile b { display: block; font-size: 17px; }
.tile div > span { display: block; font-size: 13px; color: var(--sub); }   /* 설명 글만(아이콘 상자 .tile-ic 도 span 이라 범위를 좁힘 — 넓으면 아이콘 가운데 정렬이 풀림) */
.tile .go { margin-left: auto; color: var(--mute); }

/* ── 홈 섹션 */
.sec { padding: 64px 0 8px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-family: var(--font-game); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; }
.sec-head p { margin: 4px 0 0; color: var(--sub); font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--sub); padding: 6px 4px; }
.more:hover { color: var(--teal); }

/* 소식 카드: 그림 대신 분류 색 + 큰 글자 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--outline); border-radius: var(--r); box-shadow: var(--pop); overflow: hidden; transition: transform .1s, box-shadow .1s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--outline); }
.art { position: relative; height: 148px; padding: 16px 18px; border-bottom: 2px solid var(--outline); overflow: hidden; color: #fff; }
.art .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; opacity: .85; }
.art .big { display: block; margin-top: 10px; font-family: var(--font-game); font-weight: 700; font-size: 30px; line-height: 1.1; -webkit-text-stroke: 5px rgba(20, 30, 40, .55); paint-order: stroke fill; }
.art .dt { position: absolute; left: 18px; bottom: 14px; font-size: 12px; font-weight: 700; opacity: .9; }
.art.notice { background: linear-gradient(150deg, #48708a, #2c4452); }
.art.patch { background: linear-gradient(150deg, #2fd6ad, #1f8f84); }
.art.event { background: linear-gradient(150deg, #ffe867, #f6b91b); color: var(--ink); }
.art.event .big { color: #fff; }
.art.guide { background: linear-gradient(150deg, #9fb7f5, #6884d6); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: 0 0 12px; font-size: 13px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body time { margin-top: auto; font-size: 12px; color: var(--mute); }

/* 분류·상태 표식 */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; border: 1.5px solid var(--outline); background: var(--paper); white-space: nowrap; }
.chip.notice { background: #dfe9f0; }
.chip.patch { background: var(--mint-soft); }
.chip.event { background: var(--yellow-soft); }
.chip.guide { background: var(--blue-soft); }
.chip.on { background: var(--mint); color: #fff; }
.chip.soon { background: var(--yellow); }
.chip.end { background: #e7ecee; color: var(--mute); border-color: var(--mute); }
.chip.pin { background: var(--outline); color: #fff; }

/* 홈 가이드 목록 */
.glist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.glist a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; font-weight: 700; }
.glist a:hover { border-color: var(--outline); }
.glist a span:not(.chip) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r); }

/* ── 하위 페이지 머리 */
.ph { background: linear-gradient(180deg, #dff4ee, var(--bg)); border-bottom: 2px solid var(--line-2); }
.ph .wrap { padding-top: 34px; padding-bottom: 30px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); }
.crumb a:hover { color: var(--teal); }
.crumb i { font-style: normal; color: var(--mute); }
.ph h1 { margin: 8px 0 0; font-family: var(--font-game); font-weight: 700; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; }
.ph p { margin: 8px 0 0; color: var(--sub); max-width: 720px; }
.page { padding: 32px 0 72px; }
.panel { background: var(--paper); border: 2px solid var(--outline); border-radius: 22px; box-shadow: var(--pop); padding: 32px; }

/* 목록 */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tabs a { height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--paper); font-weight: 700; font-size: 14px; color: var(--sub); }
.tabs a:hover { border-color: var(--outline); color: var(--ink); }
.tabs a.on { background: var(--outline); border-color: var(--outline); color: #fff; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--bg); border: 2px solid transparent; border-radius: 14px; transition: border-color .12s, background .12s; }
.row:hover { border-color: var(--outline); background: var(--paper); }
.row .t { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .m { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

/* 글 보기 */
.post-head { padding-bottom: 20px; border-bottom: 2px solid var(--line-2); margin-bottom: 26px; }
.post-head .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.post-head h1 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; letter-spacing: -0.02em; }
.post-head .meta { color: var(--mute); font-size: 14px; display: flex; flex-wrap: wrap; gap: 14px; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--yellow-soft); border: 1.5px solid #f2d76a; font-size: 14px; margin-bottom: 22px; }
.md { font-size: 16px; line-height: 1.85; color: #2a3a46; }
.md h2 { margin: 1.6em 0 .5em; font-size: 22px; color: var(--ink); }
.md h3 { margin: 1.5em 0 .4em; font-size: 18px; color: var(--ink); }
.md h4 { margin: 1.3em 0 .3em; font-size: 16px; }
.md p { margin: 0 0 1em; }
.md ul { margin: 0 0 1em; padding-left: 1.3em; }
.md li { margin: .25em 0; }
.md li::marker { color: var(--teal); }
.md hr { border: 0; border-top: 2px dashed var(--line); margin: 1.8em 0; }
.md a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.md > :first-child { margin-top: 0; }
/* 글 본문(관리자 웹 편집기 Quill 2 의 HTML) — 편집기 모양과 같게. 줄마다 <p>, 빈 줄 = <p><br></p> 이라 문단 사이 여백은 0.
   여기 규칙을 바꾸면 관리자 웹 style.css 의 .site-editor .ql-editor 도 같이(편집기 = 사이트). 허용 서식 = api/src/html.js */
.post-body { font-size: 16px; line-height: 1.85; color: #2a3a46; overflow-wrap: anywhere; }
.post-body p, .post-body ol, .post-body ul { margin: 0; }
.post-body h2 { font-size: 1.5em; line-height: 1.4; margin: .5em 0 .25em; color: var(--ink); }
.post-body h3 { font-size: 1.17em; line-height: 1.5; margin: .5em 0 .25em; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body ol, .post-body ul { padding-left: 1.5em; }
.post-body li { padding-left: .2em; }
.post-body li[data-list="bullet"] { list-style-type: disc; }
.post-body li[data-list="ordered"] { list-style-type: decimal; }
.post-body li::marker { color: var(--teal); }
.post-body blockquote { margin: .3em 0; padding-left: 16px; border-left: 4px solid #cfe3df; color: var(--sub); }
.post-body a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.post-body .ql-size-small { font-size: .75em; }
.post-body .ql-size-large { font-size: 1.5em; }
.post-body .ql-size-huge { font-size: 2.5em; line-height: 1.3; }
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-right { text-align: right; }
.post-body .ql-align-justify { text-align: justify; }
.post-body .ql-indent-1 { padding-left: 3em; }
.post-body .ql-indent-2 { padding-left: 6em; }
.post-body .ql-indent-3 { padding-left: 9em; }
.post-body .ql-indent-4 { padding-left: 12em; }
.post-body .ql-indent-5 { padding-left: 15em; }
.post-body .ql-indent-6 { padding-left: 18em; }
.post-body .ql-indent-7 { padding-left: 21em; }
.post-body .ql-indent-8 { padding-left: 24em; }
.post-foot { margin-top: 36px; padding-top: 22px; border-top: 2px solid var(--line-2); display: flex; justify-content: center; }

/* 확률 정보 */
.pnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pmeta span { padding: 3px 12px; border-radius: var(--r-pill); background: var(--paper); border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; color: var(--sub); }
.psec + .psec { margin-top: 26px; }
.psec h2 { margin: 0 0 4px; font-family: var(--font-game); font-size: 26px; }
.psec .where { margin: 0 0 18px; color: var(--sub); font-size: 14px; }
.psec h3 { margin: 24px 0 10px; font-size: 16px; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.stat > div { background: var(--bg); border-radius: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); }
.stat .k { color: var(--sub); font-size: 12px; font-weight: 600; }
.stat .v { font-size: 18px; font-weight: 800; margin-top: 2px; }
.stat .s { color: var(--mute); font-size: 12px; margin-top: 2px; }
.tblw { overflow-x: auto; border: 2px solid var(--outline); border-radius: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.tbl th { background: var(--ink-2); color: #fff; font-weight: 700; font-size: 13px; text-align: left; padding: 10px 14px; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line-2); }
.tbl tbody tr:nth-child(even) td { background: #f8fbfb; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.tbl tfoot td { background: var(--bg); color: var(--sub); font-size: 13px; border-top: 2px solid var(--line); }
.tbl .orig { display: block; font-size: 12px; color: var(--mute); }
.tag { display: inline-block; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; margin-left: 6px; vertical-align: 1px; border: 1.5px solid var(--outline); }
.tag.up { background: var(--mint); color: #fff; }
.tag.sp { background: var(--yellow); }
.tag.cls { background: var(--paper); color: var(--sub); border-color: var(--line); margin: 0 8px 0 0; }
ul.rules { margin: 0; padding-left: 18px; }
ul.rules li { margin: 5px 0; }
.box { background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 14px; }

/* 문의 */
.form { display: grid; gap: 18px; }
.wrap.narrow { max-width: 848px; }   /* 800 + 좌우 여백 24 */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.fld { display: grid; gap: 6px; }
.fld > span { font-weight: 700; font-size: 14px; }
.fld small { color: var(--mute); font-size: 12px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font-size: 15px; }
.fld textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--mint-2); box-shadow: 0 0 0 3px rgba(30, 200, 160, .2); }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-flex; height: 40px; align-items: center; padding: 0 16px; border-radius: var(--r-pill); border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--sub); background: var(--paper); }
.kinds input:checked + span { border-color: var(--outline); background: var(--mint-soft); color: var(--ink); }
.kinds input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30, 200, 160, .35); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mint-2); }
.agree a { color: var(--teal); font-weight: 700; text-decoration: underline; }
.err { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 1.2em; }
.done { text-align: center; padding: 36px 10px; }
.done p { font-size: 17px; font-weight: 700; margin: 0 0 20px; }

/* ── 바닥글 */
.ft { margin-top: 40px; background: var(--outline); color: #b9c8d1; font-size: 13px; }
.ft .wrap { padding-top: 36px; padding-bottom: 40px; }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 18px; }
.ft .logo-text { color: #fff; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ft-links a { color: #e5eef2; font-weight: 700; }
.ft-links a:hover { color: var(--yellow); }
.ft p { margin: 0 0 10px; line-height: 1.7; }
.ft p b { color: #fff; }
.ft .langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0; }
.ft .langs a.on { color: var(--yellow); font-weight: 700; }
.ft .copy { color: #8ea2ae; }

.loading { padding: 80px 0; text-align: center; color: var(--mute); }

/* ── 반응형 */
@media (max-width: 1080px) {
  .gnb > div > a { padding: 0 10px; font-size: 15px; }
  .hd-in { gap: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .gnb, .utils .lang, .utils .icon-btn { display: none; }
  .menu-btn { display: block; }
  .hd-in { height: 62px; }
  .hero-in { padding: 56px 24px 96px; }

  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero-in { padding: 44px 16px 90px; }
  .hero h1 { -webkit-text-stroke-width: 6px; }
  .hero p { font-size: 15px; }
  .utils .btn.play { height: 38px; padding: 0 14px; font-size: 13px; }
  .tiles { gap: 10px; }
  .tile { padding: 14px; gap: 10px; }
  .tile-ic { width: 40px; height: 40px; }
  .tile .go { display: none; }
  .cards { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .art { height: 118px; }
  .art .big { font-size: 26px; margin-top: 6px; }
  .glist { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 26px; }
  .panel { padding: 20px 16px; border-radius: 18px; }
  .row { flex-wrap: wrap; padding: 14px; gap: 8px; }
  .row .t { flex-basis: 100%; order: 2; white-space: normal; }
  .row .m { order: 3; }
}

/* ════════════════════════════════════════════════════════════════════════
   메인 배너(첫 화면 큰 화면, 번갈아 나옴) — 관리자 웹 글의 '메인 배너에 올리기'
   ════════════════════════════════════════════════════════════════════════ */
.hero.slides { padding: 0; }
.slides-track { position: relative; z-index: 0; height: clamp(420px, 46vw, 600px); }
/* 전환: 새 배너(on)가 떠나는 배너(prev) 위로 서서히 덮는다. 시간은 app.js SLIDE_FADE_MS 와 같게 */
.slide { position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 1.1s; }
.slide.on { z-index: 2; opacity: 1; visibility: visible; transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.slide.prev { z-index: 1; opacity: 1; visibility: visible; transition: none; }
/* 글자는 배너가 덮인 뒤 아래에서 살짝 떠오른다 */
.slide-body > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.slide.on .slide-body > * { opacity: 1; transform: none; }
.slide.on .slide-body > :nth-child(1) { transition-delay: .35s; }
.slide.on .slide-body > :nth-child(2) { transition-delay: .45s; }
.slide.on .slide-body > :nth-child(3) { transition-delay: .55s; }
.slide.on .slide-body > :nth-child(4) { transition-delay: .65s; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); transition: transform 7s ease; }
.slide.on .slide-bg { transform: scale(1); }
.slide-bg.notice { background-image: linear-gradient(150deg, #48708a, #2c4452 70%); }
.slide-bg.patch { background-image: linear-gradient(150deg, #23998b, #20857b 40%, #2c4452); }
.slide-bg.event { background-image: linear-gradient(150deg, #f6b91b, #e2762c 55%, #6b2d22); }
.slide-bg.guide { background-image: linear-gradient(150deg, #7f9de6, #4b62b8 60%, #26323f); }
.slide-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 28, 38, .78) 0%, rgba(20, 28, 38, .45) 45%, rgba(20, 28, 38, 0) 75%); }
.slide-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 80px; }
.slide-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .28em; color: var(--yellow); margin: 0 0 12px; }
.slide-title { margin: 0 0 14px; font-family: var(--font-game); font-weight: 700; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.15; letter-spacing: -0.02em; color: #fff;
  -webkit-text-stroke: 6px rgba(20, 30, 40, .85); paint-order: stroke fill; max-width: 820px; text-wrap: balance; }
.slide-text { margin: 0 0 26px; font-size: 17px; color: rgba(255, 255, 255, .9); max-width: 560px; }
.slide-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.slides-ctrl { position: absolute; left: 0; right: 0; bottom: 62px; z-index: 2; }
.slides-ctrl .wrap { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 6px; border: 2px solid var(--outline); background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 34px; background: var(--yellow); }
/* 넘김 버튼: 배너 양옆 가운데, 반투명 유리. 마우스를 올렸을 때만 또렷하게(터치 기기는 늘 보임) */
.arrows button { position: absolute; top: calc(50% - 23px); z-index: 3; width: 50px; height: 50px; margin-top: -25px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(20, 28, 38, .32); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease, background .2s ease, transform .2s ease; }
.arrows button[data-dir="-1"] { left: 22px; }
.arrows button[data-dir="1"] { right: 22px; }
.arrows button .i { width: 22px; height: 22px; }
.hero.slides:hover .arrows button, .arrows button:focus-visible { opacity: .85; }
.arrows button:hover { opacity: 1; background: rgba(20, 28, 38, .58); transform: scale(1.06); }
.arrows button:active { transform: scale(.96); }
@media (hover: none) { .arrows button { opacity: .7; width: 40px; height: 40px; margin-top: -20px; } .arrows button[data-dir="-1"] { left: 10px; } .arrows button[data-dir="1"] { right: 10px; } }
.slide-progress { position: absolute; left: 0; bottom: 46px; height: 4px; background: var(--yellow); z-index: 2; width: 0; }
.slide-progress.run { animation: slideprog linear forwards; }
@keyframes slideprog { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on, .slide-bg, .slide-body > * { transition: none; } .slide-progress { display: none; } }
/* 소식 카드 썸네일(배너 그림이 있는 글) */
.art.img { padding: 0; background: var(--ink-2); }
.art.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.img .k { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 2px 10px; border-radius: var(--r-pill); background: rgba(20, 30, 40, .72); color: #fff; letter-spacing: .1em; }
/* 글 보기: 배너 그림(편집기 본문 글) · 디자인 본문 */
.post-cover { margin: -8px 0 24px; border-radius: 16px; overflow: hidden; border: 2px solid var(--outline); }
.post-cover img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body.is-design { font-size: 15px; line-height: 1.7; }


/* ════════════════════════════════════════════════════════════════════════
   고객지원(FAQ)
   ════════════════════════════════════════════════════════════════════════ */
.help-hero { text-align: center; padding: 8px 0 0; }
.help-hero h1 { margin: 6px 0 22px; font-family: var(--font-game); font-size: clamp(30px, 4.4vw, 46px); }
.help-search { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 6px 6px 6px 18px; background: var(--paper); border: 2px solid var(--outline); border-radius: var(--r-pill); box-shadow: var(--pop); }
.help-search input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; background: none; height: 40px; }
.help-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 30px 0 26px; }
.help-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); font-weight: 700; cursor: pointer; font-size: 14px; }
.help-cat:hover { border-color: var(--outline); }
.help-cat.on { border-color: var(--outline); background: var(--mint-soft); box-shadow: var(--pop); }
.help-cat .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mint-soft); border: 2px solid var(--outline); }
.help-cat .ic svg { width: 22px; height: 22px; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.help-side { display: grid; gap: 12px; }
.side-card { display: block; padding: 18px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); }
.side-card:hover { border-color: var(--outline); }
.side-card b { display: block; font-size: 16px; margin-bottom: 4px; }
.side-card span { color: var(--sub); font-size: 13px; }
.side-card.main { background: linear-gradient(150deg, #2bc49d, #20857b); color: #fff; border-color: var(--outline); box-shadow: var(--pop); }
.side-card.main small { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 4px; }
.side-card.main b { font-family: var(--font-game); font-size: 22px; }
.side-card.main span { color: rgba(255, 255, 255, .92); }
.faq-list { display: grid; gap: 10px; }
.faq { border-radius: 14px; background: var(--bg); border: 2px solid transparent; overflow: hidden; }
.faq.open { background: var(--paper); border-color: var(--outline); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ink); }
.faq-q .qm { font-family: var(--font-game); color: var(--teal); font-size: 18px; }
.faq-q .t { flex: 1; }
.faq-q .chip { flex: none; }
.faq-q .arw { transition: transform .2s; color: var(--mute); display: grid; }
.faq.open .faq-q .arw { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 18px 18px 46px; }
.faq.open .faq-a { display: block; }

/* ════════════════════════════════════════════════════════════════════════
   디자인 부품(ev-*) — 이벤트·패치노트 '디자인 본문'용. 관리자 웹이 이 클래스와 색 변수만 남긴다(api/src/html.js cleanDesign).
   사용법·예시 = ops-server/SITE_DESIGN.md. 색 = .ev 에 테마 클래스(ev-mint/ev-autumn/ev-night/ev-sakura/ev-light) 또는 style="--ev-c1:#…;--ev-c2:#…;--ev-c3:#…".
     --ev-c1 = 바탕(진한 색) · --ev-c2 = 강조(버튼·밑줄) · --ev-c3 = 포인트(작은 제목·개수)
   ════════════════════════════════════════════════════════════════════════ */
.ev { --ev-c1: #1f4f4b; --ev-c2: #1ec8a0; --ev-c3: #ffe24a; --ev-ink: #fff; --ev-sub: rgba(255, 255, 255, .8); --ev-card: rgba(255, 255, 255, .07); --ev-line: rgba(255, 255, 255, .16);
  position: relative; color: var(--ev-ink); background: linear-gradient(180deg, color-mix(in srgb, var(--ev-c1) 88%, #fff) 0%, var(--ev-c1) 30%, color-mix(in srgb, var(--ev-c1) 70%, #000) 100%);
  border-radius: 20px; border: 2px solid var(--outline); overflow: hidden; font-size: 15px; line-height: 1.7; }
.ev-mint { --ev-c1: #1f4f4b; --ev-c2: #1ec8a0; --ev-c3: #ffe24a; }
.ev-autumn { --ev-c1: #4a1c14; --ev-c2: #f07a2e; --ev-c3: #ffc56b; }
.ev-night { --ev-c1: #1c2347; --ev-c2: #7f9de6; --ev-c3: #ffe24a; }
.ev-sakura { --ev-c1: #5a2541; --ev-c2: #ff8fae; --ev-c3: #ffe0ea; }
.ev-light { --ev-c1: #f4f8f7; --ev-c2: #1ec8a0; --ev-c3: #20857b; --ev-ink: #1f2f3b; --ev-sub: #586d7a; --ev-card: #ffffff; --ev-line: #d5e2e1;
  background: linear-gradient(180deg, #e4f5f0, #f4f8f7 260px); }
.ev h1, .ev h2, .ev h3, .ev h4, .ev p { margin: 0; }
.ev p + p { margin-top: .6em; }
.ev img { max-width: 100%; border-radius: 0; }
.ev-hl { color: var(--ev-c3); font-weight: 800; }
.ev-muted { color: var(--ev-sub); }
.ev-center { text-align: center; }
/* 상단 배너 */
.ev-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: 56px 52px;
  background: radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--ev-c3) 34%, transparent) 0, transparent 34%), linear-gradient(135deg, color-mix(in srgb, var(--ev-c2) 45%, var(--ev-c1)) 0%, var(--ev-c1) 72%); }
.ev-hero.ev-solo { grid-template-columns: 1fr; }
/* 가운데 정렬 배너(오른쪽 카드 없이 제목·설명·기간만). 배경 그림은 양옆에 장식, 가운데를 비워 둔 것을 쓴다. */
.ev-hero.ev-center { text-align: center; padding: 64px 40px; }
.ev-hero.ev-center .ev-desc { max-width: 560px; margin: 0 auto; }
.ev-hero.ev-center .ev-btns { justify-content: center; }
.ev-hero.ev-center .ev-hero-img img { opacity: 1; }
.ev-hero-img { position: absolute; inset: 0; z-index: 0; }
.ev-hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ev-hero > :not(.ev-hero-img) { position: relative; z-index: 1; }
.ev-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .32em; color: var(--ev-c3); text-transform: uppercase; }
.ev .ev-title { margin: 8px 0 12px; font-family: var(--font-game); font-weight: 700; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.15; letter-spacing: -0.02em;
  color: #fff; -webkit-text-stroke: 6px rgba(15, 20, 28, .55); paint-order: stroke fill; }
.ev-light .ev-title { color: var(--ev-ink); -webkit-text-stroke: 0; }
.ev-desc { color: var(--ev-sub); font-size: 16px; }
.ev-period { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ev-c3); color: var(--ev-c3); font-weight: 800; font-size: 14px; }
.ev-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ev-btns.ev-center { justify-content: center; }
.ev a.ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: var(--ev-c2); color: #14202a; border: 2px solid var(--outline); box-shadow: 0 4px 0 var(--outline); text-decoration: none; }
.ev a.ev-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--outline); }
.ev a.ev-btn.ev-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.ev-light a.ev-btn.ev-ghost { background: #fff; color: var(--ev-ink); border-color: var(--outline); }
.ev-hero-side { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* 본문 영역 */
.ev-body { padding: 44px 44px 56px; }
/* ★.ev p { margin: 0 } 보다 구체적으로 — 아니면 좌우 auto 가 지워져 680px 상자가 왼쪽에 붙는다(2026-10-26) */
.ev .ev-lead { text-align: center; color: var(--ev-sub); max-width: 680px; margin: 0 auto; }
.ev-lead b, .ev-lead strong { color: var(--ev-ink); }
.ev-sec { margin-top: 52px; }
.ev-body > .ev-sec:first-child { margin-top: 0; }
.ev-sec-head { text-align: center; margin-bottom: 26px; }
.ev-sec-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .3em; color: var(--ev-c3); }
.ev .ev-sec-title { margin-top: 4px; font-family: var(--font-game); font-size: 28px; font-weight: 700; }
.ev-sec-title::after { content: ""; display: block; width: 44px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: var(--ev-c2); }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ev-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 카드 */
.ev-card { position: relative; padding: 26px 22px; border-radius: 18px; background: var(--ev-card); border: 1.5px solid color-mix(in srgb, var(--ev-c3) 45%, transparent); text-align: center; }
.ev-card-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .24em; color: var(--ev-c3); }
.ev .ev-card-title { margin: 4px 0 16px; font-size: 20px; font-weight: 800; }
.ev-card-text { color: var(--ev-sub); font-size: 14px; }
.ev-card.ev-hot { background: color-mix(in srgb, var(--ev-c2) 20%, transparent); border: 2px solid var(--ev-c2); }
/* 미션 카드(번호 · 분류 · 미션 이름 머리 + 보상 칸). 보상 칸 = 아이콘 상자 + 개수 딱지 + 이름. 카드 높이는 줄마다 같게 늘어난다. */
.ev-missions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ev-mission { display: flex; flex-direction: column; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 2px solid rgba(30, 200, 160, .28); box-shadow: 0 4px 0 rgba(0, 0, 0, .22); overflow: hidden; }
.ev-mission-head { display: flex; align-items: center; gap: 12px; height: 80px; padding: 0 16px; background: rgba(0, 0, 0, .2); border-bottom: 2px solid rgba(30, 200, 160, .22); text-align: left; }
.ev-mission-no { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ev-c3); color: #14202a; border: 2px solid var(--outline);
  font-family: var(--font-game); font-size: 17px; line-height: 1; }
.ev-mission-cat { display: block; font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--ev-c3); line-height: 1.4; }
.ev .ev-mission-title { font-size: 15.5px; font-weight: 800; line-height: 1.4; color: #fff; word-break: keep-all; }
/* 보상: 밝은 아이템 칸 + 아래 굵은 수량 + 이름 */
.ev-mission-body { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 92px; grid-template-rows: auto auto auto; justify-content: center; justify-items: center; align-content: start; column-gap: 14px; padding: 18px 10px 18px; }
/* 보상 칸: 그림 · 이름 · 개수를 줄(격자 행)로 맞춘다 — 이름이 두 줄인 보상이 섞여도 같은 미션 안 개수 줄 높이가 같다 */
.ev-mission-body > .ev-reward { display: contents; }
.ev-mission-body .ev-reward-icon { grid-row: 1; }
.ev-mission-body .ev-reward-name { grid-row: 2; text-align: center; }
.ev-mission-body .ev-reward-qty { grid-row: 3; align-self: start; }
.ev-reward { width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ev-reward-icon { position: relative; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, #f5f9f9, #dfe8e8); border: 2px solid var(--outline); box-shadow: inset 0 0 0 2px #fff, 0 3px 0 rgba(0, 0, 0, .3); }
.ev-reward-icon img { width: auto; height: auto; max-width: 70%; max-height: 70%; image-rendering: pixelated; }
.ev .ev-reward-qty { margin-top: 6px; font-family: var(--font-game); font-size: 18px; line-height: 1; color: var(--ev-c3); }
.ev-reward-name { margin-top: 9px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .86); line-height: 1.35; word-break: keep-all; }
/* 유니크 유물: 개수 대신 등급색 이름(메이플 유니크 노랑) */
.ev-reward-name.ev-reward-unique { margin-top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 210, 74, .75); color: #ffd24a; font-size: 13px; font-weight: 800; white-space: nowrap; text-shadow: 0 0 8px rgba(255, 196, 0, .45); }
.ev-mission.ev-hot { border: 2px solid #ffe24a; background: color-mix(in srgb, #ffe24a 10%, transparent); box-shadow: 0 4px 0 rgba(0, 0, 0, .22), 0 0 0 3px rgba(255, 226, 74, .18); }
.ev-mission.ev-hot .ev-mission-head { border-bottom-color: rgba(255, 226, 74, .35); }
.ev-mission.ev-hot .ev-reward-icon { background: linear-gradient(180deg, #fff9dc, #ffe08a); }
/* 유니크 보상 칸: 메이플 유니크 아이템처럼 노란 테두리 한 겹 */
.ev-mission.ev-hot .ev-reward-icon { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #ffd24a, 0 3px 0 2px rgba(0, 0, 0, .3); }
.ev-mission-note { margin: 0 14px 16px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); color: var(--ev-sub); font-size: 12.5px; line-height: 1.5; text-align: center; word-break: keep-all; }
.ev-light .ev-mission-head, .ev-light .ev-mission-note { background: #f4f8f7; }
.ev-light .ev-reward-icon { background: #fff; }
@media (max-width: 980px) { .ev-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ev-missions { grid-template-columns: 1fr; } }
/* 작은 보상 카드(상단 배너 오른쪽) */
.ev-mini { width: 132px; padding: 16px 10px 14px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .1); border: 2px solid color-mix(in srgb, var(--ev-c3) 60%, transparent); }
.ev-mini .ev-card-tag { font-size: 11px; letter-spacing: .18em; }
.ev-mini .ev-items { margin: 10px 0 8px; gap: 6px; }
.ev-mini .ev-item { width: auto; }
.ev-mini .ev-icon { width: 40px; height: 40px; }
.ev-mini-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
/* 아이템(아이콘 + 이름 + 개수) */
.ev-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ev-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
.ev-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 70%); }
.ev-light .ev-icon { background: radial-gradient(circle, #e4f5f0, #f4f8f7 70%); border: 1.5px solid var(--ev-line); }
.ev-icon img { width: auto; height: auto; max-width: 72%; max-height: 72%; image-rendering: pixelated; }
.ev-item-name { font-size: 13px; color: var(--ev-sub); line-height: 1.35; text-align: center; }
.ev-qty { font-family: var(--font-game); font-size: 18px; color: var(--ev-c3); }
/* 출석 달력 */
.ev-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px 8px; padding-top: 8px; }
.ev-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 12px; background: var(--ev-card); border: 1.5px solid var(--ev-line); text-align: center; }
.ev-day-no { font-size: 12px; font-weight: 800; color: var(--ev-c3); }
.ev-day img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.ev-day .ev-item-name { font-size: 11.5px; }
.ev-day .ev-qty { font-size: 14px; }
.ev-day.ev-special { border: 2px solid var(--ev-c3); background: color-mix(in srgb, var(--ev-c3) 16%, transparent); }
.ev-day-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; background: var(--ev-c3); color: #14202a; font-size: 10px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
/* 출석 달력(7칸 = 한 주). 칸: ev-att / 주간 큰 보상 ev-att-week / 특별 ev-att-big / 마지막 날 ev-att-final, 칸 위 꼬리표 ev-att-tag */
.ev-attend { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 10px; padding-top: 10px; }
.ev-att { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 12px; border-radius: 16px; background: var(--ev-card); border: 1.5px solid var(--ev-line); text-align: center; }
.ev-att-no { font-size: 12px; font-weight: 800; color: var(--ev-sub); letter-spacing: .02em; }
.ev-att-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 -3px 0 rgba(35, 50, 64, .12); }
.ev-att-icon img { width: auto; height: auto; max-width: 74%; max-height: 74%; image-rendering: pixelated; }
.ev-att-qty { font-family: var(--font-game); font-size: 15px; line-height: 1.1; color: var(--ev-ink); }
.ev-att-name { font-size: 11px; color: var(--ev-sub); line-height: 1.3; word-break: keep-all; }
.ev-att.ev-att-week { background: color-mix(in srgb, #ff8fae 22%, transparent); border: 2px solid #ff8fae; }
.ev-att.ev-att-week .ev-att-no { color: #ffc4d3; }
.ev-att.ev-att-big { background: color-mix(in srgb, var(--ev-c3) 20%, transparent); border: 2px solid var(--ev-c3); }
.ev-att.ev-att-big .ev-att-no, .ev-att.ev-att-final .ev-att-no { color: var(--ev-c3); }
.ev-att.ev-att-final { background: linear-gradient(160deg, color-mix(in srgb, var(--ev-c3) 34%, transparent), color-mix(in srgb, #ff8fae 26%, transparent)); border: 2px solid var(--ev-c3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ev-c3) 22%, transparent); }
.ev-att-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border-radius: 999px; background: var(--ev-c3); color: #14202a; font-size: 10.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.ev-att-tag.ev-att-tag-pink { background: #ff8fae; }
.ev-att-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; color: var(--ev-sub); font-size: 13px; }
.ev-att-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ev-att-legend span::before { content: ""; width: 14px; height: 14px; border-radius: 5px; border: 2px solid var(--ev-line); background: var(--ev-card); }
.ev-att-legend .ev-lg-week::before { border-color: #ff8fae; background: color-mix(in srgb, #ff8fae 30%, transparent); }
.ev-att-legend .ev-lg-big::before { border-color: var(--ev-c3); background: color-mix(in srgb, var(--ev-c3) 30%, transparent); }
@media (max-width: 760px) { .ev-attend { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 440px) { .ev-attend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 특별 보상 한 칸 크게(조건 → 보상). ev-spot-goal 숫자 원 · ev-spot-arrow · ev-spot-reward */
.ev-spot { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 26px; padding: 30px 34px; border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--ev-c3) 22%, transparent), color-mix(in srgb, var(--ev-c2) 18%, transparent)); border: 2px solid var(--ev-c3); }
.ev-spot-goal { width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ev-c3); color: #14202a; border: 4px solid var(--outline); box-shadow: 0 6px 0 var(--outline); }
.ev-spot-goal b { display: block; font-family: var(--font-game); font-size: 46px; line-height: 1; }
.ev-spot-goal small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 800; }
.ev-spot-arrow { font-family: var(--font-game); font-size: 34px; color: var(--ev-c3); }
.ev-spot-reward { display: flex; align-items: center; gap: 20px; }
.ev-spot-text h3 { font-family: var(--font-game); font-size: 24px; font-weight: 700; line-height: 1.25; }
.ev-spot-text p { margin-top: 6px; color: var(--ev-sub); font-size: 14px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ev-chip { padding: 3px 11px; border-radius: 999px; background: rgba(0, 0, 0, .22); border: 1px solid var(--ev-line); color: var(--ev-ink); font-size: 12px; font-weight: 700; }
/* 그림이 없는 보상용 티켓 모양(글자만) */
.ev-ticket { flex: none; position: relative; width: 112px; height: 76px; display: grid; place-content: center; text-align: center; border-radius: 12px;
  background: linear-gradient(135deg, #fff3b0, #ffc94a 55%, #ff9f5a); border: 4px solid var(--outline); box-shadow: 0 5px 0 var(--outline); color: #3b2410; transform: rotate(-6deg); }
.ev-ticket::before, .ev-ticket::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--ev-c1); border: 4px solid var(--outline); }
.ev-ticket::before { left: -10px; } .ev-ticket::after { right: -10px; }
.ev-ticket b { font-family: var(--font-game); font-size: 17px; letter-spacing: .04em; }
.ev-ticket small { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; }
.ev-ticket-qty { position: absolute; right: -14px; top: -14px; padding: 1px 9px; border-radius: 999px; background: #ff5f6d; color: #fff; border: 3px solid var(--outline); font-family: var(--font-game); font-size: 15px; transform: rotate(6deg); }
@media (max-width: 760px) { .ev-spot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; } .ev-spot-arrow { transform: rotate(90deg); } .ev-spot-reward { flex-direction: column; } .ev-chips { justify-content: center; } }
/* 합계 칸: ev-totals > ev-total(아이콘 · 큰 숫자 · 이름 · 설명) */
.ev-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ev-total { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 20px; border-radius: 18px; background: var(--ev-card); border: 1.5px solid var(--ev-line); text-align: center; }
.ev-total .ev-att-icon { width: 64px; height: 64px; }
.ev-total-num { font-family: var(--font-game); font-size: 30px; line-height: 1.1; color: var(--ev-c3); }
.ev-total-name { font-weight: 800; font-size: 14px; }
.ev-total-sub { color: var(--ev-sub); font-size: 12px; }
.ev-total .ev-ticket { width: 84px; height: 58px; transform: rotate(-6deg) scale(.95); }
.ev-total .ev-ticket b { font-size: 13px; }
@media (max-width: 760px) { .ev-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ── 메이플식 안내 페이지(ev-mp): 구성은 메이플 이벤트 안내(굵은 제목 판 · 가로 띠 소제목 · 2칸 정보 상자 · 게임 UI 모양 보상판 · 주황 주의 글),
      색은 우리 게임 UI(청록 판 · 진한 테두리 · 노랑). 빛줄기·반짝이·이모지 같은 장식은 쓰지 않는다.
      마감 규칙: 판은 "진한 테두리 + 안쪽 밝은 선 + 아래 그림자" 세 겹, 칸은 위 밝고 아래 어두운 베벨, 모서리에는 홈이나 볼트. */
.ev.ev-mp { --mp-teal: #1f8f84; --mp-teal-l: #3ab5a5; --mp-teal-d: #17675f; --mp-ink: #3d4a54; --mp-sub: #66737d; --mp-hl: #13857a; --mp-warn: #d9572b;
  --mp-paper: #eef3f2; --mp-line: #cfdcda; --mp-gold: #ffe24a; --mp-gold-d: #d9a400;
  background: var(--mp-paper); color: var(--mp-ink); }
/* 도입부 */
.ev-mp-hero { position: relative; overflow: hidden; text-align: center; padding: 64px 24px 112px; }
.ev-mp-hero > :not(.ev-hero-img) { position: relative; z-index: 1; }
.ev-mp-hero .ev-hero-img img { opacity: 1; }
.ev-mp-kicker { display: inline-block; padding: 5px 18px; border-radius: 6px; background: var(--outline); color: var(--mp-gold); font-size: 14px; font-weight: 800; letter-spacing: .04em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .25); }
.ev .ev-mp-title { margin: 14px 0 0; font-family: var(--font-game); font-weight: 700; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.08; color: #fff;
  -webkit-text-stroke: 10px var(--outline); paint-order: stroke fill; text-shadow: 0 7px 0 var(--outline), 0 12px 18px rgba(0, 0, 0, .25); letter-spacing: -0.01em; }
.ev .ev-mp-title .ev-mp-yl { color: var(--mp-gold); }
/* 경계 문장(도입부와 본문 사이에 걸치는 둥근 패 + 양옆 날개) */
.ev-mp-emblem { position: relative; z-index: 3; width: 124px; margin: -62px auto 0; }
.ev-mp-emblem .ev-mp-core { display: grid; place-content: center; width: 124px; height: 124px; border-radius: 50%; font-style: normal; text-align: center;
  background: radial-gradient(circle at 50% 32%, #fff8c4, #ffd93a 52%, #e3aa00 100%); border: 5px solid var(--outline);
  box-shadow: inset 0 0 0 3px #fff6c0, inset 0 -8px 0 rgba(160, 110, 0, .22), 0 0 0 4px #fff, 0 0 0 7px var(--outline), 0 9px 0 7px rgba(35, 50, 64, .16); }
.ev-mp-emblem b { display: block; font-family: var(--font-game); font-size: 46px; line-height: 1; color: #fff; -webkit-text-stroke: 6px var(--outline); paint-order: stroke fill; }
.ev-mp-emblem small { display: block; margin-top: 3px; font-size: 11px; font-weight: 900; letter-spacing: .2em; color: var(--outline); }
.ev-mp-emblem::before, .ev-mp-emblem::after { content: ""; position: absolute; z-index: -1; top: 50%; width: 76px; height: 26px; margin-top: -13px;
  background: linear-gradient(180deg, #fff0a0, #e3aa00); border: 4px solid var(--outline); box-shadow: 0 4px 0 rgba(35, 50, 64, .2); }
.ev-mp-emblem::before { right: 100%; margin-right: -14px; border-radius: 8px 0 0 8px; transform: skewY(-14deg); }
.ev-mp-emblem::after { left: 100%; margin-left: -14px; border-radius: 0 8px 8px 0; transform: skewY(14deg); }
.ev-mp-body { padding: 0 28px 56px; }
/* 2칸 정보 상자: 제목 띠 + 오른쪽 아래 모서리 홈 */
.ev-mp-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 840px; margin: 22px auto 0; position: relative; z-index: 2; }
.ev-mp-box { position: relative; background: #fff; border: 3px solid var(--outline); border-radius: 4px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--mp-line), 0 5px 0 rgba(35, 50, 64, .18); }
.ev-mp-box::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, var(--outline) 50%, var(--outline) calc(50% + 3px), var(--mp-paper) calc(50% + 3px)); }
.ev .ev-mp-box h3 { margin: 3px 3px 0; padding: 11px 0 10px; text-align: center; color: #fff; font-family: var(--font-game); font-size: 21px; font-weight: 700;
  background: linear-gradient(180deg, var(--mp-teal-l), var(--mp-teal) 45%, var(--mp-teal-d)); border-bottom: 3px solid var(--outline);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28), 0 3px 0 var(--mp-gold); -webkit-text-stroke: 4px var(--outline); paint-order: stroke fill; }
.ev-mp-box p { padding: 20px 14px 22px; text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--mp-sub); }
.ev-mp-box p b { display: block; margin-bottom: 4px; font-size: 20px; font-weight: 900; color: var(--outline); letter-spacing: -.01em; }
/* 가로 띠 소제목: 위 밝은 선 · 아래 금색 선 · 양끝 아래 회색 받침 */
.ev .ev-mp-bar { position: relative; margin: 56px -28px 30px; padding: 15px 0 14px; text-align: center; color: #fff; font-family: var(--font-game); font-size: 26px; font-weight: 700;
  background: linear-gradient(180deg, var(--mp-teal-l), var(--mp-teal) 40%, var(--mp-teal-d)); border-top: 3px solid var(--outline); border-bottom: 3px solid var(--outline);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 4px 0 var(--mp-gold); -webkit-text-stroke: 5px var(--outline); paint-order: stroke fill; }
.ev .ev-mp-bar::before, .ev .ev-mp-bar::after { content: ""; position: absolute; top: 100%; margin-top: 10px; width: 46px; height: 8px; background: #b8c6c8; }
.ev .ev-mp-bar::before { left: 40px; } .ev .ev-mp-bar::after { right: 40px; }
.ev .ev-mp-step { margin: 30px 0 12px; text-align: center; font-family: var(--font-game); font-size: 22px; color: var(--mp-teal-d); }
.ev .ev-mp-step::before, .ev .ev-mp-step::after { content: "////"; margin: 0 14px; color: #b3c2c0; letter-spacing: -.06em; }
.ev .ev-mp-text { text-align: center; font-size: 16px; line-height: 1.75; color: var(--mp-ink); }
.ev-mp-text b { color: var(--mp-hl); }
.ev .ev-mp-warn { margin-top: 10px; text-align: center; color: var(--mp-warn); font-size: 14px; line-height: 1.7; }
.ev .ev-mp-warn::before { content: "·  "; font-weight: 800; }
/* 출석판: 판(머리띠 + 진한 바탕) 안에 밝은 받침, 그 위에 보상 카드 7칸 × 4줄(28일 = 한 줄이 한 주) */
.ev-mp-board { position: relative; margin: 24px auto 0; max-width: 820px; border-radius: 18px; overflow: hidden;
  background: #2c4552; border: 4px solid var(--outline); box-shadow: 0 6px 0 var(--outline), 0 14px 24px rgba(35, 50, 64, .16); }
.ev-mp-board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 20px 11px; border-bottom: 4px solid var(--outline);
  background: linear-gradient(180deg, var(--mp-teal-l), var(--mp-teal) 60%, var(--mp-teal-d)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .28); }
.ev .ev-mp-board-head b { font-family: var(--font-game); font-size: 22px; font-weight: 700; color: #fff; -webkit-text-stroke: 4px var(--outline); paint-order: stroke fill; }
.ev-mp-board-head span { color: #fff; font-size: 14px; font-weight: 800; }
.ev-mp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px 8px; margin: 14px; padding: 16px 14px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #e6eeee, #d8e3e3); border: 2px solid var(--outline); box-shadow: inset 0 2px 0 #f4f8f8; }
.ev-mp-day { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 6px 11px; border-radius: 10px;
  background: #fff; border: 2px solid #b4c5c6; box-shadow: 0 3px 0 #b4c5c6; text-align: center; }
.ev-mp-dno { position: absolute; left: -2px; top: -2px; padding: 3px 9px 3px 9px; border-radius: 10px 0 10px 0; background: #50606a; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.01em; }
.ev-mp-dtag { position: absolute; right: 5px; top: 5px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 900; line-height: 1.5; }
.ev-mp-dslot { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(180deg, #f5f9f9, #e1e9e9); border: 1px solid #a9bbbc; box-shadow: inset 0 0 0 2px #fff; }
.ev-mp-dslot img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; }
.ev .ev-mp-dq { margin-top: 9px; font-family: var(--font-game); font-size: 19px; line-height: 1; color: var(--outline); }
.ev-mp-dn { margin-top: 4px; font-size: 11.5px; line-height: 1.25; color: var(--mp-sub); word-break: keep-all; }
/* 보너스(7·14·21일차) · 특별 선물(25일차) · 마지막 날(28일차) · 특별 출석 보상 달성일(20일차) */
.ev-mp-day.ev-mp-big { background: linear-gradient(180deg, #fff, #fff0f4); border-color: #e993aa; box-shadow: 0 3px 0 #e993aa; }
.ev-mp-day.ev-mp-big .ev-mp-dno { background: #c93d62; }
.ev-mp-day.ev-mp-big .ev-mp-dslot { background: linear-gradient(180deg, #fff6f8, #ffe1e9); border-color: #eba5b7; }
.ev-mp-day.ev-mp-big .ev-mp-dq { color: #b3304f; }
.ev-mp-day.ev-mp-big .ev-mp-dtag { background: #ffd3de; color: #b3304f; }
.ev-mp-day.ev-mp-gold { background: linear-gradient(180deg, #fff, #fff6d4); border-color: #dfb42a; box-shadow: 0 3px 0 #dfb42a; }
.ev-mp-day.ev-mp-gold .ev-mp-dno { background: #b07f00; }
.ev-mp-day.ev-mp-gold .ev-mp-dslot { background: linear-gradient(180deg, #fffbea, #ffeeb0); border-color: #e3c35a; }
.ev-mp-day.ev-mp-gold .ev-mp-dq { color: #8a5a00; }
.ev-mp-day.ev-mp-gold .ev-mp-dtag { background: #ffe58a; color: #7a5300; }
.ev-mp-day.ev-mp-flag { border-color: var(--outline); box-shadow: 0 3px 0 var(--outline); }
.ev-mp-day.ev-mp-flag .ev-mp-dno { background: var(--outline); color: #ffe24a; }
.ev-mp-day.ev-mp-flag .ev-mp-dtag { background: var(--outline); color: #ffe24a; }
.ev-mp-day.ev-mp-final { background: linear-gradient(180deg, #fff9e0, #ffe7a0); border-color: var(--outline); box-shadow: 0 3px 0 var(--outline), 0 0 0 3px #ffe24a; }
.ev-mp-day.ev-mp-final .ev-mp-dno { background: var(--outline); color: #ffe24a; }
.ev-mp-day.ev-mp-final .ev-mp-dslot { background: #fff; border-color: #c99a1e; box-shadow: inset 0 0 0 2px #fff6d0; }
.ev-mp-day.ev-mp-final .ev-mp-dq { font-size: 21px; color: #b3304f; }
.ev-mp-day.ev-mp-final .ev-mp-dtag { background: #c93d62; color: #fff; }
/* 출석판 아래: 특별 출석 보상 한 줄 안내 */
.ev-mp-dfoot { display: flex; align-items: center; gap: 14px; margin: 0 14px 14px; padding: 11px 16px; border-radius: 12px; background: linear-gradient(180deg, #fffbe8, #fff0b8); border: 2px solid var(--outline); }
.ev-mp-dfoot-badge { flex: none; width: 46px; height: 46px; display: grid; place-content: center; border-radius: 50%; background: var(--outline); color: #ffe24a; text-align: center; line-height: 1; box-shadow: 0 0 0 3px #ffe24a; }
.ev-mp-dfoot-badge b { font-family: var(--font-game); font-size: 18px; }
.ev-mp-dfoot-badge small { font-size: 9px; font-weight: 900; }
.ev-mp-dfoot-text { flex: 1; text-align: left; line-height: 1.4; }
.ev-mp-dfoot-text b { display: block; font-size: 15px; font-weight: 900; color: var(--outline); }
.ev-mp-dfoot-text b em { font-style: normal; color: #b3304f; }
.ev-mp-dfoot-text span { font-size: 12.5px; color: #7a6a3a; }
/* 전체 보상 합계: 같은 판 안에 보상 카드 4장 + 카드 아래 계산식 */
.ev-mp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px; padding: 16px 14px; border-radius: 12px;
  background: linear-gradient(180deg, #e6eeee, #d8e3e3); border: 2px solid var(--outline); box-shadow: inset 0 2px 0 #f4f8f8; }
.ev-mp-sumc { display: flex; flex-direction: column; align-items: center; overflow: hidden; padding-bottom: 18px; border-radius: 12px; background: #fff; border: 2px solid #b4c5c6; box-shadow: 0 3px 0 #b4c5c6; text-align: center; }
.ev-mp-ssrc { align-self: stretch; padding: 5px 0 4px; background: #50606a; color: #fff; font-size: 12px; font-weight: 900; }
.ev-mp-sslot { width: 78px; height: 78px; margin-top: 18px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, #f5f9f9, #e1e9e9); border: 1px solid #a9bbbc; box-shadow: inset 0 0 0 3px #fff; }
.ev-mp-sslot img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; }
.ev-mp-sslot.ev-mp-stxt { flex-direction: column; align-content: center; gap: 2px; background: linear-gradient(180deg, #fff6cf, #ffe592); border-color: #c99a1e; color: #7a4f00; line-height: 1; }
.ev-mp-sslot.ev-mp-stxt small { font-size: 9.5px; font-weight: 900; letter-spacing: .14em; }
.ev-mp-sslot.ev-mp-stxt b { font-size: 15px; font-weight: 900; }
.ev-mp-sname { margin-top: 11px; font-size: 14.5px; font-weight: 800; color: var(--outline); word-break: keep-all; padding: 0 6px; }
.ev .ev-mp-sqty { margin-top: 4px; font-family: var(--font-game); font-size: 32px; line-height: 1.1; color: var(--mp-hl); }
.ev-mp-sqty small { margin-left: 2px; font-family: var(--font); font-size: 14px; font-weight: 800; color: var(--mp-sub); }
.ev-mp-sf { align-self: stretch; margin-top: 14px; padding: 9px 8px 10px; background: #eef3f3; border-top: 1px solid #d3dede; color: var(--mp-sub); font-size: 12px; line-height: 1.5; word-break: keep-all; }
.ev-mp-sumc.ev-mp-sumsp { border-color: #c99a1e; box-shadow: 0 3px 0 #c99a1e; background: linear-gradient(180deg, #fff, #fffaea); }
.ev-mp-sumc.ev-mp-sumsp .ev-mp-ssrc { background: #b07f00; }
.ev-mp-sumc.ev-mp-sumsp .ev-mp-sqty { color: #b07f00; }
.ev-mp-sumc.ev-mp-sumsp .ev-mp-sf { background: #fff3c9; border-top-color: #f0d98a; color: #7a6a3a; }
/* 특별 출석 보상: 조건 판 ▶ 보상 판 + 아래 표 */
.ev-mp-notice { max-width: 800px; margin: 26px auto 0; padding: 26px 28px 22px; border-radius: 12px; background: #fff; border: 3px solid var(--outline);
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--mp-line), 0 6px 0 rgba(35, 50, 64, .18); }
.ev-mp-flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.ev-mp-plate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 12px 15px; border-radius: 10px; text-align: center; border: 2px solid var(--outline); }
.ev-mp-plate small { font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.ev .ev-mp-plate b { font-family: var(--font-game); font-size: 30px; font-weight: 700; line-height: 1.15; }
.ev-mp-plate.ev-mp-cond { background: #e9f2f1; color: var(--mp-teal-d); }
.ev-mp-plate.ev-mp-cond b { color: var(--outline); }
.ev-mp-plate.ev-mp-get { background: linear-gradient(180deg, #fff6cf, #ffe592); color: #8a5a00; box-shadow: inset 0 0 0 3px #fff8dc; }
.ev-mp-plate.ev-mp-get b { color: var(--outline); }
.ev-mp-arrow { align-self: center; width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent; border-left: 20px solid var(--mp-teal); }
.ev-mp-spec { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; border-top: 2px solid var(--outline); }
.ev-mp-spec th { width: 120px; padding: 10px 14px; text-align: left; background: #edf3f3; color: var(--mp-teal-d); font-weight: 800; border-bottom: 1px solid var(--mp-line); }
.ev-mp-spec td { padding: 10px 16px; border-bottom: 1px solid var(--mp-line); text-align: left; color: var(--mp-ink); font-weight: 600; }
/* 표 */
.ev-mp-table { width: 100%; max-width: 780px; margin: 0 auto; border-collapse: collapse; background: #fff; border: 3px solid var(--outline); font-size: 15px; box-shadow: 0 5px 0 rgba(35, 50, 64, .18); }
.ev-mp-table th { padding: 12px 12px; background: linear-gradient(180deg, #34475a, var(--outline)); color: #fff; font-weight: 800; text-align: center; box-shadow: inset 0 -3px 0 var(--mp-gold); }
.ev-mp-table td { padding: 10px 12px; border-top: 1px solid var(--mp-line); text-align: center; vertical-align: middle; }
.ev-mp-table tbody tr:nth-child(even) td { background: #f6f9f9; }
.ev-mp-table td:first-child { text-align: left; padding-left: 18px; }
/* 설명이 긴 표(가이드): 첫 칸은 가운데 짧은 이름, 나머지는 왼쪽 정렬 */
.ev-mp-table.ev-mp-left td { text-align: left; line-height: 1.6; word-break: keep-all; }
.ev-mp-table.ev-mp-left td:first-child { width: 120px; text-align: center; padding-left: 12px; font-weight: 800; color: var(--outline); white-space: nowrap; }
.ev-mp-table.ev-mp-left th:not(:first-child) { text-align: left; padding-left: 14px; }
.ev .ev-mp-text + .ev-mp-table, .ev .ev-mp-table + .ev-mp-text, .ev .ev-mp-table + .ev-mp-cau, .ev .ev-mp-cau + .ev-mp-table { margin-top: 18px; }
.ev-mp-ico { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #f2f6f6; border: 1px solid #b9c8c9; }
.ev-mp-ico img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; }
.ev-mp-item .ev-mp-txt { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 7px; background: #fff3c4; border: 2px solid #e3c35a; color: #8a5a00; font-size: 12px; font-weight: 900; }
.ev-mp-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.ev-mp-item .ev-mp-ico { width: 44px; border-width: 2px; border-radius: 7px; }
.ev-mp-num { font-family: var(--font-game); font-size: 20px; color: var(--mp-hl); }
.ev-mp-cau { max-width: 800px; margin: 0 auto; padding: 22px 28px 20px 30px; list-style: none; background: #fff; border: 2px solid var(--mp-line); border-radius: 10px; }
.ev-mp-cau li { position: relative; padding-left: 16px; margin: 10px 0; color: #44525c; font-size: 16px; font-weight: 500; line-height: 1.7; word-break: keep-all; }
.ev-mp-cau li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: #44525c; }
.ev-mp-cau li.ev-mp-cau-warn::before { background: var(--mp-warn); }
.ev-mp-cau li.ev-mp-cau-warn { color: var(--mp-warn); font-weight: 700; }
@media (max-width: 720px) {
  .ev-mp-cau { padding: 16px 16px 14px 18px; }
  .ev-mp-cau li { font-size: 15px; }
  .ev-mp-body { padding: 0 14px 40px; }
  .ev .ev-mp-bar { margin-left: -14px; margin-right: -14px; }
  .ev-mp-info { grid-template-columns: 1fr; }
  .ev-mp-hero { padding: 52px 16px 92px; }
  .ev-mp-emblem { width: 104px; margin-top: -52px; } .ev-mp-emblem .ev-mp-core { width: 104px; height: 104px; } .ev-mp-emblem b { font-size: 38px; } .ev-mp-emblem::before, .ev-mp-emblem::after { width: 56px; }
  .ev-mp-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; margin: 10px; padding: 14px 8px; }
  .ev-mp-dtag { position: static; order: 9; margin-top: 6px; }
  .ev-mp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px; padding: 12px 10px; }
  .ev-mp-dfoot { margin: 0 10px 10px; }
  .ev-mp-flow { grid-template-columns: 1fr; }
  .ev-mp-arrow { transform: rotate(90deg); justify-self: center; }
  .ev-mp-notice { padding: 20px 16px; }
  .ev .ev-mp-bar { font-size: 21px; }
}
/* 안내 상자 · 단계 · 표 */
.ev-note { padding: 22px 24px; border-radius: 16px; background: rgba(0, 0, 0, .18); border: 1.5px solid var(--ev-line); }
.ev-light .ev-note { background: #fff; }
.ev .ev-note-title { margin-bottom: 10px; font-size: 16px; font-weight: 800; color: var(--ev-c3); }
.ev-note ul { margin: 0; padding-left: 20px; color: rgba(255, 255, 255, .88); font-size: 15.5px; }
.ev-note li { margin: 8px 0; line-height: 1.7; word-break: keep-all; }
.ev-steps { counter-reset: evs; display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ev-steps > li { counter-increment: evs; position: relative; padding: 16px 18px 16px 64px; border-radius: 14px; background: var(--ev-card); border: 1.5px solid var(--ev-line); }
.ev-steps > li::before { content: counter(evs); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ev-c2); color: #14202a; font-family: var(--font-game); border: 2px solid var(--outline); }
.ev-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.ev-table th { background: rgba(0, 0, 0, .25); color: var(--ev-c3); font-size: 13px; padding: 10px 12px; text-align: left; }
.ev-light .ev-table th { background: #2c4452; color: #fff; }
.ev-table td { padding: 10px 12px; border-top: 1px solid var(--ev-line); }
/* 패치노트: 변경 목록 */
.ev-changes { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ev-changes > li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--ev-card); border: 1.5px solid var(--ev-line); }
.ev-tag { flex: none; display: inline-block; min-width: 46px; text-align: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1.5px solid var(--outline); color: #14202a; line-height: 1.6; }
.ev-tag-new { background: #ffe24a; }
.ev-tag-up { background: #8ee6cf; }
.ev-tag-fix { background: #c9d6ff; }
.ev-tag-del { background: #ffc4cf; }
.ev-divider { height: 1px; background: var(--ev-line); margin: 36px 0; }
@media (max-width: 760px) {
  .ev-hero { grid-template-columns: 1fr; padding: 36px 22px; }
  .ev-body { padding: 30px 18px 40px; }
  .ev-grid-2, .ev-grid-3 { grid-template-columns: 1fr; }
  .ev .ev-sec-title { font-size: 23px; }
  .help-cats { grid-template-columns: repeat(3, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .slide-veil { background: linear-gradient(0deg, rgba(20, 28, 38, .88) 10%, rgba(20, 28, 38, .35) 75%); }
  .slide-body { justify-content: flex-end; padding-bottom: 110px; }
  .slide-text { font-size: 15px; }
}

@media (max-width: 760px) {
}

/* ════════════════════════════════════════════════════════════════════════
   랭킹 — 데이터 화면이라 본문 글꼴 · 같은 폭 숫자 · 가운데 좁은 단(960). 메이플 글꼴은 페이지 제목에만.
   ════════════════════════════════════════════════════════════════════════ */
.rk-seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; overflow-x: auto; }
.rk-seg a { flex: 1; min-width: max-content; text-align: center; padding: 10px 16px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.rk-seg a:hover { color: var(--ink); background: var(--bg); }
.rk-seg a.on { background: var(--ink-2); color: #fff; }
.rk-boss { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rk-boss a { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--sub); }
.rk-boss a:hover { border-color: var(--mute); color: var(--ink); }
.rk-boss a.on { border-color: var(--ink-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-2); background: #fffbe6; }
.rk-boss img { width: 44px; height: 32px; object-fit: contain; flex: none; }
.rk-boss span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 24px 18px; }
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 18px; }
.rk-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.rk-head p { margin: 2px 0 0; font-size: 14px; color: var(--sub); }
.rk-at { flex: none; font-size: 12px; color: var(--mute); }
/* 1~3위: 가로로 나란한 낮은 카드. 색은 순위 숫자와 왼쪽 띠에만. */
.rk-top { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rk-top li { --rk: #8a9aa8; display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 10px;
  padding: 16px 16px 14px; border-radius: 14px; background: var(--bg); border-left: 4px solid var(--rk); }
.rk-top li.r1 { --rk: #e0a800; background: #fff8dc; }
.rk-top li.r2 { --rk: #8a9aa8; }
.rk-top li.r3 { --rk: #c07a43; }
.rk-top .rk-no { font-size: 22px; font-weight: 900; color: var(--rk); width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.rk-top .rk-av { width: 48px; height: 48px; }
.rk-top .rk-sc { grid-column: 1 / -1; font-size: 26px; text-align: left; padding-left: 34px; }
.rk-av { width: 36px; height: 36px; flex: none; object-fit: contain; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); }
.rk-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rk-name b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-sc { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rk-sc small { margin: 0 2px; font-size: .55em; font-weight: 700; color: var(--mute); letter-spacing: 0; }
/* 4위부터: 촘촘한 표(순위 | 캐릭터 | 레벨 | 기록) */
.rk-list { border-top: 1.5px solid var(--line); }
.rk-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px 128px; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.rk-list.lv .rk-row { grid-template-columns: 52px minmax(0, 1fr) 128px; }
.rk-row:not(.rk-th):hover { background: var(--bg); }
.rk-th { padding-top: 10px; padding-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--mute); }
.rk-row .rk-no { text-align: center; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.rk-th span:first-child { text-align: center; }
.rk-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rk-row .c-lv { font-size: 14px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }
.rk-row .c-sc { text-align: right; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-row .c-sc small { margin: 0 1px; font-size: .75em; font-weight: 600; color: var(--mute); }
.rk-th .c-lv, .rk-th .c-sc { font-size: 12px; font-weight: 700; color: var(--mute); }
.rk-note { margin: 14px 0 0; font-size: 12px; color: var(--mute); }
@media (max-width: 760px) {
  .rk-seg { display: grid; grid-template-columns: 1fr 1fr; }
  .rk-seg a { padding: 9px 8px; font-size: 14px; min-width: 0; }
  .rk-boss { display: flex; overflow-x: auto; position: relative; }
  .rk-boss a { flex: 0 0 auto; }
  .rk-card { padding: 18px 14px 14px; }
  .rk-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rk-top { grid-template-columns: 1fr; }
  .rk-top li { grid-template-columns: auto auto 1fr auto; grid-template-rows: auto; }
  .rk-top .rk-sc { grid-column: auto; padding-left: 0; font-size: 20px; text-align: right; }
  .rk-row { grid-template-columns: 30px minmax(0, 1fr) 46px 84px; gap: 8px; padding: 9px 2px; }
  .rk-list.lv .rk-row { grid-template-columns: 36px minmax(0, 1fr) 80px; }
  .rk-row .c-sc { font-size: 15px; }
}

/* ── 게임 가이드(공식 게임 가이드 형식): 왼쪽 분류 메뉴 · 목차 · 흰 바탕 문서. 꾸밈은 절 번호·글머리·화면 캡처·TIP 상자만. */
.gd { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.gd-nav { position: sticky; top: 92px; background: var(--paper); border: 2px solid var(--outline); border-radius: 16px; box-shadow: var(--pop); overflow: hidden; }
.gd-home { display: block; padding: 14px 18px; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); }
.gd-home.on, .gd-home:hover { color: var(--teal); }
.gd-grp + .gd-grp, .gd-home + .gd-grp { border-top: 1px solid var(--line); }
.gd-grp-h { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink); text-align: left; }
.gd-pm { position: relative; width: 12px; height: 12px; }
.gd-pm::before, .gd-pm::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: var(--sub); }
.gd-pm::after { transform: rotate(90deg); transition: transform .15s; }
.gd-grp.open .gd-pm::after { transform: rotate(0); }
.gd-grp.open .gd-grp-h { background: var(--mint-soft); color: var(--teal); box-shadow: inset 3px 0 0 var(--teal); }
.gd-grp-b { display: none; padding: 6px 0 10px; background: #fbfdfd; }
.gd-grp.open .gd-grp-b { display: block; }
.gd-grp-b a { display: block; padding: 7px 18px 7px 26px; font-size: 14px; color: var(--sub); position: relative; }
.gd-grp-b a::before { content: "·"; position: absolute; left: 16px; }
.gd-grp-b a:hover { color: var(--ink); }
.gd-grp-b a.on { color: var(--teal); font-weight: 800; }
.gd-main { display: grid; gap: 22px; }
.gd-sec { background: var(--paper); border: 2px solid var(--outline); border-radius: 16px; box-shadow: var(--pop); padding: 24px 26px; }
.gd-sec h2 { margin: 0 0 14px; font-family: var(--font-game); font-size: 22px; }
.gd-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gd-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.gd-links a:hover { border-color: var(--teal); color: var(--teal); }
.gd-links .i { width: 16px; height: 16px; flex: none; color: var(--mute); }
.gd-doc { padding: 34px 40px 30px; }
.gd-head { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 2px solid var(--ink); }
.gd-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.gd-head p { margin: 8px 0 0; color: var(--sub); }
.gd-lead { margin: 0 0 20px; color: var(--sub); font-size: 15.5px; line-height: 1.75; }
.gd-toc { margin: 0 0 34px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfd; max-width: 520px; }
.gd-toc b { display: block; margin-bottom: 8px; font-size: 15px; }
.gd-toc b::before { content: "■ "; }
.gd-toc ol { margin: 0; padding: 0 0 0 20px; }
.gd-toc li { margin: 4px 0; }
.gd-toc a { color: var(--teal); font-weight: 600; }
.gd-toc a:hover { text-decoration: underline; }
.gd-foot { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; text-align: right; }
@media (max-width: 900px) { .gd { grid-template-columns: 1fr; } .gd-nav { position: static; } .gd-doc { padding: 24px 20px; } .gd-links { grid-template-columns: 1fr; } }

/* 가이드 본문 부품(ev-doc-*): 절 제목(번호 자동) · 소제목 · ■ 글머리 · 표 · 화면 캡처 · TIP · 키보드 그림 */
.ev-doc { counter-reset: evdoc; color: var(--ink); font-size: 15.5px; line-height: 1.75; }
.ev-doc p { margin: 0 0 10px; }
.ev-doc .ev-doc-lead { margin-bottom: 26px; color: var(--sub); }
.ev-doc h2.ev-doc-h { counter-increment: evdoc; margin: 44px 0 16px; padding-bottom: 10px; font-size: 22px; font-weight: 800; border-bottom: 1px solid var(--line); letter-spacing: -0.01em; }
.ev-doc h2.ev-doc-h::before { content: counter(evdoc) ". "; color: var(--teal); }
.ev-doc > h2.ev-doc-h:first-child, .ev-doc .ev-doc-lead + h2.ev-doc-h { margin-top: 0; }
.ev-doc h3.ev-doc-sub { margin: 26px 0 10px; font-size: 17px; font-weight: 800; }
.ev-doc ul.ev-doc-list { margin: 0 0 14px; padding: 0; list-style: none; }
.ev-doc ul.ev-doc-list > li { position: relative; padding-left: 18px; margin: 6px 0; }
.ev-doc ul.ev-doc-list > li::before { content: "■"; position: absolute; left: 0; top: 0; font-size: 10px; line-height: 2.7; color: var(--ink-2); }
.ev-doc ul.ev-doc-list ul { margin: 4px 0 0; padding-left: 4px; list-style: none; }
.ev-doc ul.ev-doc-list ul li { position: relative; padding-left: 14px; color: var(--sub); }
.ev-doc ul.ev-doc-list ul li::before { content: "-"; position: absolute; left: 0; }
.ev-doc b, .ev-doc strong { font-weight: 800; }
.ev-doc .ev-doc-hl { color: var(--teal); font-weight: 800; }
.ev-doc .ev-doc-warn { color: var(--danger); font-weight: 700; }
.ev-doc table.ev-doc-table { width: 100%; margin: 10px 0 18px; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; }
.ev-doc .ev-doc-table th { padding: 11px 14px; background: var(--bg); font-weight: 800; text-align: center; border-bottom: 1px solid var(--line); }
.ev-doc .ev-doc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ev-doc .ev-doc-table td:first-child { width: 190px; text-align: center; font-weight: 700; }
/* 화면 캡처: 그림이 있으면 테두리 상자, 없으면 '캡처 자리' 표시 */
.ev-doc .ev-doc-shot { margin: 12px 0 18px; max-width: 680px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.ev-doc .ev-doc-shot img { display: block; width: 100%; }
.ev-doc .ev-doc-shot.ev-doc-empty { display: grid; place-items: center; aspect-ratio: 16 / 7; border: 2px dashed #b9c8c9; color: var(--mute); font-size: 14px; font-weight: 700; text-align: center; padding: 20px; }
.ev-doc .ev-doc-cap { display: block; margin: -10px 0 18px; color: var(--mute); font-size: 13px; }
.ev-doc .ev-doc-tip { margin: 26px 0 10px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfd; }
.ev-doc .ev-doc-tip b.ev-doc-tip-h { display: block; margin-bottom: 6px; color: var(--teal); font-size: 16px; }
.ev-doc .ev-doc-tip ul { margin: 0; padding: 0; list-style: none; }
.ev-doc .ev-doc-tip li { position: relative; padding-left: 12px; margin: 4px 0; color: var(--sub); }
.ev-doc .ev-doc-tip li::before { content: "·"; position: absolute; left: 0; }
/* 키보드 그림: 쓰는 키만 노랗게 */
.ev-doc .ev-keys { display: inline-flex; align-items: flex-end; gap: 22px; margin: 8px 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f9; }
/* 방향키: 따로 묶어 ↑ 를 ↓ 바로 위에(3칸 격자). 아래 줄은 키보드 맨 아랫줄과 높이를 맞춘다 */
.ev-doc .ev-keys-arrows { display: grid; grid-template-columns: repeat(3, 38px); gap: 5px; margin-bottom: 5px; }
.ev-doc .ev-keys-arrows .ev-key { min-width: 0; }
.ev-doc .ev-keys-row { display: flex; gap: 5px; margin-bottom: 5px; }
.ev-doc .ev-keys-gap { width: 18px; }
.ev-doc .ev-key { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 6px; background: #fff; border: 1px solid #c9d4d6; box-shadow: 0 2px 0 #c9d4d6; color: #9aabb2; font-size: 12px; font-weight: 700; }
.ev-doc .ev-key.ev-key-on { background: var(--yellow); border-color: #d9b400; box-shadow: 0 2px 0 #b99a00; color: var(--ink); }
.ev-doc .ev-key.ev-key-w2 { min-width: 64px; } .ev-doc .ev-key.ev-key-w3 { min-width: 88px; } .ev-doc .ev-key.ev-key-sp { min-width: 230px; }
.ev-doc .ev-keycap { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 7px; margin: 0 2px; border-radius: 5px; background: var(--yellow); border: 1px solid #d9b400; box-shadow: 0 2px 0 #b99a00; font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1; }
@media (max-width: 700px) { .ev-doc .ev-keys { display: none; } .ev-doc .ev-doc-table td:first-child { width: 110px; } }

/* 가이드 글: 오른쪽 고정 목차(지금 읽는 절 표시) + 맨 위로. 넓은 화면에서만 판이 보이고, 그때는 본문 위 목차를 숨긴다. */
.gd-side, .gd-fab { display: none; }
@media (min-width: 1280px) {
  .wrap.gd-post { max-width: 1400px; grid-template-columns: 220px minmax(0, 1fr) 200px; }
  .gd-post .gd-toc { display: none; }
  .gd-side { display: block; position: sticky; top: 92px; padding: 4px 0 0 16px; border-left: 2px solid var(--line); }
  .gd-side b { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
  .gd-side ol { margin: 0 0 16px; padding: 0; list-style: none; }
  .gd-side li { margin: 0; }
  .gd-side ol a { display: block; margin-left: -18px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: 14px; color: var(--sub); line-height: 1.45; }
  .gd-side ol a:hover { color: var(--ink); }
  .gd-side ol a.on { border-left-color: var(--teal); color: var(--teal); font-weight: 800; }
  .gd-side .gd-totop { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font: inherit; font-size: 13px; font-weight: 700; color: var(--sub); cursor: pointer; }
  .gd-side .gd-totop::before { content: "↑"; }
  .gd-side .gd-totop:hover { border-color: var(--teal); color: var(--teal); }
}
@media (max-width: 1279px) {
  .gd-fab { display: grid; place-items: center; position: fixed; right: 20px; bottom: 24px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--outline); background: var(--paper); box-shadow: var(--pop); font-size: 20px; font-weight: 800; color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
  .gd-fab.show { opacity: 1; pointer-events: auto; transform: none; }
}

/* 목차 판이 없는 가이드 글(절 제목이 없는 글)은 본문이 오른쪽 칸까지 쓴다 */
@media (min-width: 1280px) { .wrap.gd-post:not(:has(.gd-side)) { grid-template-columns: 220px minmax(0, 1fr); } }
/* 일본어: 'ー'·작은 가나가 줄 맨 앞에 오지 않게(가타카나 낱말이 칸 끝에서 어색하게 끊기는 것 방지) */
html:lang(ja) .ev, html:lang(ja) .gd-doc, html:lang(ja) .faq-list { line-break: strict; word-break: normal; }
