/* UTOPIA: 검정과 흰색, 형광 연두 하나. 손글씨 그래피티 로고에 맞춘 스트리트 무드. 일부러 어두운 테마 하나만 둔다 */
:root {
  --bg: #070707;
  --panel: #0f0f0f;
  --panel2: #151514;
  --line: #222220;
  --line2: #34342f;
  --row: #1b1b19;
  --fg: #f2f2ec;
  --fg2: #d9d9d1;
  --dim: #a3a39b;
  --faint: #6b6b64;
  --acc: #c8ff1e;
  --acc2: #e6ff92;
  --accd: #5d7a08;
  --on-acc: #0a0a0a;
  --red: #ff6a4d;
  --blue: #7fb6ff;
  --green: #7ee08a;
  --purple: #c49bff;
  --discord: #5865f2;
  --slot: #050505;
  --radius: 6px;
  --head: "Gothic A1", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: "Space Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--sans); word-break: keep-all; overflow-wrap: anywhere; min-height: 100vh; display: flex; flex-direction: column; }
/* 필름 입자 */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; }
a { color: var(--acc2); text-decoration: none; }
a:hover { color: var(--acc); }
button { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--acc); color: var(--on-acc); padding: 6px 12px; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.loading { padding-block: 80px; color: var(--dim); text-align: center; font-family: var(--mono); letter-spacing: .1em; }

/* 로고: 그림을 가면으로 써서 글자색을 따른다 */
.logo { display: inline-block; aspect-ratio: 2384 / 1230; background: currentColor; -webkit-mask: url(img/logo.svg) center / contain no-repeat; mask: url(img/logo.svg) center / contain no-repeat; vertical-align: middle; }

/* ───────── 공통 ───────── */
main { flex: 1; }
.page { padding-block: 32px 72px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--acc); margin: 0 0 10px; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
.ptitle { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin: 0 0 8px; color: var(--fg); letter-spacing: -.02em; }
.sub { color: var(--dim); margin: 0 0 24px; }
.sec { margin-top: 56px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sec-head h2 { font-family: var(--head); font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; margin: 0; color: var(--fg); line-height: 1.2; letter-spacing: -.02em; }
.sec-head .side { color: var(--dim); font-size: 12px; display: flex; gap: 10px; align-items: baseline; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sec-head .side b { color: var(--acc); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; }
.more { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); white-space: nowrap; text-transform: uppercase; font-weight: 400; }
.more:hover { color: var(--acc); }
.more::after { content: " →"; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.card > h2, .card-h { font-family: var(--head); font-size: 18px; font-weight: 800; color: var(--fg); margin: 0 0 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; line-height: 1.35; letter-spacing: -.01em; }
.card > h2 small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--faint); margin-right: auto; margin-left: 4px; }
.card-h .big { font-family: var(--mono); font-size: 40px; color: var(--acc); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.card-h small { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; letter-spacing: .06em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; align-items: start; }
.card.wide { grid-column: 1 / -1; }
.muted { color: var(--faint); }
.empty { color: var(--faint); font-size: 14px; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 3px; border: 1px solid var(--line2); color: var(--dim); white-space: nowrap; vertical-align: middle; }
.chip.gold { color: var(--on-acc); border-color: var(--acc); background: var(--acc); font-weight: 700; }
.chip.red { color: var(--red); border-color: rgba(255, 106, 77, .45); }
.chip.blue { color: var(--blue); border-color: rgba(127, 182, 255, .4); }
.chip.green { color: var(--green); border-color: rgba(126, 224, 138, .45); }
.chip.purple { color: var(--purple); border-color: rgba(196, 155, 255, .4); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 1px solid var(--acc); color: var(--on-acc); background: var(--acc); white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--on-acc); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fg); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--fg); box-shadow: 4px 4px 0 var(--acc); color: var(--fg); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn.discord:hover { color: #fff; box-shadow: 4px 4px 0 var(--fg); }
.btn.discord svg { width: 22px; height: 22px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }

/* 아이콘 칸 */
.ico { width: 28px; height: 28px; display: inline-grid; place-items: center; background: var(--slot); border: 1px solid var(--line); border-radius: 4px; flex: none; overflow: hidden; }
.ico img { max-width: 26px; max-height: 26px; image-rendering: pixelated; }
.slot { width: 52px; height: 52px; flex: none; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); display: grid; place-items: center; }
.slot img { max-width: 34px; max-height: 34px; image-rendering: pixelated; transform: scale(1.35); }
.slot.big { width: 76px; height: 76px; border-color: var(--acc); box-shadow: 4px 4px 0 var(--accd); }
.slot.big img { transform: scale(1.8); }
.namecell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; }
.namecell a { min-width: 0; }

/* 표 */
.tbl { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--row); vertical-align: middle; }
th { color: var(--faint); font-weight: 400; font-size: 11.5px; letter-spacing: .06em; white-space: nowrap; font-family: var(--mono); text-transform: uppercase; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td > a:first-child, td > .namecell a { white-space: nowrap; }
.kv td { padding: 8px 2px; }
.kv td:first-child { color: var(--dim); width: 46%; }
.kv td:last-child { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.info { color: var(--acc2); background: rgba(200, 255, 30, .05); border: 1px solid rgba(200, 255, 30, .3); border-radius: var(--radius); padding: 10px 14px; margin: 12px 0 0; }

/* 목록 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; align-items: center; }
.toolbar select, .toolbar input { height: 40px; background: var(--slot); color: var(--fg); border: 1px solid var(--line2); border-radius: var(--radius); padding: 0 12px; font: inherit; font-size: 14px; max-width: 100%; }
.toolbar select:focus, .toolbar input:focus { outline: none; border-color: var(--acc); }
.toolbar .count { margin-left: auto; color: var(--dim); font-size: 12px; font-family: var(--mono); letter-spacing: .06em; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; }
.seg a { padding: 9px 14px; color: var(--dim); font-size: 14px; border-right: 1px solid var(--line2); white-space: nowrap; }
.seg a:last-child { border-right: 0; }
.seg a:hover { color: var(--fg); }
.seg a.on { background: var(--acc); color: var(--on-acc); font-weight: 700; }
.rows { display: flex; flex-direction: column; }
.rows a.row, .rows .row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--row); color: var(--fg); min-width: 0; }
.rows a.row:hover { background: rgba(200, 255, 30, .04); color: var(--fg); }
.rows a.row:hover .t { color: var(--acc); }
.rows .row:last-child { border-bottom: 0; }
.rows .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .r { margin-left: auto; color: var(--dim); font-size: 13px; text-align: right; white-space: nowrap; flex: none; padding-left: 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); font-size: 13px; font-family: var(--mono); }
.pager a:hover { border-color: var(--acc); color: var(--acc); }
.pager .on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 700; }
.pager .off { opacity: .35; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.icard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; transition: border-color .15s, transform .15s; }
.icard:hover { border-color: var(--acc); color: var(--fg); transform: translateY(-2px); }
.icard .tx { min-width: 0; flex: 1; }
.icard .tx b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard .tx small { display: block; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 상세 머리 */
.head { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; min-width: 0; }
.head > div { min-width: 0; }
.head h1 { margin: 0 0 4px; }
.crumbs { font-size: 12px; color: var(--faint); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--mono); letter-spacing: .04em; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--acc); }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--faint); }

/* 제작 트리 */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 22px; padding-left: 18px; border-left: 2px solid var(--line2); }
.tree li { position: relative; padding: 5px 0; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 26px; width: 16px; border-top: 2px solid var(--line2); }
.tree details > summary { list-style: none; cursor: pointer; }
.tree details > summary::-webkit-details-marker { display: none; }
.tree details:not([open]) > summary .node { border-style: dashed; }
.tree .node { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%; padding: 8px 12px; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); }
.tree .node.d0 { border-color: var(--acc); }
.tree .node a { font-weight: 600; }
.tree .src { color: var(--dim); font-size: 12.5px; }
.tree .kids { color: var(--faint); font-size: 12px; border-left: 1px solid var(--line2); padding-left: 8px; }
.tree .qty { color: var(--acc); font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(200, 255, 30, .18); flex: none; animation: blink 1.6s infinite; }
.dot.off { background: var(--faint); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: .35; } }
.stat-list { display: flex; flex-direction: column; }
.stat-list .s { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--row); }
.stat-list .s:last-child { border-bottom: 0; }
.stat-list .s span { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-list .s b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); font-family: var(--mono); }
.stat-list .bar { grid-column: 1 / -1; height: 3px; background: var(--row); overflow: hidden; }
.stat-list .bar i { display: block; height: 100%; background: var(--acc); }
.stat-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-foot div { background: var(--slot); border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; min-width: 0; }
.stat-foot small { display: block; color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-foot b { font-family: var(--mono); font-size: 20px; color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 700; }

.rgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.rslot { position: relative; aspect-ratio: 1; background: var(--slot); border: 1px solid var(--line2); border-radius: 4px; display: grid; place-items: center; min-width: 0; color: var(--fg); }
.rslot:hover { border-color: var(--acc); color: var(--fg); z-index: 2; }
.rslot img { max-width: 62%; max-height: 62%; image-rendering: pixelated; }
.rslot .d { position: absolute; left: 2px; top: 2px; font-family: var(--mono); font-size: 9px; line-height: 1; padding: 2px 3px; background: rgba(0, 0, 0, .7); color: var(--dim); }
.rslot .n { position: absolute; right: 2px; bottom: 2px; font-family: var(--mono); font-size: 9.5px; line-height: 1; padding: 2px 3px; background: rgba(0, 0, 0, .75); color: var(--acc2); }
.rslot.wk { border-color: var(--acc); }
.rslot.wk .d { background: var(--acc); color: var(--on-acc); }
.rslot .plus { position: absolute; left: 2px; bottom: 2px; font-family: var(--mono); font-size: 9px; line-height: 1; padding: 2px 3px; background: var(--acc); color: var(--on-acc); font-weight: 700; }
.rslot.got img { opacity: .35; }
.rslot .ck { position: absolute; inset: 0; display: grid; place-items: center; color: var(--acc); pointer-events: none; }
.rslot .ck svg { width: 58%; height: 58%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)); }
.rslot.now { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc) inset; }
.rslot.tmr { border-style: dashed; border-color: var(--acc); }
.dmine { margin: 0 0 10px; }
.dmine p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg2); }
.dmine p b { color: var(--fg); }
.dacc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; }
.dacc::-webkit-scrollbar { display: none; }
.dacc button { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: var(--fg2); font-size: 13px; cursor: pointer; }
.dacc button.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 700; }
.dmine-hint { margin: 0 0 10px; font-size: 12.5px; }
.dmine .dst { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--fg2); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.dmine .dst.ok { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.dmine small { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.rules div { padding: 9px 8px; text-align: center; border-right: 1px solid var(--line); min-width: 0; }
.rules div:last-child { border-right: 0; }
.rules small { display: block; color: var(--faint); font-size: 11px; white-space: nowrap; }
.rules b { font-size: 12.5px; color: var(--acc); font-weight: 700; font-variant-numeric: tabular-nums; }
.rules b#dailyReset { font-family: var(--mono); }

.castles { display: flex; flex-direction: column; }
.castle { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--row); }
.castle:last-child { border-bottom: 0; }
.castle .shield { width: 34px; height: 38px; color: var(--line2); }
.castle .shield.own { color: var(--acc); }
.castle .nm { min-width: 0; }
.castle .nm b { font-family: var(--head); font-size: 16px; font-weight: 800; color: var(--fg); display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.castle .nm small { color: var(--dim); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.castle .nm small b { display: inline; font-family: var(--sans); font-size: 12.5px; color: var(--acc2); font-weight: 500; }
.castle .when { text-align: right; white-space: nowrap; }
.castle .when small { display: block; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .12em; }
.castle .when b { display: block; font-size: 14.5px; color: var(--fg); font-weight: 500; }
.castle .when em { display: block; font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--acc); }
.castle .when em.war { color: var(--red); font-weight: 700; }

.date { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--mono); }
/* ───────── 가이드북 ───────── */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; scrollbar-width: thin; }
.toc h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--acc); margin: 16px 8px 6px; font-weight: 700; text-transform: uppercase; }
.toc a { display: block; padding: 7px 10px; border-radius: 4px; color: var(--dim); font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--fg); background: var(--panel2); }
.toc a.on { color: var(--on-acc); background: var(--acc); font-weight: 700; }
.article { min-width: 0; }
.article .lede { font-size: 17px; color: var(--fg2); line-height: 1.75; margin: 0 0 26px; max-width: 46em; }
.gblock { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 12px; }
.gblock h2 { font-family: var(--head); font-size: 20px; font-weight: 800; margin: 0 0 12px; color: var(--fg); line-height: 1.35; display: flex; align-items: center; gap: 10px; }
.gblock h2::before { content: ""; width: 10px; height: 10px; background: var(--acc); flex: none; }
.gblock p { margin: 0 0 10px; line-height: 1.8; max-width: 52em; color: var(--fg2); }
.gblock p:last-child { margin-bottom: 0; }
.gblock ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.gblock ol.steps li { counter-increment: s; position: relative; padding: 10px 14px 10px 52px; background: var(--slot); border: 1px solid var(--line); border-radius: 4px; line-height: 1.65; }
.gblock ol.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 14px; top: 10px; font-family: var(--mono); font-weight: 700; color: var(--acc); font-size: 13px; }
.gblock .refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gblock .refs a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--slot); border: 1px solid var(--line2); border-radius: 4px; color: var(--fg); font-size: 14px; max-width: 100%; }
.gblock .refs a:hover { border-color: var(--acc); color: var(--acc); }
.gblock .refs a.np { padding-left: 12px; }
.gblock .tbl { margin-top: 12px; }
.gnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.gnav a { flex: 1 1 240px; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; }
.gnav a:hover { border-color: var(--acc); color: var(--fg); }
.gnav a small { display: block; color: var(--faint); font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.gnav a.nx { text-align: right; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: var(--acc); color: var(--fg); transform: translateY(-2px); }
.gcard b { font-family: var(--head); font-size: 18px; color: var(--fg); font-weight: 800; line-height: 1.35; }
.gcard:hover b { color: var(--acc); }
.gcard p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.65; }

/* ───────── 이벤트 로드맵 ───────── */
.road { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 30px; }
.road::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line2); }
.ev { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.ev::before { content: ""; position: absolute; left: -27px; top: 22px; width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--line2); }
.ev.now { border-color: rgba(200, 255, 30, .4); }
.ev.now::before { background: var(--acc); border-color: var(--acc); }
.ev.next::before { border-color: var(--acc); }
.ev.done { opacity: .55; }
.ev-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ev h3 { font-family: var(--head); font-size: 20px; font-weight: 800; margin: 0 0 4px; color: var(--fg); line-height: 1.35; }
.ev p { margin: 0; color: var(--dim); line-height: 1.7; }
.ev .more { display: inline-block; margin-top: 10px; }

/* 패치노트 */
.note { padding: 22px 0; border-bottom: 1px solid var(--line); }
.note:first-child { padding-top: 4px; }
.note:last-child { border-bottom: 0; padding-bottom: 4px; }
.note h3 { margin: 8px 0 12px; font-family: var(--head); font-size: 21px; font-weight: 800; color: var(--fg); line-height: 1.35; }
.note ul { margin: 0; padding-left: 20px; }
.note li { margin: 6px 0; line-height: 1.7; }
.note li::marker { color: var(--acc); }

/* ───────── 내 계정 ───────── */
.auth { max-width: 560px; margin: 24px auto 0; text-align: center; }
.auth .logo { width: 220px; color: var(--fg); margin-bottom: 18px; }
.auth h1 { margin-bottom: 10px; }
.auth p { color: var(--dim); line-height: 1.7; }
.auth .btn { margin-top: 18px; height: 54px; padding: 0 28px; font-size: 16px; }
.auth ol { text-align: left; margin: 28px 0 0; padding: 18px 20px 18px 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg2); line-height: 1.8; }
.me { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.me img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--acc); }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-family: var(--head); font-weight: 800; font-size: 24px; line-height: 1.2; }
.me .who small { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.acct-list { display: flex; flex-direction: column; gap: 12px; }
.acct { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.acct-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-top b { font-family: var(--mono); font-size: 18px; color: var(--fg); }
.acct-top small { color: var(--faint); font-size: 12.5px; }
.acct-top .sp { flex: 1; }
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; margin-top: 14px; }
.char { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--slot); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.char .cls { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 4px; font-family: var(--mono); font-size: 12px; color: var(--acc); }
.char .nm { min-width: 0; flex: 1; }
.char .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char .nm small { color: var(--dim); font-size: 12.5px; }
.char .on { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.field input { width: 100%; height: 44px; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); padding: 0 12px; font: inherit; font-family: var(--mono); }
.field input:focus { outline: none; border-color: var(--acc); }
.field small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; }
.form-foot { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.form-foot .cap { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--fg2); font-family: var(--mono); }
.form-foot .cap input { width: 90px; height: 40px; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); padding: 0 10px; font: inherit; }
.msg { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }
.msg.err { color: var(--red); background: rgba(255, 106, 77, .07); border: 1px solid rgba(255, 106, 77, .35); }
.msg.ok { color: var(--acc2); background: rgba(200, 255, 30, .06); border: 1px solid rgba(200, 255, 30, .35); }
.tabs { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.tabs button { background: transparent; border: 0; border-right: 1px solid var(--line2); padding: 10px 16px; color: var(--dim); cursor: pointer; font-size: 14px; }
.tabs button:last-child { border-right: 0; }
.tabs button.on { background: var(--acc); color: var(--on-acc); font-weight: 700; }

.life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; align-items: start; }

/* ───────── 머리 (드롭다운 메뉴) ───────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 60; }
/* 흐림 효과는 ::before 에 둔다. .gnb 자체에 backdrop-filter 를 걸면 안쪽 position:fixed 모바일 메뉴가 머리 높이 안에 갇혀 거의 안 보였다 */
.gnb { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--line); view-transition-name: gnb; }
.gnb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 7, 7, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gnb-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; min-height: 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; color: var(--fg); flex: none; padding: 4px 0; }
.brand:hover { color: var(--acc); }
.brand .logo { height: 36px; }
.menu { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.menu > a, .dd > button { position: relative; display: inline-flex; align-items: center; gap: 5px; color: var(--fg2); font-weight: 500; padding: 19px 9px; white-space: nowrap; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
.dd > button svg { width: 10px; height: 10px; opacity: .7; transition: transform .15s; }
.menu > a:hover, .menu > a.on, .dd:hover > button, .dd.on > button, .dd.open > button { color: var(--acc); }
.menu > a.on::after, .dd.on > button::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 12px; height: 2px; background: var(--acc); }
.dd { position: relative; }
.dd-panel { position: absolute; left: -6px; top: calc(100% - 6px); min-width: 220px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .7); padding: 6px; display: none; z-index: 60; }
.dd-panel.wide { min-width: 460px; display: none; grid-template-columns: 1fr 1fr; gap: 0 6px; }
.dd:hover > .dd-panel, .dd.open > .dd-panel { display: block; }
.dd:hover > .dd-panel.wide, .dd.open > .dd-panel.wide { display: grid; }
.dd-panel a { display: flex; flex-direction: column; padding: 8px 11px; border-radius: 4px; color: var(--fg); font-size: 14px; line-height: 1.35; }
.dd-panel a small { color: var(--faint); font-size: 12px; margin-top: 2px; }
.dd-panel a:hover, .dd-panel a.on { background: var(--panel2); color: var(--acc); }
.dd-panel .all { grid-column: 1 / -1; border-bottom: 1px solid var(--line); border-radius: 4px 4px 0 0; margin-bottom: 4px; color: var(--acc); font-weight: 700; }
.dd-panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; grid-column: 1 / -1; }
.gnb-act { display: flex; align-items: center; gap: 6px; flex: none; }
.ibtn, .lang, .acct-btn, .dc-btn { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--fg); border: 1px solid var(--line2); border-radius: var(--radius); padding: 0 11px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ibtn { width: 36px; padding: 0; }
.ibtn svg { width: 16px; height: 16px; }
.lang { min-width: 46px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.acct-btn { font-weight: 700; }
.acct-btn img { width: 20px; height: 20px; border-radius: 50%; }
.acct-btn svg { width: 16px; height: 16px; }
.dc-btn { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 700; }
.dc-btn svg { width: 17px; height: 17px; }
.dc-btn:hover { color: var(--on-acc); filter: brightness(1.08); }
.ibtn:hover, .lang:hover, .acct-btn:hover { border-color: var(--acc); color: var(--acc); }
.burger { display: none; }

/* 검색 창 (머리의 돋보기) */
.sbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); display: none; align-items: flex-start; justify-content: center; padding: max(70px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.sbox.open { display: flex; }
.sbox-in { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .8); overflow: hidden; }
.sbox form { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sbox form svg { width: 18px; height: 18px; color: var(--acc); flex: none; }
.sbox input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; color: var(--fg); font: inherit; font-size: 17px; }
.sbox input:focus { outline: none; }
.sbox kbd { font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line2); border-radius: 3px; padding: 2px 6px; }
.suggest { max-height: 60vh; overflow: auto; padding: 6px; }
.suggest a { display: flex; gap: 9px; align-items: center; padding: 8px 10px; color: var(--fg); border-radius: 4px; min-width: 0; }
.suggest a .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest a:hover, .suggest a.on { background: var(--panel2); color: var(--acc); }
.suggest .k { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; flex: none; }
.suggest .hint { color: var(--faint); font-size: 13px; padding: 10px; margin: 0; }

/* ───────── 틀 (조회 화면처럼 모서리 장식이 있는 큰 판) ───────── */
.narrow { max-width: 920px; }
.mid { max-width: 1100px; }
.frame { position: relative; background: linear-gradient(180deg, #121211, #0b0b0a); border: 1px solid var(--line2); border-radius: 4px; padding: 30px 32px 32px; }
.frame::before, .frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--acc); pointer-events: none; }
.frame::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.frame::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.frame + .frame { margin-top: 18px; }
.frame-h { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.frame-h .ptitle { margin-bottom: 10px; }
.frame-h p { color: var(--dim); margin: 0; max-width: 44em; line-height: 1.7; }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; color: var(--acc); margin: 0 0 10px; text-transform: uppercase; }
.utabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs a { padding: 10px 0; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.utabs a:hover { color: var(--fg); }
.utabs a.on { color: var(--acc); border-bottom-color: var(--acc); font-weight: 700; }
.qrow { display: flex; gap: 8px; margin-bottom: 14px; }
.qrow input { flex: 1; min-width: 0; height: 44px; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); padding: 0 14px; font: inherit; }
.qrow input:focus { outline: none; border-color: var(--acc); }
.qrow .btn { height: 44px; padding: 0 20px; }
.qrow .btn:hover { transform: none; box-shadow: none; filter: brightness(1.08); }
.filters { background: var(--slot); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.frow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.frow > span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; padding-top: 7px; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pills a, .pills button { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 4px; color: var(--fg2); font-size: 13px; background: transparent; cursor: pointer; white-space: nowrap; }
.pills a:hover, .pills button:hover { border-color: var(--acc); color: var(--acc); }
.pills a.on, .pills button.on { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 700; }
.sels { display: flex; flex-wrap: wrap; gap: 8px; }
.sels select { height: 34px; background: var(--panel); color: var(--fg); border: 1px solid var(--line2); border-radius: 4px; padding: 0 10px; font: inherit; font-size: 13.5px; max-width: 100%; }
.sels select:focus { outline: none; border-color: var(--acc); }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.active-f a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--acc); color: var(--acc2); border-radius: 4px; font-size: 12.5px; }
.active-f a::after { content: "×"; color: var(--faint); }
.prompt { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--dim); background: rgba(255, 255, 255, .015); margin: 0; }
.res-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.res-h h2 { font-family: var(--head); font-weight: 800; font-size: 24px; margin: 0; }
.res-h .cnt { color: var(--dim); font-size: 12.5px; font-family: var(--mono); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.res-h .cnt a { border: 1px solid var(--line2); border-radius: 4px; padding: 4px 10px; color: var(--fg); }
.res-h .cnt a:hover { border-color: var(--acc); color: var(--acc); }
.res-h .cnt .off { opacity: .35; border: 1px solid var(--line2); border-radius: 4px; padding: 4px 10px; }

/* 아이템 조회 카드 (이름 줄 + 두 칸짜리 능력치 표) */
.icards { display: flex; flex-direction: column; gap: 12px; }
.icx { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.icx-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; min-width: 0; }
.icx-h .ico { width: 34px; height: 34px; }
.icx-h .ico img { max-width: 32px; max-height: 32px; }
.icx-h .nm { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--fg); min-width: 0; }
.icx-h .nm:hover { color: var(--acc); }
.icx-h .idt { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line2); border-radius: 20px; padding: 4px 10px; white-space: nowrap; letter-spacing: .06em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border: 1px solid var(--line2); border-radius: 3px; font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.tag.acc { border-color: rgba(200, 255, 30, .45); color: var(--acc2); }
.tag.bless { border-color: rgba(200, 255, 30, .6); background: rgba(200, 255, 30, .1); color: var(--acc); font-weight: 700; }
.tag.red { border-color: rgba(255, 106, 77, .5); color: var(--red); }
.tag.sm { height: 18px; padding: 0 5px; font-size: 10.5px; margin-left: 2px; vertical-align: middle; flex: none; }
.ptitle .tag.sm { height: 24px; padding: 0 8px; font-size: 14px; margin-left: 10px; vertical-align: middle; position: relative; top: -4px; }
.tag.blue { border-color: rgba(127, 182, 255, .45); color: var(--blue); }
.tag.green { border-color: rgba(126, 224, 138, .45); color: var(--green); }
.tag.purple { border-color: rgba(196, 155, 255, .45); color: var(--purple); }
.kv2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.kv2 dl { margin: 0; }
.kv2 .r { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px solid var(--row); min-height: 32px; align-items: center; }
.kv2 dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--acc2); text-transform: uppercase; align-self: stretch; display: flex; align-items: center; background: rgba(255, 255, 255, .02); padding: 0 8px; }
.kv2 dd { margin: 0; padding: 5px 10px; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 0; }
.clsico { display: flex; flex-wrap: wrap; gap: 4px; }
.clsico i { font-style: normal; display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 5px; border: 1px solid var(--line2); border-radius: 11px; font-size: 11px; color: var(--fg2); }
.clsico i.no { opacity: .22; }
.srcbtn { margin-top: 12px; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 4px; background: transparent; color: var(--fg); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.srcbtn:hover { border-color: var(--acc); color: var(--acc); }
.srcs { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.srcs h4 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--acc); text-transform: uppercase; font-weight: 700; }

/* 몬스터 조회 카드 (그림 + 능력치) */
.mcx { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; align-items: center; }
.mcx .pic { width: 120px; height: 110px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(200, 255, 30, .08), transparent); border-radius: 4px; }
.mcx .pic img { max-width: 116px; max-height: 106px; image-rendering: auto; }
.mcx .pic span { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .1em; }
.mcx-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mcx-h .nm { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--fg); }
.mcx-h .nm:hover { color: var(--acc); }
.mcx-h .idt { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mgridx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 14px; font-size: 13.5px; }
.mgridx div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mgridx i { font-style: normal; color: var(--dim); margin-right: 4px; }
.mgridx b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }
.mline { margin: 8px 0 0; font-size: 13px; color: var(--dim); line-height: 1.8; }
.mline b { color: var(--fg2); font-weight: 600; margin-right: 4px; }
.drops { display: flex; flex-direction: column; gap: 6px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.drow .ico { width: 32px; height: 32px; }
.drow .tx { min-width: 0; flex: 1; }
.drow .tx a { font-weight: 600; color: var(--fg); }
.drow .tx a:hover { color: var(--acc); }
.drow .tx small { display: block; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.drow .tx .id { color: var(--faint); font-size: 12px; margin-left: 6px; }

/* ───────── 첫 화면 ───────── */
.hero2 { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #050505; }
.hero2 .bg { position: absolute; inset: 0; background-size: cover; background-position: 70% 40%; opacity: .5; filter: grayscale(.25) contrast(1.1); }
.hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .78) 45%, rgba(5, 5, 5, .3) 100%), linear-gradient(0deg, #050505 0%, transparent 35%); }
.hero2 .in { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 64px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.hero2 h1 { margin: 0 0 18px; font-family: var(--head); font-weight: 900; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; letter-spacing: -.03em; max-width: 12em; }
.hero2 h1 em { font-style: normal; color: var(--acc); }
.hero2 .lead { color: var(--fg2); font-size: 17px; line-height: 1.7; margin: 0 0 26px; }
.hfeat { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 10px; margin-bottom: 14px; }
.hfeat a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(12, 12, 11, .82); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); min-width: 0; }
.hfeat a:hover { border-color: var(--acc); color: var(--fg); }
.hfeat .ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--acc); flex: none; }
.hfeat .ic svg { width: 17px; height: 17px; }
.hfeat b { display: block; font-family: var(--head); font-weight: 800; font-size: 16px; }
.hfeat small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hfeat .ar { margin-left: auto; color: var(--dim); }
.hcta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hcta .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.hcta .btn.ghost { background: rgba(12, 12, 11, .82); }
.hlinks { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--dim); }
.hlinks a { color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.hlinks a:hover { color: var(--acc); }
.hlinks b { color: var(--acc); font-family: var(--mono); }

.home { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hsec { padding-block: 44px; border-top: 1px solid var(--line); }
.hsec:first-child { border-top: 0; }
.hsec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hsec-h h2 { font-family: var(--head); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); margin: 0; line-height: 1.2; letter-spacing: -.02em; }
.hsec-h p { color: var(--dim); margin: 8px 0 0; }
.hsec-h .side { color: var(--dim); font-size: 12px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hsec-h .side b { color: var(--acc); font-size: 14px; margin-left: 8px; }
.intro { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.intro h3 { font-family: var(--head); font-weight: 800; font-size: 24px; margin: 0; }
.intro p { margin: 0; color: var(--fg2); line-height: 1.75; }
.intro p b { color: var(--fg); }

/* 큰 사냥터 그림 판 */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; background: #050505; }
.showcase a { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: var(--fg); border-right: 1px solid var(--line2); overflow: hidden; }
.showcase a:last-child { border-right: 0; }
.showcase a .im { position: absolute; inset: 0; background-size: 170%; background-position: center; opacity: .55; transition: transform .4s, opacity .3s; }
.showcase a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 5, 5, .95) 10%, rgba(5, 5, 5, .2) 70%); }
.showcase a > * { position: relative; z-index: 1; }
.showcase a:hover .im { transform: scale(1.06); opacity: .75; }
.showcase small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--acc); text-transform: uppercase; }
.showcase b { font-family: var(--head); font-weight: 800; font-size: 21px; margin: 4px 0 4px; }
.showcase p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.6; }

.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adv a { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); overflow: hidden; }
.adv a .im { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .16; transition: opacity .3s; }
.adv a:hover { border-color: var(--acc); color: var(--fg); }
.adv a:hover .im { opacity: .28; }
.adv a > * { position: relative; }
.adv small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--acc); text-transform: uppercase; }
.adv b { font-family: var(--head); font-weight: 800; font-size: 22px; margin: 6px 0 8px; }
.adv p { margin: 0 0 12px; color: var(--fg2); font-size: 13.5px; line-height: 1.65; }
.adv ul { list-style: none; margin: auto 0 14px; padding: 0; font-size: 12.5px; color: var(--dim); }
.adv li::before { content: "▪"; color: var(--acc); margin-right: 7px; }
.adv .go { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc2); border-top: 1px solid var(--line2); padding-top: 10px; text-transform: uppercase; }

.classes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.classes a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-align: center; min-width: 0; }
.classes a:hover { border-color: var(--acc); color: var(--acc); }
.classes .cl { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; font-family: var(--mono); font-weight: 700; color: var(--acc); font-size: 13px; }
.classes b { font-family: var(--head); font-weight: 800; font-size: 15px; }
.classes small { color: var(--faint); font-size: 11.5px; }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feats div { padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.feats b { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.feats b::before { content: "✶"; color: var(--acc); font-size: 13px; }
.feats p { margin: 0 0 10px; color: var(--dim); font-size: 13px; line-height: 1.65; }
.feats a { font-size: 12px; font-family: var(--mono); letter-spacing: .04em; }
.feats a::after { content: " →"; }

.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.news a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); min-width: 0; }
.news a:hover { border-color: var(--acc); color: var(--fg); }
.news a:hover b { color: var(--acc); }
.news .tg { display: flex; gap: 8px; align-items: center; }
.news b { font-family: var(--head); font-weight: 800; font-size: 18px; line-height: 1.35; }
.news p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.center { text-align: center; margin-top: 16px; }

.rates2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rates2 div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--row); font-size: 13.5px; }
.rates2 span { color: var(--dim); }
.rates2 b { font-family: var(--mono); color: var(--fg); }
.world { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.world .card { display: flex; flex-direction: column; }

/* ───────── 순위표 ───────── */
.lb-bar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 18px; }
.lb-bar .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.lb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lbc { position: relative; background: linear-gradient(180deg, #121211, #0b0b0a); border: 1px solid var(--line2); border-radius: 4px; padding: 16px; min-width: 0; }
.lbc::before { content: ""; position: absolute; left: -1px; top: -1px; width: 12px; height: 12px; border-left: 2px solid var(--acc); border-top: 2px solid var(--acc); }
.lbc h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--acc2); text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; }
.lbc h3 small { color: var(--faint); font-size: 10px; }
.lbr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--row); font-size: 13.5px; }
.lbr:last-child { border-bottom: 0; }
.lbr .n { font-family: var(--mono); color: var(--faint); font-size: 12px; }
.lbr:nth-child(-n+3) .n { color: var(--acc); font-weight: 700; }
.lbr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lbr .v { font-family: var(--mono); font-size: 12px; color: var(--fg2); border: 1px solid var(--line2); border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.lbr .c { font-size: 11.5px; color: var(--dim); border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.lbi { display: flex; align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid var(--row); font-size: 13px; min-width: 0; }
.lbi .ico { width: 24px; height: 24px; }
.lbi .ico img { max-width: 22px; max-height: 22px; }
.lbi a { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lbi a:hover { color: var(--acc); }
.lbi .e { color: var(--acc); font-family: var(--mono); font-weight: 700; }
.lbi .x { color: var(--faint); font-family: var(--mono); font-size: 12px; margin-left: auto; flex: none; }
.lbc .scroll { max-height: 420px; overflow: auto; scrollbar-width: thin; }
.lbc.wide { grid-column: span 1; }

/* ───────── 지도 ───────── */
.atlas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--fg); min-width: 0; }
.acard:hover { border-color: var(--acc); color: var(--fg); }
.acard .im { aspect-ratio: 2 / 1; background: #000 center / contain no-repeat; border-bottom: 1px solid var(--line); }
.acard .im.none { display: grid; place-items: center; color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.acard .tx { padding: 10px 12px 12px; min-width: 0; }
.acard b { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.acard small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .1em; margin-top: 2px; }
.acard em { font-style: normal; color: var(--acc2); font-size: 12px; }
.mapview { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.mapbox { position: relative; height: min(72vh, 680px); background: radial-gradient(circle at 50% 40%, #121a26, #050608 75%); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden; touch-action: none; cursor: grab; user-select: none; }
.mapbox.drag { cursor: grabbing; }
.mapbox .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mapbox .stage img { display: block; max-width: none; pointer-events: none; }
.mapbox .ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.mapbox .ov svg { overflow: visible; }
.mpin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; }
.mpin i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); border: 2px solid #050505; box-shadow: 0 0 0 2px rgba(200, 255, 30, .35); }
.mpin.boss i { width: 16px; height: 16px; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 106, 77, .35); }
.mpin.npc i { background: var(--blue); box-shadow: 0 0 0 2px rgba(127, 182, 255, .35); }
.mpin.exit i { border-radius: 3px; background: #ffd34d; box-shadow: 0 0 0 2px rgba(255, 211, 77, .35); }
.mpin span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; }
.mapbox.nolabel .mpin span { display: none; }
.mtools { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 5px; }
.mtools button { height: 28px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 4px; background: rgba(8, 8, 8, .85); color: var(--fg2); font-size: 12px; cursor: pointer; }
.mtools button.on { border-color: var(--acc); color: var(--acc); }
.mzoom { position: absolute; right: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.mzoom button { width: 32px; height: 32px; border: 1px solid var(--line2); border-radius: 4px; background: rgba(8, 8, 8, .85); color: var(--fg); font-size: 16px; cursor: pointer; }
.mtip { position: absolute; z-index: 4; max-width: 260px; background: rgba(10, 10, 10, .95); border: 1px solid var(--acc); border-radius: 4px; padding: 8px 10px; font-size: 12.5px; pointer-events: auto; }
.mtip b { display: block; font-size: 14px; }
.mside { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.mside .utabs { padding: 0 12px; margin: 0; }
.mside .body { padding: 10px 12px 14px; max-height: calc(min(72vh, 680px) - 46px); overflow: auto; scrollbar-width: thin; }
.mside .row2 { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--row); min-width: 0; cursor: pointer; }
.mside .row2:hover { background: rgba(200, 255, 30, .04); }
.mside .row2 img { width: 30px; height: 30px; object-fit: contain; }
.mside .row2 .tx { min-width: 0; flex: 1; }
.mside .row2 b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mside .row2 small { color: var(--dim); font-size: 12px; }
.mside .row2 .c { font-family: var(--mono); font-size: 12px; color: var(--acc2); }
.mstat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.mstat div { padding: 10px 12px; border-right: 1px solid var(--line); text-align: center; min-width: 0; }
.mstat div:last-child { border-right: 0; }
.mstat small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; white-space: nowrap; }
.mstat b { font-family: var(--mono); font-size: 17px; color: var(--fg); }

/* 혈맹, 보스 주기, 상점 */
.plist { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) repeat(3, 70px); gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--row); font-size: 13.5px; }
.prow.h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.prow .nm b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prow .castle-t { color: var(--acc); font-size: 12px; }
.bcard { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.bcard .pic { width: 74px; height: 64px; display: grid; place-items: center; }
.bcard .pic img { max-width: 72px; max-height: 62px; }
.bcard b a { color: var(--fg); font-family: var(--head); font-weight: 800; font-size: 16px; }
.bcard b a:hover { color: var(--acc); }
.bcard small { display: block; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.bcard .st { text-align: right; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.bcard .st b { display: block; color: var(--fg); font-size: 13.5px; font-family: var(--mono); }
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shoph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.shoph b { font-family: var(--head); font-weight: 800; font-size: 17px; }

/* 안내 목록 (가이드 모음) */
.ghub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.gcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; min-width: 0; }
.gcol h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 800; font-size: 18px; }
.gcol p { margin: 0 0 10px; color: var(--faint); font-size: 12.5px; }
.gcol a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--row); color: var(--fg2); font-size: 14px; }
.gcol a::after { content: "↗"; color: var(--faint); }
.gcol a:hover { color: var(--acc); }
.gsearch { display: flex; gap: 8px; align-items: center; }
.gsearch input { height: 38px; background: var(--slot); border: 1px solid var(--line2); border-radius: var(--radius); color: var(--fg); padding: 0 12px; font: inherit; min-width: 0; width: 260px; }
.gsearch input:focus { outline: none; border-color: var(--acc); }

/* 바닥 */
.foot { border-top: 1px solid var(--line); background: #040404; margin-top: 40px; }
.foot-in { max-width: 1040px; margin: 0 auto; padding: 26px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 20px 30px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.foot p { margin: 0; color: var(--faint); font-size: 12.5px; line-height: 1.7; }
.foot p b { color: var(--dim); font-weight: 500; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot nav a { color: var(--dim); font-size: 13px; }
.foot nav a:hover { color: var(--acc); }

/* ───────── 화면 폭 ───────── */
@media (max-width: 1120px) {
  .menu > a, .dd > button { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .dc-btn .lbl { display: none; }
  .life { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .life > :nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu { position: fixed; left: 0; right: 0; top: calc(61px + env(safe-area-inset-top, 0px)); bottom: 0; height: calc(100dvh - 61px - env(safe-area-inset-top, 0px)); background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px max(18px, env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); display: none; z-index: 55; }
  .menu.open { display: flex; animation: menuIn .16s ease-out; }
  .menu > a, .dd > button { width: 100%; min-height: 56px; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--fg); }
  .dd > button svg { width: 14px; height: 14px; }
  .dd-panel a { padding: 13px 12px; font-size: 16px; min-height: 48px; justify-content: center; }
  .dd-panel a small { font-size: 13px; }
  .menu > a.on::after, .dd.on > button::after { display: none; }
  .dd-panel, .dd-panel.wide { position: static; display: none; box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 4px 0 10px 10px; }
  .dd:hover > .dd-panel { display: none; }
  .dd:hover > .dd-panel.wide { display: none; }
  .dd.open > .dd-panel { display: block; }
  .dd.open > .dd-panel.wide { display: grid; grid-template-columns: 1fr; }
  .dd.open > button svg { transform: rotate(180deg); }
  .gnb-act { margin-left: auto; }
  .lb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapview { grid-template-columns: minmax(0, 1fr); }
  .mside .body { max-height: 420px; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc h3 { display: none; }
  .toc a { white-space: nowrap; flex: none; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase a { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line2); }
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .classes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .world { grid-template-columns: minmax(0, 1fr); }
  .ghub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .frame { padding: 22px 16px 20px; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .frow > span { padding-top: 0; }
  .kv2 { grid-template-columns: minmax(0, 1fr); }
  .mcx { grid-template-columns: minmax(0, 1fr); }
  .mcx .pic { width: 100%; height: 90px; }
  .mgridx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb, .atlas, .adv, .news, .ghub, .life { grid-template-columns: minmax(0, 1fr); }
  .life > :nth-child(2) { grid-row: auto; }
  .hfeat { grid-template-columns: minmax(0, 1fr); }
  .hcta .btn { flex: 1 1 calc(50% - 10px); }
  .classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .mstat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mstat div:nth-child(3) { border-right: 0; }
  .prow { grid-template-columns: 24px minmax(0, 1fr) 54px 54px; }
  .prow .hide-s { display: none; }
  .bcard { grid-template-columns: 56px minmax(0, 1fr); }
  .bcard .st { grid-column: 1 / -1; text-align: left; }
  .gnb-act { gap: 4px; }
  .acct-btn, .lang { padding: 0 8px; }
  .acct-btn .lbl { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .card { padding: 16px; }
  .gblock { padding: 18px 16px; }
  .head { gap: 14px; align-items: flex-start; }
  .castle { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
  .castle .shield { width: 28px; height: 32px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .rgrid { gap: 3px; }
  .rules small { font-size: 10.5px; white-space: normal; }
  .form-foot .btn { flex: 1 1 100%; }
  .gsearch input { width: 100%; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html.menu-open, html.menu-open body { overflow: hidden; }
/* 페이지 넘김: 머리는 그대로 두고 본문만 짧게 겹쳐 바꾼다 */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; animation-timing-function: ease-out; }
::view-transition-group(gnb) { animation: none; }
#app.enter { animation: pageIn .16s ease-out; }
@keyframes pageIn { from { opacity: .35; } to { opacity: 1; } }
/* 클래스 페이지 */
.cls-hub { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cls-hub a { align-items: flex-start; text-align: left; padding: 18px 16px; }
.cls-hub small { line-height: 1.6; font-size: 12.5px; color: var(--dim); }
.cls-sw { margin: 0 0 6px; }
.cls-sec { margin-top: 30px; }
.cls-sec h2 { font-family: var(--head); font-weight: 800; font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.cls-sec > p.muted { margin: 0 0 14px; font-size: 13px; }
.cq { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cq-r { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); }
.cq-r + .cq-r { border-top: 1px solid var(--line); }
.cq-lv { font-family: var(--mono); font-weight: 700; color: var(--acc); font-size: 13px; letter-spacing: .04em; }
.cq-it { display: flex; flex-wrap: wrap; gap: 8px 18px; min-width: 0; }
.sp-f { margin: 12px 0 4px; }
.sp-f .muted { margin-left: 6px; font-weight: 400; }
.sp-g { margin-top: 22px; }
.sp-g h3 { font-family: var(--head); font-size: 16px; font-weight: 800; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sp-g h3 small { font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-weight: 400; margin-left: 8px; letter-spacing: .04em; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.spell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.spell:hover { border-color: var(--line2); }
.sp-h { display: flex; gap: 10px; align-items: center; min-width: 0; }
.sp-h .ico { width: 34px; height: 34px; flex: none; }
.sp-h .ico img { max-width: 32px; max-height: 32px; }
.sp-n { min-width: 0; }
.sp-n b { display: block; font-family: var(--head); font-weight: 800; font-size: 15.5px; color: var(--fg); line-height: 1.3; }
.sp-t { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sp-t .tag { height: 20px; font-size: 11px; }
.tag.el.earth { color: #d9b26a; border-color: rgba(217, 178, 106, .5); }
.tag.el.fire { color: var(--red); border-color: rgba(255, 106, 77, .5); }
.tag.el.water { color: var(--blue); border-color: rgba(127, 182, 255, .45); }
.tag.el.wind { color: var(--green); border-color: rgba(126, 224, 138, .45); }
.tag.el.light { color: #f2e6a0; border-color: rgba(242, 230, 160, .5); }
.sp-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.sp-kv div { min-width: 0; }
.sp-kv dt { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.sp-kv dd { margin: 1px 0 0; font-size: 13px; color: var(--fg2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sp-kv dd .namecell { display: inline-flex; }
.sp-book { margin: 0; padding-top: 9px; border-top: 1px dashed var(--line); font-size: 12.5px; line-height: 1.6; color: var(--fg2); }
.cls-notes { margin: 22px 0 0; padding-left: 18px; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 680px) {
  .cq-r { grid-template-columns: 1fr; gap: 6px; }
  .sgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 420px) { .dc-btn { display: none; } .brand .logo { height: 30px; } }
[hidden] { display: none !important; }
.mapbox:not(.zoomed) .mpin span { display: none; }
.mapbox:not(.zoomed) .mpin.exit span { display: block; opacity: .85; font-size: 10.5px; }
.mapbox.busy:not(.zoomed) .mpin.exit span { display: none; }

.final { margin-top: 6px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ico.sk img { border-radius: 4px; }
