/* LOREMARCH 사이트. 게임 화면처럼 밤하늘·모닥불·청동 테두리로 맞춘 어두운 한 가지 테마. */
:root {
  color-scheme: dark;
  --night: #0c0e1a;
  --night-2: #121527;
  --night-3: #1a1d33;
  --panel: #211913;
  --panel-2: #2b2119;
  --panel-3: #352a20;
  --bronze-lo: #5a4430;
  --bronze: #8c6a3f;
  --bronze-hi: #c9a062;
  --gold: #f0c35a;
  --ember: #ff8a3d;
  --ember-deep: #c8482a;
  --violet: #8f6bd6;
  --text: #efe6d4;
  --muted: #bcae94;
  --dim: #857a66;
  --epic: #c08cff;
  --legend: #ffa149;
  --unique: #f0c35a;
  --good: #8fd16a;
  --bad: #ff7a6b;
  --radius: 6px;
  --wrap: 1120px;
  --font-head: "Gowun Batang", "Shippori Mincho", "Noto Serif SC", serif;
  --font-body: "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Noto Sans", system-ui, sans-serif;
}
html[lang="en"] { --font-head: "Cinzel", "Gowun Batang", serif; --font-body: "Noto Sans", system-ui, sans-serif; }
html[lang="ja"] { --font-head: "Shippori Mincho", serif; --font-body: "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh-Hans"] { --font-head: "Noto Serif SC", serif; --font-body: "Noto Sans SC", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, .hero-tag, .hero-pitch { text-wrap: balance; }
img { max-width: 100%; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe08f; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* 머리띠 */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 26, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 160, 98, 0.22);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: "Cinzel", var(--font-head); font-weight: 700; letter-spacing: 0.12em; font-size: 17px; }
.brand img { width: 32px; height: 32px; }
.brand:hover { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 4px; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--gold); }
.lang {
  appearance: none; -webkit-appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a062'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--bronze); border-radius: 4px;
  color: var(--text); font: inherit; font-size: 14px;
  padding: 5px 28px 5px 10px; cursor: pointer;
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 4px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  border: 2px solid var(--bronze-hi);
  background: linear-gradient(#ffa25a, var(--ember) 45%, var(--ember-deep));
  color: #2a1408;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 0 #6b2a17, 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: #2a1408; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 5px 0 #6b2a17, 0 10px 22px rgba(0, 0, 0, 0.5); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 #6b2a17; }
.btn.ghost { background: rgba(20, 16, 12, 0.7); color: var(--text); box-shadow: 0 4px 0 #2d2117, 0 8px 18px rgba(0, 0, 0, 0.4); border-color: var(--bronze); }
.btn.ghost:hover { color: var(--gold); border-color: var(--bronze-hi); }

/* 첫 화면 */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: clamp(56px, 11vh, 120px) 16px 160px;
  text-align: center; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url("../img/scenes/title_scene.jpg") center 70% / cover no-repeat; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 50% 22%, rgba(8, 9, 20, 0.62), transparent 70%),
    linear-gradient(to bottom, rgba(12, 14, 26, 0.35), rgba(12, 14, 26, 0) 40%, rgba(12, 14, 26, 0.55) 78%, var(--night));
}
.hero-logo { width: min(669px, 86vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7)); }
.hero-tag {
  margin-top: 18px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(19px, 2.6vw, 28px); color: #ffe7b0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 138, 61, 0.25);
}
.hero-pitch {
  margin-top: 14px; max-width: 36em; font-size: clamp(15px, 1.6vw, 17px); color: #e6dccb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
}
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 숫자 띠 */
.facts { position: relative; z-index: 2; margin-top: -96px; }
.facts-box {
  background: linear-gradient(var(--panel-2), var(--panel));
  border: 2px solid var(--bronze); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 0 3px rgba(201, 160, 98, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.fact { padding: 20px 10px 18px; text-align: center; }
.fact + .fact { border-left: 1px solid rgba(201, 160, 98, 0.18); }
.fact b { display: block; font-family: "Cinzel", var(--font-head); font-size: clamp(30px, 4vw, 42px); line-height: 1.1; color: var(--gold); text-shadow: 0 0 18px rgba(240, 195, 90, 0.25); }
.fact span { color: var(--muted); font-size: 14px; }
.facts-langs { text-align: center; color: var(--dim); font-size: 14px; margin-top: 14px; }

/* 소개 줄 */
.features { padding: 72px 0 24px; }
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.feature.flip .shot { order: 2; }
.feature .no { font-family: "Cinzel", serif; color: var(--ember); font-size: 14px; letter-spacing: 0.2em; }
.feature h2 { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 14px; color: #fff3da; }
.feature p { color: var(--muted); font-size: 17px; }
.frame {
  position: relative; border-radius: var(--radius);
  border: 3px solid var(--bronze); background: #000;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(143, 107, 214, 0.08);
  overflow: hidden;
}
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(201, 160, 98, 0.25); pointer-events: none; }

/* 띠 공통 제목 */
.band { padding: 64px 0; position: relative; }
.band.dark { background: linear-gradient(var(--night), var(--night-2) 20%, var(--night-2) 80%, var(--night)); }
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.band-head h2 { font-size: clamp(24px, 3vw, 32px); color: #fff3da; }
.band-head p { color: var(--muted); margin-top: 4px; }
.more { font-weight: 700; white-space: nowrap; }
.more::after { content: " →"; }

/* 직업 초상 줄 */
.portraits {
  display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px;
  overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x proximity;
  scrollbar-color: var(--bronze) transparent;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.portrait { scroll-snap-align: start; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.35; }
.portrait img { width: 104px; height: 152px; margin: 0 auto 6px; border: 2px solid var(--bronze-lo); border-radius: 4px; background: #000; transition: border-color 0.15s, transform 0.15s; }
.portrait:hover img { border-color: var(--bronze-hi); transform: translateY(-3px); }
.portrait:hover { color: var(--text); }
.tier-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.t1 { background: #9fb3c8; } .t2 { background: #6fc3a0; } .t3 { background: var(--legend); }

/* 우두머리 줄 */
.bosses { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 14px; }
.boss { text-align: center; color: var(--muted); font-size: 14px; }
.boss .plinth {
  height: 150px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  background: radial-gradient(ellipse 60% 16% at 50% 88%, rgba(0, 0, 0, 0.75), transparent 70%), radial-gradient(circle at 50% 60%, rgba(200, 72, 42, 0.18), transparent 65%), var(--night-3);
  border: 1px solid rgba(201, 160, 98, 0.18); border-radius: var(--radius); margin-bottom: 8px; transition: border-color 0.15s;
}
.boss:hover { color: var(--text); }
.boss:hover .plinth { border-color: var(--bronze-hi); }
.boss .plinth img { transition: transform 0.2s; }
.boss:hover .plinth img { transform: translateY(-4px); }

/* 화면 모음 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 2px solid var(--bronze-lo); border-radius: 4px; background: #000; cursor: zoom-in; overflow: hidden; }
.gallery button:hover { border-color: var(--bronze-hi); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.25s; }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(4, 5, 10, 0.92); }
.lightbox img { max-width: 92vw; max-height: 84vh; border: 2px solid var(--bronze); border-radius: 4px; }
.lb-bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lb-bar button { background: var(--panel); border: 1px solid var(--bronze); border-radius: 4px; padding: 6px 16px; cursor: pointer; color: var(--text); }
.lb-bar button:hover { border-color: var(--bronze-hi); color: var(--gold); }

/* 바닥 */
.foot { border-top: 1px solid rgba(201, 160, 98, 0.2); padding: 40px 0 56px; color: var(--dim); font-size: 14px; background: #08090f; }
.foot .wrap { display: grid; gap: 6px; justify-items: center; text-align: center; }
.foot img { width: 223px; margin-bottom: 10px; opacity: 0.9; }
.foot .langs a { color: var(--muted); margin: 0 6px; }
.foot .langs a:hover { color: var(--gold); }

/* ── 도감 ── */
.codex-hero { position: relative; padding: 56px 0 40px; isolation: isolate; overflow: hidden; }
.codex-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/scenes/battle_crypt.jpg") center 60% / cover; }
.codex-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 14, 26, 0.95), rgba(12, 14, 26, 0.7) 60%, rgba(12, 14, 26, 0.5)), linear-gradient(transparent 60%, var(--night)); }
.codex-hero h1 { font-size: clamp(32px, 5vw, 48px); color: #fff3da; }
.codex-hero p { color: var(--muted); margin-top: 6px; }
.search { margin-top: 22px; position: relative; max-width: 560px; }
.search input {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: rgba(20, 16, 12, 0.88); border: 2px solid var(--bronze); border-radius: 6px;
  padding: 13px 16px 13px 46px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--gold); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--bronze-hi); }

.tabs-bar { position: sticky; top: 60px; z-index: 40; background: rgba(12, 14, 26, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(201, 160, 98, 0.18); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 13px 14px 11px; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--ember); }
.tab .n { font-size: 12px; color: var(--dim); margin-left: 5px; }
.tab[aria-selected="true"] .n { color: var(--bronze-hi); }
.tab.none { opacity: 0.45; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; }
.chip { border: 1px solid var(--bronze-lo); background: var(--panel); color: var(--muted); padding: 4px 13px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--bronze); }
.chip[aria-pressed="true"] { background: var(--bronze); color: #1d140c; border-color: var(--bronze-hi); font-weight: 700; }
.results { padding: 16px 0 72px; min-height: 50vh; }
.empty { color: var(--dim); text-align: center; padding: 64px 0; }

.grid { display: grid; gap: 14px; }
.grid.cls { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.mon { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.set { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.txt { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  display: flex; gap: 14px; text-align: left; width: 100%;
  background: linear-gradient(var(--panel-2), var(--panel)); color: var(--text);
  border: 2px solid var(--bronze-lo); border-radius: var(--radius); padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s, transform 0.15s;
}
button.card { cursor: pointer; font: inherit; }
button.card:hover { border-color: var(--bronze-hi); transform: translateY(-2px); }
.card .pic { flex: none; background: #000; border: 1px solid #000; border-radius: 3px; }
.card .pic.portrait-pic { width: 104px; height: 152px; }
.card .body { min-width: 0; flex: 1; }
.card h3 { font-size: 19px; color: #fff3da; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card .desc { color: var(--muted); font-size: 14px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sprite-box { flex: none; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: radial-gradient(circle at 50% 55%, rgba(143, 107, 214, 0.18), transparent 70%), var(--night-3); }
.sprite-box.big { width: 220px; height: 220px; }
.set-pic { flex: none; width: 88px; height: 88px; border-radius: 4px; overflow: hidden; background: var(--night-3); display: flex; align-items: center; justify-content: center; }
.set-pic.head img { width: 104px; height: 152px; max-width: none; margin-top: 64px; }

.badge { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 7px 3px; border-radius: 3px; background: var(--panel-3); color: var(--muted); border: 1px solid var(--bronze-lo); vertical-align: middle; margin-right: 4px; font-weight: 500; }
.badge.boss { background: #4a1a14; border-color: #8a3324; color: #ffb39a; }
.badge.epic { color: var(--epic); border-color: #5b3b86; background: #241834; }
.badge.legend { color: var(--legend); border-color: #8a5223; background: #33200f; }
.badge.unique { color: var(--unique); border-color: #7a6022; background: #2c2410; }
.badge.k-Physical { color: #ffb48a; } .badge.k-Magical { color: #a9b8ff; } .badge.k-Heal { color: #9be39b; }
.badge.k-Buff { color: #f3d27a; } .badge.k-Debuff { color: #d79bff; } .badge.k-Summon { color: #7fe0d6; } .badge.k-Revive { color: #fff1a8; }
.name-epic { color: var(--epic) !important; } .name-legend { color: var(--legend) !important; } .name-unique { color: var(--unique) !important; }

.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid rgba(201, 160, 98, 0.22); border-radius: 3px; padding: 1px 6px; }
.lines { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.lines li { padding-left: 14px; position: relative; }
.lines li::before { content: "◆"; position: absolute; left: 0; top: 0.1em; font-size: 9px; color: var(--bronze); }
.bonus-n { color: var(--bronze-hi); font-weight: 700; font-size: 13px; margin-top: 8px; }

/* 장비 목록 */
.eq-list { display: grid; gap: 6px; }
.eq { display: grid; grid-template-columns: minmax(150px, 1.3fr) 1fr 70px 2fr; gap: 12px; align-items: baseline; padding: 10px 14px; background: var(--panel); border: 1px solid var(--bronze-lo); border-radius: 4px; font-size: 14px; }
.eq b { color: #fff3da; font-weight: 700; font-size: 15px; }
.eq .m { color: var(--muted); }
.eq .d { grid-column: 1 / -1; color: var(--dim); font-size: 13px; margin-top: -4px; }

/* 상세 창 */
.detail { width: min(860px, 94vw); max-height: 90vh; padding: 0; border: 2px solid var(--bronze); border-radius: 8px; background: linear-gradient(var(--panel-2), var(--panel) 30%); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: hidden; }
.detail::backdrop { background: rgba(4, 5, 10, 0.78); backdrop-filter: blur(2px); }
.detail-scroll { max-height: calc(90vh - 4px); overflow-y: auto; padding: 24px; scrollbar-color: var(--bronze) transparent; }
.detail .x { position: absolute; right: 12px; top: 10px; z-index: 2; background: var(--panel-3); border: 1px solid var(--bronze); border-radius: 4px; padding: 4px 12px; cursor: pointer; font-size: 14px; }
.detail .x:hover { color: var(--gold); border-color: var(--bronze-hi); }
.d-head { display: flex; gap: 22px; align-items: flex-start; }
.d-head .pic-big { flex: none; width: 208px; height: 304px; border: 2px solid var(--bronze); border-radius: 4px; background: #000; }
.d-head h2 { font-size: 30px; color: #fff3da; margin: 6px 0 8px; padding-right: 64px; }
.d-head .desc { color: var(--muted); }
.d-sec { margin-top: 24px; }
.d-sec > h3 { font-size: 17px; color: var(--bronze-hi); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(201, 160, 98, 0.2); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin-top: 14px; max-width: 560px; }
body:has(dialog[open]) { overflow: hidden; }
.stat { background: var(--night-2); border: 1px solid var(--bronze-lo); border-radius: 4px; text-align: center; padding: 5px 2px; }
.stat small { display: block; font-size: 11px; color: var(--dim); }
.stat b { font-size: 17px; color: var(--text); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: 15px; margin-top: 12px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); }
.skill { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(201, 160, 98, 0.1); }
.skill:first-child { border-top: 0; }
.skill .lv { font-family: "Cinzel", serif; color: var(--bronze-hi); font-size: 13px; padding-top: 3px; }
.skill b { font-size: 16px; color: #fff3da; margin-right: 6px; }
.skill .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.skill .sd { color: var(--muted); font-size: 14px; margin-top: 3px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.link-card { display: flex; align-items: center; gap: 10px; background: var(--night-2); border: 1px solid var(--bronze-lo); border-radius: 4px; padding: 6px 12px 6px 6px; color: var(--text); font-size: 14px; cursor: pointer; }
.link-card:hover { border-color: var(--bronze-hi); color: var(--gold); }
.link-card img.face { width: 40px; height: 40px; object-fit: cover; object-position: 50% 18%; border-radius: 3px; }
.link-card small { display: block; color: var(--dim); font-size: 12px; }
.thumb { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--night-3); border-radius: 3px; }
.thumb img { max-width: 40px; max-height: 40px; object-fit: contain; }
.d-sec .sub { color: var(--muted); }
.piece { padding: 12px 14px; background: var(--night-2); border: 1px solid var(--bronze-lo); border-radius: 4px; margin-bottom: 8px; }
.piece b { color: #fff3da; }
.piece .lore { font-family: var(--font-head); color: #d8c7a3; font-size: 15px; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--bronze); }
.bonus { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(201, 160, 98, 0.1); }
.bonus:first-child { border-top: 0; }
.bonus .n { color: var(--bronze-hi); font-weight: 700; }
.note { color: var(--muted); font-size: 14px; background: var(--night-2); border-left: 3px solid var(--violet); padding: 8px 12px; border-radius: 0 4px 4px 0; margin-top: 12px; }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .shot { order: 0; }
  .facts-box { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: 0; }
  .fact:nth-child(n + 4) { border-top: 1px solid rgba(201, 160, 98, 0.18); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .eq { grid-template-columns: 1fr auto; }
  .eq .m.mods { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
  .nav a { padding: 6px 8px; }
  .hero { padding-bottom: 130px; }
  .btn { padding: 11px 18px; font-size: 15px; }
  .grid.cls, .grid.set, .grid.mon, .grid.txt { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .d-head { flex-direction: column; align-items: center; text-align: center; }
  .d-head h2 { padding-right: 0; }
  .detail-scroll { padding: 18px 16px; }
  .sprite-box.big { width: 180px; height: 180px; }
  .bosses { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* 종족과 직업 */
.grid.race { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
.fav-line { color: var(--gold); font-size: 13px; margin-top: 8px; }
.lore-line { font-family: var(--font-head); color: #d8c7a3; font-size: 15px; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--bronze); }
.clink { font-size: 13px; border: 1px solid rgba(201, 160, 98, 0.3); border-radius: 3px; padding: 1px 7px; color: var(--text); }
.clink:hover { border-color: var(--bronze-hi); color: var(--gold); }
.clink.fav { color: var(--gold); border-color: rgba(240, 195, 90, 0.45); }
.clink.shut { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 122, 107, 0.6); }
.hint { color: var(--dim); font-size: 13px; margin-left: 6px; }
@media (max-width: 560px) { .grid.race { grid-template-columns: 1fr; } }
