:root {
  --bg: #0e1420;
  --panel: #172131;
  --panel-2: #26344a;
  --line: #2b3a52;
  --text: #eef2f7;
  --muted: #9aa8bb;
  --gold: #ffb547;
  --gold-2: #ffb547;
  --red: #ff8f8f;
  --green: #84c28f;
  --blue: #7fb2dd;
  --radius: 2px;
  --display: "Black Han Sans", "Malgun Gothic", sans-serif;
  font-family: "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: clip; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.gold { color: var(--gold-2); }
h1 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 34px; margin: 32px 0 16px; color: var(--text); }
h2.section { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 400; font-size: 24px; margin: 32px 0 12px; color: var(--text); scroll-margin-top: 70px; }
.plain { margin: 8px 0; padding-left: 18px; }
.plain li { margin: 4px 0; }

/* 상단 */
.top { background: var(--panel); position: sticky; top: 0; z-index: 2; }
.top-inner { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; }
.logo { text-decoration: none; font-family: var(--display); font-size: 26px; color: var(--gold); white-space: nowrap; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 16px 12px; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--panel-2); }
.tabs a.active { color: var(--bg); background: var(--gold); font-weight: 700; }
.tabs a.tab-download { color: var(--gold); font-weight: 700; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.card { display: flex; align-items: center; gap: 12px; background: var(--panel); border-radius: var(--radius); padding: 16px 18px; }
.card .label { font-size: 13px; color: var(--muted); }
.card .value { font-family: var(--display); font-size: 30px; color: var(--gold-2); }
.card.ok .value { color: var(--green); }
.card.off .value { color: var(--red); }

/* 홈 */
.level-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.level-finder input { width: 84px; }
.level-result { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rule { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; }
.rule:hover { border-color: var(--gold); }
.rule strong { color: var(--gold-2); }
.rule span { font-size: 14px; color: var(--muted); }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.note p { margin: 4px 0 0; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chips button, .side-chips button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; font: inherit; font-size: 14px; }
.chips button:hover, .side-chips button:hover { border-color: var(--gold); }
.chips button.active, .side-chips button.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.chips.initials button { min-width: 38px; padding: 6px 8px; }

/* 입력 */
input, select, textarea { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input[type="checkbox"] { padding: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-row input[type="search"] { flex: 1 1 220px; min-width: 0; }
.filter-row .short { width: 92px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.count { margin: 0 0 6px; font-size: 13px; }

/* 표 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--panel-2); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table.rank td:first-child { width: 60px; color: var(--gold); font-weight: 700; }
.table.wide { min-width: 860px; }
.table.wide td:not(:first-child):not(:last-child) { white-space: nowrap; }
.table.wide td:first-child { white-space: nowrap; }
.table.wide td:last-child { min-width: 220px; }
.link .map-mini { flex: none; }
.table.boss-table td:nth-child(4) { white-space: normal; max-width: 200px; min-width: 130px; }
.table.boss-table td:nth-child(5) { white-space: normal; max-width: 170px; min-width: 110px; }
.table.recipe { min-width: 560px; }
.table.recipe td:first-child .link { white-space: nowrap; }
.table.recipe td:last-child { min-width: 110px; }
.link { color: var(--gold-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; }
.link.here { font-weight: 700; color: var(--green); }
.link.pill { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px 10px 3px 6px; }
.pick { display: flex; flex-direction: column; gap: 2px; }
.neg { color: var(--red); }
.materials, .mini-items { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mini-items .link { font-size: 13px; }
.mini-items .icon { width: 24px; height: 24px; }

/* 사냥터 */
.side-layout { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.side-layout > div { min-width: 0; }
.side-chips { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 76px; }
.side-chips button { border-radius: var(--radius); text-align: left; }
#hunt-detail { margin-top: 14px; scroll-margin-top: 80px; }

/* 랭킹 */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pod { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.pod strong { font-size: 18px; color: var(--gold-2); overflow-wrap: anywhere; }
.pod.p1 { border-color: var(--gold); }
.medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--gold); font-weight: 800; }
.pod.p1 .medal { background: var(--gold); color: var(--bg); }

/* 목록 + 상세 */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.list { list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-height: 75vh; overflow: auto; }
.list li button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 5px 8px; border-radius: var(--radius); cursor: pointer; font: inherit; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.list li button:hover, .list li button.active { background: var(--panel-2); color: var(--gold-2); }
.list li .icon { width: 26px; height: 26px; }
.list .hint { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; padding-left: 6px; }
.list .empty { padding: 10px; color: var(--muted); }
.detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 200px; min-width: 0; }
.detail h2 { margin: 0 0 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 20px; color: var(--gold-2); }
.detail h3 { margin: 20px 0 8px; font-size: 15px; color: var(--muted); }
#guide-body h3 { margin: 18px 0 8px; font-size: 15px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 6px 16px; margin: 0; }
.stats div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.stats dt { color: var(--muted); white-space: nowrap; }
.stats dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.no { color: var(--red); }
.tag.boss { color: var(--bg); background: var(--red); border-color: var(--red); font-weight: 700; margin-left: 6px; }
.tag.measured { color: var(--green); }
.tag.calc { color: var(--blue); }
.links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.solvent { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--panel-2); }
.solvent strong { color: var(--gold-2); font-size: 16px; }
.solvent.none { border-color: var(--line); }
.solvent.none strong { color: var(--muted); }

.icon { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.icon.big { width: 48px; height: 48px; }
.icon.ph { display: inline-block; border-radius: var(--radius); background: var(--panel-2); border: 1px dashed var(--line); }

.error { margin: 16px 0; padding: 12px; border-radius: var(--radius); background: #3a1f1c; color: var(--red); border: 1px solid #5a2c26; }
.foot { padding: 32px 16px; font-size: 13px; }
.foot p { margin: 2px 0; }
/* 연구용 운영 안내: 첫 화면과 바닥글에 늘 보인다 */
.notice-research { max-width: 620px; margin: 0 0 24px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(14, 20, 32, 0.72); color: var(--text); font-size: 14px; }
.foot .notice-research { max-width: none; margin: 0 0 10px; font-size: 13px; }

@media (max-width: 720px) {
  .top { position: static; }
  .top-inner { gap: 8px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .list { max-height: 40vh; }
  .side-layout { grid-template-columns: minmax(0, 1fr); }
  .side-chips { flex-direction: row; flex-wrap: wrap; position: static; }
  .side-chips button { border-radius: var(--radius); }
  .card .value { font-size: 20px; }
}
.pager { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 12px 0; }
.pager button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); min-width: 34px; padding: 5px 8px; cursor: pointer; font: inherit; font-size: 14px; }
.pager button:hover:not(:disabled) { border-color: var(--gold); }
.pager button.active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .gap { align-self: center; color: var(--muted); padding: 0 2px; }
.grade { display: inline-block; border-radius: 4px; padding: 0 5px; margin-right: 4px; font-size: 12px; font-weight: 700; line-height: 18px; }
.grade.g0 { background: var(--gold); color: var(--bg); }
.grade.g2 { background: var(--red); color: var(--bg); }

/* 홈 */
.full { width: 100vw; margin-left: calc(50% - 50vw); }
.hero { background: linear-gradient(90deg, rgba(14, 20, 32, 0.96) 0%, rgba(14, 20, 32, 0.82) 42%, rgba(14, 20, 32, 0.1) 78%), url(/img/world.jpg) center / cover; padding: 88px 0 72px; margin-bottom: 24px; }
.hero.small { background: linear-gradient(90deg, rgba(14, 20, 32, 0.96) 0%, rgba(14, 20, 32, 0.6) 60%, rgba(14, 20, 32, 0.2) 100%), url(/img/cathedral.jpg) center top / cover; padding: 56px 0; }
.hero.small h1 { margin: 0 0 8px; font-size: 48px; }
.hero-title { max-width: 620px; margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 60px; line-height: 1.12; }
.hero-status { margin: 0 0 12px; color: var(--gold); font-weight: 700; font-size: 14px; }
.hero-line { margin: 0 0 28px; color: #c6d0dd; }
.hero.small .hero-line { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.inquiry-form { display: grid; gap: 14px; max-width: 640px; }
.inquiry-form label { display: grid; gap: 6px; font-weight: 500; }
.inquiry-form textarea { resize: vertical; min-height: 160px; }
.inquiry-form .btn { justify-self: start; }
.inquiry-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-result { margin: 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--panel); }
.inquiry-result.bad { border-left-color: var(--red); }
.download-pick { max-width: 720px; margin: 0 0 4px; }
.download-pick-title { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.download-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dl-option { display: grid; gap: 4px; padding: 14px 16px; background: var(--gold); color: var(--bg); text-decoration: none; border-radius: var(--radius); }
.dl-option strong { font-size: 18px; }
.dl-option span { font-size: 13px; }
.dl-option:hover { background: #ffc66e; }
.download-pick + .download-note { margin-top: 12px; }
.av-note + .hero-actions { margin-top: 16px; }
.download-note { max-width: 620px; margin: 14px 0 0; color: #c6d0dd; font-size: 14px; }
.av-note { max-width: 620px; margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid #c6d0dd; background: rgba(14, 20, 32, 0.72); color: #c6d0dd; font-size: 13px; }
.av-note strong { color: var(--text); }
.av-note p { margin: 4px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 1px solid #c6d0dd; background: rgba(14, 20, 32, 0.6); color: var(--text); text-decoration: none; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.btn.primary:hover { background: #ffc66e; color: var(--bg); }
.btn.dark { background: var(--bg); border-color: var(--bg); color: var(--text); font-weight: 700; flex: none; }
.level-finder label { font-family: var(--display); font-size: 20px; }
.level-finder { border: 0; margin-bottom: 8px; }
.link.pill .map-mini { width: 40px; height: 22px; }
.home-sec { margin: 48px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; }
.sec-head a { color: var(--gold); text-decoration: none; font-size: 14px; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }
.hunt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hunt-card { display: block; background: var(--panel); text-decoration: none; }
.hunt-card:hover strong { color: var(--gold); }
.map-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map-thumb, .map-mini { width: 64px; height: 36px; object-fit: cover; vertical-align: middle; }
.map-banner { display: block; width: 100%; max-height: 260px; object-fit: contain; background: var(--bg); margin-bottom: 14px; }
.hunt-card-body { display: flex; flex-direction: column; padding: 14px 16px; }
.hunt-card-body strong { font-size: 17px; }
.hunt-card-body span { font-size: 13px; color: var(--muted); }
.hall { background: linear-gradient(90deg, rgba(14, 20, 32, 0.96) 0%, rgba(14, 20, 32, 0.72) 55%, rgba(14, 20, 32, 0.25) 100%), url(/img/hall.jpg) center / cover; padding: 32px 36px; }
.hall .sec-head { max-width: 620px; }
.boss-list { list-style: none; margin: 0; padding: 0; max-width: 620px; }
.boss-list li { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #5b6b80; }
.boss-list li:last-child { border-bottom: 0; }
.boss-time { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.boss-name { flex: 1 1 120px; font-weight: 700; text-decoration: none; }
.boss-name:hover { color: var(--gold); }
.boss-list span { color: #dfe5ed; }
.home-search { display: flex; gap: 6px; margin-bottom: 12px; }
.home-search input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px; border: 2px solid var(--gold); font-size: 16px; }
.home-search .btn { height: 50px; }
.icon-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.icon-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--panel); padding: 18px 12px; text-align: center; text-decoration: none; font-size: 14px; }
.icon-tile:hover { background: var(--panel-2); }
.icon-tile .icon { width: 62px; height: 62px; object-fit: contain; }
.row-cards, .system-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.row-card, .system-card { display: flex; gap: 16px; align-items: center; background: var(--panel); padding: 16px; text-decoration: none; }
.row-card:hover, .system-card:hover { background: var(--panel-2); }
.row-card .icon, .system-card .icon { width: 62px; height: 62px; object-fit: contain; }
.row-card > span, .system-card > span { display: flex; flex-direction: column; min-width: 0; }
.row-card strong, .system-card strong { font-size: 17px; }
.row-card span span, .system-card span span { font-size: 13px; color: var(--muted); }
.home-band { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--gold); color: var(--bg); padding: 24px 28px; margin: 48px 0; text-decoration: none; }
.home-band > span:first-child { display: flex; flex-direction: column; flex: 1 1 420px; min-width: 0; }
.home-band strong { font-family: var(--display); font-weight: 400; font-size: 28px; }
#home-notices .note { margin: 0 0 8px; }
.note { border: 0; border-left: 3px solid var(--gold); }
@media (max-width: 720px) {
  .hero { padding: 48px 0; }
  .download-options { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .hero.small h1 { font-size: 36px; }
  .hall { padding: 24px 18px; }
  .tabs a { padding: 10px 8px; }
  .row-cards, .system-grid { grid-template-columns: minmax(0, 1fr); }
}
.map-banner { max-height: 360px; }
.map-caption { margin: 0 0 12px; font-weight: 700; color: var(--gold); }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; align-items: start; margin: 16px 0 8px; }
.shot { margin: 0; background: var(--panel); padding: 12px; }
.shot img { display: block; width: 100%; max-width: 236px; height: auto; margin: 0 auto 10px; }
.shot figcaption { display: flex; flex-direction: column; gap: 2px; }
.shot figcaption span { font-size: 13px; color: var(--muted); }
.table.wide.boss-table td:nth-child(4), .table.wide.boss-table td:nth-child(5) { white-space: normal; }
.table.wide.boss-table td:nth-child(5) { min-width: 150px; max-width: 190px; }
.table.wide.boss-table td:nth-child(6), .table.wide.boss-table td:nth-child(7), .table.wide.boss-table td:nth-child(8) { white-space: nowrap; }
.map-banner { aspect-ratio: 16 / 9; }
.tag.wanted { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 700; margin-left: 6px; }

/* 스킬·마법 탭 (skills.js) */
.skill-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.skill-tools .chips { margin-bottom: 0; }
.skill-tools input { min-width: 0; width: 220px; max-width: 100%; }
#skill-body h2 { margin: 24px 0 10px; font-size: 18px; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.skill-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.skill-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.skill-card header strong { font-size: 16px; margin-right: 4px; }
.skill-card .stats { grid-template-columns: 1fr; font-size: 14px; }
.skill-card .stats dd { margin: 0; text-align: right; }
.skill-card p { margin: 8px 0 0; font-size: 14px; }
.skill-card .tag.muted-tag { color: var(--muted); }
.skill-server { border-left: 3px solid var(--gold); padding-left: 8px; color: var(--text); }
.skill-server strong { color: var(--gold); }
@media (max-width: 520px) { .skill-grid { grid-template-columns: 1fr; } .skill-tools input { width: 100%; } }

/* 백과사전: 아이템·몬스터·스킬·마법 하위 탭 */
.subtabs { display: flex; gap: 0; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 480px; }
.subtabs a { flex: 1; text-align: center; padding: 9px 6px; text-decoration: none; color: var(--muted); background: var(--panel); font-weight: 500; white-space: nowrap; }
.subtabs a + a { border-left: 1px solid var(--line); }
.subtabs a:hover { color: var(--text); }
.subtabs a.active { background: var(--gold); color: var(--bg); font-weight: 700; }
@media (max-width: 520px) { .subtabs { max-width: none; } }

/* 위 메뉴 '백과사전' 에 마우스를 올리면 하위 화면 목록이 펼쳐진다. 터치 화면은 누르면 아이템으로 가고 화면 위 하위 탭으로 고른다. */
.tab-group { position: relative; display: flex; }
.tab-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 140px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.tabs .tab-menu a { display: block; padding: 10px 14px; }
@media (hover: hover) {
  .tab-group:hover .tab-menu { display: block; }
}
#recommend-table h2.section { font-family: inherit; font-weight: 700; font-size: 18px; margin: 22px 0 8px; color: var(--gold); }
#hunt-recommend { scroll-margin-top: 64px; }

/* 내 계정 (#my, my.js) — 휴대폰 한 손 보기 기준 */
.my-login { max-width: 420px; }
.my-login[hidden], #my-board[hidden] { display: none; }
.my-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.my-who { margin: 0; font-weight: 700; }
.my-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 12px 0 32px; }
.my-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; }
.my-card.offline { opacity: 0.8; }
.my-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.my-name { font-size: 18px; }
.my-badge { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius); border: 1px solid var(--line); white-space: nowrap; }
.my-badge.on { background: var(--green); border-color: var(--green); color: var(--bg); }
.my-badge.town { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.my-badge.bad { background: var(--red); border-color: var(--red); color: var(--bg); }
.my-badge.idle { color: var(--gold); border-color: var(--gold); }
.my-badge.off { color: var(--muted); }
.my-place { margin: 0; }
.my-bar-text { display: flex; justify-content: space-between; font-size: 13px; }
.my-bar-track { height: 8px; background: var(--panel-2); border-radius: var(--radius); overflow: hidden; }
.my-bar-fill { height: 100%; background: var(--muted); }
.my-bar.hp .my-bar-fill { background: var(--red); }
.my-bar.mp .my-bar-fill { background: var(--blue); }
.my-bar.exp .my-bar-fill { background: var(--gold); }
.my-facts { margin: 4px 0 0; display: grid; gap: 4px; font-size: 14px; }
.my-facts div { display: flex; justify-content: space-between; gap: 12px; }
.my-facts dt { color: var(--muted); white-space: nowrap; }
.my-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.my-logs summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.my-logs ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.my-logs li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; }
.my-log-time { color: var(--muted); white-space: nowrap; }
.my-log-kind { font-weight: 700; white-space: nowrap; }
.my-log-kind.bad { color: var(--red); }
.my-log-kind.town { color: var(--blue); }
.my-log-kind.on { color: var(--green); }
.my-log-kind.stop { color: var(--gold); }
@media (max-width: 520px) { .my-chars { grid-template-columns: minmax(0, 1fr); } }

/* 홈 첫 화면: 방치서버 특징 */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-width: 900px; margin: 0 0 22px; }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(14, 20, 32, 0.72); border: 1px solid var(--line); border-left: 3px solid var(--gold); text-decoration: none; color: var(--text); }
.feature:hover { border-color: var(--gold); }
.feature strong { color: var(--gold); font-size: 16px; }
.feature span { font-size: 13px; color: #c6d0dd; line-height: 1.45; }
#tab-download .download-pick, #tab-download .download-note, #tab-download .av-note { max-width: 900px; }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }
.tabs a.tab-download.active { color: var(--bg); }

/* 홈 첫 화면: 보스·전투는 수동 권장 (사용자 요청 2026-11-12, 눈에 띄게) */
.notice-manual { max-width: 900px; margin: 0 0 12px; padding: 14px 18px; background: rgba(255, 143, 143, 0.16); border: 2px solid var(--red); border-left-width: 6px; }
.notice-manual strong { color: var(--red); font-size: 20px; font-weight: 700; line-height: 1.4; }
@media (max-width: 520px) { .notice-manual strong { font-size: 17px; } }

/* 접속기 고양이(img/mascot.gif = 접속기 배너 320x179): 제목 옆 동그라미 + 홈 오른쪽 아래 말풍선 (사용자 선택 2026-11-12, 시안 B+C) */
.hero-title { display: flex; align-items: center; gap: 20px; max-width: none; }
.hero-cat { flex: none; width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--gold); background: #1d1640 url(/img/mascot.gif) no-repeat -26px -32px / 480px 268px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); image-rendering: pixelated; }
.mascot { position: fixed; right: 24px; bottom: 24px; z-index: 4; display: flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.mascot-bubble { margin-bottom: 64px; padding: 10px 14px; background: #fff; color: #1d1640; font-size: 14px; font-weight: 700; border-radius: 16px 16px 4px 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); white-space: nowrap; }
.mascot-cat { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--gold); background: #1d1640 url(/img/mascot.gif) no-repeat -20px -24px / 384px 214px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); image-rendering: pixelated; transition: transform .2s; }
.mascot:hover .mascot-cat { transform: translateY(-4px) rotate(-4deg); }
@media (max-width: 520px) {
  .hero-title { gap: 12px; font-size: 30px; }
  .hero-cat { width: 80px; height: 80px; border-width: 3px; background-position: -14px -17px; background-size: 256px 143px; }
  .mascot { right: 12px; bottom: 12px; }
  .mascot-bubble { display: none; }
  .mascot-cat { width: 64px; height: 64px; border-width: 3px; background-position: -11px -13px; background-size: 205px 114px; }
}
/* 말풍선 끝의 z 세 개: 뒤로 갈수록 크고, 차례로 떠오른다 */
.zzz { display: inline-flex; align-items: flex-end; gap: 1px; margin-left: 4px; color: #5b54c9; font-style: normal; }
.zzz i { font-style: normal; font-weight: 800; line-height: 1; animation: zzz-float 2.4s ease-in-out infinite; }
.zzz i:nth-child(1) { font-size: 12px; }
.zzz i:nth-child(2) { font-size: 16px; animation-delay: .3s; }
.zzz i:nth-child(3) { font-size: 21px; animation-delay: .6s; }
@keyframes zzz-float { 0%, 100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zzz i { animation: none; } }
.hero .notice-research { max-width: 900px; } /* 홈 첫 화면: 특징 카드·수동 권장 상자와 폭을 맞춘다 */

/* 업데이트 안내 (updates-view.js) */
.update-list { display: grid; gap: 10px; }
.update-post { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; }
.update-post header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.update-post header strong { font-size: 16px; }
.update-post ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.update-post li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.update-tag { flex: none; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: var(--radius); color: var(--bg); }
.update-tag.add { background: var(--green); }
.update-tag.change { background: var(--blue); }
.update-tag.fix { background: var(--gold); }

/* 내 계정: 자동사냥 켜기·끄기·설정 (my-hunt.js) */
.my-hunt { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.my-hunt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.my-hunt-row select { flex: 1 1 150px; min-width: 0; }
.my-hunt-row .btn { flex: 1 1 140px; min-height: 40px; padding: 0 12px; }
.my-hunt-msg { margin: 0; font-size: 13px; color: var(--green); min-height: 0; }
.my-hunt-msg:empty { display: none; }
.my-hunt-msg.bad { color: var(--red); }
.my-hunt-off { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.my-settings-wrap > summary { cursor: pointer; font-weight: 700; color: var(--gold); padding: 4px 0; }
.my-settings { display: grid; gap: 6px; margin-top: 6px; }
.my-sec { background: var(--panel-2); border-radius: var(--radius); }
.my-sec > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; font-weight: 500; }
.my-sec-body { display: grid; gap: 8px; padding: 0 10px 10px; }
.my-set-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.my-set-label { color: var(--muted); }
.my-set-ctrl { display: flex; gap: 6px; align-items: center; flex: 0 1 auto; min-width: 0; }
.my-set-ctrl select { max-width: 100%; min-width: 0; }
.my-set-ctrl input[type="number"] { width: 96px; }
.my-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.my-check { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.my-check input { width: 18px; height: 18px; }
.my-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.my-chips button, .my-mini { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.my-chips button.on { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.my-mini:disabled { opacity: 0.4; cursor: default; }
.my-rot { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.my-rot li span:first-child { overflow-wrap: anywhere; }
.my-rot li { display: list-item; }
.my-rot-btns { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.my-rot-add, .my-rot-pick { display: grid; gap: 8px; }
.my-ground { background: var(--panel); padding: 8px; border-radius: var(--radius); }
.my-ground > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.my-ground p { margin: 4px 0 0; }
