/* ── 10-27 추가: 10-08 뒤에 생긴 화면을 잭팟맵 톤에 맞춤 ── */
/* PC 사냥터 목록: 위 .dg 패딩(좌우 2px, 폰용)이 PC 세로 목록까지 덮어 글자가 테두리에 붙던 것 */
@media (min-width: 1000px) { .dg { padding: 12px 14px; } }
/* 리셋: 첫 누름은 녹색 "한 번 더" (사용자 10-27). 사이트 규칙대로 단색·깜빡임 없음 */
.reset-top.armed { background: var(--ok); color: #fff; animation: none; box-shadow: none; }
/* 사냥 화면 내 정보 카드 · 강화 정보 · 보호 · 사냥터 재료 */
.me-card, .mat-row { border: 0; background: var(--card); border-radius: 14px; }
.me-card:hover { box-shadow: inset 0 0 0 2px var(--brand-bg); }
.me-stats b { color: var(--ink); font-weight: 800; } .me-stats b.pw { color: var(--gold); }
.me-w > b { color: var(--brand); }
.me-bar { background: var(--fill); } .me-bar > i { background: var(--brand); }
.me-next b { color: var(--up); } .me-next b.ok, .me-next.ok { color: var(--ok); }
.ench-stat, .prot-btn, .mat-btn { border: 0; background: var(--fill); }
.prot-btn[aria-pressed="true"] { background: var(--brand-bg); box-shadow: inset 0 0 0 2px var(--brand); }
.prot-btn[aria-pressed="true"] i { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--brand-bg); }
.mat-btn:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--brand-bg); }
.set-row { border: 0; background: var(--fill); }
.mat-chip { background: var(--brand-bg); border: 0; color: var(--brand); font-weight: 700; }
.duel-row.elite { border: 0; background: var(--fill); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r-jack) 45%, transparent); }
@media (max-width: 999px) {
  /* 내 정보 카드는 조작부 아래 (한 화면에 릴·스핀이 먼저 보이게) */
  #tab-hunt:not([hidden]) { grid-template-areas: "dg dg dg" "st st st" "me me me" "au sp bo" "tu sp bo" "mc mc mc"; }
  #tab-hunt > .me-card { grid-area: mc; }
  /* 사냥 중 재료 칩도 릴 아래 알림처럼 잠깐 겹쳐 떴다 사라짐 */
  .stage > .result .mat-chip { margin: 0 0 0 6px; padding: 5px 12px; font-size: 14px; line-height: 20px; background: rgba(0,0,0,.78); color: #fff; animation: gain-show 2.4s ease-out forwards; }
}

/* ════════════════════════════════════════════════════════════════
   10-27 던전 개편 + 폰 화면 손보기 (make_v3.js 가 jm_tone.css 다음에 넣음 → 그 위를 덮음)
   사용자: "폰으로 볼 때 답답함" + "가독성 → 진짜 게임 느낌"
   - 아이템·랭킹&전투 탭이 한 줄로 길게 이어지던 것 → 탭 안 작은 탭 (폰만, PC는 그대로 다 보임)
   - 상태창은 게임 패널(어두운 바탕), 장비 칸·가방 칸은 등급색 테두리
   - 가방은 폰에서 아이콘 칸 목록, 누르면 그 칸이 펼쳐져 장착·강화·판매
   ════════════════════════════════════════════════════════════════ */
:root { --g-C: #8b95a1; --g-U: var(--r-item); --g-R: var(--r-rare); --g-E: var(--r-jack); --g-L: var(--gold); }
.g-C { --gc: var(--g-C); } .g-U { --gc: var(--g-U); } .g-R { --gc: var(--g-R); } .g-E { --gc: var(--g-E); } .g-L { --gc: var(--g-L); }

/* 사냥터 버튼: 아이콘 + 이름 + 나오는 종류 */
.dg .n { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.dg-ic { font-style: normal; font-size: .95em; }
.dg .c { font-weight: 600; }
/* 베팅 칸 등급 배지 (하급 파랑 · 중급 보라 · 상급 금색) */
.bet-g { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; line-height: 17px; font-weight: 700; color: #fff; background: var(--gc); vertical-align: 1px; }
.g-L.bet-g { color: #1a1208; }

/* 상태창 = 게임 패널 (캐릭터 그림이 어두운 바탕용) */
.char {
  --stone:#1c1c20; --stone-2:#2a2a30; --line:#3a3a44; --ink:#f2f2f4; --ink-dim:#a9aeb6;
  --gold:#f5b544; --r-item:#6fb0ff; --r-rare:#b48cff; --r-jack:#ff7a45;
  --card:#2a2a30; --fill:#26262c; --jink:#f2f2f4; --faint:#a9aeb6; --brand-bg:#16263d;
  --g-C: #9aa3ad;
  color: var(--ink);
  background: radial-gradient(110% 70% at 50% 30%, #3b2d1f, #17130f 72%) !important;
}
.char-tag { color: #d9b77a; font-weight: 700; letter-spacing: .12em; }
.char-pick span { background: rgba(0,0,0,.6); color: #d4d7dc; box-shadow: none; }
.eq-slot { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.eq-slot[class*=" g-"] { background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--gc) 20%, transparent), rgba(255,255,255,.03) 70%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 70%, transparent); }
.eq-slot.on { background: color-mix(in srgb, var(--gold) 16%, rgba(255,255,255,.04)); box-shadow: inset 0 0 0 2px var(--gold); }
.eq-slot .eq-k { color: #a9aeb6; }
.eq-none { border-color: #a9aeb6; }
.sel-item { background: rgba(0,0,0,.35); }
.power .num { color: var(--gold); }

/* 가방 칸 장식은 폰에서만 (PC는 줄 목록 그대로) */
.it-en, .it-e { display: none; }

.subtabs { display: none; }
/* 방송 기록 카드가 오른쪽으로 삐져나와 가로 스크롤이 생기던 것 (width 100% + 안쪽 여백) */
.tg { box-sizing: border-box; }
.tg > * { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 999px) {
  /* ── 작은 탭 ── */
  .subtabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px;
    background: var(--card); position: sticky; top: 4px; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
  .subtabs button { border: 0; background: transparent; border-radius: 10px; padding: 10px 2px; font: inherit; font-size: 14px; font-weight: 700;
    color: var(--faint); white-space: nowrap; }
  .subtabs button[aria-pressed="true"] { background: var(--jink); color: var(--bg); }
  #tab-enchant, #tab-rank, #tab-battle { gap: 10px !important; }

  /* 아이템: 장비(상태창 + 가방) | 강화(고른 장비 + 강화) | 재료(고른 장비 + 재료) */
  #tab-enchant[data-sub="eq"] > .enchant, #tab-enchant[data-sub="eq"] .sel-item { display: none; }
  #tab-enchant:not([data-sub="eq"]) > .bag, #tab-enchant:not([data-sub="eq"]) .eq-board, #tab-enchant:not([data-sub="eq"]) .char-tag { display: none; }
  #tab-enchant:not([data-sub="eq"]) > .char { padding: 10px 12px; }
  #tab-enchant[data-sub="ench"] #mat-row { display: none; }
  #tab-enchant[data-sub="ench"] #sel-slots { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
  #sel-slots button { padding: 7px 2px; font-size: 13px; }
  #tab-enchant[data-sub="mat"] .enchant > :not(#mat-row):not(#ench-msg) { display: none !important; }
  #tab-enchant[data-sub="mat"] .enchant { padding: 0; background: transparent; gap: 8px; }
  #tab-enchant[data-sub="mat"] #ench-msg:empty { display: none !important; }
  #tab-enchant[data-sub="mat"] #mat-row { padding: 14px; gap: 10px; }
  .mat-have { font-size: 14px; }
  .sel-item .wname { font-size: 18px; }

  /* 상태창: 칸은 그림만 (이름은 가방에서), 캐릭터를 크게 */
  .char { padding: 12px 10px 14px; }
  .eq-board { grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 6px; }
  .eq-col { gap: 6px; }
  .eq-slot { min-height: 70px; padding: 14px 2px 4px; border-radius: 12px; }
  .eq-slot small { display: none; }
  .eq-slot img { width: 44px; height: 44px; }
  .eq-none { margin: 4px 0 2px; }
  .eq-mid .char-pick img { height: 250px; max-width: 160px; }
  .eq-mid .power { font-size: 15px; }

  /* 가방: 아이콘 칸 */
  .bag h3 { font-size: 16px; }
  .gr-legend { display: none; }
  #bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  #bag > .empty { grid-column: 1 / -1; }
  #bag .it:not(.open) { display: block; position: relative; aspect-ratio: 1; padding: 0; border-radius: 12px; cursor: pointer;
    background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--gc) 26%, #26262c), #17171b 76%);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--gc) 80%, transparent); }
  #bag .it:not(.open) > :not(.ic):not(.it-en):not(.it-e) { display: none; }
  #bag .it:not(.open) .ic { position: absolute; inset: 13%; width: 74%; height: 74%; }
  #bag .it:not(.open) .it-en { display: block; position: absolute; top: 3px; right: 5px; z-index: 1; font-size: 12px; font-weight: 800;
    color: #ffd36a; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
  #bag .it:not(.open) .it-en.hi { color: #ff7a5c; }
  #bag .it:not(.open) .it-e { display: block; position: absolute; left: 4px; top: 4px; z-index: 1; font-style: normal; font-size: 10px; font-weight: 800;
    line-height: 15px; padding: 0 4px; border-radius: 4px; background: var(--brand); color: #fff; }
  #bag .it.on:not(.open) { box-shadow: inset 0 0 0 2px var(--brand); }
  /* 고른 칸: 두꺼운 바깥 테두리 + 살짝 떠오름 (장착 중 파랑·등급색과 겹치지 않게 글자색 계열) */
  #bag .it.pick:not(.open) { outline: 3px solid var(--jink); outline-offset: 2px; transform: translateY(-2px); }
  /* 설명 칸: 고른 칸이 있는 줄 바로 아래, 위쪽 화살표가 고른 칸을 가리킴 (bagDetail) */
  #bag .it.open { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
    position: relative; margin-top: 6px; background: var(--card); box-shadow: inset 0 0 0 2px var(--jink); }
  #bag .it.open::before { content: ""; position: absolute; top: -9px; left: calc(var(--ax, 50%) - 9px); border: 9px solid transparent; border-top: 0;
    border-bottom-color: var(--jink); }
  #bag .it.open > .it-en, #bag .it.open > .it-e { display: none; }
  #bag .it.open .ic { width: 48px; height: 48px; }
  #bag .it.open .nm { flex: 1 1 calc(100% - 64px); font-size: 16px; }
  #bag .it.open .nm small { font-size: 12.5px; margin-top: 2px; }
  #bag .it.open .mini { flex: 1; padding: 11px 8px; font-size: 14px; border-radius: 10px; }
  #bag .it.open .it-ench { background: var(--brand); color: #fff; }

  /* 전투: 일기토 | 방어전 (2026-11-21 파티 레이드 자리에 성문 방어전) */
  #tab-battle:not([data-sub="duel"]) #duel-card, #tab-battle:not([data-sub="raid"]) #raid-card { display: none; }

  /* 글자: 작은 회색 설명을 조금 키움 */
  .it .nm small, .duel-row small, .raid-row small { font-size: 12px; }
}

/* PC: 작은 탭 없음. 랭킹 탭 칸 위치(nth-child)는 작은 탭 줄이 앞에 생겨서 다시 적음 */
@media (min-width: 1000px) {
  /* 가방은 따로 스크롤되는 세로 flex → 칩 줄이 6px로 눌려 안 보이던 것 */
  #tab-enchant > .bag > * { flex-shrink: 0; }
  /* 장착 중인 줄은 버튼 3개 (장착 중 · 강화 · 판매) */
  .it { grid-template-columns: 36px 1fr auto auto auto; }
}

/* ── 빌런판 UI ② (2026-11-11) 장비·강화 ──
   폰: 작은 탭(장비/강화/재료) 없이 상태창+가방 한 화면. 강화는 아래에서 올라오는 시트(.ench-sheet)로 —
   .sel-item·.enchant 노드를 시트로 옮겼다가 닫으면 제자리로 돌린다(id·핸들러 그대로).
   ⚠️ 시트는 z 38 — 강화 도전 연출(.overlay z 40)이 시트 위에 떠야 한다. 하단 탭(.nav z 30)보다는 위 */
.best-eq { margin-top: 6px; border: 1px solid #3fae6a; background: color-mix(in srgb, #3fae6a 22%, transparent); color: #c9f5d8;
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.best-eq[hidden] { display: none; }
.eq-slot .eq-up { position: absolute; bottom: 3px; right: 4px; font-style: normal; font-size: 11px; font-weight: 800; color: #3fd37a; line-height: 1; }
.it { position: relative; }
.it-up { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-style: normal; font-size: 11px; font-weight: 800; color: #3fd37a;
  background: rgba(0,0,0,.65); padding: 1px 4px; border-radius: 4px; line-height: 1.3; }
#bag .it.open > .it-up { display: none; }
.nm .up-txt { color: #3fd37a; font-weight: 700; }
.ench-sheet-bg { z-index: 38; }
.ench-sheet { max-height: 88vh; overflow-y: auto; overflow-x: hidden; gap: 10px; }
.ench-sheet > * { flex-shrink: 0; }
.ench-sheet .enchant { display: flex; flex-direction: column; gap: 10px; padding: 0; background: transparent; border: 0; }
.ench-sheet #sel-slots { display: none !important; }
.ench-sheet .prot-row { display: contents; }
.ench-sheet .odds-line { order: 1; } .ench-sheet .ench-stat { order: 2; } .ench-sheet .crys { order: 3; } .ench-sheet .prot-btn { order: 4; }
.ench-sheet .crys-note { order: 5; } .ench-sheet #enchant { order: 6; } .ench-sheet #enchant-bless { order: 7; } .ench-sheet #ench-msg { order: 8; }
.ench-sheet #feather-row { order: 9; }

/* ── 2026-11-21 시트 머리: 위에 고정 + 큰 닫기 (운영자 "닫기 버튼이 작고 잘 안 보임") ──
   시트 안이 스크롤돼도 머리는 남는다. 시트 padding(16px) 만큼 끌어올려 붙인다 */
.sheet-top { position: sticky; top: -16px; z-index: 2; margin: -16px -16px 0; padding: 12px 12px 10px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; background: inherit; border-bottom: 1px solid var(--line); }
.sheet-close { min-height: 40px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--jink); color: var(--bg);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.sheet-close:active { transform: translateY(1px); }

/* ── 2026-11-21 재료 · 제작 독립 (운영자) — 장비 탭 카드 → 따로 뜨는 시트 ── */
.mat-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; width: 100%; padding: 12px 14px;
  border: 0; border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.mat-card .mc-t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.mat-card .mc-t em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--brand); color: #fff; }
.mat-card .mc-have { grid-column: 1; font-size: 12.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-card .mc-have b { color: var(--ink); }
.mat-card .mc-go { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 24px; color: var(--ink-dim); line-height: 1; }
.mat-sheet { max-height: 88vh; overflow-y: auto; overflow-x: hidden; }
.mat-sheet > * { flex-shrink: 0; }
.ms-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 4px; background: var(--fill); }
.ms-row { display: flex; align-items: center; gap: 10px; }
.ms-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.ms-n small { font-size: 11.5px; color: var(--ink-dim); }
.ms-sell { min-width: 96px; min-height: 38px; padding: 4px 10px; line-height: 1.25; font-size: 13px; text-align: center; }
.ms-sell.arm { background: var(--gold); color: #0a0a0a; }
.ms-msg:empty { display: none; }
.ms-msg { font-size: 13.5px; text-align: center; }
.mat-btns.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prot-row .crys .mini[data-mats] { margin-left: auto; }
.feather-btn { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; padding: 10px 12px; }
.feather-btn > span { font-size: 13.5px; } .feather-btn > span small { margin-left: 4px; }
@media (min-width: 1000px) {
  #tab-enchant > .mat-card { grid-column: 1; grid-row: 3; }
  #tab-enchant > .bag { grid-row: 1 / 4; }
}
@media (max-width: 999px) {
  #it-sub { display: none !important; }
}
/* 빌런판 UI ① (2026-11-11) PC: 전투 = 일기토 | 레이드 나란히, 랭킹 = 순위 | 방송 나란히 */
@media (min-width: 1000px) {
  #tab-battle:not([hidden]), #tab-rank:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 24px !important; align-content: start; }
  #tab-battle > #duel-card { grid-column: 1; grid-row: 1; } #tab-battle > #raid-card { grid-column: 2; grid-row: 1; }
  #tab-rank > .rank-h { grid-column: 1; grid-row: 1; } #tab-rank > .rank { grid-column: 1; grid-row: 2; align-self: start; }
  #tab-rank > .feed-h { grid-column: 2; grid-row: 1; margin: 0; } #tab-rank > .feed { grid-column: 2; grid-row: 2; align-self: start; }
}
/* 빌런판 UI ④ (2026-11-11) 랭킹: 내 카드 고정 · 방송 줄 */
.rank-mine { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--gold-deep, #8a6a2a);
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent); }
.rank-mine:empty { display: none; }
.rank-mine .rm-pos { font-size: 28px; font-weight: 800; color: var(--gold); min-width: 52px; text-align: center; }
.rank-mine .rm-pos small { font-size: 13px; margin-left: 1px; }
.rank-mine .rm-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-mine .rm-t b { font-size: 15px; } .rank-mine .rm-t small { font-size: 12.5px; color: var(--ink-dim); }
.rank-mine .rm-t small b { font-size: inherit; color: var(--gold); }
.feed { display: flex; flex-direction: column; gap: 6px; }
.fd { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 9px 10px; border-radius: 4px; background: rgba(255,255,255,.04); }
.fd-ic { font-size: 17px; line-height: 1.3; text-align: center; }
.fd-t { font-size: 13.5px; line-height: 1.45; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.fd-at { font-size: 11px; color: var(--ink-dim); white-space: nowrap; padding-top: 2px; }
@media (min-width: 1000px) { #tab-rank > .rank-mine { grid-column: 1; grid-row: 2; } #tab-rank > .rank { grid-row: 3; } #tab-rank > .feed { grid-row: 2 / 4; } }
/* 빌런판 UI ③ (2026-11-11) 전투: 추천 상대 + 사냥터별 작은 줄 · 상대 필살 경고 · 레이드 전투력 체크 */
.duel-pick-h { font-size: 13px; font-weight: 700; color: var(--gold); margin: 4px 0 -2px; }
.duel-pick-h small { font-weight: 400; color: var(--ink-dim); margin-left: 6px; }
.duel-grp { font-size: 12.5px; font-weight: 700; color: var(--ink-dim); margin: 8px 0 0; }
.duel-grp.elite { color: var(--blood, #c43c3c); } .duel-grp small { font-weight: 400; margin-left: 6px; }
.duel-mini { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 4px; background: rgba(255,255,255,.04); }
.duel-mini.elite { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blood, #c43c3c) 55%, transparent); }
.duel-mini img { width: 34px; height: 40px; object-fit: contain; object-position: bottom; }
.duel-mini .who { min-width: 0; font-size: 14px; }
.duel-mini .who em { font-style: normal; font-size: 11px; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 2px; padding: 0 4px; margin-left: 2px; }
.duel-mini .who .rw { display: block; font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duel-mini .who .rw img { width: 14px; height: 14px; vertical-align: -2px; }
.duel-mini .wr { font-size: 16px; min-width: 40px; text-align: right; }
.duel-go.sm { padding: 7px 12px; font-size: 13px; }
.duel-side .ki { min-height: 22px; }
.duel-side.op .ki em { background: var(--blood, #c43c3c); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; line-height: 16px; }
.duel-side.op .ki em::before { content: "⚠ "; }
.raid-mypw { font-size: 13px; color: var(--ink-dim); } .raid-mypw b { color: var(--gold); font-size: 15px; } .raid-mypw small { display: block; font-size: 11.5px; margin-top: 2px; }
.pw-ok { color: #8fd18a; } .pw-low { color: var(--blood, #c43c3c); font-weight: 700; }
/* 빌런판 (2026-11-11 운영자): 파티 레이드 숨김 — 일기토만 연다. 코드는 그대로(2차에서 다시 열 수 있게).
   2026-11-21: 그 자리에 성문 방어전을 넣었다가 같은 날 폐기(운영자) — 원본 backups/removed-20261121-defense/ */
#bt-sub, #raid-card, .raid-only { display: none !important; }
@media (min-width: 1000px) { #tab-battle:not([hidden]) { grid-template-columns: minmax(0, 1fr) !important; max-width: 760px; margin: 0 auto; width: 100%; } }
/* 빌런판 보스 소환권 게이지 */
.tk-line { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tk-bar { display: inline-block; width: 52px; height: 5px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; vertical-align: middle; }
.tk-bar > i { display: block; height: 100%; background: var(--gold); }
/* 빌런판 (2026-11-12 운영자: "돈 부분과 UI 가리는 게 심하다") — 알림은 한 줄 띠로 작게 · 골드 줄 아래에서(JS 가 top 을 맞춤) · 누르면 닫힘 · 최대 2개
   ⚠️ .feed .tg(랭킹 탭 방송 기록)는 같은 말풍선을 쓰므로 여기는 .toasts 안만 바꾼다 */
.toasts { gap: 4px; }
.toasts .tg { grid-template-columns: 1fr; gap: 0; padding: 6px 10px; border-radius: 8px; max-width: 380px; pointer-events: auto !important; cursor: pointer; }
.toasts .tg .av, .toasts .tg .bn { display: none; }
.toasts .tg .tx { font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toasts .tg .act { margin-top: 4px; padding: 4px; }
/* 일괄 판매 (2026-11-12 운영자: 잡템을 하나씩 눌러 파는 게 번거롭다) */
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (min-width: 1000px) {   /* PC: 예전 '가방' 제목 고정을 머리줄째로 */
  #tab-enchant .bag-head { position: sticky; top: 0; z-index: 1; background: var(--ground); padding: 4px 0 6px; }
  #tab-enchant .bag-head h3 { position: static; padding: 0; }
}
/* 가방 부위 칩: 4개씩 2줄, 같은 크기(2026-11-12 운영자 — 옆으로 밀어야 망토·장신구·반지가 보이던 것) */
.bag-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; }
.bag-filter button { flex: initial; width: 100%; min-width: 0; padding: 7px 4px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.bulk-btn { border: 1px solid var(--line); background: var(--stone-2); color: var(--ink); border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.bulk-grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bulk-grades button { border: 1px solid var(--line); background: var(--stone-2); border-radius: 8px; padding: 8px 0; font-size: 13px; font-weight: 700; opacity: .45; }
.bulk-grades button[aria-pressed="true"] { opacity: 1; border-color: currentColor; }
.bulk-opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); padding: 2px 0; }
.bulk-opt input { width: 18px; height: 18px; accent-color: var(--gold); }
.bulk-sum { text-align: center; font-size: 14px; color: var(--ink-dim); }
.bulk-sum b { color: var(--gold); }
.bulk-go:disabled { opacity: .4; }
/* 포인트로 골드 구매 (2026-11-13) — 골드 옆 [＋구매] + 시트. 관리자 설정이 꺼져 있으면 버튼이 안 생긴다 */
.buy-top { flex: none; height: 34px; border: 0; border-radius: 10px; padding: 0 10px; font-size: 12.5px; font-weight: 700;
  background: var(--fill); color: var(--ink); white-space: nowrap; }
.buy-rate { text-align: center; font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }
.buy-rate b { color: var(--gold); }
.buy-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.buy-quick button { border: 1px solid var(--line); background: var(--stone-2); border-radius: 8px; padding: 8px 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.buy-quick button:disabled { opacity: .35; }
/* +7 이상 강화 도전 — 결과를 굴리기 전 [취소] / 굴린 뒤 안내 (2026-11-13) */
.ench-cancel { margin-top: 10px; border: 0; background: transparent; color: rgba(255,255,255,.7); font-size: 14px; padding: 8px 18px; text-decoration: underline; text-underline-offset: 3px; }
.ench-lock { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.6); text-align: center; }
/* 더블업 홀짝 (2026-11-21) — 사냥 골드 당첨이 베팅 5배 이상일 때. 높이는 단계마다 같게(움찔 금지): 버튼 줄 대신 확인 버튼이 와도 min-height 로 고정 */
.overlay.du { gap: 10px; }
.overlay.du .ov-title { color: var(--gold); }
.du-msg { font-size: 15px; color: var(--ink); line-height: 1.5; min-height: 3em; max-width: 320px; text-wrap: balance; }
.du-msg small { color: var(--blood); font-family: var(--f-num); }
.du-steps { display: flex; gap: 8px; }
.du-steps i { font-style: normal; font-family: var(--f-num); font-size: 12px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--ink-dim); }
.du-steps i.on { color: #0a0a0a; background: var(--gold); border-color: var(--gold); }
.du-die { font-family: var(--f-num); font-size: 44px; line-height: 1; min-height: 52px; min-width: 200px; color: var(--ink); }
.du-die.ok { color: var(--gold); }
.du-die.bad { color: var(--blood); }
.du-pot { font-size: 14px; color: var(--ink-dim); min-height: 1.5em; }
.du-pot b { color: var(--gold); }
.du-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(300px, 100%); }
.du-btns button { height: 56px; border: 1px solid var(--gold-deep); background: var(--stone-2); color: var(--ink); border-radius: 8px;
  font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.du-btns button:active { background: var(--gold); color: #0a0a0a; }
.du-btns button:disabled { opacity: .5; }
.du-hint { font-size: 12.5px; color: var(--ink-dim); }
.overlay.du .du-take { font-size: 14px; }
.ms-sec .mini, .ms-sec .mat-btn { background: var(--card); }
.ms-sec .mini { border: 1px solid var(--line); font-weight: 700; }
.ms-sec .mini.arm { background: var(--gold); color: #0a0a0a; }
.ms-sell { height: 44px; }

/* ── 일기토 개편 연출 (2026-11-21) — 치명타 흔들림 · 체력 잔상 · 광폭화 · 지침 버튼 ── */
.hpbar u { position: absolute; inset: 0 auto 0 0; width: 100%; background: rgba(255,255,255,.55); transition: width .5s ease-in .45s; }
.duel-arena.shake { animation: dl-shake .38s ease-out; }
@keyframes dl-shake { 0%,100% { transform: none; } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, 0); } }
.duel-side.op.rage { border-color: var(--blood, #c43c3c); background: color-mix(in srgb, #c43c3c 14%, transparent); box-shadow: 0 0 16px rgba(196,60,60,.45); }
.duel-side.op.rage .ds-top b::after { content: " · 광폭화"; color: #ff7a6a; font-size: .85em; }
.duel-moves button.tired small { color: #ffb36a; font-weight: 700; }
.duel-log small { color: var(--ink-dim); }
.dmg.crit { font-weight: 800; }

/* 일기토 — 오늘의 장수 · 장수 도감 (2026-11-21) */
.duel-pick-h.hot { color: #ff8a5c; } .duel-pick-h.hot small b { color: #ff8a5c; font-weight: 700; }
.duel-row.hot { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #ff6a3c 70%, transparent); background: color-mix(in srgb, #ff6a3c 10%, var(--fill)); }
.dex { display: inline-flex; gap: 2px; vertical-align: 1px; margin-left: 2px; }
.dex i { font-style: normal; font-size: 10px; font-weight: 700; line-height: 14px; width: 15px; text-align: center; border-radius: 2px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.3); }
.dex i.on { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--gold); }
.hot-tr { color: #ff8a5c; font-weight: 700; }

/* 사냥 탭 아래 그룹 방송 10건 (2026-11-21) — 슬롯 아래라 높이가 바뀌어도 판이 움직이지 않는다 */
.hunt-feed { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; min-width: 0; }
.hf-h { display: flex; align-items: baseline; gap: 8px; }
.hf-h b { font-size: 15px; } .hf-h small { flex: 1; font-size: 11.5px; color: var(--ink-dim); }
.hf-h .mini { padding: 5px 10px; font-size: 12px; }
.hf-h .hf-news { color: var(--gold); border-color: rgba(227,168,18,.45); }
/* 업데이트 내역 시트 (2026-11-30) — 제목·닫기 고정, 가운데만 스크롤. 이모지 없이 ■ 제목 / - 설명(줄바꿈 들여쓰기 맞춤) */
.sheet.news { max-height: 86vh; max-height: 86dvh; overflow: hidden; }
.sheet.news .news-head { flex: none; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sheet.news .news-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.sheet.news .sheet-x { flex: none; }
.sheet.news .news-u { margin: 6px 0 18px; }
.sheet.news .news-d { font-weight: 700; font-size: 15px; color: var(--gold); padding-bottom: 6px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.sheet.news .news-d i { font-style: normal; font-size: 11px; color: var(--gold); border: 1px solid rgba(227,168,18,.5); border-radius: 2px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.sheet.news ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sheet.news .news-t { position: relative; padding-left: 16px; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.sheet.news .news-t::before { content: "■"; position: absolute; left: 0; top: 0; font-size: 9px; line-height: 20px; color: var(--gold); }
.sheet.news .news-l { position: relative; padding-left: 28px; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: #e2e2e2; }
.sheet.news .news-l::before { content: "-"; position: absolute; left: 16px; top: 0; color: #9a9a9a; }
.sheet.news .news-l b { color: #9ee6a8; font-weight: 700; }   /* 수치·바뀐 값 = 연그린 */
.sheet.news .news-l em { font-style: normal; color: #9fd0ff; font-weight: 600; }   /* 장비·장소 이름 = 연블루 */
.sheet.news .news-s { padding-left: 42px; margin-top: 1px; font-size: 13px; color: #d4d4d4; }
.sheet.news .news-s::before { content: "└"; left: 28px; }
@media (min-width: 1000px) { #tab-hunt > .hunt-feed { grid-column: 1 / -1; grid-row: 7; } }

/* ── 전설 등급 스페셜 (2026-11-27 운영자: "전설 색이 영웅보다 별로") ──
   글자: 금→분홍→보라→하늘→금 무지갯빛이 흐른다(.gr-L — 등급색을 칠하는 곳마다 main.js 가 gr-등급 클래스를 같이 붙인다).
   ⚠️ color 는 건드리지 않는다(인라인 등급색 = 그라디언트 미지원 폴백 · currentColor 테두리용). 글자만 text-fill 로 투명하게
   칸: 가방 아이콘 칸 · 장착 칸 · 보스 상자 줄 테두리가 금↔분홍 빛으로 숨쉰다. 장착(.on)·선택 표시는 덮지 않는다 */
:root { --leg-grad: linear-gradient(90deg, #c27c0e, #d6336c, #7048e8, #0c8599, #c27c0e); }
:root[data-theme="dark"], .char, .stage, .overlay, .bigwin { --leg-grad: linear-gradient(90deg, #ffd34d, #ff8ac2, #b99bff, #6fe3ff, #ffd34d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --leg-grad: linear-gradient(90deg, #ffd34d, #ff8ac2, #b99bff, #6fe3ff, #ffd34d); } }
.gr-L { background-image: var(--leg-grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: leg-flow 3s linear infinite; }
@keyframes leg-flow { to { background-position: 200% 0; } }
#bag .it.g-L:not(.open):not(.on), .eq-slot.g-L:not(.on), .chest-row.t-L { animation: leg-glow 1.8s ease-in-out infinite alternate; }
@keyframes leg-glow {
  from { box-shadow: inset 0 0 0 2px #ffd34d, 0 0 6px rgba(255, 211, 77, .45); }
  to   { box-shadow: inset 0 0 0 2px #ff8ac2, 0 0 14px rgba(185, 155, 255, .6); } }
@media (prefers-reduced-motion: reduce) { .gr-L, #bag .it.g-L, .eq-slot.g-L, .chest-row.t-L { animation: none !important; } }

/* 랭킹 → 회원 착용 장비 시트 (2026-11-28) — 상태창(.eq-slot)과 같은 칸을 읽기 전용으로 */
#rank .row[data-u]:not([data-u=""]) { cursor: pointer; }
#rank .row[data-u]:not([data-u=""]):active { filter: brightness(1.25); }
.gear-sheet { max-height: 90dvh; overflow: hidden; }
.gear-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column; padding: 8px 7px 2px; margin: 0 -7px; }   /* 내용만 스크롤 — 닫기 버튼은 늘 밑에 보인다 */
.gear-sum { margin: 6px 0 10px; font-size: 14px; color: var(--ink-dim); }
.gear-sum b { color: var(--gold); font-size: 18px; } .gear-sum small { display: block; font-size: 12px; margin-top: 2px; }
.gear-box { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 8px; align-items: stretch; }
.gear-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gear-col .eq-slot { min-height: 76px; }
.gear-char { display: flex; align-items: center; justify-content: center; min-width: 0; }
.gear-char img { width: 100%; max-width: 130px; object-fit: contain; }
.gear-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; }
.gear-row { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--fill, rgba(255,255,255,.04)); font-size: 13.5px; }
.gear-row small { font-size: 11.5px; color: var(--ink-dim); }
/* 2026-11-28 운영자: "전투력 아래 상세보기 글자 — 그래야 누른다" · "닫기 버튼 잘 보이게(연령 높은 회원)" */
#rank .rk-p { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
#rank .row .who { overflow-wrap: anywhere; }   /* 띄어쓰기 없는 긴 닉네임이 오른쪽 전투력 칸 밑으로 넘치지 않게 */
#rank .rk-more { font-size: 11.5px; color: var(--ink-dim); white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.gear-sheet { position: relative; }
.gear-xt { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px;
  background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.gear-sheet .sheet-h { padding-right: 48px; }
.gear-x { flex-shrink: 0; display: block; width: 100%; height: 52px; margin: 0; padding: 0; border: 0; border-radius: 12px;
  background: #f2f2f4; color: #111; font-size: 18px; font-weight: 700; }

/* ── 2026-11-29 운영자: 장비 탭 상태창을 2/3 크기로 ("내 캐릭터 + 착용 장비 부분이 너무 크다") ──
   .eq-board 안으로만 좁힌다 — 랭킹 회원 장비 시트(.gear-box)도 .eq-slot 을 쓰니 거긴 그대로 */
.eq-board { max-width: 300px; margin: 0 auto; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 5px; }
.eq-board .eq-col { gap: 4px; }
.eq-board .eq-slot { min-height: 48px; padding: 12px 1px 3px; border-radius: 10px; }
.eq-board .eq-slot small { display: none; }
.eq-board .eq-slot img { width: 30px; height: 30px; }
.eq-board .eq-slot .eq-k { top: 2px; font-size: 9px; }
.eq-board .eq-slot .eq-en { top: -6px; right: -5px; padding: 0 4px; font-size: 10.5px; }
.eq-board .eq-slot .eq-up { font-size: 9.5px; bottom: 2px; right: 3px; }
.eq-board .eq-mid .char-pick img { height: 165px; max-width: 108px; }
.sel-item .weapon-art { width: 44px; height: 44px; }
.sel-item .weapon-wrap .fx { --s: 76px; }
@media (min-width: 1000px) {
  .eq-board { max-width: 340px; grid-template-columns: 58px minmax(0, 1fr) 58px; }
  .eq-board .eq-slot { min-height: 62px; }
  .eq-board .eq-mid .char-pick img { height: 155px; max-width: 100px; }
}

/* 원정 장비 칸(장갑·부츠·티셔츠, 2026-11-29 운영자) — 상태창 양옆 칸 사이에 끼운다: 티셔츠 = 갑옷 위(왼쪽), 장갑·부츠 = 반지 아래 좌·우.
   티셔츠 맞은편은 빈 자리(.eq-gap — 높이만 차지). 아이템이 생기기 전까지 흐린 그림 */
.eq-board .eq-soon img { filter: grayscale(1); opacity: .35; }
.eq-board .eq-gap { visibility: hidden; }

/* ── 랭킹 → 회원 장비 시트도 상태창처럼 작게 (2026-11-29 운영자 "너무 커서 무조건 스크롤") ──
   8칸·캐릭터는 .eq-board 와 같은 크기. 칸 안 이름은 숨기고(아래 목록에 있다) 목록은 한 줄씩. 닫기 버튼 크기는 그대로(고연령 회원) */
.gear-sum { margin: 2px 0 8px; }
.gear-box { max-width: 300px; width: 100%; margin: 0 auto; grid-template-columns: 50px minmax(0, 1fr) 50px; gap: 5px; }
.gear-col { gap: 4px; }
.gear-col .eq-slot { flex: 0 0 46px; box-sizing: border-box; min-height: 0; padding: 13px 1px 2px; border-radius: 10px; }
.gear-sheet { max-height: 94dvh; }
.gear-sheet .gear-body { padding-top: 4px; }
.gear-col .eq-slot small { display: none; }
.gear-col .eq-slot img { width: 27px; height: 27px; }
.gear-col .eq-slot .eq-k { top: 2px; font-size: 9px; }
.gear-col .eq-slot .eq-en { top: -6px; right: -5px; padding: 0 4px; font-size: 10.5px; }
.gear-char img { width: auto; height: 150px; max-width: 100px; }
.gear-list { gap: 4px; margin: 10px 0 4px; }
.gear-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 10px; line-height: 1.35; }
.gear-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gear-row small { flex-shrink: 0; }

/* ── 사냥터 4칸: 바람섬 · 둥지 · 요새 · 동굴(준비중 = 원정 입구 자리, 2026-11-29) ── PC 는 세로 목록(#tab-hunt > .dungeons) 그대로 */
.dungeons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 슬롯메카(2026-12-01): 동굴(원정 입구)·파티 레이드는 숨긴다 — 코드는 남겨 둠. 보스 문장 3개 무료 보스 레이드는 슬롯 본편이라 그대로 */
.dungeons .dg-exp, .dungeons .dg-soon { display: none !important; }
#bt-sub, #raid-card { display: none !important; }
.dg.dg-soon { opacity: .5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); background: transparent; }
.dg.dg-soon .c { color: var(--ink-dim); }

/* ── 게임 가이드 (2026-11-29) — 시트 틀은 랭킹 장비 시트(.gear-sheet · ✕ · 하단 전폭 닫기) 그대로 ── */
.vol-wrap .gdbtn { color: #ffd98a; }
.guide-sheet .gear-body { gap: 8px; }
.gd-h { margin-top: 8px; font-size: 15px; font-weight: 800; color: var(--gold); }
.gd-h:first-child { margin-top: 0; }
.gd-h small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: var(--ink-dim); }
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: gd; display: flex; flex-direction: column; gap: 6px; }
.gd-steps li { counter-increment: gd; position: relative; padding: 8px 10px 8px 40px; border-radius: 10px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 3px; }
.gd-steps li::before { content: counter(gd); position: absolute; left: 10px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #0a0a0a;
  font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gd-steps b { font-size: 14px; } .gd-steps small { font-size: 12px; color: var(--ink-dim); line-height: 1.45; }
.gd-ok { color: #3fd37a; }
.gd-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 2px 0; }
.gd-zone { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 8px; background: rgba(0,0,0,.3); }
.gd-zone b { font-size: 13px; } .gd-zone small { font-size: 11px; }
.gd-box { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 8px; }
.gd-box > small { font-size: 12px; color: var(--ink-dim); line-height: 1.55; }
.gd-ex { font-size: 13px; line-height: 1.5; }
.gd-pres { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.gd-pre { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 1px; border-radius: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 45%, transparent);
  background: color-mix(in srgb, var(--pc) 10%, transparent); text-align: center; }
.gd-pre b { color: var(--pc); font-size: 11.5px; word-break: keep-all; line-height: 1.25; } .gd-pre small { font-size: 12px; font-weight: 700; }
.gd-mat { display: grid; grid-template-columns: 30px minmax(0, 1fr) 14px minmax(0, 1.1fr); align-items: center; gap: 6px; font-size: 13px; }
.gd-mat .mat-img, .gd-mat .gd-ic { width: 28px; height: 28px; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.gd-mat b { display: block; font-size: 13px; } .gd-mat small { font-size: 11px; color: var(--ink-dim); }
.gd-mat i { font-style: normal; color: var(--gold); } .gd-mat > span:last-child { font-weight: 700; word-break: keep-all; }
.gd-set { display: flex; align-items: center; gap: 10px; }
.gd-set img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.gd-set > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gd-set b { font-size: 14px; } .gd-set small { font-size: 12px; color: var(--ink-dim); }
.gd-set.up b { color: #d68cff; }
.gd-arrow { font-size: 12px; color: var(--gold); padding-left: 12px; }

/* ── 화룡 · 마룡 세트 시트 (2026-11-29 마룡 승급 추가로 길어져 스크롤) ── */
.set-sheet { max-height: 90dvh; overflow-y: auto; }
.set-sheet .up-h { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.up-cost { font-size: 13px; line-height: 1.6; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.up-cost .mat-img { width: 18px; height: 18px; vertical-align: -3px; }
.up-cost b.lack, .set-row .lack { color: #ff8a8a; } .up-cost small { display: block; font-size: 11.5px; color: var(--ink-dim); }
.set-sheet .mini.arm { background: var(--gold); color: #0a0a0a; }
.set-sheet .up-to { color: var(--r-item); font-weight: 800; }

/* ── 직업 특기 (2026-11-29) — 상태창 아래 "지금 적용 중" 줄 · 직업 선택 창 · 가이드 표 ── */
.cls-buff { width: 100%; max-width: 360px; margin: 2px auto 0; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.05); text-align: left; font-size: 12px; line-height: 1.45; color: var(--ink-dim); }
.cls-buff .cb-h { font-size: 13px; color: #d9b77a; } .cls-buff .cb-h small { margin-left: 4px; font-size: 10.5px; font-weight: 600; color: #3fd37a; }
.cls-buff i, .cls-tbl i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 5px; margin-right: 3px; border-radius: 4px; background: rgba(255,255,255,.1); color: var(--ink); }
#tab-enchant:not([data-sub="eq"]) .cls-buff { display: none; }
.cls-sheet { max-height: 90dvh; overflow-y: auto; }
.cls-tbl { display: flex; flex-direction: column; gap: 4px; }
.ct-row { display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.45; color: var(--ink-dim); }
.ct-row b { font-size: 13px; color: var(--ink); }
.ct-row.on { box-shadow: inset 0 0 0 1px var(--gold); } .ct-row.on b { color: var(--gold); }

/* ── 전설 반짝임 (2026-11-29 운영자 "마룡은 빼고 전설급에만(기존 전설 포함) 약한 반짝이") ──
   main.js weaponArt 가 전설 장비 그림 주소 끝에 #L 을 붙인다(요청·캐시엔 영향 없음) → 장비칸·가방·세트창·보상창·장비표 어디든 같이 빛난다
   ① 그림: 금빛이 은은하게 숨 쉰다(강화 빛 --glow 는 그대로 겹친다) ② 별 2개가 천천히 번갈아 반짝 — 그림을 담은 칸의 ::after/::before
   ⚠️ 칸 테두리 leg-glow(금↔분홍)는 따로(.g-L). 예전 마룡·심판자 전용 반짝임(set_maryong·set_judge 주소로 잡던 것)은 이걸로 합쳤다 */
@keyframes lg-shine {
  0%, 100% { filter: var(--glow, none) drop-shadow(0 0 2px rgba(255, 210, 100, .45)); }
  50%      { filter: var(--glow, none) drop-shadow(0 0 4px rgba(255, 220, 130, .75)) drop-shadow(0 0 9px rgba(255, 180, 60, .35)) brightness(1.08); }
}
img[src$="#L"] { animation: lg-shine 2.6s ease-in-out infinite; }
@keyframes lg-twinkle {
  0%, 100% { opacity: 0; transform: scale(.6); }
  20%      { opacity: .9; transform: scale(1); }
  45%      { opacity: 0; transform: scale(.7) rotate(25deg); }
}
.set-row:has(> img[src$="#L"]), .chest-row:has(> img[src$="#L"]), .eq-row:has(> img[src$="#L"]), .gd-set:has(> img[src$="#L"]), .gi:has(> img[src$="#L"]) { position: relative; }
:is(.eq-slot, #bag .it:not(.open), .set-row, .chest-row, .eq-row, .gd-set, .weapon-wrap, .gi):has(img[src$="#L"])::after {
  content: "✦"; position: absolute; z-index: 2; pointer-events: none; left: 14%; top: 18%; opacity: 0;
  font-size: 10px; line-height: 1; color: #fff4c8; text-shadow: 0 0 4px #ffc83d, 0 0 8px #ff9d1a;
  animation: lg-twinkle 3s ease-in-out infinite;
}
:is(.eq-slot, #bag .it:not(.open), .weapon-wrap, .gi):has(img[src$="#L"])::before {
  content: "✧"; position: absolute; z-index: 2; pointer-events: none; right: 14%; bottom: 22%; opacity: 0;
  font-size: 9px; line-height: 1; color: #fff; text-shadow: 0 0 4px #ffc83d;
  animation: lg-twinkle 3s ease-in-out 1.5s infinite;
}
@media (prefers-reduced-motion: reduce) { img[src$="#L"], :is(.eq-slot, #bag .it, .set-row, .chest-row, .eq-row, .gd-set, .weapon-wrap, .gi):has(img[src$="#L"])::after, :is(.eq-slot, #bag .it, .weapon-wrap, .gi):has(img[src$="#L"])::before { animation: none; } }

/* 장비표 드랍 확률 (2026-11-29) */
.eq-src .eq-pct { color: var(--gold); font-weight: 700; margin-left: 2px; }
.eq-pct-note { margin: 4px 0 6px; font-size: 11.5px; }

/* ── 배너 광고 (2026-11-30 · ads.js) — 띠 4:1 / 카드 16:9. 작은 AD 표시는 지우지 말 것(광고임을 알려야 한다) ── */
.dg-ad-box { width: 100%; }
.dg-ad-box[hidden] { display: none !important; }
.dg-ad { position: relative; display: block; width: 100%; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); -webkit-tap-highlight-color: transparent; }
.dg-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dg-ad-wide { aspect-ratio: 4 / 1; }
.dg-ad-card { aspect-ratio: 16 / 9; }
.dg-ad-tag { position: absolute; top: 6px; right: 6px; font: 700 10px/1 Pretendard, system-ui, sans-serif; letter-spacing: .04em; color: rgba(255,255,255,.85); background: rgba(0,0,0,.55); padding: 3px 5px; border-radius: 4px; pointer-events: none; }
.result .dg-ad-box, .duel-end .dg-ad-box { margin-top: 10px; }
.enchant .dg-ad-box { margin-top: 12px; }
.dg-ad-sheet { padding: 18px 16px 22px; }
.dg-ad-sheet .sheet-x { margin-top: 12px; width: 100%; }
#dg-boot .dg-ad-box { max-width: 360px; margin-top: 18px; }
#tab-hunt > #ad-hunt { grid-column: 1 / -1; grid-row: 7; }   /* 사냥 탭은 이름 붙은 격자 — 내 정보 카드(mc) 바로 밑 한 줄을 통째로 */
