/* 프라이드리니지 — 다크 판타지 (흑갈색 · 청동 · 바랜 금색). 참고 톤: 고전 중세 판타지 MMORPG 공식 사이트 */
:root {
  --bg: #120b0a;
  --bg-2: #1d1211;
  --panel: rgba(29, 18, 17, .88);
  --panel-2: #241614;
  --panel-3: #2d1c18;
  --line: rgba(196, 150, 92, .28);
  --line-strong: #c4965c;
  --gold: #e2c88e;
  --gold-2: #c9a45c;
  --bronze: #b0764a;
  --ember: #e0803a;
  --text: #efe6d8;
  --muted: #a99a86;
  --warn: #f0b35a;
  --danger: #d8564a;
  --radius: 3px;
  --font: 'Noto Sans KR', system-ui, sans-serif;
  --serif: 'Noto Serif KR', 'Cinzel', serif;
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23c4965c' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23e2c88e'/%3E%3Cstop offset='1' stop-color='%23c4965c' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 12h270M330 12h270' stroke='url(%23g)' stroke-width='1.2'/%3E%3Cpath d='M300 2l7 10-7 10-7-10z' fill='none' stroke='%23e2c88e' stroke-width='1.3'/%3E%3Cpath d='M300 7l3 5-3 5-3-5z' fill='%23e2c88e'/%3E%3Cpath d='M270 12c8-7 15-7 21 0M330 12c-8-7-15-7-21 0M270 12c8 7 15 7 21 0M330 12c-8 7-15 7-21 0' fill='none' stroke='%23c4965c' stroke-width='1'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg) url(img/brand/parchment.jpg) center top / cover fixed no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
body::before { /* 배경 이미지를 본문 아래로 가라앉히는 어둠 + 비네팅 */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 30%, rgba(18,11,10,.55), rgba(10,6,5,.94) 75%);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff3d6; }

/* header / nav */
.top {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(12,7,6,.97), rgba(22,13,12,.93));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.55);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .6; }
.top-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(224,128,58,.35)); }
.brand b { font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .04em; color: var(--gold);
  background: linear-gradient(180deg, #fff1c9, #d9b26f 55%, #9c6d36); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: block; line-height: 1.1; }
.brand small { display: block; font-family: 'Cinzel', serif; color: var(--muted); font-size: 10px; letter-spacing: .32em; line-height: 1.3; }
.nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; color: #cbbca6; padding: 22px 11px; white-space: nowrap; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff3d6; }
.nav a.on { color: var(--gold); }
.nav a.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 12px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.dl-btn {
  flex: none; display: inline-block; padding: 10px 20px; font-weight: 700; letter-spacing: .04em; color: #2a160c;
  background: linear-gradient(180deg, #f3d99b, #c9954f 60%, #8e5a2b); border: 1px solid #f6dfa6; border-radius: var(--radius);
  box-shadow: 0 0 0 1px #3b2212, 0 4px 16px rgba(224,128,58,.3), inset 0 1px 0 rgba(255,255,255,.4);
  text-shadow: 0 1px 0 rgba(255,240,200,.5);
}
.dl-btn:hover { color: #1a0d06; filter: brightness(1.08); }

.draft-bar { background: rgba(60, 30, 14, .75); color: var(--warn); text-align: center; font-size: 13px; padding: 6px 16px; border-bottom: 1px solid rgba(240,179,90,.2); }

main { max-width: 1280px; margin: 0 auto; padding: 36px 16px 72px; }
.page-head { text-align: center; margin: 8px 0 30px; }
.page-title { font-family: var(--serif); font-size: 32px; font-weight: 900; margin: 0; letter-spacing: .06em; color: var(--gold);
  background: linear-gradient(180deg, #fff1c9, #d9b26f 60%, #9c6d36); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.page-sub { color: var(--muted); margin: 6px 0 0; }
.page-head::after { content: ''; display: block; width: min(560px, 90%); height: 24px; margin: 12px auto 0; background: var(--orn) center / contain no-repeat; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(41,26,22,.92), rgba(24,15,13,.94));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(226,200,142,.08);
  padding: 26px; margin-bottom: 22px;
}
.card::before, .card::after { /* 모서리 장식 */
  content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold-2); opacity: .7; pointer-events: none;
}
.card::before { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.card::after { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.card h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--gold); margin: 0 0 16px; padding-bottom: 10px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(196,150,92,.18); }
.card h2::before { content: ''; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold); background: rgba(224,128,58,.35); flex: none; }
.card h3 { font-family: var(--serif); font-size: 16px; margin: 20px 0 8px; color: var(--gold-2); }
.note { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.note::before { content: '※ '; color: var(--bronze); }
.warn { color: var(--warn); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 2px; border: 1px solid rgba(196,150,92,.3); color: #cbbca6; background: rgba(0,0,0,.25); margin: 0 4px 4px 0; white-space: nowrap; }
.tag.c { color: var(--gold); border-color: rgba(226,200,142,.45); }
.tag.w { color: #ffb08a; border-color: rgba(216,86,74,.5); }
.draft { display: inline-block; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--warn); border: 1px solid rgba(240,179,90,.5); border-radius: 2px; padding: 0 6px; margin-left: 6px; vertical-align: middle; -webkit-text-fill-color: currentColor; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid rgba(196,150,92,.2); border-radius: var(--radius); background: rgba(0,0,0,.18); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; border-bottom: 1px solid rgba(196,150,92,.1); text-align: left; vertical-align: top; }
th { background: linear-gradient(180deg, #3a241c, #2a1914); color: var(--gold); font-weight: 500; white-space: nowrap; position: sticky; top: 0; border-bottom: 1px solid rgba(196,150,92,.35); }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: #fff3d6; }
tbody tr:nth-child(even) td { background: rgba(255,240,210,.018); }
tbody tr:hover td { background: rgba(224,128,58,.07); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.k { white-space: nowrap; }
.scroll-y { max-height: 640px; overflow-y: auto; }

/* grid / tiles */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.tile { position: relative; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(224,128,58,.14), transparent 70%), var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; }
.tile .v { font-family: var(--serif); font-size: 34px; font-weight: 900; line-height: 1.2; color: var(--gold);
  background: linear-gradient(180deg, #fff1c9, #d9b26f 60%, #9c6d36); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tile .l { color: var(--muted); font-size: 13px; letter-spacing: .08em; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.controls input[type=search], .controls select {
  background: #160d0b; border: 1px solid var(--line); color: var(--text); border-radius: var(--radius);
  padding: 9px 12px; font: inherit; font-size: 14px; min-width: 0;
}
.controls input[type=search] { flex: 1 1 220px; }
.controls input::placeholder { color: #7d6f5f; }
.controls input:focus, .controls select:focus { outline: none; border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(224,128,58,.15); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs button, .btn {
  background: linear-gradient(180deg, #33201a, #22140f); color: #cbbca6; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 15px; font: inherit; font-size: 14px; cursor: pointer;
}
.tabs button:hover, .btn:hover { color: #fff3d6; border-color: var(--line-strong); }
.tabs button.on { color: #2a160c; background: linear-gradient(180deg, #f3d99b, #c9954f 60%, #9a6431); border-color: #f6dfa6; font-weight: 700; }
.btn.primary { color: #2a160c; background: linear-gradient(180deg, #f3d99b, #c9954f 60%, #9a6431); border-color: #f6dfa6; font-weight: 700; }
.count { color: var(--muted); font-size: 13px; }

/* hero (메인 비주얼) — 페이지 폭을 벗어나 화면 전체로 */
.hero {
  position: relative; margin: -36px calc(50% - 50vw) 34px; min-height: min(78vh, 760px);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: #0b0605 url(img/brand/hero.jpg) center 35% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(10,6,5,.15) 0%, rgba(10,6,5,.05) 40%, rgba(18,11,10,.92) 92%, var(--bg) 100%),
  radial-gradient(ellipse 70% 60% at 50% 55%, transparent 40%, rgba(5,3,2,.65)); }
.hero-body { position: relative; z-index: 1; padding: 40px 16px 56px; text-align: center; width: 100%; max-width: 900px; }
.hero-logo { display: block; width: min(560px, 88vw); margin: 0 auto -8px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.85)); }
.hero-title { font-family: var(--serif); font-weight: 900; font-size: 56px; margin: 0; letter-spacing: .06em;
  background: linear-gradient(180deg, #fff1c9, #d9b26f 55%, #8e5a2b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.9)); }
.hero-en { font-family: 'Cinzel', serif; letter-spacing: .5em; color: #d8c49a; font-size: 14px; margin: 2px 0 0; }
.hero p.tagline { color: #e8dcc6; font-size: 18px; margin: 14px 0 0; text-shadow: 0 2px 8px #000; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero .cta a { padding: 15px 34px; font-size: 17px; }
.hero .cta .btn { background: rgba(20,12,10,.7); border-color: var(--line-strong); color: var(--gold); display: inline-block; }
.hero.no-logo .hero-logo { display: none; }
.hero:not(.no-logo) .hero-title, .hero:not(.no-logo) .hero-en { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.quick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.quick a { display: block; padding: 18px 16px; background: linear-gradient(180deg, #2d1c18, #1d1211); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.quick a span { display: block; font-family: var(--font); color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.quick a:hover { border-color: var(--line-strong); box-shadow: 0 0 18px rgba(224,128,58,.18); color: var(--gold); }

/* 성벽 배경 카드 (홈 바로가기, 다운로드) */
.card.castle { background: linear-gradient(180deg, rgba(20,12,10,.78), rgba(18,11,10,.92)), url(img/brand/castle.jpg) center / cover no-repeat; }

/* npc / boss cards */
.npc-card { background: linear-gradient(180deg, #2a1a16, #1b110f); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.npc-card h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 16px; color: var(--gold); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.npc-card h4 span { color: var(--muted); font-family: var(--font); font-weight: 400; font-size: 12px; }
.npc-card table { font-size: 13px; }
.npc-card td, .npc-card th { padding: 5px 8px; }
.boss { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.boss .pic { width: 96px; height: 112px; background: radial-gradient(ellipse at 50% 70%, #3a2219, #0d0706); border: 1px solid rgba(196,150,92,.3); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.boss .pic img { max-width: 92px; max-height: 108px; image-rendering: pixelated; }
.boss .meta { font-size: 13px; color: var(--muted); }
.boss .meta b { color: var(--text); font-weight: 500; }
.drops { margin-top: 8px; font-size: 13px; }
.drops ul { list-style: none; padding: 0; margin: 0; }
.drops li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed rgba(196,150,92,.14); padding: 2px 0; }
.drops .p { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
details summary { cursor: pointer; color: var(--gold-2); font-size: 13px; margin-top: 6px; }

.bar { height: 6px; background: rgba(0,0,0,.4); border: 1px solid rgba(196,150,92,.15); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #8e5a2b, var(--ember), #f3d99b); }

.copybox { background: #120a08; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; white-space: pre-wrap; font-size: 14px; }

footer { position: relative; color: var(--muted); font-size: 13px; text-align: center; padding: 34px 16px 44px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
footer::before { content: ''; display: block; width: min(520px, 90%); height: 24px; margin: 0 auto 16px; background: var(--orn) center / contain no-repeat; }
footer b { font-family: var(--serif); color: var(--gold-2); }
.loading { color: var(--muted); padding: 40px; text-align: center; }

@media (max-width: 860px) {
  .top-inner { height: auto; flex-wrap: wrap; padding-top: 10px; gap: 4px 12px; }
  .nav { order: 3; flex-basis: 100%; }
  .nav a { padding: 10px 10px 12px; }
  .nav a.on::after { bottom: 4px; }
  .dl-btn { margin-left: auto; padding: 7px 13px; font-size: 13px; }
  .hero { min-height: 520px; margin-top: -36px; }
  .hero-title { font-size: 38px; }
  .hero .cta a { padding: 12px 22px; font-size: 15px; }
  .card { padding: 18px; }
  .grid.wide { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
}
