:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f3f5f8;
  --line: #dfe3ea;
  --text: #1d2230;
  --muted: #4d5466;
  --accent: #f07c00;
  --accent-ink: #ffffff;
  --ok: #17994f;
  --danger: #d93a3a;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

h1, h2, p { margin: 0; }
h1 { font-size: 22px; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 700; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand p { color: var(--muted); font-size: 16px; }
.logo {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 62%, #fff3 0 18%, transparent 19%),
    linear-gradient(135deg, #ffb347, #ff7a18);
  box-shadow: 0 0 0 3px #ff9d2e33;
}

.status {
  flex: none;
  padding: 6px 14px 6px 28px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  position: relative;
}
.status::before {
  content: "";
  position: absolute; left: 12px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%;
  background: var(--muted);
}
.status[data-state="on"] { color: var(--ok); border-color: #17994f66; }
.status[data-state="on"]::before { background: var(--ok); animation: pulse 1.6s infinite; }
.status[data-state="alert"] { color: var(--accent); border-color: var(--accent); }
.status[data-state="alert"]::before { background: var(--accent); }
@keyframes pulse { 50% { opacity: .35; } }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 16px 24px 32px;
  align-items: start;
}
.side, .maincol { display: grid; gap: 16px; min-width: 0; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 16px; }

.btn {
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 4px 10px; font-size: 16px; }
.btn.on { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.stage {
  position: relative;
  background: #0b0c10;
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  display: grid;
}
.stage video { width: 100%; display: block; grid-area: 1 / 1; }
.stage canvas { width: 100%; height: 100%; grid-area: 1 / 1; pointer-events: none; }
.placeholder {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 32px; text-align: center;
  color: var(--muted); font-size: 16px;
}
.placeholder strong { color: var(--text); font-size: 18px; }
.stage.live .placeholder { display: none; }
.stage.live { min-height: 0; }

.hint { color: var(--muted); font-size: 15px; margin-top: 8px; min-height: 18px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 20px;
  margin: 14px 0;
}
.grid label, .grid .field, .grid .calib { display: grid; gap: 4px; font-size: 16px; font-weight: 600; align-content: start; }
.grid small, .muted { color: var(--muted); font-weight: 400; }
.grid label.check, label.check {
  display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600;
}
label.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

.calib .btn { justify-self: start; }
input[type="range"]:disabled { opacity: .4; }

/* 회수 타이머 */
.timers {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.timer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px; align-items: center;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 10px;
}
.timer .thumb { width: 40px; height: 40px; }
.timer .thumb img { max-width: 32px; max-height: 32px; }
.tname { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.timer .left { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 17px; }
.timer.soon { border-color: var(--danger); }
.timer.soon .bar i { background: var(--danger); }
.timer.soon .left { color: var(--danger); }

/* 아이템 선택 창 */
#picker { width: min(860px, calc(100vw - 32px)); }
input[type="search"] { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.chip {
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  height: min(52vh, 480px);
  overflow: auto;
  align-content: start;
  padding: 2px;
}
.cat {
  font: inherit; font-size: 16px; text-align: left;
  display: flex; align-items: center; gap: 8px;
  padding: 8px; min-height: 52px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text);
  cursor: pointer;
}
.cat:hover { border-color: var(--muted); }
.cat img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; flex: none; }
.cat span { overflow-wrap: anywhere; line-height: 1.3; }
.cat.picked { border-color: var(--accent); background: #ff9d2e1f; }
.cat.picked span { color: var(--accent); font-weight: 700; }
.row.between { justify-content: space-between; }
#pickerMsg:empty { display: none; }
#pickerMsg { min-height: 0; margin: 0 0 8px; }
output { color: var(--accent); margin-left: 4px; }

input[type="text"], input[type="number"], input[type="search"], select {
  font: inherit; font-size: 16px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
input[type="range"] { accent-color: var(--accent); width: 100%; }
label.inline { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--muted); }
label.inline select { padding: 3px 6px; }

.items, .log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  padding: 8px;
  background: var(--panel-2);
  border: 1px solid transparent;
  border-radius: 10px;
}
.item.seen { border-color: var(--ok); }
.item.off { opacity: .55; }
.thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: repeating-conic-gradient(var(--chk1) 0 25%, var(--chk2) 0 50%) 0 0 / 12px 12px;
  display: grid; place-items: center;
}
.thumb img { max-width: 40px; max-height: 40px; image-rendering: pixelated; }
.item input[type="text"] { width: 100%; padding: 4px 8px; }
.item .meta { font-size: 15px; color: var(--muted); margin-top: 3px; }
.item .meta .warn { color: var(--danger); }
.item .meta .live { color: var(--ok); }
.item .ctl { display: flex; align-items: center; gap: 6px; }
.item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.del {
  border: 0; background: none; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.del:hover { color: var(--danger); background: #ff6b6b1a; }

.log { max-height: 240px; overflow: auto; }
.log li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px; border-radius: 8px; background: var(--panel-2); font-size: 16px;
}
.log time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.empty { color: var(--muted); font-size: 16px; text-align: center; padding: 14px 4px; }

dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}
dialog::backdrop { background: #000a; }
.dlg-body { padding: 18px; }
.err { color: var(--danger); font-size: 16px; margin-top: 8px; min-height: 20px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 12px 16px 24px; }
  .top { padding: 14px 16px; flex-wrap: wrap; }
}

/* 회수 타이머(메인) */
.timer-panel { border-color: #ff9d2e66; }
.timer-panel.off { border-color: var(--line); }
.timer-panel .panel-head { align-items: flex-start; }
.sub { color: var(--muted); font-size: 16px; margin-top: 2px; }
.timer { padding: 12px; }
.timer .left { font-size: 22px; min-width: 52px; text-align: right; }
.switch {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2);
}
.switch input { width: 17px; height: 17px; accent-color: var(--accent); }

/* 사용 방법 / 하단 */
.guide h2 { margin-bottom: 10px; }
.guide ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.guide ol b { margin-right: 6px; color: var(--accent); }
.guide .notes { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 16px; }
.foot {
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px; text-align: center;
}

/* 상단 메인 메뉴 */
.top {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px;
  padding: 12px 24px;
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
}
.menu { display: flex; gap: 4px; }
.menu button {
  font: inherit; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; white-space: nowrap;
}
.menu button:hover { color: var(--text); background: var(--panel); }
.menu button[aria-current] { color: var(--accent-ink); background: var(--accent); }
.menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge {
  min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--danger); color: #fff;
  font-size: 15px; line-height: 20px; text-align: center;
}
.share { display: flex; align-items: center; gap: 10px; }

/* 메뉴별 화면: 안 보이는 화면도 게임 영상은 계속 받아야 하므로 display:none 을 쓰지 않는다 */
.view:not(.active) {
  position: absolute; left: -99999px; top: 0;
  width: 1px; height: 1px; overflow: hidden; visibility: hidden;
}
.page { display: grid; gap: 16px; padding: 16px 24px 32px; max-width: 1100px; margin: 0 auto; }
.settings h2 { margin-bottom: 4px; }
.notice {
  margin-bottom: 12px; padding: 10px 12px; border-radius: 8px;
  background: #ff9d2e1f; color: var(--accent); font-size: 16px;
}

/* 아이템 선택 창: 찾는 방법 전환, 몬스터 목록 */
.picked-count { margin-left: 8px; color: var(--accent); font-size: 16px; font-weight: 600; }
.seg { display: flex; gap: 0; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button {
  flex: 1; font: inherit; font-size: 16px; font-weight: 700;
  padding: 10px; border: 0; background: var(--panel-2); color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.mob-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mob-head strong { font-size: 18px; }
.cat.mob img { width: 44px; height: 44px; }
.cat small { display: block; color: var(--muted); font-size: 15px; font-weight: 400; margin-top: 2px; }
.noimg {
  width: 44px; height: 44px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--muted); font-style: normal; font-weight: 700;
}
.cat-grid { height: min(48vh, 440px); }
#dropNote { margin-top: 10px; }

@media (max-width: 960px) {
  .top { grid-template-columns: 1fr; gap: 10px; }
  .menu { overflow-x: auto; }
  .page { padding: 12px 16px 24px; }
}

/* 메뉴의 켜짐/꺼짐 표시 */
.onoff {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); color: #d93a3a;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
}
.onoff::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; }
.onoff[data-on="1"] { color: #17994f; }
.onoff[data-on="1"]::before { background: #2fd27a; box-shadow: 0 0 6px #2fd27a; }

/* 해상도 안내 표시 */
.res-tag {
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid #ff9d2e66; color: var(--accent);
  font-size: 15px; font-weight: 700;
}
.placeholder b { color: var(--accent); }

/* 회수 타이머 */
.page.narrow { max-width: 720px; }
.loot { text-align: center; padding: 28px 24px 24px; }
.loot .sub { max-width: 560px; margin: 6px auto 0; line-height: 1.6; }
.loot-clock {
  margin-top: 22px;
  font-size: clamp(72px, 16vw, 132px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--muted);
}
.loot.running .loot-clock { color: var(--text); }
.loot.soon .loot-clock { color: var(--danger); }
.bar.big { height: 10px; margin: 18px auto 0; max-width: 520px; border-radius: 5px; }
.bar.big i { border-radius: 5px; background: var(--line); }
.loot.running .bar.big i { background: var(--ok); }
.loot.soon .bar.big i { background: var(--danger); }
.loot-state { margin-top: 10px; color: var(--muted); font-size: 16px; }
.row.center { justify-content: center; margin-top: 20px; }
.row.opts { gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.big { padding: 14px 28px; font-size: 19px; border-radius: 10px; }
.badge { font-variant-numeric: tabular-nums; }

.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* 사냥 수익 */
.how { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 4px; font-size: 16px; }
.how b { color: var(--accent); }
.checks { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; padding: 0; }
.checks li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; font-weight: 700; }
.checks li.done { border-color: var(--ok); color: var(--ok); }
.checks li.done::before { content: "✓ "; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.card { background: var(--panel-2); border-radius: 10px; padding: 12px 14px; }
.card small { display: block; color: var(--muted); font-size: 15px; }
.card strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.card.total { border: 1px solid var(--accent); }
.card.total strong { color: var(--accent); }
.plus { color: var(--ok); }
.minus { color: var(--danger); }
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; }
.ledger th { text-align: right; color: var(--muted); font-size: 15px; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 이름 칸도 다른 칸과 같은 표 칸으로 둔다(flex 로 바꾸면 칸 높이가 달라져 아래 줄이 어긋난다). 그림과 글자는 세로 가운데로 맞춘다. */
.ledger td { vertical-align: middle; }
.ledger td.name { white-space: normal; min-width: 200px; }
.ledger td.name > * { vertical-align: middle; }
.ledger td.name img { display: inline-block; margin-right: 8px; }
.ledger td.name .noimg { display: inline-grid; margin-right: 8px; }
.ledger td.name img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.ledger input[type="number"] { width: 110px; text-align: right; padding: 4px 8px; }
.ledger select { max-width: 230px; padding: 4px 6px; }
.ledger .todo { color: var(--accent); font-size: 15px; }
.btn.big:disabled { opacity: .4; }

/* 사냥 수익: 잡을 몬스터 */
.hunt-mobs { display: grid; gap: 6px; margin: 4px 0 16px; padding: 12px; border-radius: 10px; background: var(--panel-2); }
.hunt-mobs label { font-size: 16px; }
.hunt-mobs small { color: var(--muted); margin-left: 6px; }
.hunt-mobs .chips { margin: 0; }
.hunt-mobs .chips:empty { display: none; }
.hunt-mobs input { max-width: 360px; }

/* ── 흰 바탕 테마 보정 ── */
.panel { box-shadow: 0 1px 2px #1d22300d; }
.top { background: var(--bg); position: relative; z-index: 2; }
.stage .placeholder { color: #e3e6ec; }
.stage .placeholder strong { color: #ffffff; }
.card strong.plus, .ledger .plus { color: var(--ok); }
.card strong.minus, .ledger .minus { color: var(--danger); }
.menu a.menu-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.menu a.menu-link:hover { color: var(--text); background: var(--panel-2); }
.menu a.menu-link[aria-current] { color: var(--accent-ink); background: var(--accent); }
.menu button:hover { background: var(--panel-2); }

/* ── 양옆 광고 자리 ──
   넓은 화면에서만 본문 양옆에 세로 광고(160×600) 자리를 둔다. 좁은 화면에서는 숨긴다.
   광고를 넣을 때는 .ad-slot 안에 광고 코드를 넣으면 된다. */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); }
.ad-rail { display: none; }
@media (min-width: 1500px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr) 200px; }
  .ad-rail { display: block; padding: 16px 20px; }
  .ad-slot {
    position: sticky; top: 16px; width: 160px; height: 600px;
    border: 1px dashed var(--line); border-radius: 8px;
    display: grid; place-items: center; color: #b3b9c7; font-size: 15px;
  }
}

/* ── 드랍 테이블 페이지들(drops.html, mob/…, item/…) ── */
.doc { max-width: 1100px; margin: 0 auto; padding: 20px 24px 40px; display: grid; gap: 16px; align-content: start; }
.doc h1 { font-size: 24px; }
.doc .lead { color: var(--muted); font-size: 16px; margin-top: 4px; }
.crumbs { font-size: 16px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.doc a { color: inherit; }
.mob-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mob-hero .pic { width: 120px; height: 120px; display: grid; place-items: center; background: var(--panel-2); border-radius: 12px; flex: none; }
.mob-hero .pic img { max-width: 104px; max-height: 104px; image-rendering: pixelated; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; flex: 1; min-width: 260px; }
.facts-grid div { background: var(--panel-2); border-radius: 8px; padding: 8px 12px; }
.facts-grid small { display: block; color: var(--muted); font-size: 15px; }
.facts-grid b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ledger.static td.name a { text-decoration: none; font-weight: 600; }
.ledger.static td.name a:hover { text-decoration: underline; }
.ledger.static tbody tr:hover td { background: var(--panel-2); }
.ledger.static td.rate { font-weight: 700; }
.ledger.static td.none { color: var(--muted); font-weight: 400; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.link-grid a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; background: var(--panel); min-height: 56px;
}
.link-grid a:hover { border-color: var(--accent); }
.link-grid img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; flex: none; }
.link-grid span { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.link-grid small { display: block; color: var(--muted); font-size: 15px; font-weight: 400; }
.link-grid.items img { width: 32px; height: 32px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-row input[type="search"] { flex: 1; min-width: 220px; padding: 10px 14px; font-size: 18px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.doc .btn { text-decoration: none; display: inline-block; }
.doc .btn.primary { color: #fff; }   /* 다크 모드에서 글자가 배경과 같은 색이 되던 것 고침(2026-12-03) */
.foot a { color: inherit; }

/* ── 아이템 알림 화면: 미리보기는 작게, 선택 목록을 넓게 ── */
.layout { grid-template-columns: 360px minmax(0, 1fr); max-width: 1100px; margin: 0 auto; }
.stage { min-height: 190px; }
.stage .placeholder { padding: 16px; font-size: 15px; }
.stage .placeholder strong { font-size: 16px; }
.screen .hint { font-size: 15px; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

/* ── 광고 자리(공통) ── 광고 코드를 넣을 때는 .ad-slot 안에 넣는다. */
.ad-slot {
  border: 1px dashed var(--line); border-radius: 8px;
  display: grid; place-items: center; color: #b3b9c7; font-size: 15px;
}
.ad-slot.wide { width: 728px; max-width: 100%; height: 90px; margin: 0 auto; }
.ad-slot.box { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.ad-banner { padding: 12px 24px 0; }
.doc .ad-banner { padding: 0; }
/* 양옆 세로 광고: 본문 폭을 줄였으므로 조금 좁은 화면부터 보인다. */
@media (min-width: 1360px) {
  .shell { grid-template-columns: 184px minmax(0, 1fr) 184px; }
  .ad-rail { display: block; padding: 16px 12px; }
  .ad-rail .ad-slot { position: sticky; top: 16px; width: 160px; height: 600px; }
}

.doc .lead { color: var(--muted); font-size: 17px; margin-top: 8px; line-height: 1.7; }
.page a { color: inherit; }

/* ── 글 페이지(사용 방법·소개·개인정보처리방침) ── */
.article { line-height: 1.75; }
.article h2 { font-size: 18px; margin: 26px 0 8px; }
.article h3 { font-size: 17px; margin: 18px 0 4px; }
.article p { margin: 8px 0; }
.article ul, .article ol { margin: 8px 0; padding-left: 22px; display: grid; gap: 6px; }
.prose { margin-top: 14px; line-height: 1.75; color: var(--text); font-size: 16px; }
.ledger td.wrap { white-space: normal; text-align: left; color: var(--muted); font-size: 16px; min-width: 200px; }
.doc a.chip { text-decoration: none; }

/* ── 하단 안내 링크 ── */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* 광고 자리를 숨길 때(자리는 유지하되 테두리·글자를 지운다) */
.ad-slot.blank { border-color: transparent; }

/* 아이템 알림 화면의 음량 조절 */
.vol-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; background: var(--panel-2); border-radius: 8px; font-size: 16px; }
.vol-row label { font-weight: 600; white-space: nowrap; }
.vol-row output { display: inline-block; min-width: 40px; color: var(--accent); }
.vol-row input[type="range"] { flex: 1; min-width: 120px; }

/* 몬스터 페이지: 출현 지역 목록 */
.map-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.map-list li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; }
.map-list small { color: var(--muted); }
.facts-grid b { overflow-wrap: anywhere; }


/* ════════════════════════════════════════════════════════════
   겉모습(스킨): 어두운 머리띠, 회색 바탕, 각진 흰 상자, 굵은 테두리의 도감 카드
   ════════════════════════════════════════════════════════════ */
:root {
  --bg: #f1f1f1; --panel: #ffffff; --panel-2: #ececec; --line: #cfcfcf;
  --text: #222222; --muted: #4a4a4a; --accent: #e8870c; --accent-ink: #ffffff;
  --ink: #2f2f2f; --radius: 4px;
  /* 테마로 바뀌는 색(밝은 화면) */
  --panel-3: #e6e6e6; --hover: #dedede; --line-strong: #c4c4c4; --card-line: #3b3b3b;
  --accent-soft: #fff3e0; --ok-soft: #eefaf3; --danger-soft: #fdf3f3; --link: #1c6fd6; --ok-ink: #17804a;
  --ok-line: #7fcb9d; --danger-line: #d9a3a3; --chk1: #eceff4; --chk2: #f8f9fb;
}
/* ── 다크 모드: <html data-theme="dark"> (theme.js 가 붙인다) ── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #15171c; --panel: #1d2027; --panel-2: #262a32; --panel-3: #2d323c; --hover: #30353f; --line: #343a46;
  --text: #e6e8ee; --muted: #a2a9b6; --accent: #f39c3d; --accent-ink: #1a1206;
  --ink: #3b4250; --line-strong: #4a5262; --card-line: #4a5262;
  --accent-soft: #3a2a12; --ok-soft: #16301f; --danger-soft: #3a1f22; --link: #8fb2ff; --ok-ink: #6fe3a1;
  --ok-line: #2f6b4d; --danger-line: #7a3434; --chk1: #22262e; --chk2: #1b1e24;
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--text); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { background-color: var(--panel); color: var(--text); border-color: var(--line-strong); }
:root[data-theme="dark"] .top { background: #101216; border-bottom-color: #000; }
:root[data-theme="dark"] .home-logo strong { color: var(--text); }
/* 다크 모드 켜기/끄기 버튼(상단 메뉴 오른쪽) */
.theme-btn { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #555; border-radius: 999px; background: #3a3a3a; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.theme-btn:hover { background: #4a4a4a; }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-btn .sw { position: relative; width: 30px; height: 16px; border-radius: 999px; background: #777; transition: background .15s; }
.theme-btn .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.theme-btn[aria-pressed="true"] .sw { background: var(--accent); }
.theme-btn[aria-pressed="true"] .sw::after { transform: translateX(14px); }
body { font-size: 16px; }

/* 머리띠 */
.top { background: var(--ink); border-bottom: 3px solid #1d1d1d; padding: 0 20px; min-height: 58px; gap: 20px; }
.logo { display: none; }
.brand h1, .brand-name { color: #fff; font-size: 19px; font-weight: 700; font-style: normal; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.brand h1::first-line { color: #fff; }
.menu { gap: 2px; align-self: stretch; }
.menu button, .menu a.menu-link {
  background: none; color: #fff; border-radius: 0; padding: 0 14px; height: 58px; font-size: 16px; font-weight: 700;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.menu button:hover, .menu a.menu-link:hover { color: #fff; background: #3a3a3a; }
.menu button[aria-current], .menu a.menu-link[aria-current] { color: #fff; background: none; border-bottom-color: var(--accent); }
.onoff { background: #1f1f1f; }
.status { background: #1f1f1f; border-color: var(--muted); color: #bdbdbd; }
.top .btn { border-radius: 4px; }
.top .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.top .btn:not(.primary) { background: #444; border-color: #555; color: #fff; }

/* 상자·단추 */
.panel { border-radius: 4px; border: 1px solid var(--line); box-shadow: none; }
.panel h2, .panel-head h2 { font-size: 17px; font-weight: 800; line-height: 1.2; }   /* 제목 왼쪽 주황 막대는 2026-12-03 사용자 요청으로 뺐다 */
.article h2 { }
.btn { border-radius: 4px; font-weight: 700; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { filter: none; background: #000; }
.chip { border-radius: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { border-radius: 4px; }
.seg button.on { background: var(--ink); color: #fff; }
input, select { border-radius: 4px; }
.res-tag { border-radius: 4px; border-color: var(--line); color: var(--muted); background: var(--panel-2); }
.cat, .item, .card, .facts-grid div, .vol-row, .hunt-mobs { border-radius: 4px; }
.card.total { border-color: var(--ink); }
.card.total strong { color: var(--text); }
.loot.running .loot-clock { color: var(--text); }
.foot { background: var(--panel-3); border-top: 1px solid var(--line); color: var(--muted); }
.ad-slot { border-radius: 2px; border-color: var(--line-strong); }

/* 도감 카드(굵은 테두리) */
.book { background: var(--panel); border: 3px solid var(--card-line); border-radius: 10px; box-shadow: 3px 4px 0 #00000026; padding: 16px; }
.book-pair { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .book-pair { grid-template-columns: 1fr; } }
.book h1 { font-size: 22px; font-weight: 900; text-align: center; }
.book .sub-title { text-align: center; color: var(--muted); font-size: 15px; margin-top: 2px; }
.book .big-pic { height: 150px; display: grid; place-items: center; margin: 10px 0; }
.book .big-pic img { max-width: 150px; max-height: 140px; image-rendering: pixelated; }
.book .big-pic.item img { width: 72px; height: 72px; object-fit: contain; }
.stat-list { background: var(--panel-2); border-radius: 4px; padding: 8px 12px; display: grid; gap: 3px; font-size: 16px; }
.stat-list div { display: flex; justify-content: space-between; gap: 12px; }
.stat-list span { color: var(--muted); font-weight: 700; }
.stat-list b { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.book h2 { font-size: 16px; border: 0; padding: 0; color: var(--muted); margin: 14px 0 6px; }
.book h2:first-child { margin-top: 0; }
.book .btn { display: block; text-align: center; margin-top: 12px; text-decoration: none; }

/* 드랍 칸 */
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.drop-tile { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--panel-2); border-radius: 4px; text-decoration: none; min-width: 0; }
.drop-tile:hover { background: var(--hover); }
.slot { width: 40px; height: 40px; flex: none; background: #353535; border-radius: 4px; display: grid; place-items: center; }
.slot img { max-width: 34px; max-height: 34px; image-rendering: pixelated; }
.slot .noimg { width: 34px; height: 34px; background: none; color: #bbb; font-size: 16px; }
.drop-tile .txt { min-width: 0; flex: 1; text-align: center; line-height: 1.25; }
.drop-tile .nm { display: block; font-weight: 800; font-size: 16px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-tile .rt { display: block; font-size: 15px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.drop-tile .rt.none { font-weight: 400; color: #707070; }
.map-list li { border-radius: 4px; background: var(--panel-2); border: 0; }
.prose { color: var(--muted); font-size: 16px; }
.link-grid a { border-radius: 4px; background: var(--panel-2); border: 0; }
.link-grid a:hover { background: var(--hover); }
.pager .btn { background: var(--panel); }
.doc h1 { font-weight: 900; }

/* 화면 공유 단추(기능 화면 안) */
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.share-row .status { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.share-row .status[data-state="on"] { color: var(--ok); }
.share-row .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.top { justify-content: flex-start; }
/* 사냥 수익: 쓴 아이템의 가격 앞에 붙는 표시 */
.buy-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; background: var(--panel-2); color: var(--muted); font-size: 15px; font-weight: 700; vertical-align: middle; }

.stat-list span { white-space: nowrap; }

/* 화면 공유 시작 단추는 초록색 */
.share-row .btn.primary { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.share-row .btn.primary:hover { background: #18844a; }

.prose.desc { color: var(--text); background: var(--panel); border-left: 4px solid var(--line); padding: 8px 12px; }
.slot .noimg, .big-pic .noimg { display: grid; place-items: center; font-style: normal; }
.link-grid .noimg { width: 40px; height: 40px; flex: none; border-radius: 4px; }

/* ── 좁은 화면(휴대폰) ──
   본문 칸이 안에 든 것(728px 광고 자리, 긴 표)만큼 늘어나 화면 밖으로 밀려나던 것을 막는다. */
.doc, .page, .layout > * { min-width: 0; }
.doc, .page { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) {
  .book-pair { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 14px 12px 28px; }
  .book { padding: 12px; }
  .ad-banner { padding: 10px 12px 0; }
  .ad-slot.wide { height: 60px; }
  /* 머리띠: 사이트 이름 한 줄, 메뉴 한 줄(넘치면 옆으로 민다) */
  .top { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; }
  .brand { padding: 10px 12px 2px; }
  .menu { overflow-x: auto; scrollbar-width: none; align-self: auto; }
  .menu::-webkit-scrollbar { display: none; }
  .menu button, .menu a.menu-link { height: 42px; padding: 0 10px; font-size: 16px; flex: none; }
  .onoff { padding: 1px 6px; font-size: 14px; }
  .drop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ledger td.name, .ledger td.wrap { min-width: 130px; }
  .pager .btn { flex: 1; text-align: center; }
}

/* 사이트 이름을 누르면 첫 화면으로 */
.brand h1 a.brand-name { color: inherit; text-decoration: none; font: inherit; }
/* 작은 글씨를 키우면서 줄 높이·칸 크기를 맞춘다 */
.foot { font-size: 16px; }
.hint, .sub, .prose, .item .meta, .card small, .facts-grid small, .link-grid small, .cat small { line-height: 1.5; }
/* 사냥 수익: 기록 단추들의 크기를 맞춘다 */
#view-profit .row .btn.big, .row > .btn.big { min-width: 150px; text-align: center; }

/* ── 글 줄바꿈: 낱말 중간에서 끊지 않고 띄어쓰기에서 줄을 바꾼다. 마지막 줄에 한두 글자만 남지 않게 한다. ── */
body { word-break: keep-all; overflow-wrap: break-word; line-height: 1.6; }
p, li, dd, td, .hint, .sub, .lead, .prose, .notice { text-wrap: pretty; }
h1, h2, h3, .book h1 { text-wrap: balance; }

/* ── 머리띠를 더 높게, 메뉴 글씨를 더 크게 ── */
.top { min-height: 76px; padding: 0 28px; gap: 28px; }
.brand h1, .brand-name, .brand h1 a.brand-name { font-size: 26px; }
.menu button, .menu a.menu-link { height: 76px; padding: 0 16px; font-size: 17px; display: flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }

/* ── 메뉴 아이콘 ── */
.menu button::before, .menu a.menu-link::before { content: ""; width: 24px; height: 24px; flex: none; background: center / contain no-repeat; }
/* 아이템 알림: 돋보기 */
.menu [data-view="detect"]::before, .menu a[href$="#detect"]::before, .home-card[href$="#detect"] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 15.5 21 21' stroke='%23e8870c' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='10' r='6.5' fill='%23bfe3ff' stroke='%23ffffff' stroke-width='2.4'/%3E%3Cpath d='M6.8 9.2a3.4 3.4 0 0 1 3-2.6' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 회수 타이머: 시계 */
.menu [data-view="timer"]::before, .menu a[href$="#timer"]::before, .home-card[href$="#timer"] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23ffffff' stroke='%23e8870c' stroke-width='2.4'/%3E%3Cpath d='M12 6.8V12l3.6 2.2' fill='none' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%232f2f2f'/%3E%3C/svg%3E"); }
/* 사냥 수익 자동계산: 메소(금화) */
.menu [data-view="profit"]::before, .menu a[href$="#profit"]::before, .home-card[href$="#profit"] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23c98a00'/%3E%3Ccircle cx='12' cy='11.2' r='9.2' fill='%23ffd23f'/%3E%3Ccircle cx='12' cy='11.2' r='6.4' fill='%23f5b921' stroke='%23d99a06' stroke-width='1.2'/%3E%3Cpath d='M8.8 14.2V8.4l3.2 3.4 3.2-3.4v5.8' fill='none' stroke='%238a5a00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 7.4a7.6 7.6 0 0 1 3.4-2.6' fill='none' stroke='%23fff6c9' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 드랍 테이블: 책상 */
.menu #navDrops::before, .menu a[href$="drops.html"]::before, .home-card[href$="drops.html"] i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.2 9.5h2.6V21H4.2zM17.2 9.5h2.6V21h-2.6z' fill='%239a5b22'/%3E%3Crect x='11' y='9.5' width='6.4' height='6.2' fill='%23b9722f'/%3E%3Crect x='13' y='12' width='2.6' height='1.3' rx='.6' fill='%23ffe2a8'/%3E%3Crect x='1.5' y='5.8' width='21' height='4' rx='1.2' fill='%23d9924a'/%3E%3Crect x='1.5' y='5.8' width='21' height='1.5' rx='.75' fill='%23f0b571'/%3E%3C/svg%3E"); }
/* 사용 방법: 물음표 */
.menu [data-view="guide"]::before, .menu a[href$="guide.html"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.6' fill='%235b8def'/%3E%3Cpath d='M9 9.4a3 3 0 1 1 4.6 2.5c-1 .7-1.6 1.2-1.6 2.4' fill='none' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.3' fill='%23ffffff'/%3E%3C/svg%3E"); }

@media (max-width: 960px) {
  .top { padding: 0 16px; gap: 16px; }
  .menu button, .menu a.menu-link { padding: 0 12px; }
}
@media (max-width: 760px) {
  .top { padding: 0; gap: 0; min-height: 0; }
  .brand { padding: 12px 14px 2px; }
  .brand h1, .brand-name, .brand h1 a.brand-name { font-size: 22px; }
  .menu button, .menu a.menu-link { height: 50px; padding: 0 12px; font-size: 15px; gap: 6px; }
  .menu button::before, .menu a.menu-link::before { width: 20px; height: 20px; }
}

/* ── 머리띠: 사이트 이름은 왼쪽에서 조금 띄우고, 메뉴는 가운데 ── */
@media (min-width: 761px) {
  .top { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 28px 0 56px; }
  .top .brand { justify-self: start; }
  .top .menu { justify-content: center; }
  .top .share { justify-self: end; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .top { grid-template-columns: auto 1fr; padding: 0 16px 0 32px; }
  .top .share { display: none; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .top { grid-template-columns: 1fr; padding: 8px 16px 0; gap: 0; }
  .top .brand { justify-self: center; }
  .menu button, .menu a.menu-link { height: 54px; }
}
@media (max-width: 760px) { .brand { padding-left: 20px; } }

/* ── 첫 화면: 로고 → 기능 바로가기 → 문의 ── */
.home { max-width: 860px; gap: 28px; padding-top: 36px; padding-bottom: 48px; justify-items: center; }
.home-logo { text-align: center; display: grid; gap: 6px; }
.home-logo strong { font-size: 64px; font-weight: 700; font-style: normal; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.home-logo span { font-size: 18px; font-weight: 700; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.home-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 20px 22px; background: var(--panel); border: 3px solid var(--card-line); border-radius: 10px; box-shadow: 3px 4px 0 #00000026; text-decoration: none; color: var(--text); }
.home-card:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-1px); }
.home-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.home-card i { grid-row: span 2; width: 56px; height: 56px; background: center / contain no-repeat; }
.home-card b { font-size: 21px; font-weight: 900; align-self: end; }
.home-card small { font-size: 15px; color: var(--muted); align-self: start; }
.home-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; padding: 14px 24px; border-radius: 8px; font-size: 17px; font-weight: 800; text-decoration: none; border: 1px solid transparent; }
.contact-btn i { width: 24px; height: 24px; flex: none; background: center / contain no-repeat; }
.contact-btn small { font-size: 13px; font-weight: 600; opacity: .75; }
.contact-btn.kakao { background: #fee500; color: #191919; }
.contact-btn.kakao:hover { background: #f5dc00; }
.contact-btn.kakao i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5c-5 0-9 3.1-9 7 0 2.5 1.7 4.700 4.200 5.900l-.9 3.500c-.1.400.300.700.700.500l4.100-2.700c.3 0 .6.050.9.050 5 0 9-3.100 9-7.250s-4-7-9-7z' fill='%23191919'/%3E%3C/svg%3E"); }
.contact-btn.mail { background: var(--panel); color: var(--text); border-color: var(--card-line); }
.contact-btn.mail:hover { background: var(--panel-2); }
.contact-btn.mail i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2' fill='%23ffffff' stroke='%232f2f2f' stroke-width='2'/%3E%3Cpath d='m3.500 7 8.500 6.500L20.500 7' fill='none' stroke='%232f2f2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.contact-btn.faq { background: var(--panel); color: var(--text); border-color: var(--card-line); }
.contact-btn.faq:hover { background: var(--panel-2); }
.contact-btn.faq i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23f3c768' stroke='%232f2f2f' stroke-width='2'/%3E%3Cpath d='M9.2 9.3a2.9 2.9 0 0 1 5.6 1c0 1.900-2.800 2.400-2.800 4.100' fill='none' stroke='%232f2f2f' stroke-width='2.200' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.800' r='1.300' fill='%232f2f2f'/%3E%3C/svg%3E"); }
.contact-btn.off { cursor: default; opacity: .7; }
@media (max-width: 640px) {
  .home { padding-top: 20px; gap: 20px; }
  .home-logo strong { font-size: 46px; }
  .home-logo span { font-size: 16px; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-card { padding: 16px; grid-template-columns: 44px minmax(0, 1fr); }
  .home-card i { width: 44px; height: 44px; }
  .home-card b { font-size: 19px; }
  .contact-btn { width: 100%; }
}

/* 창이 좁아 이름과 메뉴가 한 줄에 안 들어가면 이름을 위, 메뉴를 아래 줄 가운데에 둔다. 그래도 넘치면 메뉴만 옆으로 민다. */
.top .menu { min-width: 0; }
@media (min-width: 761px) and (max-width: 1180px) {
  .top { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 0; gap: 0; }
  .top .brand { justify-self: center; }
  .top .menu { justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
  .top .menu::-webkit-scrollbar { display: none; }
  .menu button, .menu a.menu-link { height: 54px; flex: none; }
}

/* 사냥 수익 결과: 메소·얻은 아이템은 파란색, 최소 수익은 초록색 */
.card strong.plus { color: var(--link); }
.card.total strong { color: var(--ok); }
/* 문장마다 줄을 바꾼 설명 글: 한 문장이 길어 다음 줄로 넘어가도 낱말 중간에서 끊기지 않는다 */
.sub, .hint, .lead { line-height: 1.65; }
.hunt-mobs label small { display: block; margin-top: 2px; line-height: 1.5; }

/* 사이트 이름을 더 오른쪽으로 */
@media (min-width: 1181px) { .top { padding-left: clamp(72px, 9vw, 180px); } }
@media (max-width: 760px) { .brand { padding-left: 28px; } }

/* 메뉴를 화면 정가운데에: 양옆 여백을 같게 두고, 사이트 이름은 제 칸 안에서만 오른쪽으로 민다 */
@media (min-width: 1181px) {
  .top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 0 28px; }
  .top .brand { margin-left: clamp(0px, calc((100vw - 1200px) / 2), 140px); }
}

/* 화면 공유 단추 옆 안내 글을 크게 */
.share-row .hint { font-size: 17px; font-weight: 700; color: var(--text); }

/* ── 놀이터(펼침 메뉴) ── */
.menu .drop { display: flex; flex: none; }
.menu .drop-btn::after { content: ""; width: 0; height: 0; margin-left: 2px; border: 5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
.menu .drop-btn[aria-expanded="true"] { color: #fff; background: #3a3a3a; }
.menu .drop-btn[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.menu .drop-panel { position: fixed; z-index: 50; min-width: 220px; padding: 6px; display: grid; gap: 2px; background: #2f2f2f; border: 1px solid #1d1d1d; border-top: 1px solid #1d1d1d; border-radius: 0 0 8px 8px; box-shadow: 0 8px 20px #00000055; }
.menu .drop-panel button, .menu .drop-panel a { height: 46px; margin: 0; padding: 0 14px; border: 0; border-radius: 4px; background: none; color: #e2e2e2; font: inherit; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.menu .drop-panel button:hover, .menu .drop-panel a:hover { background: #454545; color: #fff; }
.menu .drop-panel button[aria-current] { background: #454545; color: #fff; border-bottom: 0; box-shadow: inset 3px 0 0 var(--accent); }
.menu .drop-panel button::before, .menu .drop-panel a::before { content: ""; width: 22px; height: 22px; flex: none; background: center / contain no-repeat; }
/* 놀이터: 공 */
.menu .drop-btn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23ffffff'/%3E%3Cpath d='M12 2a10 10 0 0 1 8.700 5.100L12 12z' fill='%23ef5350'/%3E%3Cpath d='M20.700 16.900A10 10 0 0 1 12 22V12z' fill='%23ffca28'/%3E%3Cpath d='M3.300 16.900A10 10 0 0 1 3.300 7.100L12 12z' fill='%2342a5f5'/%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23d0d0d0' stroke-width='1'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23ffffff' stroke='%23d0d0d0' stroke-width='.8'/%3E%3C/svg%3E"); }
/* 배 시간표: 배 */
.menu .drop-panel [data-view="boat"]::before, .menu .drop-panel a[href$="#boat"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3v10H5z' fill='%23ffffff'/%3E%3Cpath d='M13 5.500V13h5.500z' fill='%23ffd9a0'/%3E%3Cpath d='M2.500 15h19l-2.600 4.600a2 2 0 0 1-1.700 1H6.800a2 2 0 0 1-1.700-1z' fill='%23b9722f'/%3E%3Cpath d='M11 3v12h2V3z' fill='%236d3f17'/%3E%3C/svg%3E"); }
/* 주문서 시뮬레이터: 두루마리 */
.menu .drop-panel [data-view="scroll"]::before, .menu .drop-panel a[href$="#scroll"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='4' width='14' height='16' fill='%23ffe9b8'/%3E%3Crect x='3' y='2.500' width='18' height='4' rx='2' fill='%23d9924a'/%3E%3Crect x='3' y='17.500' width='18' height='4' rx='2' fill='%23d9924a'/%3E%3Cpath d='M8 10h8M8 13h6' stroke='%23a06a2a' stroke-width='1.500' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 장비 시뮬레이터: 투구 */
.menu .drop-panel [data-view="gear"]::before, .menu .drop-panel a[href$="#gear"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13a8 8 0 0 1 16 0v7h-4.500v-5h-7v5H4z' fill='%23b8c4d6'/%3E%3Cpath d='M4 13a8 8 0 0 1 8-8v15H8.500v-5H4z' fill='%23dfe6f0'/%3E%3Cpath d='M11 5h2v10h-2z' fill='%237d8aa0'/%3E%3Cpath d='M12 1.500 13.500 5h-3z' fill='%23ef5350'/%3E%3C/svg%3E"); }
/* 준비 중 화면 */
.panel.soon { text-align: center; padding: 40px 24px; }
.panel.soon h2 { font-size: 24px; border: 0; padding: 0; margin-bottom: 8px; display: block; }
.soon-mark { display: inline-block; margin-top: 18px; padding: 8px 20px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-weight: 800; font-size: 16px; }
@media (max-width: 760px) {
  .menu .drop-panel button, .menu .drop-panel a { height: 44px; font-size: 15px; }
}

/* 메뉴가 길어졌으므로(놀이터 추가) 사이트 이름과 겹치지 않게 간격과 줄바꿈 기준을 다시 맞춘다 */
@media (min-width: 1181px) {
  .top .brand { margin-left: clamp(0px, calc((100vw - 1420px) / 2), 140px); }
}
@media (min-width: 761px) and (max-width: 1340px) {
  .top { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 0; gap: 0; }
  .top .brand { justify-self: center; margin-left: 0; }
  .top .share { display: none; }
  .top .menu { justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
  .top .menu::-webkit-scrollbar { display: none; }
  .menu button, .menu a.menu-link { height: 54px; flex: none; }
}

/* ── 놀이터: 주문서·장비 시뮬레이터 ── */
.play-top h2 { margin-bottom: 4px; }
.play-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .play-cols { grid-template-columns: minmax(0, 1fr); } }
.play-cols > .panel > h2 { margin-bottom: 10px; }
.play-find { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.play-find input[type="search"] { flex: 1; min-width: 160px; }
.play-find select, .play-find input { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); }
.play-lv { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.play-lv input { width: 90px; }
.play-list { display: grid; gap: 4px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.play-scrolls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-top: 8px; }
.play-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 1px solid transparent; border-radius: 4px; background: var(--panel-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.play-item:hover:not(:disabled) { background: var(--hover); }
.play-item.on { border-color: var(--accent); background: var(--accent-soft); }
.play-item:disabled { opacity: .45; cursor: not-allowed; }
.play-item img { width: 34px; height: 34px; flex: none; object-fit: contain; image-rendering: pixelated; }
.play-item span { min-width: 0; display: grid; }
.play-item b { font-size: 15px; font-weight: 800; }
.play-item small { font-size: 13px; color: var(--muted); }
.play-used { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--ink); border-radius: 999px; padding: 0 7px; }
.play-card { border: 3px solid var(--card-line); border-radius: 10px; padding: 14px; background: var(--panel); box-shadow: 3px 4px 0 #00000026; }
.play-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.play-card-head img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.play-card-head strong { display: block; font-size: 19px; font-weight: 900; }
.play-card-head small { color: var(--muted); font-size: 14px; }
.stat-list em { font-style: normal; font-weight: 800; }
.stat-list em.up { color: var(--link); }
.stat-list em.down { color: var(--danger); }
.play-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-weight: 800; }
.play-sum span:nth-child(1) { color: var(--link); }
.play-sum span:nth-child(2) { color: var(--danger); }
.play-sum .btn { margin-left: auto; }
.play-h3 { font-size: 15px; color: var(--muted); margin: 16px 0 6px; }
.play-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; max-height: 260px; overflow-y: auto; }
.play-log li { display: flex; gap: 10px; padding: 5px 10px; border-radius: 4px; background: var(--panel-2); font-size: 15px; }
.play-log li b { flex: none; }
.play-log li.ok b { color: var(--link); }
.play-log li.no b { color: var(--danger); }
.play-log li.no span { color: var(--muted); }
.gear-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.gear-slot { display: grid; gap: 2px; padding: 10px 12px; min-height: 86px; align-content: start; border: 2px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gear-slot:hover:not(:disabled) { border-color: var(--muted); }
.gear-slot.on { border-color: var(--accent); background: var(--accent-soft); }
.gear-slot.off { background: var(--panel-2); cursor: not-allowed; }
.gear-slot small { font-size: 13px; font-weight: 800; color: var(--muted); }
.gear-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gear-name img { width: 30px; height: 30px; flex: none; object-fit: contain; image-rendering: pixelated; }
.gear-name b { font-size: 15px; font-weight: 800; }
.gear-slot em { font-style: normal; font-size: 13px; color: var(--muted); }
.gear-slot em.bad { color: var(--danger); font-weight: 800; }
.gear-empty { color: #8a8a8a; font-size: 15px; }

/* ── 놀이터: 배 시간표 ── */
.boat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin-bottom: 16px; }
.boat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.boat-head h2 { border: 0; padding: 0; font-size: 19px; }
.boat-kind { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 13px; font-weight: 800; }
.boat-facts { color: var(--muted); font-size: 14px; margin: 4px 0 10px; }
.boat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-top: 6px; background: var(--panel-2); border-radius: 4px; }
.boat-row small { display: block; color: var(--muted); font-size: 13px; }
.boat-row strong { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.boat-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.boat-state { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--panel); color: var(--muted); border: 1px solid var(--line); }
.boat-state.open { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.boat-state.closed { background: var(--danger); border-color: var(--danger); color: #fff; }
.boat-warn { margin-top: 8px; font-size: 13px; color: #a15c00; }
.boat-row { flex-wrap: wrap; }
.boat-row strong { display: block; white-space: nowrap; }
.boat-side small { white-space: normal; }

/* ── 배 시간표(다시 꾸밈): 마을 그림, 한 방향에 한 칸 ── */
.boat-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.boat-top .chips { margin: 0; }
.boat-clock { display: flex; align-items: baseline; gap: 12px; padding: 10px 20px; background: var(--ink); color: #fff; border-radius: 8px; }
.boat-clock small { font-size: 14px; font-weight: 700; color: var(--muted); }
.boat-clock strong { font-size: 34px; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.boat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-bottom: 16px; }
.boat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.boat-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.boat-town { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.town-pic { width: 52px; height: 52px; image-rendering: pixelated; }
.boat-town b { font-size: 16px; font-weight: 800; white-space: nowrap; }
.boat-arrow { font-size: 22px; font-weight: 900; color: var(--muted); }
.boat-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--panel-2); border-radius: 6px; }
.boat-left { display: flex; align-items: baseline; gap: 10px; }
.boat-left small { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.boat-left strong { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.boat-state { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; background: var(--panel); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.boat-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.boat-cells div + div { border-left: 1px solid var(--line); }
.boat-cells small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.boat-cells b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.boat-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.boat-bar i { display: block; height: 100%; background: var(--line-strong); border-radius: 3px; transition: width .5s linear; }
.boat-bar i.open { background: #1f9d55; }
.boat-bar i.closed { background: var(--danger); }
.boat-foot { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.boat-any { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.boat-any > div { display: grid; gap: 4px; padding: 10px 12px; background: var(--panel-2); border-radius: 6px; }
.boat-any-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.boat-any .town-pic { width: 34px; height: 34px; }
.boat-any b { font-size: 16px; font-weight: 800; }
.boat-any small { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .boat-clock strong { font-size: 28px; }
  .boat-left strong { font-size: 26px; }
  .boat-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 배 시간표: 한 줄에 두 칸(가는 편 · 오는 편이 나란히) */
.boat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .boat-grid { grid-template-columns: minmax(0, 1fr); } }

/* 배 시간표: 진행 막대 끝에서 함께 움직이는 탈것 그림 */
.boat-track { position: relative; padding-top: 30px; margin: 0 14px; }
.boat-ship { position: absolute; top: 0; left: 0; width: 34px; height: 30px; transform: translateX(-50%); background: center bottom / contain no-repeat; transition: left .5s linear; pointer-events: none; }
.boat-ship.ship { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M16 3v15H7z' fill='%23ffffff' stroke='%236d3f17' stroke-width='1'/%3E%3Cpath d='M18.500 6.500V18h8z' fill='%23ffd9a0' stroke='%236d3f17' stroke-width='1'/%3E%3Cpath d='M16 2h2v18h-2z' fill='%236d3f17'/%3E%3Cpath d='M18 2.500l6 2-6 2z' fill='%23e8870c'/%3E%3Cpath d='M3 20h28l-3.600 6.400a2.500 2.500 0 0 1-2.200 1.300H8.800a2.500 2.500 0 0 1-2.200-1.300z' fill='%23b9722f'/%3E%3Cpath d='M3 20h28l-1.200 2.200H4.200z' fill='%23d9924a'/%3E%3C/svg%3E"); }
.boat-ship.train { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Crect x='3' y='7' width='28' height='17' rx='4' fill='%235b8def'/%3E%3Crect x='3' y='17' width='28' height='3' fill='%23ffca28'/%3E%3Crect x='6.500' y='10' width='6' height='5' rx='1' fill='%23e8f1ff'/%3E%3Crect x='14' y='10' width='6' height='5' rx='1' fill='%23e8f1ff'/%3E%3Crect x='21.500' y='10' width='6' height='5' rx='1' fill='%23e8f1ff'/%3E%3Ccircle cx='10' cy='26' r='2.600' fill='%232f2f2f'/%3E%3Ccircle cx='24' cy='26' r='2.600' fill='%232f2f2f'/%3E%3C/svg%3E"); }
.boat-ship.lift { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M17 0v6' stroke='%232f2f2f' stroke-width='2'/%3E%3Crect x='7' y='6' width='20' height='22' rx='2' fill='%239aa5b8' stroke='%232f2f2f' stroke-width='1.500'/%3E%3Crect x='10' y='10' width='6' height='15' fill='%23e8eef7'/%3E%3Crect x='18' y='10' width='6' height='15' fill='%23e8eef7'/%3E%3C/svg%3E"); }
.boat-bar { height: 8px; }

/* 배 노선의 진행 막대에는 실제 게임의 배 그림을 쓴다(그림이 왼쪽을 보고 있어 좌우를 뒤집는다) */
.boat-track { padding-top: 52px; }
.boat-ship { width: 56px; height: 52px; }
.boat-ship.ship { background-image: url("town/ship.png"); transform: translateX(-50%) scaleX(-1); }
.boat-ship.train, .boat-ship.lift { background-size: 34px 30px; }
/* 노선마다 실제 탈것: 루디브리엄행 기차, 리프레행 새, 아리안트행 지니, 헬리오스 탑 엘리베이터 */
.boat-ship.toy { background-image: url("town/toy.png"); width: 68px; }
.boat-ship.minar { background-image: url("town/minar.png"); }
.boat-ship.genie { background-image: url("town/genie.png"); }
.boat-ship.lift { background-image: url("town/lift.png"); background-size: contain; }

/* 광고 자리 숨김(tools/build-pages.js 의 SHOW_AD_SLOTS 가 false 일 때 body 에 ads-off 가 붙는다) */
.ads-off .ad-banner, .ads-off .ad-rail, .ads-off .ad-slot { display: none !important; }
.ads-off .shell { grid-template-columns: minmax(0, 1fr); }
.ads-off main { padding-top: 8px; }

/* ── 메뉴·첫 화면 아이콘: 실제 게임 아이템 그림(ui 폴더) ──
   아이템 알림=감정 돋보기, 아이템 회수 타이머=작은 시계(4000114, 2026-12-03 파풀라투스에서 되돌림), 사냥 수익=금화(메소 9000001), 드랍 테이블=주황버섯,
   추가 기능=왕별, 사용 방법=물음표 상자, 배 시간표=오르비스 행 티켓, 주문서=혼돈의 주문서, 장비=자쿰의 투구 */
.menu button::before, .menu a.menu-link::before, .menu .drop-btn::before { width: 28px; height: 28px; background-size: contain; image-rendering: pixelated; }
.menu [data-view="detect"]::before, .menu a[href$="#detect"]::before, .home-card[href$="#detect"] i { background-image: url("ui/detect.png"); }
.menu [data-view="timer"]::before, .menu a[href$="#timer"]::before, .home-card[href$="#timer"] i { background-image: url("ui/timer.png"); }
.menu [data-view="profit"]::before, .menu a[href$="#profit"]::before, .home-card[href$="#profit"] i { background-image: url("ui/profit.png"); }
.menu #navDrops::before, .menu a[href$="drops.html"]::before, .home-card[href$="drops.html"] i { background-image: url("ui/drops.png"); }
.menu .drop-btn::before { background-image: url("ui/more.png"); }
.menu [data-view="guide"]::before, .menu a[href$="guide.html"]::before { background-image: url("ui/guide.png"); }
.menu .drop-panel [data-view="boat"]::before, .menu .drop-panel a[href$="#boat"]::before { background-image: url("ui/boat.png"); }
.menu .drop-panel [data-view="scroll"]::before, .menu .drop-panel a[href$="#scroll"]::before { background-image: url("ui/scroll.png"); }
.menu .drop-panel [data-view="gear"]::before, .menu .drop-panel a[href$="#gear"]::before { background-image: url("ui/gear.png"); }
.menu .drop-panel button::before, .menu .drop-panel a::before { width: 26px; height: 26px; image-rendering: pixelated; }
.home-card i { image-rendering: pixelated; }
@media (max-width: 760px) { .menu button::before, .menu a.menu-link::before, .menu .drop-btn::before { width: 24px; height: 24px; } }
/* 주황버섯은 원본(63×58)을 크게 줄여 쓰므로 도트 그대로가 아니라 부드럽게 줄인다 */
.menu #navDrops::before, .menu a[href$="drops.html"]::before, .home-card[href$="drops.html"] i { image-rendering: auto; }
.menu #navDrops::before, .menu a[href$="drops.html"]::before { width: 30px; height: 30px; }

/* ── 아이콘 선명하게: ui 폴더 그림은 72×72(도트 아이콘은 원본을 정확히 2배로 키운 것)라
   메뉴에서는 36px(원본과 같은 크기), 첫 화면에서는 72px(정확히 2배)로만 보여 흐려지거나 깨지지 않는다. ── */
.menu button::before, .menu a.menu-link::before, .menu .drop-btn::before,
.menu #navDrops::before, .menu a[href$="drops.html"]::before { width: 36px; height: 36px; margin: 0 -2px; background-size: 36px 36px; image-rendering: pixelated; }
.menu .drop-panel button::before, .menu .drop-panel a::before { width: 36px; height: 36px; margin: -4px; background-size: 36px 36px; image-rendering: pixelated; }
.home-card { grid-template-columns: 72px minmax(0, 1fr); }
.home-card i { width: 72px; height: 72px; background-size: 72px 72px; image-rendering: pixelated; }
/* 주황버섯은 도트 아이콘이 아니라 원본 크기 그림이므로 메뉴에서만 부드럽게 줄인다 */
.menu #navDrops::before, .menu a[href$="drops.html"]::before { image-rendering: auto; }
.home-card[href$="drops.html"] i { image-rendering: auto; }
@media (max-width: 760px) {
  .menu button::before, .menu a.menu-link::before, .menu .drop-btn::before, .menu #navDrops::before, .menu a[href$="drops.html"]::before { width: 36px; height: 36px; margin: -4px -4px -4px -6px; }
}
@media (max-width: 640px) {
  .home-card { grid-template-columns: 72px minmax(0, 1fr); }
  .home-card i { width: 72px; height: 72px; }
}

/* ── 기능 화면마다 붙는 「사용 방법 · 주의사항」 칸 ── */
.usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; }
.usage h3 { font-size: 17px; margin: 0 0 6px; }
.usage ol, .usage ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.6; text-align: left; }
.usage ol b { color: var(--accent); }
.usage ul { color: var(--muted); }
div.usage { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
/* ═════════ 도핑 타이머(예전 이름 버프 타이머) ═════════ 아이콘은 사이다 그림(2022002 을 2배로 키운 것, 예전 홀리 심볼은 tools/held/buff-icon-holy.png) */
.menu [data-view="buff"]::before, .menu a[href$="#buff"]::before, .home-card[href$="#buff"] i { background-image: url("ui/buff.png"); }
.home-card.more i { background-image: url("ui/more.png"); }
.home-card.more { cursor: default; }
.home-card.more:hover { background: var(--panel); border-color: var(--card-line); transform: none; }
.home-more { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 2px; }
.home-more a { padding: 2px 9px; border-radius: 999px; background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.home-more a:hover { background: var(--accent); color: #fff; }

.buff-page { max-width: 1000px; gap: 14px; }
.buff-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 6px 2px 0; }
.buff-hero h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; border: 0; padding: 0; }
.buff-hero p { margin-top: 4px; color: var(--muted); font-size: 15px; }
#buffRoot { display: grid; gap: 14px; }

/* 알림 설정 띠 */
.buff-set { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.buff-set-item { padding: 14px 18px; display: grid; gap: 8px; align-content: start; }
.buff-set-item + .buff-set-item { border-left: 1px solid var(--line); }
.buff-set-label { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.buff-lead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buff-chips { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.buff-chips button { font: inherit; font-size: 15px; font-weight: 700; padding: 7px 14px; border: 0; background: var(--panel); color: var(--text); cursor: pointer; }
.buff-chips button + button { border-left: 1px solid var(--line-strong); }
.buff-chips button:hover { background: var(--panel-2); }
.buff-chips button.on { background: var(--ink); color: #fff; }
.buff-num { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.buff-num input { width: 64px; font: inherit; font-weight: 800; text-align: center; padding: 6px 4px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); }
.buff-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.buff-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* 묶음 상자 */
.buff-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; }
.buff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 34px; }
.buff-head h2 { font-size: 18px; font-weight: 900; border: 0; padding: 0; }
.buff-head h2 small { margin-left: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.buff-all { display: flex; gap: 6px; }

/* 내 버프 */
.buff-mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.buff-empty { grid-column: 1 / -1; display: grid; gap: 4px; justify-items: center; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.buff-empty strong { color: var(--text); font-size: 17px; }
.buff-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .2s, background .2s; }
.buff-card.run { border-color: var(--ok-line); background: var(--ok-soft); }
.buff-card.soon { border-color: var(--accent); background: var(--accent-soft); animation: buffSoon 1s ease-in-out infinite; }
.buff-card.done { border-color: var(--danger-line); background: var(--danger-soft); }
@keyframes buffSoon { 50% { box-shadow: 0 0 0 4px #e8870c33; } }
@media (prefers-reduced-motion: reduce) { .buff-card.soon { animation: none; } }
.buff-face { position: relative; grid-row: span 2; width: 56px; height: 56px; border-radius: 8px; background: #2b2b2b; display: grid; place-items: center; overflow: hidden; cursor: pointer; align-self: start; }
.buff-face img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }
.buff-face.plain b { color: #fff; font-size: 24px; font-weight: 900; }
.buff-shade { position: absolute; inset: 0; background: conic-gradient(#000000b8 var(--gone, 0deg), transparent 0); pointer-events: none; }
.buff-card.idle .buff-shade { display: none; }
.buff-card.done .buff-shade { background: #000000b8; }
.buff-body { min-width: 0; display: grid; gap: 6px; }
.buff-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.buff-top strong { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buff-left { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.buff-card.idle .buff-left { color: #9a9a9a; }
.buff-card.soon .buff-left { color: #c96a00; }
.buff-card.done .buff-left { color: var(--danger); font-size: 18px; }
.buff-bar { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.buff-bar i { display: block; height: 100%; width: 100%; background: #c9c9c9; border-radius: 3px; transition: width .25s linear; }
.buff-card.run .buff-bar i { background: #1f9d55; }
.buff-card.soon .buff-bar i { background: var(--accent); }
.buff-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.buff-note { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buff-card.soon .buff-note { color: #c96a00; font-weight: 800; }
.buff-dur { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); flex: none; }
.buff-dur select, .buff-dur input { font: inherit; font-size: 13px; font-weight: 700; padding: 2px 4px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--panel); color: var(--text); }
.buff-dur input { width: 56px; text-align: right; }
.buff-acts { grid-column: 2; display: flex; gap: 6px; margin-top: 4px; }
.buff-go { flex: 1; font: inherit; font-size: 15px; font-weight: 800; padding: 7px 10px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; cursor: pointer; }
.buff-go:hover { background: #000; }
.buff-card.soon .buff-go, .buff-card.done .buff-go { background: var(--accent); }
.buff-card.soon .buff-go:hover, .buff-card.done .buff-go:hover { background: #cf7605; }
.buff-halt, .buff-del { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; }
.buff-del { padding: 7px 11px; color: var(--muted); }
.buff-halt:hover, .buff-del:hover { background: var(--panel-2); }

/* 버프 고르기 */
.buff-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--ink); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.buff-tabs::-webkit-scrollbar { display: none; }
.buff-tab { flex: none; font: inherit; font-size: 15px; font-weight: 800; padding: 8px 16px; border: 0; border-radius: 6px 6px 0 0; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.buff-tab:hover { color: var(--text); }
.buff-tab.on { background: var(--ink); color: #fff; }
.buff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.buff-pick { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.buff-pick:hover { border-color: #9a9a9a; }
.buff-pick img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; justify-self: center; }
.buff-pick span { min-width: 0; display: grid; }
.buff-pick b { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buff-pick small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buff-pick em { font-style: normal; font-size: 13px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.buff-pick.on { border-color: var(--accent); background: var(--accent-soft); }
.buff-pick.on em { background: var(--accent); color: #fff; }
.buff-make { display: grid; gap: 8px; }
.buff-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buff-form input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); }
.buff-form input[type="text"] { flex: 1; min-width: 200px; }
.buff-time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.buff-time input { width: 62px; text-align: center; font-weight: 800; }
.buff-form-msg { min-height: 20px; font-size: 14px; color: #c96a00; margin: 0; }
.buff-hint, .buff-foot { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.buff-foot { padding: 0 2px; }
@media (max-width: 760px) {
  .buff-set { grid-template-columns: minmax(0, 1fr); }
  .buff-set-item + .buff-set-item { border-left: 0; border-top: 1px solid var(--line); }
  .buff-mine { grid-template-columns: minmax(0, 1fr); }
  .buff-hero h2 { font-size: 22px; }
}

/* 버프 칸의 스킬 그림은 원본(32px)의 정확히 2배로 보여 준다 */
.buff-card { grid-template-columns: 64px minmax(0, 1fr); }
.buff-face { width: 64px; height: 64px; }
.buff-face img { width: 64px; height: 64px; }

/* 메뉴가 일곱 개로 늘어 한 줄에 다 넣으려면 폭이 많이 든다. 칸 사이를 조금 좁히고,
   이름과 메뉴가 겹칠 만큼 창이 좁으면(1600px 아래) 이름을 윗줄로 올린다. */
@media (min-width: 761px) {
  .menu { gap: 0; }
  .menu button, .menu a.menu-link { padding: 0 12px; gap: 6px; font-size: 16px; }
  .menu .onoff { padding: 2px 7px; }
}
@media (min-width: 1181px) {
  .top .brand { margin-left: clamp(0px, calc((100vw - 1760px) / 2), 80px); }
}
@media (min-width: 761px) and (max-width: 1600px) {
  .top { grid-template-columns: minmax(0, 1fr); padding: 10px 16px 0; gap: 0; }
  .top .brand { justify-self: center; margin-left: 0; }
  .top .share { display: none; }
  .top .menu { justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
  .top .menu::-webkit-scrollbar { display: none; }
  .menu button, .menu a.menu-link { height: 54px; flex: none; }
}

/* 버프 타이머: 좁은 화면에서 칸이 화면 밖으로 밀리지 않게 */
#buffRoot { grid-template-columns: minmax(0, 1fr); }
.buff-head { flex-wrap: wrap; }
@media (max-width: 760px) {
  .buff-box { padding: 14px 12px 14px; }
  .buff-set-item { padding: 12px; }
  .buff-card { grid-template-columns: 52px minmax(0, 1fr); gap: 4px 10px; padding: 10px; }
  .buff-face, .buff-face img { width: 52px; height: 52px; }
  .buff-face img { image-rendering: auto; }
  .buff-meta { flex-wrap: wrap; }
  .buff-left { font-size: 22px; }
  .buff-acts { grid-column: 1 / -1; }
  .buff-grid { grid-template-columns: minmax(0, 1fr); }
  .buff-form input[type="text"] { min-width: 0; flex-basis: 100%; }
}

/* 임시 화면 저장 칸 */
.buff-temp { border-style: dashed; border-color: var(--line-strong); background: var(--panel-2); }
.buff-temp .share-row { margin: 0 0 8px; }

/* ── 버프 타이머: 화면 공유로 읽기 ── */
.buff-share { background: var(--ink); border-radius: 10px; padding: 14px 18px; }
.buff-share .share-row { margin: 0; gap: 14px; }
.buff-auto-state { display: inline-flex; align-items: center; gap: 8px; color: #d6d6d6; font-size: 15px; font-weight: 600; }
.buff-auto-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8a8a8a; flex: none; }
.buff-auto-state.ok { color: #fff; }
.buff-auto-state.ok::before { background: #35d07f; box-shadow: 0 0 0 4px #35d07f33; }
.buff-auto-state.wait::before { background: var(--accent); }
.buff-share .btn:not(.primary) { background: #444; border-color: #555; color: #fff; }
.buff-set-note { font-size: 13px; color: var(--muted); }

.buff-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.live-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .2s, background .2s; }
.live-card .buff-face { grid-row: auto; cursor: default; }
.live-card.soon { border-color: var(--accent); background: var(--accent-soft); animation: buffSoon 1s ease-in-out infinite; }
.live-card.muted { opacity: .6; }
.live-card.muted.soon { animation: none; border-color: var(--line); background: var(--panel); }
.live-body { min-width: 0; display: grid; gap: 2px; }
.live-title { font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-name { width: 100%; font: inherit; font-size: 15px; font-weight: 700; padding: 4px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); }
.live-name:focus { border-style: solid; border-color: var(--accent); outline: none; }
.live-time { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.15; }
.live-card.soon .live-time { color: #c96a00; }
.live-bell { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 10px; border: 1px solid #1f9d55; border-radius: 999px; background: var(--ok-soft); color: var(--ok-ink); cursor: pointer; white-space: nowrap; }
.live-bell[aria-pressed="false"] { border-color: var(--line-strong); background: var(--panel); color: var(--muted); }
.buff-learned { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.buff-learned summary, .buff-manual > summary, .buff-temp > summary { cursor: pointer; font-size: 15px; font-weight: 800; }
.buff-manual > summary small, .buff-temp > summary small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.buff-manual[open] > summary { margin-bottom: 14px; }
.buff-manual .buff-check { margin: 10px 0 18px; }
.learned-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin-top: 8px; }
.learned-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--panel-2); border-radius: 6px; }
.learned-row img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 4px; }
.learned-row input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 4px; }
.buff-temp[open] > summary { margin-bottom: 10px; }
@media (max-width: 760px) {
  .buff-live { grid-template-columns: minmax(0, 1fr); }
  .live-card { grid-template-columns: 52px minmax(0, 1fr) auto; }
}

/* ═════════ 장비 시뮬레이터 · N방컷 계산기 (어두운 대시보드) ═════════
   메이플랜드 세팅 시뮬레이터처럼 어두운 바탕 · 접고 펴는 상자 · 파란 단추. */
.menu .drop-panel [data-view="nhit"]::before, .menu .drop-panel a[href$="#nhit"]::before { background-image: url("ui/nhit.png"); }
main:has(#view-gear.active), main:has(#view-nhit.active) { padding-top: 0; }
/* ── 장비 시뮬레이터·N방컷 색: 밝은 화면이 기본, 다크 모드는 html[data-theme="dark"] ── */
#view-gear, #view-nhit, .sx-dlg, .sx-menu, .sx-lvpop { --x-bg: #ffffff; --x-bg2: #f7f8fa; --x-p: #ffffff; --x-p2: #f4f6f9; --x-p3: #e9edf3; --x-line: #e2e6ed; --x-line2: #cfd6e0; --x-line3: #aab4c3; --x-text: #1d2230; --x-text2: #3a4252; --x-head: #111827; --x-muted: #5b6475; --x-dim: #8a93a3;
  --x-blue: #3b6fe0; --x-blue2: #2f5bc0; --x-orange: #d9730d; --x-red: #d93a3a; --x-green: #17994f; --x-gold: #c26a00; --x-link: #2c5fd6;
  --x-on-bg: #e8efff; --x-on-text: #1e3f94; --x-on-line: #8fb0f0; --x-hover: #0f172a0a; --x-bad: #c62828; --x-bad-bg: #fdecec; --x-bad-line: #f0b4b4;
  --x-amber: #9a5b00; --x-amber-bg: #fff4e0; --x-amber-bg2: #ffe9c2; --x-amber-line: #f0c27a; --x-note-bg: #eef3ff; --x-good: #17804a; --x-good-bg: #e3f6ea; --x-good-line: #8fd3ab;
  --x-hero-bg: linear-gradient(135deg, #eef3ff, #e1eaff); --x-empty-bg: #f7f8fa; --x-empty-line: #edf0f4; --x-bar: #8aa6e6; --x-knob: #ffffff; --x-shadow: 0 1px 3px #0f172a12;
  --x-g-gray: #8a8a8a; --x-g-white: #1d2230; --x-g-orange: #d97a00; --x-g-blue: #1f6fe0; --x-g-purple: #8e3fd6; --x-g-yellow: #a88400; --x-g-green: #1e9e4a; --x-g-red: #e0302a;
  --x-el-F: #d84315; --x-el-I: #1565c0; --x-el-L: #9a7400; --x-el-S: #2e7d32; --x-el-H: #b26a00; --x-el-P: #616161; --x-undead: #6a4fb3;
  --x-elbg-F: #fdeee7; --x-elbg-I: #e6f1fb; --x-elbg-L: #fdf6d8; --x-elbg-S: #e8f5e9; --x-elbg-H: #fff3e0;
  background: var(--x-bg); color: var(--x-text); }
:root[data-theme="dark"] #view-gear, :root[data-theme="dark"] #view-nhit, :root[data-theme="dark"] .sx-dlg, :root[data-theme="dark"] .sx-menu, :root[data-theme="dark"] .sx-lvpop { --x-bg: #15171c; --x-bg2: #16191e; --x-p: #1d2027; --x-p2: #252932; --x-p3: #2d323d; --x-line: #323844; --x-line2: #3e4553; --x-line3: #5a6273; --x-text: #e6e8ee; --x-text2: #cfd4dd; --x-head: #ffffff; --x-muted: #98a0ae; --x-dim: #6d7584;
  --x-blue: #5b8def; --x-blue2: #3f6fd4; --x-orange: #f39c3d; --x-red: #ef5b5b; --x-green: #4cc38a; --x-gold: #ffcf6b; --x-link: #9dbcff;
  --x-on-bg: #1f2b44; --x-on-text: #ffffff; --x-on-line: #3c5a8f; --x-hover: #ffffff0d; --x-bad: #ff9b9b; --x-bad-bg: #3a1f22; --x-bad-line: #7a3434;
  --x-amber: #ffd27a; --x-amber-bg: #2e2619; --x-amber-bg2: #3a3220; --x-amber-line: #7a4a2a; --x-note-bg: #1b2433; --x-good: #6fe3a1; --x-good-bg: #1d3b2b; --x-good-line: #2f6b4d;
  --x-hero-bg: linear-gradient(135deg, #263048, #1c2333); --x-empty-bg: #1a1d23; --x-empty-line: #23272f; --x-bar: #4f6fae; --x-knob: #c9ced8; --x-shadow: none;
  --x-g-gray: #9e9e9e; --x-g-white: #f0f0f0; --x-g-orange: #ffa040; --x-g-blue: #5fa8ff; --x-g-purple: #c77dff; --x-g-yellow: #ffd84d; --x-g-green: #61d67d; --x-g-red: #ff5252;
  --x-el-F: #ff8a80; --x-el-I: #82b1ff; --x-el-L: #ffe57f; --x-el-S: #69f0ae; --x-el-H: #ffd180; --x-el-P: #bdbdbd; --x-undead: #b39ddb;
  --x-elbg-F: #3d2218; --x-elbg-I: #18303d; --x-elbg-L: #3a3518; --x-elbg-S: #24361c; --x-elbg-H: #39341f; }
/* 아이템 툴팁은 게임처럼 늘 어둡게 */
.sx-tip, .sx-tipbox { --x-bg: #15171c; --x-bg2: #16191e; --x-p: #1d2027; --x-p2: #252932; --x-p3: #2d323d; --x-line: #323844; --x-line2: #3e4553; --x-line3: #5a6273; --x-text: #e6e8ee; --x-text2: #cfd4dd; --x-head: #ffffff; --x-muted: #98a0ae; --x-dim: #6d7584;
  --x-blue: #5b8def; --x-blue2: #3f6fd4; --x-orange: #f39c3d; --x-red: #ef5b5b; --x-green: #4cc38a; --x-gold: #ffcf6b; --x-link: #9dbcff;
  --x-on-bg: #1f2b44; --x-on-text: #ffffff; --x-on-line: #3c5a8f; --x-hover: #ffffff0d; --x-bad: #ff9b9b; --x-bad-bg: #3a1f22; --x-bad-line: #7a3434;
  --x-amber: #ffd27a; --x-amber-bg: #2e2619; --x-amber-bg2: #3a3220; --x-amber-line: #7a4a2a; --x-note-bg: #1b2433; --x-good: #6fe3a1; --x-good-bg: #1d3b2b; --x-good-line: #2f6b4d;
  --x-hero-bg: linear-gradient(135deg, #263048, #1c2333); --x-empty-bg: #1a1d23; --x-empty-line: #23272f; --x-bar: #4f6fae; --x-knob: #c9ced8; --x-shadow: none;
  --x-g-gray: #9e9e9e; --x-g-white: #f0f0f0; --x-g-orange: #ffa040; --x-g-blue: #5fa8ff; --x-g-purple: #c77dff; --x-g-yellow: #ffd84d; --x-g-green: #61d67d; --x-g-red: #ff5252;
  --x-el-F: #ff8a80; --x-el-I: #82b1ff; --x-el-L: #ffe57f; --x-el-S: #69f0ae; --x-el-H: #ffd180; --x-el-P: #bdbdbd; --x-undead: #b39ddb;
  --x-elbg-F: #3d2218; --x-elbg-I: #18303d; --x-elbg-L: #3a3518; --x-elbg-S: #24361c; --x-elbg-H: #39341f; }
.sx-page { max-width: 1440px; gap: 16px; padding-top: 14px; }
.sx, .nx { display: grid; gap: 14px; }
.sx input, .sx select, .nx input, .nx select, .sx-dlg input, .sx-dlg select { color-scheme: dark; }

/* 단추 */
.sx-btn, .nx-btn { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border: 1px solid var(--x-line2); border-radius: 8px; background: transparent; color: var(--x-text); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.sx-btn:hover, .nx-btn:hover { background: var(--x-hover); border-color: var(--x-line3); }
.sx-btn.blue { background: var(--x-blue); border-color: var(--x-blue); color: #fff; }
.sx-btn.blue:hover { background: var(--x-blue2); }
.sx-btn.red, .nx-btn.red { border-color: var(--x-bad-line); color: var(--x-bad); }
.nx-btn.red { background: #c0392b; border-color: #c0392b; color: #fff; }
.sx-btn.on { border-color: var(--x-blue); color: var(--x-link); }
.sx-btn.ghost { border-color: transparent; color: var(--x-muted); }
.sx-btn.small, .nx-btn.small { padding: 4px 10px; font-size: 12px; }
.sx-btn.tiny { padding: 2px 10px; font-size: 12px; border-radius: 999px; border-color: var(--x-blue); color: var(--x-link); }
.sx-btn:disabled { opacity: .4; cursor: not-allowed; }
.sx-link { font: inherit; font-size: 13px; font-weight: 700; background: none; border: 0; color: var(--x-link); cursor: pointer; padding: 4px 0; }
.sx-link:hover { text-decoration: underline; }
.sx-pill { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border: 1px solid var(--x-blue); border-radius: 999px; background: transparent; color: var(--x-link); cursor: pointer; }
.sx-pill.on { background: var(--x-blue); color: #fff; }
.sx-pill.wide { flex: 1; border-radius: 8px; }
.k-blue { color: var(--x-link); } .k-orange { color: var(--x-orange); }

/* 위 띠 */
.sx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 2px 10px; border-bottom: 1px solid var(--x-line); }
.sx-title { display: flex; align-items: center; gap: 10px; }
.sx-title h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--x-head); border: 0; padding: 0; }
.sx-jobbadge { font: inherit; font-size: 12px; font-weight: 800; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--x-blue); color: #fff; }
.sx-jobsel { width: 100%; font-weight: 800; }
.sx-acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* 직업 고르기 */
.sx-jobs { padding: 24px 6px 10px; }
.sx-jobs h3 { font-size: 24px; font-weight: 900; color: var(--x-head); margin: 0 0 4px; }
.sx-jobs > p { color: var(--x-muted); font-size: 14px; margin-bottom: 18px; }
.sx-jobsec { margin-bottom: 22px; }
.sx-jobsec h4 { font-size: 16px; font-weight: 800; color: var(--x-muted); margin: 0 0 10px; }
.sx-jobcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sx-jobcol { display: grid; gap: 8px; align-content: start; }
.sx-jobcol > b { text-align: center; font-size: 17px; font-weight: 900; padding: 4px 0; }
.c-warrior { color: var(--x-link); } .c-magician { color: var(--x-link); } .c-bowman { color: var(--x-link); } .c-thief { color: var(--x-link); } .c-pirate { color: var(--x-link); }
.sx-jobbtn { font: inherit; font-size: 16px; font-weight: 800; padding: 16px 8px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-p); color: var(--x-text); cursor: pointer; transition: border-color .12s, background .12s; }
.sx-jobbtn:hover { border-color: var(--x-blue); background: var(--x-on-bg); }
.sx-jobbtn.on { border-color: var(--x-blue); background: var(--x-on-bg); }

/* 3단 판 */
.sx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sx-col { display: grid; gap: 16px; min-width: 0; }
.sx-p { background: var(--x-p); border: 1px solid var(--x-line); border-radius: 10px; min-width: 0; }
.sx-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--x-line); }
.sx-ph h2 { font-size: 14px; font-weight: 800; color: var(--x-head); border: 0; padding: 0; margin: 0; }
.sx-ph-tools { display: flex; align-items: center; gap: 6px; }
.sx-fold { font: inherit; font-size: 11px; width: 22px; height: 22px; border: 0; background: none; color: var(--x-muted); cursor: pointer; transition: transform .15s; }
.sx-p.folded .sx-fold { transform: rotate(-90deg); }
.sx-p.folded .sx-pb { display: none; }
.sx-pb { padding: 12px; display: grid; gap: 10px; }
.sx-hint, .sx-keys { font-size: 12px; color: var(--x-muted); margin: 0; }
.sx-keys b { font-weight: 800; }
.sx-muted { color: var(--x-dim); font-size: 13px; margin: 0; }
.sx-empty { display: grid; gap: 8px; justify-items: center; padding: 18px 8px; color: var(--x-muted); text-align: center; font-size: 13px; }
.sx-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--x-bad-bg); color: var(--x-bad); font-size: 13px; font-weight: 700; }
.sx-in, .nx input, .nx select { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); color: var(--x-text); min-width: 0; }
.sx-in:focus, .nx input:focus, .nx select:focus { outline: none; border-color: var(--x-blue); }
.sx-in.grow { flex: 1; }
.sx-in.small { font-size: 12px; padding: 5px 8px; justify-self: start; }
.sx-in.num { width: 80px; }
.sx-frow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sx-frow.two > * { flex: 1; }
.sx-frow.checks { gap: 4px 12px; }
.sx-flab { width: 40px; font-size: 13px; font-weight: 700; color: var(--x-muted); }
.sx-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; cursor: pointer; }
.sx-chk input { width: 15px; height: 15px; accent-color: var(--x-blue); }
.sx-chk.el-F input { accent-color: #ef5350; } .sx-chk.el-I input { accent-color: #42a5f5; } .sx-chk.el-L input { accent-color: #fbc02d; } .sx-chk.el-S input { accent-color: #66bb6a; } .sx-chk.el-H input { accent-color: #ffa726; }

/* 장비창 */
.sx-equip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.sx-slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-p2); color: var(--x-muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.sx-slot span { line-height: 1.15; padding: 0 2px; word-break: keep-all; text-align: center; }
.sx-slot:hover, .sx-slot:focus-visible { border-color: var(--x-blue); outline: none; box-shadow: 0 0 0 2px #5b8def40; }
.sx-slot.empty { background: var(--x-empty-bg); border-color: var(--x-empty-line); cursor: default; box-shadow: none; }
.sx-slot img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.sx-slot.has { background: var(--x-p3); }
.sx-slot.bad { box-shadow: inset 0 0 0 1px var(--x-red); }
.sx-slot.bad::after { content: ""; position: absolute; top: 4px; left: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--x-red); }
.sx-plus { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 10px; font-weight: 900; color: var(--x-gold); }
.sx-e { position: absolute; left: 3px; top: 2px; font-style: normal; font-size: 10px; font-weight: 900; color: var(--x-blue); }
/* 등급 색(이름·테두리) */
.g-gray { color: var(--x-g-gray) !important; } .g-white { color: var(--x-g-white); } .g-orange { color: var(--x-g-orange) !important; } .g-blue { color: var(--x-g-blue) !important; } .g-purple { color: var(--x-g-purple) !important; } .g-yellow { color: var(--x-g-yellow) !important; } .g-green { color: var(--x-g-green) !important; } .g-red { color: var(--x-g-red) !important; }
.sx-slot.has.g-orange, .sx-inv.g-orange { border-color: #8a5a22; } .sx-slot.has.g-blue, .sx-inv.g-blue { border-color: #2e5e9e; } .sx-slot.has.g-purple, .sx-inv.g-purple { border-color: #6a3f8f; } .sx-slot.has.g-yellow, .sx-inv.g-yellow { border-color: #8f7a24; } .sx-slot.has.g-green, .sx-inv.g-green { border-color: #2f7a43; } .sx-slot.has.g-red, .sx-inv.g-red { border-color: #8f2f2f; }

/* 스탯 */
.sx-lvrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: end; }
.sx-field { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--x-muted); }
.sx-field input, .sx-field output { font: inherit; font-size: 15px; font-weight: 800; padding: 6px 8px; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); color: var(--x-text); text-align: center; }
.sx-field output { background: transparent; }
.sx-field output.rest { color: var(--x-link); } .sx-field output.over { color: var(--x-red); }
.sx-st { width: calc(100% + 8px); table-layout: fixed; border-collapse: separate; border-spacing: 4px; margin: -4px; }
.sx-st thead th:first-child { width: 44px; }
.sx-st th { font-size: 12px; font-weight: 700; color: var(--x-muted); text-align: center; }
.sx-st tbody th { text-align: left; font-size: 14px; color: var(--x-text); width: 44px; }
.sx-st tr.main th { color: var(--x-green); } .sx-st tr.sub th { color: var(--x-good); }
.sx-st td input, .sx-st td.ro { box-sizing: border-box; width: 100%; font: inherit; font-size: 15px; font-weight: 800; padding: 7px 6px; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); color: var(--x-text); text-align: center; }
.sx-st td.ro { background: transparent; color: var(--x-muted); font-variant-numeric: tabular-nums; }
.sx-st td.ro.fin { color: var(--x-text); }

/* 키-값 목록 */
.sx-kv { margin: 0; display: grid; gap: 2px; }
.sx-kv.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.sx-kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 2px; font-size: 13px; }
.sx-kv dt { color: var(--x-muted); font-weight: 600; white-space: nowrap; }
.sx-kv dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.sx-kv div.warn dd { color: var(--x-red); } .sx-kv div.good dd { color: var(--x-green); }
.sx-kv div.hurt dd { color: var(--x-red); font-size: 15px; }
.sx-q { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 4px; border: 1px solid var(--x-dim); border-radius: 50%; font-size: 9px; font-weight: 900; color: var(--x-dim); text-decoration: none; cursor: help; vertical-align: 1px; }
.sx-sub2 { font-size: 13px; font-weight: 800; color: var(--x-head); margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--x-line); }
.sx-big { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: var(--x-hero-bg); text-align: center; }
.sx-big small { font-size: 12px; color: var(--x-muted); font-weight: 700; }
.sx-big strong { font-size: 26px; font-weight: 900; color: var(--x-gold); font-variant-numeric: tabular-nums; }

/* 인벤토리 */
.sx-invh { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.sx-invh small { color: var(--x-muted); }
.sx-invgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 5px; min-height: 120px; align-content: start; }
.sx-inv { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-p2); cursor: pointer; }
.sx-inv img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.sx-inv:hover { border-color: var(--x-blue); }
.sx-inv.on { background: var(--x-on-bg); }

/* 스킬 및 도핑 */
.sx-bsec { display: grid; gap: 4px; }
.sx-bsec + .sx-bsec { padding-top: 10px; border-top: 1px solid var(--x-line); }
.sx-bsec h4 { font-size: 13px; font-weight: 800; color: var(--x-head); margin: 0; }
.sx-bsec-h { display: flex; justify-content: space-between; align-items: center; }
.sx-sub { font-size: 12px; color: var(--x-muted); }
.sx-eff { font-size: 12px; color: var(--x-link); margin: 0; line-height: 1.6; }
.sx-brow { display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 6px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--x-text); font: inherit; text-align: left; cursor: pointer; opacity: .5; transition: background .12s, opacity .12s; }
.sx-brow:hover { background: var(--x-hover); opacity: .8; }
.sx-brow.on { opacity: 1; }
.sx-brow.on.idle { opacity: .6; }
.sx-bic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--x-p3); }
.sx-bic img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.sx-brow:not(.on) .sx-bic img { filter: grayscale(1); }
.sx-btx { display: grid; min-width: 0; line-height: 1.3; }
.sx-btx b { font-size: 13px; font-weight: 800; }
.sx-btx small { font-size: 11px; color: var(--x-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-brow.idle .sx-btx small { color: var(--x-bad); }
/* 레벨·수치 입력칸 [− 값/최대 +] [마스터] — 장비 시뮬레이터·N방컷 공통 */
.lvs { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.lvs-box { display: inline-flex; align-items: stretch; height: 30px; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); overflow: hidden; }
.lvs-box:focus-within { border-color: var(--x-blue); }
.lvs-b { width: 26px; padding: 0; border: 0; background: transparent; color: var(--x-muted); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.lvs-b:hover:not(:disabled) { background: var(--x-hover); color: var(--x-head); }
.lvs-b:disabled { opacity: .28; cursor: default; }
.lvs-val { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 50px; padding: 0 4px; border-left: 1px solid var(--x-line); border-right: 1px solid var(--x-line); }
.lvs .lvs-val input { width: 28px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--x-text); font: inherit; font-size: 14px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.lvs .lvs-val input:only-child { width: 100%; text-align: center; }
.lvs .lvs-val input:focus { outline: none; }
.lvs-val input::-webkit-inner-spin-button, .lvs-val input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lvs-val small { font-size: 11px; font-weight: 700; color: var(--x-dim); }
.lvs-m { height: 30px; padding: 0 9px; border: 1px solid var(--x-amber-line); border-radius: 8px; background: var(--x-amber-bg); color: var(--x-amber); font: inherit; font-size: 11px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.lvs-m:hover:not(:disabled) { background: var(--x-amber-bg2); }
.lvs-m:disabled { border-color: var(--x-line); background: transparent; color: var(--x-dim); cursor: default; }
.lvs.off { opacity: .45; }
.lvs.big .lvs-box { height: 36px; }
.lvs.big .lvs-b { width: 34px; font-size: 18px; }
.lvs.big .lvs-val { min-width: 64px; }
.lvs.big .lvs-val input { font-size: 16px; }
/* 버프 줄: [아이콘 ON 이름/효과] … [− 레벨 +][마스터] */
.sx-bwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding-right: 4px; border-radius: 10px; }
.sx-bwrap .sx-brow { flex: 1 1 190px; min-width: 0; }
.sx-bwrap.on { background: var(--x-hover); }
.sx-bwrap:not(.on) .lvs { opacity: .55; }
.sx-onoff { display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: var(--x-p3); color: var(--x-dim); font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .02em; vertical-align: 1px; }
.sx-onoff.on { background: var(--x-good-bg); color: var(--x-good); }
.sx-brow.idle .sx-onoff.on { background: var(--x-amber-bg); color: var(--x-amber); }
.sx-seg { display: inline-flex; border: 1px solid var(--x-line2); border-radius: 8px; overflow: hidden; }
.sx-seg button { padding: 6px 10px; border: 0; background: transparent; color: var(--x-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.sx-seg button + button { border-left: 1px solid var(--x-line2); }
.sx-seg button.on { background: var(--x-on-bg); color: var(--x-on-text); }
/* 스탯 창: 레벨 · 남은 AP · 버튼 */
.sx-sttop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: end; margin-bottom: 10px; }
.sx-stf { display: grid; gap: 4px; }
.sx-stf > span { font-size: 12px; font-weight: 700; color: var(--x-muted); }
.sx-apleft { display: flex; align-items: center; height: 36px; font-size: 17px; font-weight: 900; }
.sx-apleft.rest { color: var(--x-link); } .sx-apleft.over { color: var(--x-red); } .sx-apleft.zero { color: var(--x-muted); font-size: 15px; }
.sx-stacts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.sx-st td.ap .lvs { display: flex; width: 100%; }
.sx-st td.ap .lvs-box { flex: 1; height: 36px; }
.sx-st td.ap .lvs-val { flex: 1; min-width: 0; }
.sx-st td.ap .lvs-val input { font-size: 15px; }
.sx-bwrap .lvs, .sx-bwrap .sx-seg { margin-left: auto; }
@media (max-width: 520px) {
  .sx-st td.ap .lvs-b { width: 22px; font-size: 14px; }
  .sx-st td.ap .lvs-val { padding: 0 1px; }
  .sx-st td.ap .lvs-val input { font-size: 14px; }
  .sx-st thead th:first-child, .sx-st tbody th { width: 36px; font-size: 13px; }
}
/* 데미지 계산의 추가 입력 */
.sx-optrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--x-muted); }
.sx-opts { display: grid; gap: 7px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-p2); }
.sx-dnote { margin: 6px 0 0; font-size: 11px; line-height: 1.5; }
.sx-blv { display: inline-flex; align-items: center; gap: 4px; }
.sx-blv i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--x-dim); }
.sx-blv input { width: 44px; font: inherit; font-size: 13px; font-weight: 800; text-align: center; padding: 4px 2px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p2); color: var(--x-text); }
.sx-blv input:focus, .sx-blsel:focus { outline: none; border-color: var(--x-blue); }
.sx-bwrap:not(.on) .sx-blv input { color: var(--x-muted); }
.sx-bmax { font: inherit; font-size: 10px; font-weight: 900; padding: 5px 7px; border: 1px solid var(--x-line2); border-radius: 6px; background: transparent; color: var(--x-muted); cursor: pointer; }
.sx-bmax:hover { border-color: var(--x-blue); color: var(--x-head); }
.sx-bmax.on { border-color: var(--x-blue); background: var(--x-on-bg); color: var(--x-on-text); }
.sx-blsel { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 6px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p2); color: var(--x-text); }
/* 스탯: 남은 AP 넣기 · 초과 안내 */
.sx-st td.ap { position: relative; }
.sx-apmax { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 10px; font-weight: 800; padding: 2px 5px; border: 1px solid var(--x-on-line); border-radius: 5px; background: var(--x-on-bg); color: var(--x-link); cursor: pointer; }
.sx-apwarn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sx-apmsg { margin: 6px 0 0; padding: 6px 9px; border-radius: 8px; background: var(--x-amber-bg); color: var(--x-amber); font-size: 12px; font-weight: 700; }
.sx-apnote { margin: 6px 0 0; font-size: 11px; }

/* 몬스터 */
.sx-mhead { display: flex; gap: 10px; align-items: center; }
.sx-mpic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--x-p2); overflow: hidden; }
.sx-mpic img { max-width: 50px; max-height: 50px; object-fit: contain; }
.sx-mhead > div { display: grid; gap: 1px; min-width: 0; }
.sx-mhead b { font-size: 15px; font-weight: 900; color: var(--x-head); }
.sx-mhead small { font-size: 12px; color: var(--x-muted); }
.sx-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.sx-badge { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; }
.sx-badge.r3 { color: #fff; border-color: transparent; }
.sx-badge.el-F.r3 { background: #e53935; } .sx-badge.el-I.r3 { background: #1e88e5; } .sx-badge.el-L.r3 { background: #f9a825; } .sx-badge.el-S.r3 { background: #43a047; } .sx-badge.el-H.r3 { background: #fb8c00; }
.sx-badge.el-F { color: var(--x-el-F); } .sx-badge.el-I { color: var(--x-el-I); } .sx-badge.el-L { color: var(--x-el-L); } .sx-badge.el-S { color: var(--x-el-S); } .sx-badge.el-H { color: var(--x-el-H); } .sx-badge.el-P, .sx-badge.el-D { color: var(--x-el-P); }
.sx-badge.undead { color: var(--x-undead); } .sx-badge.boss { color: var(--x-el-F); }

/* 데미지 */
.sx-verdict { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
.sx-verdict div { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: var(--x-p2); text-align: center; }
.sx-verdict small { font-size: 11px; color: var(--x-muted); font-weight: 700; }
.sx-verdict strong { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sx-verdict .main { background: var(--x-hero-bg); }
.sx-verdict .main strong { color: var(--x-gold); }
.sx-ntbl, .nx-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sx-ntbl th, .nx-tbl th { font-size: 11px; color: var(--x-muted); font-weight: 700; padding: 4px; border-bottom: 1px solid var(--x-line); }
.sx-ntbl td, .nx-tbl td { text-align: center; padding: 4px; border-bottom: 1px solid var(--x-line); font-weight: 700; }

/* 떠 있는 창: 툴팁·메뉴·레벨 */
.sx-tip { position: absolute; z-index: 1000; pointer-events: none; }
.sx-tipbox { width: 250px; padding: 10px 12px; border: 1px solid #5a6a8c; border-radius: 10px; background: #0e1424f2; color: #fff; font-size: 12px; line-height: 1.5; box-shadow: 0 10px 30px #0008; }
.sx-tipname { display: block; text-align: center; font-size: 15px; font-weight: 900; margin-bottom: 6px; }
.sx-tiptop { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #ffffff22; }
.sx-tippic { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: #ffffff12; }
.sx-tippic img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.sx-tipreq { margin: 0; flex: 1; display: grid; gap: 0; }
.sx-tipreq div { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: #fff; }
.sx-tipreq div.zero { color: #8a93a6; }
.sx-tipreq div.bad { color: #ff7070; }
.sx-tipreq dt, .sx-tipreq dd { margin: 0; }
.sx-tipjobs { display: flex; justify-content: center; gap: 6px; padding: 4px 0 6px; border-bottom: 1px solid #ffffff22; font-size: 11px; font-weight: 700; }
.sx-tipjobs .no { color: #ff6b6b; } .sx-tipjobs .ok { color: #fff; } .sx-tipjobs .me { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sx-tiplines { display: grid; text-align: center; padding-top: 6px; }
.sx-tiplines .up { color: #7cffb2; } .sx-tiplines .down { color: #ff8a8a; }
.sx-tipscore { display: block; text-align: center; margin-top: 4px; font-size: 11px; color: #aab5cc; }
.sx-tipbad { display: block; text-align: center; margin-top: 6px; color: #ff8a8a; font-weight: 800; }
.sx-menu, .sx-lvpop { position: absolute; z-index: 1001; display: grid; gap: 2px; min-width: 120px; padding: 6px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p); box-shadow: 0 10px 30px #0008; }
.sx-menu button, .sx-lvpop > button { font: inherit; font-size: 13px; font-weight: 700; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--x-text); text-align: left; cursor: pointer; }
.sx-menu button:hover, .sx-lvpop > button:hover { background: var(--x-hover); }
.sx-menu button.red { color: var(--x-bad); }
.sx-lvpop { min-width: 220px; gap: 6px; }
.sx-lvpop b { font-size: 13px; color: var(--x-head); padding: 2px 4px; }
.sx-lvpop > button.on { background: #5b8def; color: #fff; }
.sx-lvrow2 { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.sx-lvrow2 input { flex: 1; accent-color: var(--x-blue); }
.sx-lvrow2 output { font-size: 13px; font-weight: 900; color: var(--x-gold); width: 50px; text-align: right; }

/* 대화 상자 */
.sx-dlg { width: min(620px, calc(100vw - 24px)); max-height: min(860px, calc(100vh - 24px)); padding: 0; border: 1px solid var(--x-line); border-radius: 14px; background: var(--x-p); color: var(--x-text); box-shadow: 0 30px 80px #000a; display: none; flex-direction: column; overflow: hidden; }
.sx-dlg.wide { width: min(980px, calc(100vw - 24px)); }
.sx-dlg[open] { display: flex; }
.sx-dlg::backdrop { background: #000b; }
.sx-dh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--x-line); }
.sx-dh h3 { margin: 0; font-size: 18px; font-weight: 900; color: var(--x-head); }
.sx-x { font: inherit; font-size: 24px; line-height: 1; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--x-muted); cursor: pointer; }
.sx-x:hover { background: var(--x-hover); color: var(--x-head); }
.sx-db { padding: 14px 18px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.sx-df { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--x-line); }
.sx-dlg .sx-in, .sx-dlg input[type=number] { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); color: var(--x-text); }
.sx-dlg .sx-in.search { width: 100%; border-color: var(--x-blue); padding: 9px 12px; }
.sx-dlg .sx-muted { color: var(--x-dim); }
.sx-count { margin: 0; font-size: 12px; color: var(--x-muted); }
/* 제작: 고르기 */
.sx-db.craft { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.sx-cpick { display: grid; gap: 8px; align-content: start; min-width: 0; }
.sx-cgrid { max-height: 470px; overflow-y: auto; padding: 8px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-bg2); display: grid; gap: 10px; align-content: start; }
.sx-band b { display: block; font-size: 12px; font-weight: 800; color: var(--x-muted); margin-bottom: 4px; }
.sx-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 3px; }
.sx-cell { aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 1px solid var(--x-line); border-radius: 6px; background: var(--x-p2); cursor: pointer; }
.sx-cell:hover, .sx-cell:focus-visible { border-color: var(--x-blue); outline: none; }
.sx-cell img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.sx-cprev { display: grid; gap: 6px; align-content: start; }
.sx-cprev-h { font-size: 12px; font-weight: 800; color: var(--x-muted); }
.sx-cprev-box { min-height: 300px; display: grid; place-items: center; border: 1px dashed var(--x-line2); border-radius: 10px; padding: 10px; }
.sx-cprev-box .sx-tipbox, .sx-eprev .sx-tipbox { margin: 0 auto; }
/* 제작: 편집 */
.sx-ehead { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--x-line); }
.sx-ehead > div { flex: 1; display: grid; }
.sx-ehead b { font-size: 16px; font-weight: 900; }
.sx-ehead small { font-size: 12px; color: var(--x-muted); }
.sx-ecols { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 18px; align-items: start; }
.sx-eprev { display: grid; gap: 6px; position: sticky; top: 0; }
.sx-eopts { display: grid; gap: 14px; }
.sx-esec { display: grid; gap: 6px; }
.sx-esec h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--x-head); }
.sx-adj { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-adjc { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--x-line); border-radius: 8px; text-align: center; font-size: 11px; font-weight: 700; color: var(--x-muted); }
.sx-pmrow { display: flex; align-items: center; gap: 2px; }
.sx-pmrow input { width: 66px; text-align: center; font-weight: 800; padding: 4px; }
.sx-pm { font: inherit; width: 22px; height: 26px; border: 0; border-radius: 4px; background: var(--x-p3); color: var(--x-head); cursor: pointer; }
.sx-pm:hover { background: var(--x-line2); }
.sx-applied { display: flex; flex-wrap: wrap; gap: 4px; }
.sx-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 3px; border-radius: 6px; background: var(--x-p3); font-size: 11px; font-weight: 700; }
.sx-tag img { width: 20px; height: 20px; image-rendering: pixelated; }
.sx-tagx { font: inherit; border: 0; background: none; color: var(--x-bad); cursor: pointer; padding: 0 2px; }
.sx-scrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sx-scbtns { display: flex; gap: 4px; }
.sx-scbtn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--x-line2); border-radius: 8px; background: var(--x-p2); cursor: pointer; }
.sx-scbtn img { width: 28px; height: 28px; image-rendering: pixelated; }
.sx-scbtn i { position: absolute; right: 1px; bottom: 0; font-style: normal; font-size: 9px; font-weight: 900; color: var(--x-gold); text-shadow: 0 1px 2px #000; }
.sx-scbtn:hover:not(:disabled) { border-color: var(--x-blue); }
.sx-scbtn:disabled { opacity: .35; cursor: not-allowed; }
/* 몬스터 고르기 */
.sx-mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sx-mcard { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-p); color: var(--x-text); font: inherit; text-align: left; cursor: pointer; }
.sx-mcard:hover { border-color: var(--x-blue); }
.sx-mtx { display: grid; gap: 1px; min-width: 0; }
.sx-mtx b { font-size: 14px; font-weight: 800; }
.sx-mtx small { font-size: 11px; color: var(--x-muted); }
/* 도핑·슬롯 */
.sx-dsub { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: var(--x-head); }
.sx-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.sx-dope { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--x-line); border-radius: 8px; background: var(--x-p); color: var(--x-text); font: inherit; text-align: left; cursor: pointer; opacity: .65; }
.sx-dope.on { opacity: 1; border-color: var(--x-blue); background: var(--x-on-bg); }
.sx-slotrow { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--x-line); border-radius: 10px; }
.sx-slotrow > div { flex: 1; display: grid; min-width: 0; }
/* 직업 바꾸기 전 묻는 창 */
.sx-dlg.sx-ask { width: min(460px, calc(100vw - 24px)); }
.sx-askmsg { margin: 0; font-size: 14px; line-height: 1.6; color: var(--x-text); word-break: keep-all; }
.sx-askacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sx-slotrow b { font-size: 14px; }
.sx-slotrow small { font-size: 12px; color: var(--x-muted); }

/* ═════ N방컷 계산기 ═════ */
.nx-title { text-align: center; }
.nx-title h2 { font-size: 22px; font-weight: 900; color: var(--x-head); border: 0; padding: 0; }
.nx-title h2 small { font-size: 15px; color: var(--x-muted); }
.nx-title p { font-size: 12px; color: var(--x-muted); }
.nx-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.nx-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-row { display: grid; gap: 14px; align-items: start; }
.nx-row.r1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
.nx-row.r2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr); }
.nx-c { background: var(--x-p); border: 1px solid var(--x-line); border-radius: 18px; padding: 14px; min-width: 0; }
.nx-ch { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nx-ch h2 { font-size: 17px; font-weight: 900; color: var(--x-head); border: 0; padding: 0; margin: 0; }
.nx-ic img { width: 22px; height: 22px; object-fit: contain; }
.nx-sum { margin-left: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--x-p3); color: var(--x-muted); }
.nx-cb { display: grid; gap: 10px; }
.nx-grid { display: grid; gap: 8px; }
.nx-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx-f { position: relative; display: grid; gap: 2px; padding: 6px 10px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p2); min-width: 0; }
.nx-f > span { font-size: 11px; font-weight: 700; color: var(--x-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-f input, .nx-f select, .nx-f output { width: 100%; font: inherit; font-size: 15px; font-weight: 800; padding: 0; border: 0; background: transparent; color: var(--x-text); }
.nx-f input:focus, .nx-f select:focus { outline: none; }
.nx-f:focus-within { border-color: var(--x-blue); }
.nx-f.wide, .nx-f.w2 { grid-column: span 2; }
.nx-f.grow { flex: 1; }
.nx-f.tot { background: var(--x-p3); }
.nx-f.tot output { color: var(--x-gold); }
.nx-f.changed { border-color: var(--x-orange); }
.nx-auto { position: absolute; top: 4px; right: 6px; font: inherit; font-size: 10px; font-weight: 800; padding: 0 6px; border: 1px solid var(--x-orange); border-radius: 999px; background: none; color: var(--x-orange); cursor: pointer; }
.nx-ro { color: var(--x-gold) !important; }
.nx-stat { display: grid; gap: 6px; }
.nx-srow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nx-srow.main .nx-f:first-child { border-color: var(--x-good-line); }
.nx-note { margin: 0; font-size: 11px; color: var(--x-dim); line-height: 1.5; }
.nx-warn { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--x-bad-bg); color: var(--x-bad); font-size: 13px; font-weight: 700; }
.nx-skic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--x-p3); }
.nx-skic img { width: 32px; height: 32px; image-rendering: pixelated; }
.nx-radio { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; }
.nx-radio b { width: 100%; font-size: 13px; }
.nx-radio label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nx-radio input { accent-color: var(--x-blue); }
.nx-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.nx-chip { display: grid; gap: 0; padding: 4px 9px; border: 1px solid var(--x-line2); border-radius: 8px; background: transparent; color: var(--x-muted); font: inherit; text-align: left; cursor: pointer; }
.nx-chip b { font-size: 12px; font-weight: 800; }
.nx-chip small { font-size: 10px; }
.nx-chip.on { border-color: var(--x-blue); background: var(--x-on-bg); color: var(--x-on-text); }
.nx-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.nx-fchip { font: inherit; font-size: 11px; font-weight: 700; padding: 3px 9px; border: 1px solid var(--x-line2); border-radius: 999px; background: transparent; color: var(--x-muted); cursor: pointer; }
.nx-fchip.on { border-color: var(--x-blue); color: var(--x-on-text); background: var(--x-on-bg); }
.nx-mobsel { display: flex; gap: 6px; align-items: stretch; }
.nx-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.nx-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nx-toggle i { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--x-p3); transition: background .15s; }
.nx-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--x-knob); transition: transform .15s; }
.nx-toggle input:checked + i { background: var(--x-blue); }
.nx-toggle input:checked + i::after { transform: translateX(14px); background: #fff; }
.nx-toggle input:focus-visible + i { box-shadow: 0 0 0 2px #5b8def80; }
.nx-mob { display: grid; gap: 8px; }
.nx-mpic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; background: var(--x-p2); }
.nx-mpic img { max-width: 58px; max-height: 58px; object-fit: contain; }
.nx-kv { margin: 0; display: grid; gap: 1px; }
.nx-kv div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px dashed var(--x-line); }
.nx-kv dt { color: var(--x-muted); font-weight: 600; white-space: nowrap; }
.nx-kv dd { margin: 0; font-weight: 800; text-align: right; }
.nx-kv div.em dd { color: var(--x-gold); }
.nx-kv.res dd { color: var(--x-head); font-size: 14px; }
.nx-sumline { display: grid; gap: 3px; font-size: 12px; color: var(--x-muted); }
.nx-sumline b { font-size: 16px; color: var(--x-gold); }
.nx-ro.em { font-size: 17px; }
/* 스킬·버프: 직업 버프·패시브 레벨 입력 줄 */
.nx-bsec { display: grid; gap: 5px; padding-top: 10px; border-top: 1px solid var(--x-line); }
.nx-bsec h3 { margin: 0; font-size: 14px; font-weight: 900; color: var(--x-head); border: 0; padding: 0; }
.nx-hint { margin: 0 0 2px; font-size: 11px; color: var(--x-muted); }
.nx-lvrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p2); opacity: .62; }
.nx-lvrow.on { opacity: 1; border-color: var(--x-on-line); }
/* 이름 부분(아이콘 + 이름·효과)을 눌러 켜고 끈다 */
.nx-lvbtn { grid-column: 1 / 3; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.nx-lvbtn { cursor: pointer; }
button.nx-lvbtn:hover .nx-lvtx b { color: var(--x-link); }
.nx-lvgrid .nx-lvbtn { grid-template-columns: 34px minmax(0, 1fr); }
.nx-lvic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--x-p3); }
.nx-lvic img { max-width: 28px; max-height: 28px; image-rendering: pixelated; }
.nx-lvtx { display: grid; min-width: 0; }
.nx-lvtx b { font-size: 13px; font-weight: 800; color: var(--x-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-lvtx small { font-size: 11px; color: var(--x-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-lvrow.on .nx-lvtx small { color: var(--x-link); }
/* N방컷 버프 정보: 이름·효과가 「…」로 잘리지 않게 줄바꿈해서 다 보여 준다 */
#nxBuff .nx-lvtx small, #nxSkill .nx-lvtx small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#nxBuff .nx-lvtx b, #nxSkill .nx-lvtx b { white-space: nowrap; overflow: visible; text-overflow: clip; }
.nx-lvgrid .nx-lvrow.span2 { grid-column: 1 / -1; }
#nxBuff .nx-lvrow.wrapname .nx-lvtx b, #nxSkill .nx-lvrow.wrapname .nx-lvtx b { white-space: normal; }
.nx-f > span .nx-fhint { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--x-dim); }
.nx-lvbox { display: inline-flex; align-items: center; gap: 4px; }
.nx-lvbox input { width: 48px; font: inherit; font-size: 14px; font-weight: 800; text-align: center; padding: 3px 2px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p); color: var(--x-text); }
.nx-lvbox input:focus { outline: none; border-color: var(--x-blue); }
.nx-max { font: inherit; font-size: 10px; font-weight: 800; padding: 4px 7px; border: 1px solid var(--x-line2); border-radius: 6px; background: transparent; color: var(--x-muted); cursor: pointer; white-space: nowrap; }
.nx-max.on { border-color: var(--x-blue); background: var(--x-on-bg); color: var(--x-on-text); }
.nx-chips.dope { max-height: 168px; overflow: auto; }
/* N방컷: 3번째 줄(버프 정보) · 스킬 카드 · 탭 · 버프 격자 · 결과 */
.nx-row.r3 { grid-template-columns: minmax(0, 1fr); }
.nx-skhead { display: flex; align-items: center; gap: 10px; }
.nx-skhead .nx-skic { flex: none; width: 46px; height: 46px; }
.nx-opts { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--x-line); border-radius: 12px; background: var(--x-p2); }
.nx-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nx-optl { display: grid; min-width: 0; }
.nx-optl b { font-size: 13px; font-weight: 800; color: var(--x-head); }
.nx-optl small { font-size: 11px; color: var(--x-dim); }
.nx .nx-sel { padding: 5px 8px; font-size: 13px; font-weight: 700; }
.nx-seg { display: inline-flex; border: 1px solid var(--x-line2); border-radius: 8px; overflow: hidden; flex: none; }
.nx-seg button { padding: 6px 11px; border: 0; background: transparent; color: var(--x-muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nx-seg button + button { border-left: 1px solid var(--x-line2); }
.nx-seg button.on { background: var(--x-on-bg); color: var(--x-on-text); }
.nx-sktags { display: flex; flex-wrap: wrap; gap: 5px; }
.nx-tag { padding: 3px 9px; border-radius: 999px; background: var(--x-p3); color: var(--x-muted); font-size: 11px; font-weight: 800; }
.nx-tag.warn { background: var(--x-bad-bg); color: var(--x-bad); }
.nx-tag.el-F { background: var(--x-elbg-F); color: var(--x-el-F); } .nx-tag.el-I { background: var(--x-elbg-I); color: var(--x-el-I); } .nx-tag.el-L { background: var(--x-elbg-L); color: var(--x-el-L); } .nx-tag.el-S { background: var(--x-elbg-S); color: var(--x-el-S); } .nx-tag.el-H { background: var(--x-elbg-H); color: var(--x-el-H); }
.nx-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--x-p2); overflow-x: auto; }
.nx-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--x-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.nx-tab:hover { color: var(--x-head); }
.nx-tab.on { background: var(--x-p3); color: var(--x-head); box-shadow: 0 1px 0 var(--x-hover) inset; }
.nx-tab i { min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--x-blue); color: #fff; font-size: 11px; font-style: normal; line-height: 18px; }
.nx-lvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px; }
.nx-lvgrid .nx-lvrow { grid-template-columns: 34px minmax(0, 1fr) auto; }
.nx-dopes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.nx-dope { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p2); color: var(--x-text); font: inherit; text-align: left; cursor: pointer; opacity: .6; }
.nx-dope:hover { opacity: .85; }
.nx-dope.on { opacity: 1; border-color: var(--x-blue); background: var(--x-on-bg); }
.nx-dope.on.idle { border-color: var(--x-amber-line); background: var(--x-amber-bg); }
.nx-dope.idle .nx-lvtx small { color: var(--x-amber); }
.nx-warn.soft { background: var(--x-amber-bg); color: var(--x-amber); font-weight: 600; font-size: 12px; }
.nx-effsum { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; background: var(--x-note-bg); font-size: 12px; }
.nx-effsum b { color: var(--x-link); }
.nx-effsum span { color: var(--x-text2); }
.nx-hero { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; }
.nx-hc { display: grid; gap: 1px; padding: 9px 10px; border-radius: 12px; background: var(--x-p2); text-align: center; }
.nx-hc small { font-size: 11px; font-weight: 700; color: var(--x-muted); }
.nx-hc strong { font-size: 20px; font-weight: 900; color: var(--x-head); }
.nx-hc em { font-size: 11px; font-style: normal; color: var(--x-dim); }
.nx-hc.main { background: var(--x-hero-bg); }
.nx-hc.main strong { color: var(--x-gold); font-size: 24px; }
.nx-bars { display: grid; gap: 4px; }
.nx-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 52px 78px; align-items: center; gap: 8px; font-size: 12px; }
.nx-bar b { font-weight: 800; color: var(--x-text2); }
.nx-bart { height: 10px; border-radius: 999px; background: var(--x-p3); overflow: hidden; }
.nx-bart i { display: block; height: 100%; border-radius: 999px; background: var(--x-bar); }
.nx-bar.mode .nx-bart i { background: var(--x-gold); }
.nx-bar .p { font-weight: 800; text-align: right; color: var(--x-head); font-variant-numeric: tabular-nums; }
.nx-bar .c { color: var(--x-dim); text-align: right; font-variant-numeric: tabular-nums; }
.nx-kv div.warn dd { color: var(--x-bad); }
.nx-aprest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 7px 10px; border-radius: 10px; background: var(--x-note-bg); color: var(--x-link); font-size: 13px; font-weight: 800; }
@media (max-width: 700px) {
  .nx-lvgrid { grid-template-columns: minmax(0, 1fr); }
  .nx-lvgrid .nx-lvrow, .nx-lvrow { grid-template-columns: 30px minmax(0, 1fr); }
  .nx-lvrow .lvs { grid-column: 1 / -1; justify-self: end; }
  .nx-bar { grid-template-columns: 40px minmax(0, 1fr) 46px; }
  .nx-bar .c { display: none; }
}
.nx-max.off { padding: 4px 6px; }
.nx-max:disabled, .nx-lvbox input:disabled { opacity: .4; cursor: not-allowed; }
.nx-lvrow.lock { opacity: .45; }
.nx-lvrow.lock .nx-lvtx small, .nx-lvrow.idle .nx-lvtx small { color: var(--x-bad); }
.nx-f.has-max { padding-right: 58px; }
.nx-max.inl { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
/* AP: 레벨별 최대 · 초과 안내 */
.nx-sum.rest { color: var(--x-link); }
.nx-sum.over { color: var(--x-bad); background: var(--x-bad-bg); }
.nx-apwarn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nx-apmsg { margin: 0; padding: 6px 9px; border-radius: 8px; background: var(--x-amber-bg); color: var(--x-amber); font-size: 12px; font-weight: 700; }
.nx-apmax { position: absolute; right: 6px; top: 6px; font: inherit; font-size: 10px; font-weight: 800; padding: 1px 5px; border: 1px solid var(--x-on-line); border-radius: 5px; background: var(--x-on-bg); color: var(--x-link); cursor: pointer; }

/* 설명 글(광고 심사·검색용 본문) */
.sx-article { max-width: 860px; margin: 20px auto 6px; padding: 22px 24px; border: 1px solid var(--x-line); border-radius: 14px; background: var(--x-p); color: var(--x-text2); font-size: 15px; line-height: 1.75; }
.sx-article h2 { font-size: 20px; font-weight: 900; color: var(--x-head); border: 0; padding: 0; margin: 0 0 8px; }
.sx-article h3 { font-size: 16px; font-weight: 800; color: var(--x-head); margin: 18px 0 6px; }
.sx-article p { margin: 0 0 8px; }
.sx-article ul { margin: 0; padding-left: 20px; }
.sx-article li { margin-bottom: 4px; }
.sx-article b { color: var(--x-head); }
.sx-article-note { font-size: 13px; color: var(--x-muted); margin-top: 12px !important; }

@media (max-width: 1180px) {
  .sx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sx-col:nth-child(3) { grid-column: 1 / -1; }
  .nx-row.r1, .nx-row.r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nx-row.r2 #nxRes { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sx-grid, .sx-col:nth-child(3), .nx-row.r1, .nx-row.r2 { grid-template-columns: minmax(0, 1fr); }
  .sx-jobcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-db.craft, .sx-ecols { grid-template-columns: minmax(0, 1fr); }
  .sx-cprev { display: none; }
  .sx-mgrid, .sx-dgrid { grid-template-columns: minmax(0, 1fr); }
  .sx-eprev { position: static; }
  .nx-grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-article { padding: 16px; }
}

/* 밝은 화면에서 카드가 흰 배경과 구분되도록 옅은 그림자 */
.sx-p, .nx-c, .sx-article { box-shadow: var(--x-shadow); }

/* 진한 색 배지·버튼 위 글자는 늘 흰색 */
.sx-badge[class*="el-"].r3 { color: #fff; }
.sx-btn.tiny.blue { color: #fff; }
.sx-btn.tiny.red { color: var(--x-bad); border-color: var(--x-bad-line); }
/* 넓은 화면: 다크 모드 버튼을 상단 오른쪽 구석에 */
header.top { position: relative; }
.theme-btn { position: absolute; top: 14px; right: 18px; margin: 0; z-index: 3; }
@media (max-width: 700px) { .theme-btn { top: 8px; right: 10px; padding: 5px 10px; font-size: 12px; } }

/* 장비 시뮬레이터: 착용 조건이 부족해 계산에서 빠진 장비 · 장착 실패 안내 */
.sx-slot.bad img { opacity: .4; filter: grayscale(1); }
.sx-offtag { position: absolute; left: 2px; right: 2px; bottom: 2px; padding: 0 2px; border-radius: 4px; background: var(--x-bad-bg); color: var(--x-bad); font-size: 9px; font-style: normal; font-weight: 900; text-align: center; line-height: 14px; }
.sx-toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 10px; background: #2a1416; color: #ffd6d6; border: 1px solid #7a3434; font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: 0 10px 30px #0006; transition: opacity .4s, transform .4s; }
.sx-toast.out { opacity: 0; transform: translate(-50%, 8px); }

/* 장비 시뮬레이터: 3칸 구성(장비 · 스탯 · 인벤토리) */
.sx-eqsum { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--x-line); }
.sx-eqsum h4 { margin: 0; font-size: 13px; font-weight: 800; color: var(--x-head); }
.sx-eqsumlist { display: flex; flex-wrap: wrap; gap: 5px; }
.sx-eqs { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--x-p2); font-size: 12px; }
.sx-eqs small { color: var(--x-muted); font-weight: 700; }
.sx-eqs b { color: var(--x-head); font-weight: 900; }
.sx-statbuff { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--x-line); }
.sx-inv.no { opacity: .55; }
.sx-noflag { position: absolute; top: 1px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--x-red); color: #fff; font-size: 10px; font-style: normal; font-weight: 900; line-height: 14px; text-align: center; }
.sx-tipcmp { display: grid; gap: 1px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff22; font-size: 11px; text-align: center; }
.sx-tipcmp b { color: #aab5cc; font-weight: 700; }
.sx-tipcmp .up { color: #7cffb2; } .sx-tipcmp .down { color: #ff8a8a; }

/* N방컷: 방어 입력 · vs 몬스터(피격·회피) · 즐겨찾기 · 마스터리북 */
.nx-subh { margin: 4px 0 0; font-size: 13px; font-weight: 900; color: var(--x-head); border: 0; padding: 0; }
.nx-vs { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--x-line); }
.nx-kv div.hurt dd { color: var(--x-red); }
.nx-star { flex: none; width: 40px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p2); color: var(--x-muted); font: inherit; font-size: 18px; cursor: pointer; }
.nx-star.on { color: #f5b301; border-color: #f0c27a; }
.nx-star:disabled { opacity: .4; cursor: default; }
.nx-lvctl { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; }
.nx .nx-book { padding: 3px 6px; font-size: 11px; font-weight: 700; border-radius: 6px; }
.nx-deftag { margin-left: 6px; padding: 0 5px; border-radius: 4px; background: var(--x-p3); color: var(--x-muted); font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.sx-tipreqs { display: grid; gap: 1px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff22; font-size: 11px; text-align: center; }
.sx-tipreqs b { color: #aab5cc; font-weight: 700; }
.sx-tipreqs .up { color: #7cffb2; } .sx-tipreqs .down { color: #ff8a8a; }
.nx-stagehd { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12px; font-weight: 900; color: var(--x-muted); }
.nx-stagehd:first-child { margin-top: 0; }

/* ═════ 장비 시뮬레이터 새 화면(2단: 캐릭터 카드 + 탭) — 사이트 주황 포인트 ═════ */
#view-gear { --x-blue: #e8870c; --x-blue2: #c96f00; --x-on-bg: #fff1de; --x-on-text: #8a4b00; --x-on-line: #f3c48a; --x-link: #b86200;
  --x-hero-bg: linear-gradient(135deg, #fff6ea, #ffe7c8); --x-bar: #f0b064; }
:root[data-theme="dark"] #view-gear { --x-blue: #f39c3d; --x-blue2: #d9821f; --x-on-bg: #3a2a12; --x-on-text: #ffd9a8; --x-on-line: #7a5a2a; --x-link: #ffb766;
  --x-hero-bg: linear-gradient(135deg, #3a2a12, #261c10); --x-bar: #b57a33; }
#view-gear .sx-btn.blue { color: #fff; }
.sx2 { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.sx2-side { position: sticky; top: 12px; display: grid; gap: 12px; }
/* 착용 장비: 인게임 장비창 배치(6×6) — 새 디자인에 맞춘 둥근 칸 */
.sx2-equip { gap: 6px; padding: 10px; border-radius: 14px; background: var(--x-p2); border: 1px solid var(--x-line); }
.sx2-equip .sx-slot { border-radius: 10px; border-style: dashed; border-color: var(--x-line2); background: var(--x-p); transition: border-color .12s, box-shadow .12s, transform .12s; }
.sx2-equip .sx-slot span { font-size: 10.5px; color: var(--x-dim); }
.sx2-equip .sx-slot.has { border-style: solid; border-width: 2px; background: var(--x-p); }
.sx2-equip .sx-slot:hover, .sx2-equip .sx-slot:focus-visible { border-color: var(--x-blue); box-shadow: 0 0 0 3px #e8870c33; transform: translateY(-1px); outline: none; }
.sx2-equip .sx-slot.void { border: 0; background: transparent; cursor: default; box-shadow: none; transform: none; pointer-events: none; }
.sx2-equip .sx-slot.bad { background: var(--x-bad-bg); box-shadow: inset 0 0 0 1px var(--x-bad-line); }
.sx2-equip .sx-slot.bad img { opacity: .45; filter: grayscale(1); }
.sx2-equip .sx-slot.bad::after { display: none; }
.sx2-ammo { margin: 6px 0 0; font-size: 12px; font-weight: 700; color: var(--x-bad); }
.sx2-main { display: grid; gap: 12px; min-width: 0; }
.sx2-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sx2-top .sx-fold { display: none; }
@media (max-width: 1300px) and (min-width: 1001px) { .sx2-top { grid-template-columns: minmax(0, 1fr); } }
.sx2 .sx-p { border-radius: 16px; }
.sx2-main .sx-fold { display: none; }
.sx2-side .sx-fold { display: none; }
@media (max-width: 1000px) {
  .sx2 { grid-template-columns: minmax(0, 1fr); }
  .sx2-side { position: static; }
}
@media (max-width: 700px) {
  .sx2-top { grid-template-columns: minmax(0, 1fr); }
}
/* N방컷: 2번째 줄 [스킬 | 버프], 3번째 줄 [몬스터 | 계산 결과] */
.nx-row.r2b { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); }
.nx-row.r3b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .nx-row.r2b, .nx-row.r3b { grid-template-columns: minmax(0, 1fr); } }
#nxBuff .nx-lvgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* N방컷 버프·스킬 줄: 좁은 화면에서 버튼(레벨·마스터·마스터리북)은 이름 아래 줄 오른쪽 끝에 */
@media (max-width: 700px) {
  .nx-lvgrid .nx-lvrow > .nx-lvctl, .nx-lvrow > .nx-lvctl { grid-column: 1 / -1; justify-self: end; }
}

/* N방컷: 화면에서 스탯 읽기 */
.nx-cap { position: relative; max-height: 62vh; overflow: auto; border: 1px solid var(--x-line); border-radius: 10px; background: #000; }
.nx-capimg { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; user-select: none; }
.nx-caprect { position: absolute; display: none; border: 2px solid #ff4d4f; background: rgba(255, 77, 79, .15); pointer-events: none; }
.nx-capraw pre { white-space: pre-wrap; font-size: 12px; max-height: 160px; overflow: auto; background: var(--x-p2); padding: 8px; border-radius: 8px; }
.nx-btn.blue { background: #2f6fed; border-color: #2f6fed; color: #fff; }

/* 장비 시뮬레이터 안의 N방컷 */
.sx-nhit { margin-top: 18px; }
.sx-nhith { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: var(--x-head); }
.nx-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-p2); }
.nx-delta b { font-weight: 800; } .nx-delta span { font-weight: 700; }
.nx-delta.good { border-color: #2e9e5b; } .nx-delta.good span { color: #2e9e5b; }
.nx-delta.bad { border-color: #d0453a; } .nx-delta.bad span { color: #d0453a; }
.nx-delta .nx-btn { margin-left: auto; }
/* 장비 시뮬레이터 · N방컷: 스탯창 보정 띠 */
.nx-adjbar { display: grid; gap: 8px; }
.nx-adjbar:empty { display: none; }
.nx-adj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border: 1px solid var(--x-line); border-radius: 10px; background: var(--x-amber-bg); }
.nx-adj b { font-weight: 800; color: var(--x-amber); } .nx-adj span { font-size: 13px; }
.nx-adj .nx-btn { margin-left: auto; }
/* 좁은 화면: 버프 칸·선택 버튼이 카드 밖으로 나가지 않게 */
.nx-cb { grid-template-columns: minmax(0, 1fr); }
.nx-lvgrid { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
@media (max-width: 520px) {
  .nx-seg { display: flex; flex-wrap: wrap; max-width: 100%; }
  .nx-seg button { flex: 1 1 auto; white-space: normal; }
}

/* 스탯창 읽기: 읽은 부분 미리보기 */
.nx-capprev { display: block; max-width: 100%; height: auto; margin-top: 6px; border: 1px solid var(--x-line); border-radius: 6px; image-rendering: pixelated; }

/* 스탯창에서 읽은 값 상자 */
.nx-scr { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--x-line); border-radius: 14px; background: var(--x-p); }
.nx-scrh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nx-scrh > b { font-size: 15px; font-weight: 900; color: var(--x-head); }
.nx-scrh .nx-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.nx-scrnote { margin: 0; font-size: 12px; color: var(--x-muted); }
.nx-scrprev canvas { display: block; max-width: 100%; height: auto; border: 1px solid var(--x-line); border-radius: 6px; image-rendering: pixelated; }
.nx-scrgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 6px; }
.nx-scrrow { display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid var(--x-line2); border-radius: 10px; background: var(--x-p2); }
.nx-scrrow.main { border-color: var(--x-on-line); }
.nx-scrrow > b { width: 32px; font-size: 13px; font-weight: 900; color: var(--x-head); }
.nx-scrtot { min-width: 34px; font-weight: 900; text-align: right; }
.nx-scrrow input { width: 64px; -moz-appearance: textfield; font: inherit; font-size: 14px; font-weight: 800; text-align: center; padding: 3px 2px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p); color: var(--x-text); }
.nx-scradj { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--x-amber); white-space: nowrap; }
.nx-optl small.warn { color: var(--x-bad); } .nx-optl small.ok { color: #2e9e5b; }
.nx-scrrow input::-webkit-outer-spin-button, .nx-scrrow input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 장비 시뮬레이터 스탯 칸: 「+」 고치기 · 공격력 비교 · 보정 */
.sx-st td.plus { white-space: nowrap; }
.sx-plusin { width: 62px; font: inherit; font-size: 13px; font-weight: 800; text-align: right; padding: 3px 6px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p); color: var(--x-text); -moz-appearance: textfield; }
.sx-plusin::-webkit-outer-spin-button, .sx-plusin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sx-plusin:focus { outline: none; border-color: var(--x-blue); }
.sx-adjk { display: block; font-size: 11px; font-weight: 700; color: var(--x-amber); }
.sx-stx { display: grid; gap: 6px; margin-top: 8px; }
.sx-stxr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.sx-stxr > b { font-size: 12px; font-weight: 800; color: var(--x-head); }
.sx-stxr .ok { color: #2e9e5b; font-weight: 700; } .sx-stxr .warn { color: var(--x-bad); font-weight: 700; }
.sx-stxr .sx-adjk { display: inline; }
.sx-atkin { width: 130px; font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--x-line2); border-radius: 6px; background: var(--x-p); color: var(--x-text); }
.sx-flash { animation: sxFlash 1.6s ease-out; }
@keyframes sxFlash { 0%, 40% { box-shadow: 0 0 0 3px var(--x-blue); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* 버프 타이머 알림 음량 줄 */
.buff-vol { align-items: center; }
.buff-vol input[type="range"] { flex: 1; min-width: 120px; }
.buff-vol-out { min-width: 40px; font-weight: 700; color: var(--accent); }

/* 드랍 테이블 검색 화면: 표 안에서만 스크롤(머리줄은 고정) */
.table-scroll { max-height: min(62vh, 600px); overflow-y: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.drop-list td, .drop-list th { text-align: left; }
.drop-list td:last-child, .drop-list th:last-child { text-align: right; }
.drop-list tbody tr { cursor: pointer; }
.drop-list tbody tr:hover { background: var(--hover); }
.drop-list td.pic { width: 44px; padding-top: 4px; padding-bottom: 4px; }
.drop-list td.pic img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; display: block; }
.drop-list td.pic .noimg { display: grid; place-items: center; width: 36px; height: 36px; }
.drop-list td.name { white-space: normal; font-weight: 600; }
.drop-list td.name a { color: inherit; text-decoration: none; }
.drop-list td.where { color: var(--muted); white-space: normal; }
.drop-list .tag-boss { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--accent); color: #111; }
@media (max-width: 640px) { .drop-list td.where { display: none; } .drop-list thead th:nth-child(4) { display: none; } }

/* 오른쪽 아래 「문의하기」 단추(menu.js) */
.fab-contact { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: #111; box-shadow: 0 4px 14px #0004; cursor: pointer; transition: transform .12s; }
.fab-btn:hover { transform: scale(1.06); }
.fab-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fab-card { width: 260px; padding: 14px; border-radius: 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px #0003; }
.fab-card[hidden] { display: none; }
.fab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fab-head strong { font-size: 16px; }
.fab-x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.fab-card p { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.fab-link { display: block; padding: 10px 12px; margin-top: 6px; border-radius: 8px; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; }
.fab-link.kakao { background: #FEE500; color: #191919; }
.fab-link.mail { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.fab-link:hover { filter: brightness(.96); }
@media (max-width: 640px) { .fab-contact { right: 14px; bottom: 14px; } .fab-btn { width: 50px; height: 50px; } }
/* 아이템 글 페이지의 큰 그림 칸(.big-pic.item): 감지 목록 줄(.item)의 칸 나눔·바탕이 섞여 들어와 그림이 왼쪽에 붙던 것을 바로잡는다 */
.book .big-pic.item { display: grid; grid-template-columns: 1fr; place-items: center; padding: 0; gap: 0; border: 0; background: none; box-shadow: none; }

/* 로고: 메이플 메소 주머니(ui/logo.png, 원래 크기 32×31 도트 그림, 2026-12-03 사용자 선택). 픽셀이 고르게 보이도록 정수 배로만 키운다 */
.top .brand .logo { display: block; flex: none; width: 32px; height: 31px; margin-right: -4px; background: url("ui/logo.png") no-repeat center / 32px 31px; image-rendering: pixelated; border-radius: 0; box-shadow: none; }
.home-logo strong { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.home-logo strong::before { content: ""; flex: none; width: 64px; height: 62px; background: url("ui/logo.png") no-repeat center / 64px 62px; image-rendering: pixelated; }
@media (max-width: 640px) { .home-logo strong { gap: 10px; } }

/* ── 모바일 점검(2026-12-03) ──
   위 메뉴 줄이 내용 길이(약 1,100px)만큼 늘어나 휴대폰에서 페이지 전체가 화면보다 넓어지던 문제:
   메뉴 줄·사이트 이름 줄을 화면 폭에 맞추고, 메뉴는 그 안에서 옆으로 밀어 보게 한다. */
@media (max-width: 760px) {
  .top > .brand, .top > .menu { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
}
/* 메뉴 줄 끝 흐리게: 옆으로 밀면 메뉴가 더 있다는 표시(menu.js 가 more-l·more-r 를 붙인다) */
@media (max-width: 760px) {
  .top .menu.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .top .menu.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
  .top .menu.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
}
/* 휴대폰 안내(화면 공유가 안 되는 기기에서만 app.js 가 넣는다) */
.pc-only { margin: 12px 16px 0; padding: 12px 14px; border-radius: 6px; background: #fff4d6; border: 1px solid #f0c75e; color: #5a4300; font-size: 15px; line-height: 1.55; font-weight: 600; }
:root[data-theme="dark"] .pc-only { background: #3a3220; border-color: #6b5a2a; color: #f3e2b0; }
@media (max-width: 760px) {
  /* 드랍 테이블·몬스터·아이템 칸: 이름이 「…」로 잘리지 않고 두 줄까지 보이게 */
  .drop-tile .nm { white-space: normal; overflow: visible; text-overflow: clip; word-break: keep-all; overflow-wrap: anywhere; }
  .drop-tile .rt { white-space: nowrap; }
  /* 드랍 테이블 지역·분류 단추: 화면 하나를 다 차지하지 않도록 두 줄로 놓고 옆으로 밀어 본다 */
  #chipsMob, #chipsItem, .chips-2row { justify-items: start; display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  #chipsMob[hidden], #chipsItem[hidden] { display: none; }
  .chips-2row { margin-bottom: 4px; }
  /* 누르기 쉬운 크기 */
  .foot-links a { display: inline-block; padding: 8px 4px; }
  .home-more a { padding: 6px 12px; }
  .theme-btn { font-size: 13px; }
  input[type="range"] { height: 28px; }
  input[type="checkbox"], label.check input, .item input[type="checkbox"] { width: 22px; height: 22px; }
  select { min-height: 38px; }
  /* 사냥 수익의 큰 단추는 화면 폭에 맞춘다 */
  #view-profit .row > .btn.big { flex: 1 1 100%; }
}
/* 배 시간표: 카드 최소 폭(330px)이 아주 좁은 휴대폰(320px)보다 넓어 옆으로 넘치던 것 */
.boat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.boat-any { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (max-width: 360px) { .boat-cells b { font-size: 17px; } }
/* 배 시간표 시계의 「지금 시각」: 어두운 바탕에서 잘 보이게 */
.boat-clock small { color: #cfcfcf; }

/* 하단 영역(.foot)은 내용이 짧은 페이지에서도 화면 맨 아래에 붙인다. 위아래 여백도 같게 */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .shell { flex: 1 0 auto; }
body > .foot { flex: none; padding: 24px 24px; }
body > .foot .foot-links { margin-bottom: 8px; }

/* 자주 묻는 질문(faq.html, 첫 화면 펼침 칸): 처음에는 질문만 보이고, 누르면 답이 아래로 펼쳐진다(menu.js) */
.faq-list { display: block; text-align: left; }
.faq-list .faq-group { font-size: 20px; font-weight: 800; color: var(--accent); margin: 28px 0 6px; padding: 0; border: 0; }
.faq-list .faq-group:first-child { margin-top: 4px; }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 8px; margin: 0; background: none; border: 0; text-align: left; font: inherit; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--text); cursor: pointer; }
.qa-q::before { content: "Q"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; }
.qa-q::after { content: ""; flex: none; margin: 0 6px 4px auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s; }
.qa-q[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -4px; }
.qa-q:hover, .qa-q[aria-expanded="true"] { color: var(--accent); }
.qa-q:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.qa-a > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .25s; }
.qa-q[aria-expanded="true"] + .qa-a { grid-template-rows: 1fr; }
.qa-q[aria-expanded="true"] + .qa-a > div { visibility: visible; transition-delay: 0s; }
.qa-a p { margin: 0 0 14px 46px; padding: 12px 16px; background: var(--panel-2); border-radius: 8px; color: var(--text); font-size: 16px; line-height: 1.65; }
@media (max-width: 640px) { .qa-a p { margin-left: 0; } .qa-q { font-size: 16px; padding: 13px 4px; } }
/* 첫 화면: 「자주 묻는 질문」 단추를 누르면 단추 줄 아래로 질문 목록이 펼쳐진다 */
.home-faq { width: 100%; display: grid; grid-template-rows: 0fr; margin-top: -28px; transition: grid-template-rows .35s ease; }
.home-faq.open { grid-template-rows: 1fr; }
.home-faq-in { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s .35s; }
.home-faq.open .home-faq-in { visibility: visible; transition-delay: 0s; }
.home-faq-box { margin: 28px 0 4px; padding: 18px 24px 8px; }
.home-faq-more { margin: 14px 0 6px; text-align: right; font-size: 15px; }
.home-faq-more a { color: var(--muted); }
.contact-btn.faq { cursor: pointer; font-family: inherit; }
.contact-btn.faq[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 640px) { .home-faq { margin-top: -20px; } .home-faq-box { margin-top: 20px; padding: 12px 14px 6px; } }

/* 하단 「메일 문의 : 주소」 줄 */
.foot-mail { margin: 0 0 8px; color: var(--text); }
.foot-mail a { color: var(--text); font-weight: 600; }

/* 하단 맨 아래 저작권 표시 */
.foot-legal, .foot-copy { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); letter-spacing: 0; }
.foot-copy { margin-top: 10px; }

/* 하단 영역을 낮게: 바깥 여백과 줄 사이 간격을 줄인다 */
body > .foot { padding: 14px 20px; line-height: 1.4; }
body > .foot .foot-links { margin-bottom: 4px; gap: 2px 16px; }
.foot-mail { margin: 0 0 6px; font-size: 15px; }
.foot-copy { margin-top: 0; }
.foot-legal, .foot-copy { line-height: 1.45; }
@media (max-width: 760px) { body > .foot .foot-links a { padding: 4px 4px; } }
/* 하단 메일 주소: 누르면 복사(menu.js) */
.copy-mail { padding: 0; margin: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text); text-decoration: underline; cursor: copy; }
.copy-mail:hover { color: var(--accent); }
.copy-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.copy-done:not(:empty) { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }

/* 알림 목소리 고르기: 「목소리」 단추를 누르면 단추 바로 아래에 목록이 떠서 나열된다(app.js mountVoicePicker) */
.voice-pick { position: relative; display: inline-flex; }
.voice-btn { white-space: nowrap; }
.voice-btn span { color: var(--accent); font-weight: 800; }
.voice-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 2px 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; vertical-align: middle; }
.voice-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -2px; }
.voice-menu { position: fixed; top: 0; left: 0; z-index: 950; min-width: 240px; max-width: calc(100vw - 16px); padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px #0003; display: grid; gap: 2px; }
.voice-menu[hidden] { display: none; }
.voice-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; text-align: left; background: none; color: var(--text); border: 0; border-radius: 7px; font: inherit; cursor: pointer; white-space: nowrap; }
.voice-opt::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; opacity: .75; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.voice-opt b { font-size: 15px; font-weight: 700; }
.voice-opt small { font-size: 12px; color: var(--muted); }
.voice-opt:hover, .voice-opt:focus-visible { background: var(--panel-2); outline: none; }
.voice-opt[aria-checked="true"] { color: var(--accent); }
.voice-opt[aria-checked="true"]::before { opacity: 1; }
.voice-opt[aria-checked="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; }
.voice-none { padding: 9px 12px; font-size: 14px; color: var(--muted); white-space: nowrap; }

/* 휴대폰: 드랍 칸의 「Lv.5 · 0.0005%」가 칸 밖으로 나가지 않게 줄을 바꾼다 · 맨 아래 글자가 오른쪽 아래 문의 단추에 가리지 않게 여백 */
@media (max-width: 760px) {
  .drop-tile .rt { white-space: normal; word-break: keep-all; }
  body > .foot { padding-bottom: 84px; }
}

/* 첫 화면 「자주 묻는 질문」을 접으면, 안에서 펼쳐 둔 답도 함께 숨긴다(키보드 Tab 이 보이지 않는 링크로 가지 않게) */
.home-faq:not(.open) .qa-a > div { visibility: hidden; }
