/* =====================================================
   도감 · 카드 보기 · 보상표 (2026-11-15 확정 목업, scratchpad/dexmock/tpl.html ①~⑤)
   - 격자 칸은 그림 + 등급색 도트 테두리만 (가벼움), S 만 은은한 빛. 애니메이션은 '받을 칸' 반짝 하나뿐
   ===================================================== */
.dx-rank { display: flex; align-items: center; gap: 6px; padding: 6px; margin-bottom: 6px; font-size: 11px; background: var(--p-surface); border: 3px solid var(--p-line); box-shadow: inset 0 0 0 2px #4a3322; cursor: pointer; color: var(--p-text); }
.dx-rank .bar { flex: 1; min-width: 30px; height: 8px; background: #000; border: 1px solid #4a3322; }
.dx-rank .bar i { display: block; height: 100%; background: var(--p-accent); }
.dx-rank > span:last-child { white-space: nowrap; color: var(--p-muted); }
.gtag { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 3px; font-weight: 700; color: #fff; border: 2px solid #000; font-size: 11px; line-height: 1; text-shadow: 1px 1px 0 #0008; }
.rd { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; background: #e3263f; border: 1px solid #000; }
/* 광산 탭 (가로로 넘김) */
.dx-mines { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 6px; margin-bottom: 4px; scrollbar-width: thin; }
.dx-mine { flex: 0 0 auto; position: relative; padding: 4px 6px; font-size: 10px; line-height: 1.3; text-align: center; background: #3d2a1b; border: 2px solid #000; color: var(--p-muted); cursor: pointer; }
.dx-mine b { display: block; color: var(--p-text); font-size: 11px; }
.dx-mine.on { background: #3a2a12; box-shadow: inset 0 -3px 0 var(--p-accent); color: var(--p-text); }
.dx-mine.done b::after { content: " ✓"; color: #9be3a8; }
/* 등급별 | 세트 */
.dx-sub { display: flex; gap: 6px; margin-bottom: 8px; }
.dx-sub > div { flex: 1; position: relative; text-align: center; padding: 6px; font-size: 12px; font-weight: 700; background: #3d2a1b; border: 3px solid #000; color: var(--p-muted); cursor: pointer; }
.dx-sub > div.on { background: var(--p-accent); color: var(--p-on-accent); }
/* 광산 요약 */
.dx-sum { padding: 7px; margin-bottom: 8px; font-size: 11px; background: var(--p-surface); border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a3322; }
.dx-sum .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; color: var(--p-muted); }
.dx-sum .top b { font-size: 14px; color: var(--p-text); }
.dx-steps { display: grid; gap: 3px; margin-bottom: 5px; }
.dx-step { text-align: center; font-size: 9px; padding: 3px 0; background: #3d2a1b; border: 2px solid #000; color: var(--p-muted); white-space: nowrap; }
.dx-step.got { background: #23402a; color: #9be3a8; }
.dx-step.ready { background: var(--p-accent); color: var(--p-on-accent); font-weight: 700; cursor: pointer; animation: dxPulse 1.2s steps(2) infinite; }
@keyframes dxPulse { 50% { opacity: .72; } }
.dx-stats { display: flex; gap: 4px; }
.dx-stats span { flex: 1; text-align: center; background: #000; padding: 3px; font-size: 10px; color: var(--p-muted); }
.dx-stats b { color: var(--p-text); }
.hint { font-size: 10px; color: var(--p-muted); margin: 4px 0; line-height: 1.4; }
.hint.gold { color: var(--p-accent); }
/* 등급 줄 */
.dx-gsec { margin-bottom: 8px; }
.ghead { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11px; color: var(--p-muted); }
.ghead .ok { color: #9be3a8; }
.dx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
/* 작은 그림 칸 */
.th { position: relative; aspect-ratio: 132 / 193; background: var(--gc); padding: 2px; cursor: pointer; min-width: 0;
  clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px)); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid #000; background: #000; }
.th .cnt { position: absolute; right: 2px; bottom: 2px; background: #000c; color: var(--p-text); font-size: 8px; padding: 0 2px; line-height: 1.3; }
.th .st { position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; background: #ffb03b; border: 1px solid #000; }
.th.byshard .cnt { color: var(--p-info); }
.th.none { background: #2a2638; }
.th.none .q { position: absolute; inset: 2px; background: #16131f; border: 1px dashed #4a3322; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; color: #4b4562; font-weight: 700; }
.th.none .q small { font-size: 8px; color: var(--p-muted); font-weight: 400; white-space: nowrap; }
.th.none.shardable { background: var(--p-info); }
.th.none.shardable .q small { color: var(--p-info); }
.th.gS:not(.none) { clip-path: none; box-shadow: 0 0 6px #b98cff; } /* S 만 은은한 빛 (클립하면 빛이 잘려서 S 는 네모 그대로) */
/* 세트 */
.dx-set { padding: 6px; margin-bottom: 6px; background: var(--p-surface); border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a3322; }
.dx-set .h { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; color: var(--p-muted); }
.dx-set .h b { color: var(--p-accent); }
.dx-set .pb { height: 6px; background: #000; margin-top: 5px; }
.dx-set .pb i { display: block; height: 100%; background: var(--p-accent); }
.dx-set.done { box-shadow: inset 0 0 0 2px #9be3a8; }
.dx-set .rowbtn { margin-top: 6px; }
/* 카드 보기 */
.zoom.cardview { padding: 16px; overflow-y: auto; justify-content: flex-start; }
.cv-box { width: min(100%, 340px); margin: auto 0; background: var(--p-surface); border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a3322; padding: 10px 12px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--p-text); }
.cv-title { color: var(--p-accent); font-size: 16px; font-weight: 700; width: 100%; text-align: center; padding-bottom: 6px; border-bottom: 2px dashed var(--p-accent); }
.zoom.cardview .card.fcard.big { width: 170px; font-size: 14.2px; margin: 8px 0 6px; }
.cv-miss { width: 120px; background: #2a2638; padding: 5px; margin: 6px 0; }
.cv-miss .q { aspect-ratio: 300 / 438; background: #16131f; border: 2px dashed #4a3322; display: grid; place-items: center; font-size: 30px; color: #4b4562; font-weight: 700; }
.cv-miss .nm { margin-top: 4px; background: #160f09; border: 2px solid #000; text-align: center; font-size: 11px; font-weight: 700; padding: 4px; box-shadow: inset 0 -3px 0 var(--gc); }
.cv-kv { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 0; padding: 8px; background: var(--p-well); border: 2px solid #000; font-size: 11px; }
.cv-kv dt { color: var(--p-muted); }
.cv-kv dd { margin: 0; text-align: right; }
.cv-kv dd small { display: block; color: var(--p-muted); font-size: 10px; }
.cv-box .rowbtn, .cv-box .closebtn { width: 100%; margin: 0; }
.cv-shard small { font-weight: 400; }
.cv-shard.off { opacity: .55; }
/* 보상표 */
.pr-bets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-bottom: 6px; }
.pr-bet { text-align: center; font-size: 10px; padding: 5px 0; background: #3d2a1b; border: 2px solid #000; color: var(--p-muted); cursor: pointer; white-space: nowrap; }
.pr-bet.on { background: var(--p-accent); color: var(--p-on-accent); font-weight: 700; }
.pr-mline { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; margin: 4px 0 8px; color: var(--p-muted); }
.pr-mline b { color: var(--p-text); }
.pr-mline .modetag { font-size: 10px; }
.pr-view { flex: 0 0 auto; padding: 4px 7px; font-size: 10px; font-weight: 700; background: #3d2a1b; border: 2px solid #000; color: var(--p-text); cursor: pointer; }
.pr-row { display: flex; align-items: center; gap: 6px; padding: 7px 6px; border-bottom: 1px solid #000; font-size: 11px; background: var(--p-well); cursor: pointer; color: var(--p-muted); }
.pr-row.on { background: #221f30; }
.pr-row .gtag { min-width: 26px; height: 22px; font-size: 12px; }
.pr-row .sc { flex: 1; }
.pr-row .sc b { font-size: 13px; color: var(--p-text); }
.pr-row .cn { font-size: 10px; }
.pr-row .pr { color: var(--p-accent); font-weight: 700; min-width: 40px; text-align: right; }
.pr-row .ar { font-size: 10px; width: 10px; }
.pr-open { background: #1a1726; padding: 6px; border-bottom: 1px solid #000; }
.pr-pc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 4px; }
.pr-cell { text-align: center; font-size: 8px; color: var(--p-muted); min-width: 0; }
.pr-cell b { display: block; color: var(--p-text); font-size: 10px; margin-top: 2px; }
.pr-note { font-size: 9px; color: var(--p-muted); margin-top: 5px; line-height: 1.4; }
.pr-gtabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; margin-bottom: 6px; }
.pr-gtabs > div { text-align: center; padding: 5px 0; font-size: 11px; font-weight: 700; border: 2px solid #000; color: #fff; opacity: .45; cursor: pointer; }
.pr-gtabs > div.on { opacity: 1; box-shadow: inset 0 -3px 0 #fff; }
.pr-tbox { padding: 6px; background: var(--p-surface); border: 3px solid #000; box-shadow: inset 0 0 0 2px #4a3322; }
.pr-th { font-size: 11px; margin-bottom: 4px; color: var(--p-muted); }
.ptable { width: 100%; border-collapse: collapse; font-size: 10px; table-layout: auto; }
.ptable th { color: var(--p-muted); font-weight: 400; text-align: left; padding: 3px 2px; border-bottom: 2px solid #000; white-space: nowrap; }
.ptable td { padding: 3px 2px; border-bottom: 1px solid #2a2638; vertical-align: middle; color: var(--p-text); }
.ptable tr[data-key] { cursor: pointer; }
.ptable td.n { word-break: keep-all; }
.ptable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable .mini { width: 24px; aspect-ratio: 132 / 193; background: var(--gc); padding: 1px; }
.ptable .mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptable .mini.miss { background: #2a2638; }
@media (prefers-reduced-motion: reduce) { .dx-step.ready { animation: none; } }
/* 설정 > 오픈소스 라이선스 */
.oss { margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--p-muted); }
.oss summary { cursor: pointer; font-size: 12px; color: var(--p-text); }
.oss p { margin: 6px 0; } .oss b { color: var(--p-text); }
/* 세트 11개 · 난이도 · 광산 완성 · 받기 창 (2026-11-16, docs/luckydig-sets.md) */
.dtag { display: inline-block; padding: 0 4px; margin-right: 5px; font-size: 10px; font-weight: 700; line-height: 16px; color: #1a1420; border: 2px solid #000; }
.dx-set { border-left: 6px solid var(--dc, #000); }
.dx-set .h { align-items: center; justify-content: flex-start; gap: 0; }
.dx-set .h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-set .hook { font-size: 10px; color: var(--p-muted); margin: -1px 0 5px; }
.dx-set .pb i { background: var(--dc, var(--p-accent)); }
.dx-set.ready { box-shadow: inset 0 0 0 2px var(--p-accent); }
.dx-set .hint .rw { color: var(--p-accent); }
.dx-full { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 7px; margin: 5px 0; font-size: 11px; background: #000; color: var(--p-muted); border: 2px solid #4a3322; }
.dx-full b { color: var(--p-text); }
.dx-full.ready { background: var(--p-accent); color: var(--p-on-accent); border-color: #000; cursor: pointer; animation: dxPulse 1.2s steps(2) infinite; }
.dx-full.ready b { color: var(--p-on-accent); }
.dx-full.done b { color: #9be3a8; }
.cv-kv .dtag { margin-right: 3px; }
.rwclaim .rw-title { color: var(--p-accent); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.rwclaim .rw-head { font-size: 14px; }
.rwclaim .rw-sub { font-size: 11px; color: var(--p-muted); margin-top: 2px; }
.rwclaim .rw-amt { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 12px 0; padding: 8px 10px; background: var(--p-well, #000); border: 2px solid #000; font-size: 12px; text-align: left; }
.rwclaim .rw-amt b { text-align: right; }
.rwclaim .rw-amt .x { color: var(--p-muted); }
.rwclaim .rw-amt b.ad { color: var(--p-accent); font-size: 15px; }
.rwclaim .rbtns button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; }
.rwclaim .rw-later { margin-top: 8px; background: none; border: 0; color: var(--p-muted); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .dx-full.ready { animation: none; } }
.rwclaim .rbtns .mico { width: 18px; height: 18px; margin: 0 2px 0 0; color: currentColor; }
/* =====================================================
   2026-11-18 도감 읽기 쉽게: 글씨 최소 12px · 광산 탭 = 아이콘 + n/55 2줄 격자 · 단계 보상 한 줄 + 막대
   ===================================================== */
.dx-rank { font-size: 13px; }
.dx-mines { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; overflow: visible; padding: 4px 0 6px; }
.dx-mine { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px 3px; font-size: 12px; font-weight: 700; min-width: 0; }
.dx-mine img { width: 28px; height: 28px; image-rendering: pixelated; display: block; }
.dx-mine span { white-space: nowrap; }
.dx-mine.done span { color: #9be3a8; }
.dx-mine.done b::after { content: none; }
.dx-sub > div { font-size: 14px; }
.dx-sum { font-size: 13px; }
.dx-sum .top b { font-size: 16px; }
.dx-sum .top span { font-size: 13px; }
.dx-next { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 7px 8px; margin-bottom: 5px; background: #3d2a1b; border: 2px solid #000; font-size: 14px; color: var(--p-muted); }
.dx-next b { color: var(--p-text); }
.dx-next small { font-size: 12px; }
.dx-next .pb { grid-column: 1 / -1; height: 8px; background: #000; }
.dx-next .pb i { display: block; height: 100%; background: var(--p-accent); }
.dx-next.ready { grid-template-columns: 1fr; text-align: center; background: var(--p-accent); color: var(--p-on-accent); cursor: pointer; animation: dxPulse 1.2s steps(2) infinite; }
.dx-next.ready b, .dx-next.ready small { color: var(--p-on-accent); }
.dx-next.done { grid-template-columns: 1fr; text-align: center; background: #23402a; color: #9be3a8; }
@media (prefers-reduced-motion: reduce) { .dx-next.ready { animation: none; } }
.dx-stats span { font-size: 12px; padding: 4px; }
.dx-full { font-size: 13px; }
.hint { font-size: 12px; }
.ghead { font-size: 13px; }
.ghead .gtag { font-size: 12px; min-width: 24px; height: 20px; }
.th .cnt { font-size: 12px; padding: 0 3px; }
.th.none .q { font-size: 18px; }
.th.none .q small { font-size: 12px; line-height: 1.15; text-align: center; color: var(--p-text); }
.dx-set .h { font-size: 13px; }
.dx-set .hook { font-size: 12px; }
.dtag { font-size: 12px; }

/* 2026-11-19 도감 요약 칸 '막대 하나' (B) */
.dx-sum.ms2 { padding: 9px 10px 8px; }
.dx-sum.ms2 .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.dx-sum.ms2 .big { font-size: 24px; font-weight: 700; color: var(--p-text); } .dx-sum.ms2 .big small { font-size: 14px; color: var(--p-muted); font-weight: 400; }
.dx-sum.ms2 .top > span:last-child { color: var(--p-muted); font-size: 13px; }
.dx-ms { position: relative; height: 10px; margin: 12px 4px 24px; background: #000; border: 2px solid var(--p-line); }
.dx-ms > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--p-accent); }
.dx-ms .t { position: absolute; top: -6px; width: 3px; height: 18px; margin-left: -1px; background: #6b4426; }
.dx-ms .t.got { background: #8fe08a; } .dx-ms .t.nx { background: var(--p-accent); }
.dx-ms .lb { position: absolute; top: 14px; transform: translateX(-50%); font-size: 12px; color: var(--p-muted); white-space: nowrap; }
.dx-ms .lb.got { color: #8fe08a; } .dx-ms .lb.nx { color: var(--p-accent); font-weight: 700; }
.dx-sum.ms2 .dx-next.ready { margin: 0 0 6px; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.dx-chips .chip { font-family: inherit; font-weight: 400; background: var(--p-raise); border: 2px solid var(--p-line); padding: 3px 8px; font-size: 12px; color: var(--p-muted); border-radius: 0; }
.dx-chips .chip b { color: var(--p-text); }
.dx-sum.ms2 .dx-full { margin-top: 6px; }

/* 2026-11-19 도감 정리: 조각으로 등록할 수 있는 칸 = 주황 테두리 + 오른쪽 아래 작은 조각(깜빡임 없음) */
html body .th.none.shardable { animation: none; background: var(--p-well); box-shadow: inset 0 0 0 2px var(--p-accent); }
html body .th.none.shardable .q { color: var(--p-accent); }
.dexcard .shd { position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; background: linear-gradient(135deg, #bfe6ff, #5aa8e8); border: 1.5px solid #0c0805; transform: rotate(45deg); }
.dexcard { position: relative; }
.ghead .ok { color: #8fe08a; font-weight: 700; }
/* 2026-11-19 카드 보기 받는 포인트: 숫자 하나 (건 것 이상 = 주황, 아래 = 흐리게) — '1,000pt 걸었을 때 · 건 것의 0.71배' 는 어렵다(사용자) */
.cv-kv dd b.up { color: var(--p-accent); font-size: 15px; } .cv-kv dd b.dn { color: var(--p-muted); font-size: 15px; }

/* 2026-11-19 카드 보기 다시 짜기: 가진 카드(감상) / 못 모은 카드(얻는 법) */
.cv-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: 100%; }
.cv-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--p-raise); border: 2px solid var(--p-line); padding: 2px 8px; font-size: 13px; color: var(--p-text); }
.cv-chip img { width: 16px; height: 16px; image-rendering: pixelated; }
.cv-chip .gtag { min-width: 20px; height: 18px; font-size: 12px; }
.cv-chip.rec { color: var(--p-muted); background: transparent; border-color: transparent; }
.cv-chip b.up { color: var(--p-accent); } .cv-chip b.dn { color: var(--p-muted); }
.cv-nick { font-size: 13px; color: var(--p-muted); } .cv-nick b { color: #ffe27a; font-size: 15px; }
.cv-set { width: 100%; background: var(--p-well); border: 2px solid var(--p-line); padding: 8px 9px; }
.cv-set .h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.cv-set .h span { color: var(--p-muted); font-size: 12px; white-space: nowrap; }
.cv-mini { display: flex; gap: 5px; margin-top: 7px; }
.cv-mini > div { flex: 1; min-width: 0; }
.cv-mini .dexcard { width: 100%; }
.cv-mini .me .dexcard { box-shadow: 0 0 0 2px var(--p-accent); }
.cv-sil { position: relative; width: 150px; aspect-ratio: 480 / 702; border: 5px solid var(--gc); background: #120d09; overflow: hidden; box-shadow: 3px 3px 0 rgba(0,0,0,.5); }
.cv-sil img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0) opacity(.5); }
.cv-sil span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: #6b5a48; }
.cv-way { width: 100%; display: flex; flex-direction: column; gap: 5px; background: var(--p-well); border: 2px solid var(--p-line); padding: 9px 10px; font-size: 14px; }
.cv-way small { color: var(--p-muted); font-size: 12px; } .cv-way em { font-style: normal; color: var(--p-accent); font-weight: 700; }
.cv-way .rowbtn { margin: 2px 0 0; }
.cv-way .off { opacity: .55; }
