/* ETHERION — 튜토리얼 · 매뉴얼 (js/manual.js, 가이드 2.20, 게임 v3.9)
   성채 UI의 네 문법(가이드 2.5)만 쓴다: 고서 액자(창) · 문양 명판(단추) · 마름모 머리(제목) · 금 마름모 구분선.
   색은 가이드 1 · 2.2의 이름 붙은 값(변수 · 종류색 · 클래스색 · 구슬 그라데이션)만. 반복 움직임은 없다 — 창이 열릴 때 한 번 스며드는 것뿐. */

/* ======================= 대기실 오른쪽 아래 두 명판 ======================= */
.lobby-help { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 88; display: flex; gap: 10px; }
.btn.lh-btn:not(.rb) { --c: 10px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; font-size: 17px; }
.lh-btn .m-ico { width: 26px; height: 26px; color: var(--gold); flex: none; }
.lh-t { display: grid; justify-items: start; line-height: 1.15; }
.lh-t b { color: var(--gold-hi); letter-spacing: .08em; font-weight: 700; }
.lh-t small { font-family: var(--caps); font-size: 9.5px; letter-spacing: .32em; color: var(--muted); }
.lh-btn:hover .m-ico { color: var(--gold-hi); }
.lh-badge { position: absolute; left: 50%; top: -11px; translate: -50% 0; padding: 1px 9px 2px; font-size: 11px; font-style: normal; letter-spacing: .06em; white-space: nowrap; color: #1a1408;
  background: linear-gradient(180deg, #f6e2a8, #c99a48); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%); }
@media (max-width: 1300px) { .btn.lh-btn:not(.rb) { min-height: 48px; padding: 6px 14px 6px 11px; font-size: 15px; } .lh-btn .m-ico { width: 22px; height: 22px; } }
@media (max-width: 1100px) { .lh-t small { display: none; } }
@media (max-width: 760px) { .lobby-help { right: 10px; bottom: 74px; } .lh-t { display: none; } .btn.lh-btn:not(.rb) { padding: 8px 12px; } }
.screen-lobby .lobby { padding-bottom: 96px; }

/* ======================= 창 공통 ======================= */
html.help-open body { overflow: hidden; }   /* body의 넘침은 화면(viewport)으로 옮겨 가므로 스크롤 자리는 그대로, 바퀴로만 안 움직인다 */
.help-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(20, 16, 34, .72), rgba(3, 4, 8, .88)); animation: hxIn .22s ease-out; }
@keyframes hxIn { from { opacity: 0; } }
.man, .lesson, .tut, .tour-tip {
  position: relative; border: 1px solid rgba(217, 180, 106, .34); border-radius: 3px; color: var(--ink);
  background:
    var(--orn-tl) top 4px left 4px / 22px no-repeat, var(--orn-tr) top 4px right 4px / 22px no-repeat,
    var(--orn-bl) bottom 4px left 4px / 22px no-repeat, var(--orn-br) bottom 4px right 4px / 22px no-repeat,
    radial-gradient(120% 60% at 50% 0%, rgba(217, 180, 106, .07), transparent 70%),
    linear-gradient(180deg, rgba(20, 22, 35, .98), rgba(10, 11, 19, .98));
  box-shadow: inset 0 0 0 3px rgba(6, 7, 12, .55), inset 0 0 0 4px rgba(217, 180, 106, .1), 0 26px 70px rgba(0, 0, 0, .6);
}
.hx-eyebrow { margin: 0; font-family: var(--caps); font-size: 11px; letter-spacing: .38em; padding-left: .38em; color: var(--gold); opacity: .8; }
.man-head, .ls-head, .tut-head { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 60px 0; text-align: center; }
.man-head h2, .ls-head h2, .tut-head h2 { margin: 0; font-size: 28px; letter-spacing: .16em; padding-left: .16em; font-weight: 800;
  background: linear-gradient(180deg, #fff6d6 0%, #f0d48c 40%, #b8893a 64%, #f7e1a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.man-head::after, .ls-head::after, .tut-head::after { content: ""; display: block; height: 9px; margin: 8px auto 0; width: min(320px, 70%);
  background: linear-gradient(45deg, transparent 42%, var(--gold) 42% 58%, transparent 58%) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, rgba(217, 180, 106, .55) 30%, transparent 46%, transparent 54%, rgba(217, 180, 106, .55) 70%, transparent) center / 100% 1px no-repeat; }
.hx-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(217, 180, 106, .3); border-radius: 3px;
  background: rgba(10, 11, 19, .6); color: var(--ink-2); cursor: pointer; }
.hx-x svg { width: 20px; height: 20px; }
.hx-x:hover { color: var(--gold-hi); border-color: rgba(217, 180, 106, .7); }

/* ======================= 매뉴얼 ======================= */
.man { width: min(1280px, 100%); height: min(900px, calc(100vh - 32px)); height: min(900px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.man-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 0; margin-top: 14px; border-top: 1px solid rgba(217, 180, 106, .18); }
.man-toc { min-height: 0; overflow-y: auto; padding: 14px 10px 18px 16px; border-right: 1px solid rgba(217, 180, 106, .18); }
.man-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.man-toc a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 7px 10px 7px 8px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; }
.man-toc a .no { font-family: var(--caps); font-size: 12px; color: var(--gold-deep); }
.man-toc a .tt { display: grid; font-size: 15px; line-height: 1.3; }
.man-toc a small { font-family: var(--caps); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.man-toc a:hover { color: var(--ink); background: rgba(217, 180, 106, .05); }
.man-toc a.on { color: var(--gold-hi); border-left-color: var(--gold); background: linear-gradient(90deg, rgba(217, 180, 106, .12), transparent); }
.man-toc a.on .no { color: var(--gold); }
.man-toc li[hidden] { display: none; }
.man-find { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 38px; border: 1px solid rgba(217, 180, 106, .28); background: rgba(5, 6, 11, .6); border-radius: 3px; color: var(--muted); }
.man-find svg { width: 16px; height: 16px; flex: none; }
.man-find input[type="search"] { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.man-find:focus-within { border-color: rgba(217, 180, 106, .65); }
.man-none { margin: 12px 4px; color: var(--muted); font-size: 13px; }
.man-page { position: relative; min-height: 0; overflow-y: auto; padding: 6px clamp(18px, 3vw, 44px) 40px; font-size: 15.5px; line-height: 1.78; color: var(--ink-2); outline: none; scroll-behavior: auto; }
.man-page b { color: var(--ink); }
.mn-sec { max-width: 900px; padding: 22px 0 10px; }
.mn-sec[hidden] { display: none; }
.mn-sec + .mn-sec { border-top: 1px solid rgba(217, 180, 106, .14); }
.mn-h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-size: 24px; color: var(--gold-hi); letter-spacing: .06em; font-weight: 800; }
.mn-h .no { font-family: var(--caps); font-size: 15px; color: var(--gold); }
.mn-h small { font-family: var(--caps); font-size: 11px; letter-spacing: .28em; color: var(--muted); font-weight: 400; }
.man-page h3, .ls-page h3 { display: flex; align-items: center; gap: 10px; margin: 22px 0 8px; font-size: 15px; letter-spacing: .16em; color: var(--gold-hi); }
.man-page h3::before, .ls-page h3::before { content: ""; flex: none; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #fff3cc, #8a6a2a); }
.man-page h3::after, .ls-page h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217, 180, 106, .5), transparent); }
.man-page p, .ls-page p { margin: 8px 0; }
.mn-lead { font-size: 17px; color: var(--ink); }
.mn-ol, .mn-ul { margin: 8px 0; padding-left: 1.3em; display: grid; gap: 5px; }
.mn-ul li::marker { color: var(--gold); content: "◆  "; font-size: .7em; }
.mn-ol li::marker { color: var(--gold); font-family: var(--caps); }
.mn-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.mn-table th, .mn-table td { padding: 8px 12px; border-bottom: 1px solid rgba(217, 180, 106, .13); vertical-align: top; text-align: left; }
.mn-table tr:first-child th, .mn-table tr:first-child td { border-top: 1px solid rgba(217, 180, 106, .13); }
.mn-table th { width: 170px; color: var(--gold-hi); font-weight: 700; white-space: nowrap; }
.mn-table th small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); white-space: normal; }
.mn-kw th { width: 190px; font-family: var(--body); }
.mn-keys th { width: 220px; }
.mn-grades th { width: auto; color: var(--muted); font-weight: 400; font-size: 13px; }
.mn-grades td.en { font-family: var(--caps); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.mn-grade { display: inline-block; padding: 1px 10px; border: 1px solid var(--gr); color: var(--gr); background: color-mix(in srgb, var(--gr) 10%, transparent); font-weight: 700; font-size: 13px; }
.mn-note { color: var(--muted); font-size: 14px; }
.mn-tip { padding: 10px 14px 10px 16px; border-left: 2px solid var(--ether); background: linear-gradient(90deg, rgba(143, 220, 255, .08), transparent); color: var(--ink); }
.mn-cl { display: inline-block; padding: 0 8px; border: 1px solid var(--clc); border-radius: 999px; color: var(--clc); font-size: 13px; line-height: 1.6; }
.mn-cl.cl-0 { --clc: #d8c48e; border-style: dashed; } .mn-cl.cl-1 { --clc: #ff9d6a; } .mn-cl.cl-2 { --clc: #c3cfe2; } .mn-cl.cl-3 { --clc: #ae92ff; } .mn-cl.cl-4 { --clc: #ffd66e; }
.mn-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; transform: rotate(45deg); background: var(--kc); vertical-align: 2px; }
.help-wrap .k-atk { --kc: var(--rite-atk); } .help-wrap .k-def { --kc: var(--rite-def); } .help-wrap .k-any { --kc: var(--rite-any); } .help-wrap .k-hand { --kc: var(--rite-hand); } .help-wrap .k-unit { --kc: var(--k-unit, var(--gold)); } .help-wrap .k-item { --kc: #c9b27a; }
.help-wrap kbd { display: inline-block; min-width: 26px; padding: 1px 7px; margin: 0 1px; border: 1px solid rgba(217, 180, 106, .45); border-bottom-width: 2px; border-radius: 3px; background: rgba(5, 6, 11, .7);
  font-family: var(--caps); font-size: 12.5px; color: var(--gold-hi); text-align: center; line-height: 1.6; }
.mn-end { margin: 30px 0 0; text-align: center; color: var(--muted); font-family: var(--caps); letter-spacing: .2em; }
.mn-end small { font-family: var(--body); letter-spacing: 0; font-size: 12px; }
.mn-fac { --tint: color-mix(in srgb, var(--fc) 12%, transparent); margin: 16px 0; padding: 12px 16px 14px; border: 1px solid rgba(217, 180, 106, .2); background: radial-gradient(120% 80% at 0% 0%, var(--tint), transparent 70%); }
.mn-fac-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px !important; }
.mn-fac-h b { font-size: 18px; color: var(--fc); }
.mn-fac-h small { color: var(--muted); font-size: 13px; }
.mn-crest svg { width: 30px; height: 30px; display: block; }
.mn-groups { display: grid; gap: 10px; }
.mn-grp { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; }
.mn-grp .emblem { width: 44px; height: 44px; }
.mn-grp b { color: var(--gc); font-size: 16px; }
.mn-grp small { display: block; color: var(--muted); font-size: 12.5px; }
.mn-grp p { margin: 4px 0 0 !important; font-size: 14.5px; }
.mn-grp .mn-motto { color: var(--muted); font-style: italic; }

/* ======================= 그림 조각 (튜토리얼 · 매뉴얼) ======================= */
.hx-flow { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hx-flow li { --cut: 14px; position: relative; display: grid; align-content: center; gap: 1px; min-height: 86px; padding: 10px 18px 10px calc(var(--cut) + 12px); isolation: isolate; text-align: left;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.hx-flow li::before, .hx-flow li::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, 0 100%, var(--cut) 50%); }
.hx-flow li::before { inset: 0; background: var(--edge-gold); }
.hx-flow li::after { inset: 1px; background: linear-gradient(180deg, #1d1f31, #10111b); }
.hx-flow li:first-child { padding-left: 16px; }
.hx-flow li:first-child::before, .hx-flow li:first-child::after { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, 0 100%); }
.hx-flow b { color: var(--gold-hi); font-size: 16px; }
.hx-flow small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.hx-flow li:nth-child(2) b { color: color-mix(in srgb, var(--rite-atk) 70%, #fff); }
.hx-flow li:nth-child(3) b { color: color-mix(in srgb, var(--rite-def) 70%, #fff); }

.hx-ether { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 14px 0; }
.hx-orb { display: grid; justify-items: center; gap: 4px; }
.hx-orb b { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-family: var(--caps); font-size: 24px; color: #0b0d17;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 -4px 8px rgba(0, 0, 0, .25); }
.hx-orb.ess b { background: radial-gradient(circle at 34% 30%, #fff3c9, #d6aa52 55%, #7d5a1c); }
.hx-orb.crys b, .hx-orb.eth b { background: radial-gradient(circle at 34% 30%, #f2fcff, #6cc9f2 40%, #1c6a99 75%, #0a2236); color: #f2fcff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hx-orb.eth b { width: 66px; height: 66px; font-size: 28px; outline: 1px solid rgba(143, 220, 255, .5); outline-offset: 3px; }
.hx-orb small { font-size: 12px; color: var(--muted); }
.hx-op { font-style: normal; font-family: var(--caps); font-size: 22px; color: var(--gold); padding-bottom: 20px; }
.hx-spend { display: grid; gap: 4px; padding-bottom: 18px; font-size: 14px; }
.hx-spend b { color: var(--ether); font-family: var(--caps); }

.hx-field { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border: 1px solid rgba(217, 180, 106, .16); background: rgba(5, 6, 11, .45); }
.hx-row { display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.hx-who { align-self: center; font-size: 13px; color: var(--muted); text-align: center; }
.hx-row.me .hx-who { color: var(--gold-hi); }
.hx-slot { position: relative; min-height: 70px; display: grid; place-items: center; padding: 6px 4px 4px; border: 1px solid rgba(217, 180, 106, .22); background: rgba(16, 19, 30, .7); }
.hx-slot.empty { border-style: dashed; border-color: rgba(217, 180, 106, .14); background: transparent; }
.hx-slot > small { position: absolute; left: 5px; top: 2px; font-family: var(--caps); font-size: 10px; color: var(--gold-deep); }
.hx-key { margin: 0 0 2px 50px; }
.hx-mid { display: flex; align-items: center; gap: 10px; padding: 2px 0 2px 50px; font-size: 13px; color: var(--ink-2); }
.hx-mid::before { content: "▲"; color: var(--gold); font-size: 11px; }
.mu { display: grid; justify-items: center; gap: 3px; }
.mu em { font-style: normal; font-size: 13px; color: var(--ink); white-space: nowrap; }
.mu-s { display: flex; gap: 3px; }
.mu-s i, .hx-key i { font-style: normal; font-family: var(--caps); font-size: 12px; min-width: 20px; padding: 0 4px; text-align: center; border: 1px solid; border-radius: 2px; line-height: 1.5; }
.help-wrap .s-a { color: color-mix(in srgb, var(--rite-atk) 75%, #fff); border-color: color-mix(in srgb, var(--rite-atk) 50%, transparent) !important; }
.help-wrap .s-d { color: color-mix(in srgb, var(--rite-def) 75%, #fff); border-color: color-mix(in srgb, var(--rite-def) 50%, transparent) !important; }
.help-wrap .s-h { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent) !important; }
.hx-slot:has(.mu.front) { border-color: color-mix(in srgb, var(--bad) 70%, transparent); box-shadow: inset 0 0 14px rgba(239, 106, 92, .14); }
.hx-slot:has(.mu.go) { border-color: rgba(246, 226, 168, .8); box-shadow: inset 0 0 16px rgba(217, 180, 106, .18); }
.hx-steps { margin: 6px 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.hx-steps li { padding: 7px 12px; border-left: 2px solid rgba(217, 180, 106, .45); background: linear-gradient(90deg, rgba(217, 180, 106, .06), transparent); font-size: 14.5px; }
.hx-steps em { font-style: normal; font-family: var(--caps); color: var(--bad); font-weight: 700; }
.hx-cap { font-size: 14.5px; }
.hx-sp { display: grid; place-items: center; align-content: center; gap: 2px; width: 100%; height: 100%; min-height: 56px; border: 1px solid var(--kc);
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--kc) 14%, transparent) 0 6px, transparent 6px 12px), #120f1f; }
.hx-sp b { font-size: 12.5px; color: color-mix(in srgb, var(--kc) 70%, #fff); }
.hx-sp small { font-size: 11px; color: var(--muted); }
.hx-coins { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 12px 0; }
.hx-coin { display: grid; justify-items: center; gap: 4px; }
.hx-coin b { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; }
.hx-coin.h b { background: radial-gradient(circle at 34% 30%, #fff3c9, #d6aa52 55%, #7d5a1c); color: #2a1a06; box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(255, 243, 201, .35); }
.hx-coin.t b { background: radial-gradient(circle at 34% 30%, #3a3a4a, #181a26 60%, #0b0c14); color: var(--muted); box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(138, 133, 119, .25); }
.hx-coin small { font-size: 12px; color: var(--muted); }
.hx-coin-rule { flex: 1 1 320px; display: grid; gap: 4px; font-size: 14px; }
.hx-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.hx-type { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid rgba(217, 180, 106, .16); border-left: 3px solid var(--kc); background: linear-gradient(90deg, color-mix(in srgb, var(--kc) 10%, transparent), transparent 80%); }
.hx-type b { color: color-mix(in srgb, var(--kc) 65%, #fff); font-size: 15px; }
.hx-type small { color: var(--ink-2); font-size: 12.5px; }
.hx-key { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); }
.hx-read { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px 34px; align-items: start; margin: 12px 0; }
.hx-read-card { position: relative; padding: 22px 30px 4px 26px; }
.hx-read-card .card { margin: 0; pointer-events: none; }
.hx-pin, .hx-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-family: var(--caps); font-size: 11.5px; font-weight: 700; color: #1a1408;
  background: radial-gradient(circle at 34% 30%, #fff3c9, #d6aa52 60%, #7d5a1c); box-shadow: 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 1px rgba(10, 8, 4, .7); }
.hx-pin { position: absolute; z-index: 5; }
.hx-read-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-read-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; font-size: 14.5px; }
.hx-read-list b { color: var(--gold-hi); }
.hx-read-list li > span:last-child { grid-column: 2; color: var(--ink-2); }
.hx-goal { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 14px 0 6px; }
.hx-life { display: grid; justify-items: center; }
.hx-life b { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; font-family: var(--caps); font-size: 34px; color: #fff3e8;
  background: radial-gradient(circle at 34% 30%, #ffb3a6, #c2453a 50%, #4a1410); box-shadow: 0 10px 20px rgba(0, 0, 0, .55); text-shadow: 0 2px 3px rgba(0, 0, 0, .6); }
.hx-life.foe b { filter: saturate(.7) brightness(.85); }
.hx-life small { margin-top: 6px; color: var(--muted); font-size: 13px; }
.hx-vs { font-family: var(--display); font-size: 22px; color: var(--gold); letter-spacing: .1em; }

/* ======================= 튜토리얼 목록 ======================= */
.tut { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 24px; }
.tut-lead { margin: 14px 40px 0; text-align: center; color: var(--ink-2); }
.tut-link { padding: 0; border: 0; background: none; color: var(--gold-hi); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tut-chs { display: grid; gap: 10px; margin: 18px 30px 0; }
.tut-ch { --c: 12px; position: relative; display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 4px; min-height: 104px; padding: 12px 22px 12px 10px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; isolation: isolate; }
.tut-ch::before, .tut-ch::after { content: ""; position: absolute; z-index: -1; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.tut-ch::before { inset: 0; background: var(--edge-gold); opacity: .7; }
.tut-ch::after { inset: 1px; background: radial-gradient(80% 120% at 0% 50%, rgba(217, 180, 106, .1), transparent 60%), linear-gradient(180deg, #1d1f31, #10111b); }
.tut-ch:hover::before { opacity: 1; }
.tut-ch:hover::after { background: radial-gradient(80% 120% at 0% 50%, rgba(217, 180, 106, .18), transparent 60%), linear-gradient(180deg, #232539, #131420); }
.tc-no { justify-self: center; width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: #1a1408; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3c9, #d6aa52 55%, #7d5a1c); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.tc-body { display: grid; gap: 2px; }
.tc-body b { font-size: 19px; color: var(--gold-hi); letter-spacing: .06em; }
.tc-body .en { font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; color: var(--muted); }
.tc-x { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.tc-tm { font-size: 12.5px; color: var(--muted); }
.tut-ch.done .tc-tm { color: var(--good); }
.tut-ch.done .tc-no { background: radial-gradient(circle at 34% 30%, #e6ffef, #7fd49a 55%, #2a6a40); }

/* ======================= 전투 배우기 ======================= */
.lesson { width: min(1020px, 100%); height: min(800px, calc(100vh - 32px)); height: min(800px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ls-head h2 { font-size: 26px; letter-spacing: .1em; padding-left: .1em; display: flex; align-items: center; gap: 12px; }
.ls-head h2 .no { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; font-family: var(--caps); font-size: 16px; color: #1a1408; -webkit-text-fill-color: #1a1408;
  background: radial-gradient(circle at 34% 30%, #fff3c9, #d6aa52 55%, #7d5a1c); }
.ls-body { min-height: 0; overflow-y: auto; padding: 8px clamp(18px, 4vw, 54px) 16px; }
.ls-page { max-width: 880px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--ink-2); animation: hxIn .25s ease-out; }
.ls-page b { color: var(--ink); }
.ls-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 26px 18px; border-top: 1px solid rgba(217, 180, 106, .18); }
.ls-dots { display: flex; gap: 6px; }
.ls-dot { width: 12px; height: 12px; padding: 0; border: 1px solid rgba(217, 180, 106, .5); background: transparent; transform: rotate(45deg); cursor: pointer; }
.ls-dot.on { background: linear-gradient(135deg, #fff3cc, #c99a48); border-color: #f6e2a8; }
.ls-dot:hover { border-color: var(--gold-hi); }
.ls-btns { display: flex; gap: 8px; }

/* ======================= 대기실 둘러보기 ======================= */
.help-tour { display: block; padding: 0; background: none; animation: none; }
.tour-hole { position: fixed; z-index: 0; border: 1px solid rgba(246, 226, 168, .85); border-radius: 4px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(3, 4, 8, .72), 0 0 0 4px rgba(217, 180, 106, .18), inset 0 0 24px rgba(217, 180, 106, .14);
  transition: left .28s cubic-bezier(.3, .05, .15, 1), top .28s cubic-bezier(.3, .05, .15, 1), width .28s cubic-bezier(.3, .05, .15, 1), height .28s cubic-bezier(.3, .05, .15, 1); }
.tour-tip { position: fixed; z-index: 1; width: min(360px, calc(100vw - 16px)); padding: 16px 18px 14px; transition: left .28s cubic-bezier(.3, .05, .15, 1), top .28s cubic-bezier(.3, .05, .15, 1); }
.tour-tip h3 { margin: 6px 0 4px; font-size: 20px; color: var(--gold-hi); letter-spacing: .06em; }
.tt-x { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.tt-x b { color: var(--ink); }
.tt-btns { display: flex; align-items: center; gap: 6px; }
.tt-sp { flex: 1; }

@media (max-width: 900px) {
  .man-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .man-toc { border-right: 0; border-bottom: 1px solid rgba(217, 180, 106, .18); max-height: 30vh; }
  .hx-flow { grid-template-columns: minmax(0, 1fr); }
  .hx-flow li { min-height: 0; }
  .hx-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-read { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .mn-table th { width: 110px; white-space: normal; }
  .ls-foot { flex-direction: column; }
  .tut-chs { margin-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { .help-wrap, .ls-page { animation: none; } .tour-hole, .tour-tip { transition: none; } }
