/* 장비 여섯 칸 · 강화 · 비교 · 도트 아이콘 · 설명(tip) · 등급 색 이름  (public/js/gearui.js · pixel.js) */

/* ── 등급 색 이름: 희귀부터 굵게 ── */
.gname { font-weight: 500; }
.gname.hi { font-weight: 700; }
.gname.g4, .gname.g5 { text-shadow: 0 0 6px color-mix(in srgb, currentColor 28%, transparent); }
html[data-gcol="off"] .gname { color: inherit; text-shadow: none; }
html[data-gcol="off"] :is(.g0, .g1, .g2, .g3, .g4, .g5):not(.eqc, .gearslot, .skc, .ot, .oln) { color: inherit; }

/* ── 도트 아이콘 ── */
.px { display: inline-block; vertical-align: middle; flex: none; }
.lockpx { display: inline-flex; color: var(--gilt); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.gearslot .lk { position: absolute; left: 3px; top: 2px; color: var(--gilt); line-height: 0; }
.gearslot.ghost { opacity: .45; filter: grayscale(1); border-style: dashed; }
.gearslot.glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 50%, transparent), 0 0 10px color-mix(in srgb, var(--gc) 45%, transparent); }

/* 오름 · 내림 */
.dlt { display: inline-flex; align-items: center; gap: 3px; font-size: .82rem; white-space: nowrap; }
.dlt.up { color: var(--mint, #3d7a4f); } .dlt.down { color: var(--rose); } .dlt.eq { color: var(--ink-3); }
:root:not([data-tone="dark"]) .dlt.up { color: #2f7a46; }
.gl-dp { margin-left: .2rem; }
.arr-r { transform: rotate(-90deg); color: var(--ink-3); margin: 0 .15rem; }

/* ── 여섯 칸 판 ── */
.eqwrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .eqwrap { grid-template-columns: 1fr; } .eqside { order: -1; } }
.eqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: .6rem; margin-top: .5rem; }
@media (max-width: 520px) { .eqgrid { grid-template-columns: 1fr; gap: .45rem; } }
.eqc { --gc: var(--g0); position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .55rem .65rem .55rem .75rem; background: color-mix(in srgb, var(--gc) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gc) 38%, var(--line)); border-left: 3px solid var(--gc); cursor: pointer; min-width: 0; transition: background .15s, transform .15s; }
.eqc:hover, .eqc:focus-visible { background: color-mix(in srgb, var(--gc) 10%, var(--surface)); }
.eqc.hi { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gc) 22%, transparent), 0 0 12px color-mix(in srgb, var(--gc) 18%, transparent); }
.eqc.empty { --gc: var(--line-2); border-style: dashed; background: transparent; }
.eqc-top { display: flex; align-items: center; gap: .4rem; font-size: .74rem; letter-spacing: .06em; color: var(--ink-3); }
.eqc-slot { font-family: var(--font-head); color: var(--ink-2); font-size: .82rem; }
.eqc-gr { margin-left: auto; color: var(--gc); }
.eqc-top .lockpx { margin-left: .2rem; }
.eqc.empty .eqc-top .eqc-slot { color: var(--ink-3); }
.eqc-body { display: flex; gap: .55rem; align-items: center; min-width: 0; }
.eqc-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.eqc-name { font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.eqmain { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .8rem; }
.mchip { display: inline-flex; gap: .25rem; align-items: baseline; white-space: nowrap; }
.mchip i { font-style: normal; color: var(--ink-3); }
.mchip b { color: var(--ink); font-weight: 600; }
.eqc-opts { list-style: none; margin: 0; padding: .3rem 0 0; border-top: 1px dotted color-mix(in srgb, var(--gc) 30%, var(--line)); display: flex; flex-direction: column; gap: .12rem; font-size: .8rem; }
.eqc-opts.none { border-top: 1px dotted var(--line); font-size: .76rem; }
.oln { display: flex; align-items: center; gap: .35rem; }
.oln .od { width: 6px; height: 6px; flex: none; background: var(--ink-3); }
.oln .on { color: var(--ink-2); }
.oln b { margin-left: auto; font-weight: 600; }
.oln.t1 .od { background: #6f9a6a; } .oln.t2 .od { background: #4a7fc0; } .oln.t3 .od { background: #b065a0; } .oln.t4 .od { background: #d08a2c; }
.oln.t5 .od { background: var(--gilt); box-shadow: 0 0 0 1px var(--gilt-2); } .oln.t5 .on { color: var(--gilt); font-weight: 600; }
.eqsock { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--ink-3); vertical-align: middle; }
.eqsock .gem { display: inline-flex; line-height: 0; }
.eqsock .gem.gem0 { color: var(--ink-3); opacity: .8; }
.eqsock .refd { display: inline-flex; align-items: center; gap: .2rem; color: var(--gilt); }
.eqsock .refd.can { color: var(--ink-3); font-style: italic; }

/* 능력 합계 */
.eqside { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: 5rem; }
@media (max-width: 860px) { .eqside { position: static; } }
.eqpow { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.eqpow span { font-family: var(--font-head); color: var(--ink-2); }
.eqpow b { font-size: 1.7rem; color: var(--gilt); font-weight: 700; letter-spacing: .02em; }
.eqstats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem .75rem; margin-top: .45rem; font-size: .86rem; }
.eqstats .es { display: flex; justify-content: space-between; gap: .4rem; }
.eqstats .es span { color: var(--ink-3); white-space: nowrap; } /* 「치명타 확률」이 두 줄로 꺾이지 않게 */
.eqstats .es { align-items: baseline; }
.eqauto { font-size: .88rem; gap: .45rem; cursor: pointer; min-height: 44px; }

/* 상세 */
.gd-head { gap: .8rem; align-items: flex-start; }
.gd-head h3 { line-height: 1.3; }
.gd-h { margin: .9rem 0 .35rem; display: flex; align-items: center; gap: .5rem; }
.lockbtn { display: inline-flex; align-items: center; gap: .35rem; }
.eqcmp { margin-top: .7rem; padding: .55rem .7rem; border: 1px solid var(--line); background: var(--surface-2); }
.eqcmp h4 { font-size: .92rem; }
.cmp-pow { display: inline-flex; align-items: baseline; gap: .35rem; }
.cmp-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .15rem 1rem; margin-top: .35rem; font-size: .86rem; }
.cr { display: grid; grid-template-columns: 5.2rem auto auto auto 1fr; align-items: center; gap: .3rem; }
.cr > span:first-child { color: var(--ink-3); }

/* ── 강화 판 ── */
.er { display: grid; grid-template-columns: 4.6rem auto auto 1fr; align-items: center; gap: .3rem; }
.er > span:first-child { color: var(--ink-3); }
.er b.up { color: #2f7a46; } :root[data-tone="dark"] .er b.up { color: var(--mint); }
.enh-alert { display: flex; gap: .55rem; align-items: flex-start; padding: .5rem .65rem; border: 1px solid var(--rose); border-left-width: 4px; background: color-mix(in srgb, var(--rose) 8%, var(--surface)); color: var(--ink); }
.enh-alert .px { color: var(--rose); margin-top: .15rem; }
.enh-alert b { color: var(--rose); }
.fs-s { font-size: .8rem; }

/* 성공: 금빛 고리 · 숫자 톡 / 실패: 살짝 흔들림 · 잿빛 */
.gearslot.enh-ok { animation: enhok .7s ease-out; }
.gearslot.enh-ok::after { content: ''; position: absolute; inset: -4px; border: 2px solid var(--gilt-2); animation: enhring .7s ease-out forwards; pointer-events: none; }
.gearslot.enh-ok .en { animation: enhnum .5s ease-out; color: var(--gilt); }
.gearslot.enh-no { animation: enhno .45s ease-in-out; filter: grayscale(.6) brightness(.9); }
@keyframes enhok { 0% { transform: scale(1); } 30% { transform: scale(1.12); box-shadow: 0 0 18px var(--gilt-2); } 100% { transform: scale(1); } }
@keyframes enhring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.45); } }
@keyframes enhnum { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
@keyframes enhno { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .gearslot.enh-ok, .gearslot.enh-ok::after, .gearslot.enh-ok .en, .gearslot.enh-no { animation: none; } .gearslot.enh-ok { box-shadow: 0 0 0 2px var(--gilt-2); } }
:root[data-motion="reduce"] :is(.gearslot.enh-ok, .gearslot.enh-ok::after, .gearslot.enh-ok .en, .gearslot.enh-no) { animation: none; }

/* ── 카드: 등급 발동 효과 ── */
.skc .procs { display: flex; flex-wrap: wrap; gap: .25rem; }
.skc .proc { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; padding: .05rem .4rem; border: 1px solid currentColor; border-radius: 2px; background: color-mix(in srgb, currentColor 8%, transparent); font-weight: 600; }
.skc.gS, .skc.gSS { border-color: color-mix(in srgb, var(--g4) 60%, var(--line)); }
.skc.gSS { border-color: color-mix(in srgb, var(--g5) 70%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g5) 30%, transparent), 0 0 16px color-mix(in srgb, var(--g5) 25%, transparent); }
.cproc { font-size: .82rem; font-weight: 600; }
.gtip .eqc-opts { border-top-color: var(--line); margin-top: .25rem; }
/* 목록 줄의 부가옵션 (ui.js gearOptList): 한 줄에 하나, 앞의 몇 줄 + 「+n」 */
.eqc-opts.gl-opts { border-top: 0; padding: .1rem 0 0; gap: 0; font-size: .74rem; line-height: 1.35; }
.gl-opts .oln { gap: .3rem; min-width: 0; }
.gl-opts .oln .od { width: 5px; height: 5px; }
.gl-opts .oln .on { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gl-opts .oln b { margin-left: 0; flex: none; }
.oln .ln-more { margin-left: .1rem; }
.gl-main { display: flex; flex-wrap: wrap; column-gap: .65rem; row-gap: 0; color: var(--ink-2); line-height: 1.35; }
.gl-main > span { white-space: nowrap; } .gl-main b { font-weight: 600; color: var(--ink); }
.gtip .eqmain { margin-top: .2rem; }

/* ── 원정: 권장 전투력 · 준비도 ── */
.rdy { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; padding: .05rem .45rem; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 10%, var(--surface)); white-space: nowrap; }
.rdy::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.rdy.comfy { color: #2f7a46; } .rdy.tight { color: #a6701c; } .rdy.danger { color: var(--rose); }
:root[data-tone="dark"] .rdy.comfy { color: var(--mint); } :root[data-tone="dark"] .rdy.tight { color: #e7a15d; }
.zrec { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .78rem; color: var(--ink-3); }
.zrec b { color: var(--ink-2); }

/* ── 설명(tip): 데스크톱 올려 두기 · 휴대폰 길게 누르기 ── */
[data-tip], .has-tip { -webkit-touch-callout: none; }
[data-tip]:not(button):not(a):not(input):not(label) { cursor: help; }
.tip { pointer-events: none; line-height: 1.5; font-size: .86rem; }

/* ── 조용한 알림 (저절로 갈아입었을 때) ── */
.toast.quiet { border-left-color: var(--line-2); font-size: .82rem; padding: .4rem .7rem; opacity: .94; }

/* ── 설명 판 (휴대폰에서 누르면) · 설명 상자 (데스크톱 올려 두기) — public/js/ui.js info · openInfo ── */
.infobox { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ib-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-right: 2.6rem; }
.tip .ib-head { padding-right: 0; }
.ib-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.ib-sub { font-size: .8rem; }
/* 물건 갈래 꼬리표 (ui.js catPill): 도장처럼 바탕을 채운 작은 표. 갈래마다 잉크 빛깔만 다르다 */
.icat { display: inline-flex; align-items: center; flex: 0 0 auto; height: 1.15rem; padding: 0 .38rem; border-radius: var(--r-s); font-family: var(--font-body); font-weight: 700; font-size: .66rem; line-height: 1; letter-spacing: .02em; white-space: nowrap; color: var(--st-ink); background: var(--st-grey); vertical-align: middle; }
.icat-use { background: var(--st-green); } .icat-gift { background: var(--st-rose); } .icat-mat { background: var(--st-brown); } .icat-gear { background: var(--st-blue); }
.icat-furn { background: var(--st-amber); } .icat-recipe { background: var(--st-violet); } .icat-etc { background: var(--st-grey); }
.ib-acts .ib-note { margin-right: auto; font-size: var(--t-small); color: var(--ink-3); }
.ib-body, .ib-use, .ib-where { margin: 0; font-size: .9rem; line-height: 1.55; }
.ib-lines { display: grid; gap: .1rem; font-size: .86rem; }
.ib-lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.modal.infosheet { max-width: 420px; }
@media (max-width: 600px) {
  .modal-back:has(.modal.infosheet) { place-items: end center; padding: 0; }
  .modal.infosheet { width: 100%; max-width: none; margin: 0; border-radius: 6px 6px 0 0; max-height: 70vh; animation: sheetup .18s ease-out; }
}
@keyframes sheetup { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal.infosheet { animation: none; } }
:root[data-motion="reduce"] .modal.infosheet { animation: none; }
.ib-foot { margin-top: .4rem; }

/* ── 장비 상세 한 장 (gearDetail): 머리 · 단락 · 바닥 단추 ── */
.modal.gdsheet { padding-bottom: 0; }
.gd-head { display: flex; gap: .8rem; align-items: center; min-height: 64px; padding-right: 58px; /* ✕ 자리 */ }
.gd-tt { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.gd-tt h3 { font-size: 1.2rem; line-height: 1.3; text-align: left !important; overflow-wrap: anywhere; }
.gd-sub { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.gd-k { font-family: var(--font-num, inherit); color: var(--gilt); font-size: .95rem; }
.gd-line { margin-top: .1rem; }
.gd-meta { font-size: .76rem; color: var(--ink-3); font-weight: 400; }
.gd-sec { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.gd-st { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.gd-st h4 { font-size: 1.06rem; font-weight: 700; font-family: var(--font-head); color: var(--ink); letter-spacing: .04em; }
.gd-sec .eqmain { font-size: .92rem; gap: .35rem 1rem; }
.gcost { display: inline-flex; align-items: center; gap: .2rem; white-space: nowrap; font-size: .86rem; }
.gcost.short b, .gcost.short { color: var(--rose); }
.gd-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; margin: 1rem -1.2rem 0; padding: .6rem 1.2rem calc(.6rem + env(safe-area-inset-bottom, 0px)); background: var(--page) var(--paper); border-top: 1px solid var(--line-2); box-shadow: 0 -6px 12px -8px rgba(30, 18, 8, .35); }
.gd-foot button { min-height: 44px; min-width: 4.4rem; white-space: nowrap; }
.gd-foot .lockbtn { margin-right: auto; display: inline-flex; align-items: center; gap: .4rem; }
.gd-foot .lockbtn[aria-pressed="true"] { color: var(--gilt); border-color: var(--gilt); }

/* 부가 옵션 줄 */

/* 한 줄의 일 (작은 판) */
.oa-list { display: flex; flex-direction: column; gap: .45rem; }
.oact { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 54px; text-align: left; width: 100%; }
.oa-l { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.oa-l .faint { font-size: .78rem; white-space: normal; }

/* 보석 자리 */
@media (max-width: 420px) { .gd-foot { gap: .35rem; } .gd-foot button { min-width: 0; padding-inline: .7rem; } .gd-head { gap: .6rem; } }
/* 머리는 위에 붙어 있고, ✕ 는 그 오른쪽 빈 자리에만 앉는다 — 스크롤한 내용이 ✕ 밑으로 지나가지 않게 */
.modal.gdsheet > .gd-head { position: sticky; top: -.9rem; z-index: 5; margin: -.9rem -1.2rem 0; padding: .9rem 62px .55rem 1.2rem; background: var(--page) var(--paper); border-bottom: 1px solid var(--line); }
.modal.gdsheet > .gd-line { margin-top: .5rem; }
.modal.infosheet .row.end button, .ib-foot button { min-height: 44px; }

/* ── 장비 상세: 촘촘하게 (보이는 높이는 32~36px, 누르는 자리는 투명한 테두리로 44px) ── */
.modal.gdsheet { --mini: 34px; }
.modal.gdsheet > .gd-head { min-height: 0; padding-top: .7rem; padding-bottom: .4rem; gap: .6rem; }
.modal.gdsheet .gd-tt h3 { font-size: 1.08rem; }
.modal.gdsheet .gd-line { margin-top: .3rem; }
.modal.gdsheet .gd-sec { margin-top: .55rem; padding-top: .45rem; gap: .3rem; }
.modal.gdsheet .gd-st h4 { font-size: .98rem; }
.modal.gdsheet .eqcmp { margin-top: .45rem; padding: .35rem .55rem; }
.modal.gdsheet .cmp-rows { margin-top: .15rem; font-size: .8rem; gap: 0 .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.modal.gdsheet .cr { grid-template-columns: 4.2rem auto auto auto 1fr; gap: .2rem; }
.modal.gdsheet :is(.gd-acts > button, .gd-foot button, .enhp .enh-go, .oact) { position: relative; }
.modal.gdsheet :is(.gd-acts > button, .gd-foot button, .enhp .enh-go)::after { content: ''; position: absolute; inset: -5px 0; } /* 누르는 자리 */
.modal.gdsheet .gd-foot button { min-height: var(--mini) !important; height: var(--mini); padding: 0 .7rem; font-size: .84rem; }
.modal.gdsheet .gd-foot { margin-top: .6rem; padding-top: .4rem; padding-bottom: calc(.4rem + env(safe-area-inset-bottom, 0px)); gap: .4rem; }
.modal.gdsheet .gd-foot button { min-width: 0; }
.modal.gdsheet .gd-sec .eqmain { font-size: .86rem; }
/* 강화: 두 줄 — (단계 · 능력 변화 · 전투력) / (성공 · 비용 · 단추) */
.modal.gdsheet .er { display: inline-flex; gap: .25rem; }
.modal.gdsheet .er > span:first-child { min-width: 0; }
.modal.gdsheet .enh-alert { flex: 1 1 100%; order: 5; padding: .35rem .5rem; font-size: .82rem; }
/* 한 줄의 일 판도 촘촘하게 */
.modal.infosheet .oact { min-height: 44px; padding: .3rem .7rem; }
.modal.infosheet .oa-list { gap: .3rem; }

/* ── 보관 칸 판: 가방 · 길드 보관함 (public/js/storage_ui.js) ── 어두운 나무 판 · 둥근 칸 · 안쪽 그늘 */
.store { --sg0: #b5aa96; --sg1: #7fc196; --sg2: #86aee6; --sg3: #d796c9; --sg4: #e7a15d; --sg5: #e9c650; --st-ink: #f0dbab; --st-ink2: #c7ad84; --st-line: #5a4029;
  position: relative; padding: .6rem .65rem .7rem; color: var(--st-ink); background: linear-gradient(180deg, #33241a, #271b12 60%, #22170f); border: 1px solid #b89668; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 228, 180, .08), 0 2px 8px rgba(40, 24, 10, .22); }
.store .faint, .store .stnone { color: var(--st-ink2); }
.sthead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 32px; }
.sttitle { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.sttitle b { font-size: .95rem; letter-spacing: .06em; color: var(--st-ink); white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.stright { display: flex; align-items: center; gap: .3rem; min-width: 0; flex-wrap: nowrap; }
.stcur, .stcap { display: inline-flex; align-items: center; gap: .25rem; height: 26px; padding: 0 .5rem 0 .25rem; font-size: .8rem; font-weight: 700; color: #f6e6c4; background: #1a110b; border: 1px solid var(--st-line); border-radius: 999px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; min-height: 0; font-family: var(--font-num, inherit); }
button.stcur { cursor: pointer; } button.stcur:hover { border-color: #b89668; }
.stcap { padding: 0 .5rem; color: var(--st-ink); }
.stcap.near { color: #e7a15d; border-color: #7a4f23; } .stcap.full { color: #f08a7a; border-color: #8a3a2c; }
.stplus { position: relative; display: grid; place-items: center; width: 26px; height: 26px; min-height: 0; padding: 0; color: #2a1a0c; background: linear-gradient(180deg, #e2bb6c, #b58637); border: 1px solid #f0d394; border-radius: 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.stplus::before { content: ''; position: absolute; inset: -9px; } /* 누르는 곳은 44px */
.stplus:hover { filter: brightness(1.08); }
.sttabs { display: flex; align-items: center; gap: .25rem; margin: .5rem 0 .55rem; flex-wrap: wrap; }
.sttab { position: relative; height: 30px; min-height: 0; padding: 0 .6rem; font-size: .82rem; font-weight: 600; color: var(--st-ink2); background: transparent; border: 1px solid #45311f; border-radius: 6px; box-shadow: none; }
.sttab::before { content: ''; position: absolute; inset: -7px -2px; }
.sttab small { margin-left: .25rem; font-size: .68rem; opacity: .75; }
.sttab:hover { color: var(--st-ink); border-color: #7a5a38; }
.sttab.sel { color: #fff1d0; background: #4a3220; border-color: #b89668; box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12); }
.stextra { display: inline-flex; align-items: center; gap: .25rem; margin-left: auto; }
.stextra + .stsort { margin-left: 0; }
.stsort { height: 30px; min-height: 0; padding: 0 .4rem; margin-left: auto; font-size: .8rem; color: var(--st-ink); background: #1d140d; border: 1px solid var(--st-line); border-radius: 6px; width: auto; }
.store .stextra .small { height: 30px; min-height: 0; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, 60px); gap: 6px; justify-content: start; }
@media (max-width: 600px) { .sgrid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 5px; } }
.sslot { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; min-height: 0; padding: 0; margin: 0; overflow: hidden; border-radius: 8px; color: var(--st-ink);
  background: radial-gradient(circle at 50% 38%, #4a382c, #34261d 72%); border: 1px solid #170f09;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .62), inset 0 -1px 0 rgba(255, 230, 190, .07), 0 1px 0 rgba(255, 230, 190, .05); -webkit-touch-callout: none; user-select: none; }
.sslot.empty { background: #2c2018; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 230, 190, .04); }
button.sslot { cursor: pointer; transition: transform .08s, filter .12s; }
button.sslot:hover { filter: brightness(1.12); }
button.sslot:active { transform: scale(.96); }
button.sslot:focus-visible { outline: 2px solid var(--sg5); outline-offset: 1px; }
.sslot .ic { pointer-events: none; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)); }
/* 등급: 안쪽 가는 테 + 오른쪽 위 모서리 */
.sslot[class*=" sg"] { --sgc: var(--sg0); }
.sslot.sg0 { --sgc: transparent; } .sslot.sg1 { --sgc: var(--sg1); } .sslot.sg2 { --sgc: var(--sg2); } .sslot.sg3 { --sgc: var(--sg3); } .sslot.sg4 { --sgc: var(--sg4); } .sslot.sg5 { --sgc: var(--sg5); }
.sslot[class*=" sg"]::after { content: ''; position: absolute; inset: 2px; border: 1.5px solid color-mix(in srgb, var(--sgc) 72%, transparent); border-radius: 6px; pointer-events: none; }
.sslot[class*=" sg"]::before { content: ''; position: absolute; right: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 0 11px 11px 0; border-color: transparent var(--sgc) transparent transparent; pointer-events: none; }
.sslot.sg4 .ic, .sslot.sg5 .ic { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--sgc) 55%, transparent)) drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
.sslot .sn { position: absolute; right: 4px; bottom: 1px; font-size: .74rem; font-weight: 800; line-height: 1.1; color: #fff3d6; text-shadow: 0 1px 0 #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.sslot .sk { position: absolute; left: 4px; bottom: 1px; font-size: .68rem; font-weight: 800; color: var(--sg5); text-shadow: 0 1px 0 #000, 0 0 3px #000; pointer-events: none; }
.sslot .slk { position: absolute; left: 4px; top: 3px; line-height: 0; color: var(--sg5); filter: drop-shadow(0 1px 0 #000); pointer-events: none; }
.sslot.locked .ic { opacity: .92; }
.sslot.sel { box-shadow: inset 0 0 0 2px var(--sg5), inset 0 2px 6px rgba(0, 0, 0, .5); filter: brightness(1.12); }
.sslot .sck { position: absolute; right: 3px; top: 3px; line-height: 0; color: #2a1a0c; background: var(--sg5); border-radius: 3px; padding: 1px; pointer-events: none; }
.stnone { grid-column: 1 / -1; margin: .2rem 0; font-size: .85rem; }
.stbar { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; padding: .4rem .5rem; background: #1d140d; border: 1px solid #6b4c2e; border-radius: 8px; box-shadow: 0 -2px 8px rgba(0, 0, 0, .35); }
.stbar[hidden] { display: none; }
.stbar .stsel { font-size: .85rem; font-weight: 700; color: var(--st-ink); }
.stbar .grow { flex: 1 1 0; }
.store .baghint { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .45rem; padding: .35rem .5rem; font-size: .82rem; color: #f3c58f; background: rgba(140, 70, 20, .22); border: 1px solid #7a4f23; border-radius: 6px; }
.eqbag { margin-top: 1rem; }
.storemodal .store { margin: .2rem 0 .6rem; }
.storemodal .store { margin-top: 2.6rem; } /* 낱장 오른쪽 위 ✕ 와 칸 판 머리(「+」 · 칸 배지)가 겹치지 않게 */
.ib-acts { flex-wrap: wrap; gap: .35rem; }
/* 수량 고르기 (보관함 넣기 · 꺼내기): 설명 판 아래 한 줄을 통째로 */
.qstep { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .35rem 0 .45rem; margin-bottom: .1rem; border-bottom: 1px dashed var(--line); }
.qstep .qs-l { font-size: .8rem; margin-right: .2rem; }
.qstep .qs-b, .qstep .qs-max { min-height: 40px; height: 40px; padding: 0; white-space: nowrap; }
.qstep .qs-b { width: 40px; font-size: 1.15rem; font-weight: 700; }
.qstep .qs-max { padding: 0 .7rem; font-size: .82rem; }
.qstep .qs-n { width: 4.6rem; height: 40px; min-height: 40px; text-align: center; font-size: 1rem; font-weight: 700; -moz-appearance: textfield; }
.qstep .qs-n::-webkit-outer-spin-button, .qstep .qs-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qstep .qs-of { font-size: .78rem; min-width: 2.5rem; }
/* 가구 보관함: 칸 안의 도트 가구 · 길잡이가 짚은 가구 */
.sslot > canvas { width: 44px; height: 44px; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)); }
.sslot.pinned { box-shadow: inset 0 0 0 2px var(--sg5), 0 0 6px color-mix(in srgb, var(--sg5) 55%, transparent); }
.furnstore { min-width: 0; }
.furnstore .store { margin: 0; }
.infobox .fs-art { display: flex; align-items: center; gap: .6rem; margin: .3rem 0; }
.infobox .fs-art canvas { width: 64px; height: 64px; image-rendering: pixelated; background: #2a211a; border: 1px solid var(--line); flex: none; }
/* 길드 보관함 곁: 권한 · 교환 요청 · 기록 */
.vault { margin-top: .9rem; }
.vperm { display: flex; gap: .6rem; flex-wrap: wrap; margin: .45rem .1rem 0; }
.vsec { margin-top: .8rem; }
.vsec > summary { cursor: pointer; list-style: none; } .vsec > summary h4 { display: inline; }
.vsec > summary::before { content: '▸ '; color: var(--ink-3); } .vsec[open] > summary::before { content: '▾ '; }
.vex .li { align-items: center; }
.vex-sw { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .85rem; margin-top: .15rem; }
.vex-g { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.vex-ar { color: var(--ink-3); font-weight: 700; }
.vex-pick .sslot { width: 48px; }
.vlog-list { display: flex; flex-direction: column; gap: .15rem; max-height: 320px; overflow: auto; margin-top: .3rem; }
.vlog-l { display: flex; gap: .45rem; align-items: baseline; font-size: .82rem; padding: .15rem 0; border-bottom: 1px dashed var(--line); }
.vlog-t { flex: 0 0 4.2rem; font-size: .74rem; }
/* 차단: 흐린 이름 · 접어 둔 게시판 글 (public/js/block.js) */
.nametag.nt-blocked, .rp-n.nt-blocked { opacity: .45; filter: grayscale(.6); }
.brow.blk { opacity: .5; }
.bblk-tog { display: block; margin: .4rem auto; }
.blocklist .li { align-items: center; }
.store button.small:not(.sttab):not(.sslot):not(.stplus), .store .stbar button { height: 32px; min-height: 0; padding: 0 .7rem; font-size: .82rem; color: var(--st-ink); background: linear-gradient(180deg, #4a3423, #3a281a); border: 1px solid #7a5a38; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 230, 190, .1); }
.store button.small.primary, .store .stbar button.primary { color: #2a1a0c; background: linear-gradient(180deg, #e2bb6c, #b58637); border-color: #f0d394; }
.store button.small:disabled, .store .stbar button:disabled { opacity: .45; }
.store button.small.ghost { background: transparent; }
@media (max-width: 860px) { .page .store .stbar, main .store .stbar { position: fixed; left: 8px; right: 8px; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); z-index: 200; margin: 0; gap: .3rem; } .page .store .stbar .grow { display: none; } .page .store .stbar .stsel { margin-right: auto; } .modal .store .stbar { position: sticky; left: auto; right: auto; bottom: 0; } }
/* 길드 주간 공동 의뢰 (아지트) */
.gj-goal { border-bottom: 1px dashed var(--line); padding: .25rem 0 .35rem; }
.gj-goal > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.gj-goal > summary::-webkit-details-marker { display: none; }
.gj-goal.done b { color: var(--ink-2); }
.gj-by { margin-top: .3rem; } .gj-by .li { padding: .15rem .3rem; font-size: .82rem; } .gj-by .li.me { background: color-mix(in srgb, var(--gilt-2) 16%, transparent); }
.gj-goal .gj-n { gap: .5rem; font-size: .82rem; white-space: nowrap; }
.gj-goal .gj-line { font-size: .78rem; line-height: 1.45; }

/* ── 세트 · 하나뿐인 효과 ── */
.setchip { --sc: var(--gilt); display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; padding: .05rem .45rem; border: 1px solid color-mix(in srgb, var(--sc) 55%, var(--line)); color: color-mix(in srgb, var(--sc) 70%, var(--ink)); background: color-mix(in srgb, var(--sc) 6%, var(--surface)); white-space: nowrap; }
.setchip i { width: 6px; height: 6px; background: var(--sc); opacity: .45; }
.setchip.on i, .setchip.full i { opacity: 1; } .setchip.full { font-weight: 700; box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc) 40%, transparent); }
.setprog { display: flex; flex-wrap: wrap; gap: .3rem; }
.eqc-set { display: flex; }
.uqline { --uc: #e8743a; display: flex; gap: .35rem; align-items: flex-start; font-size: .78rem; line-height: 1.4; color: color-mix(in srgb, var(--uc) 80%, var(--ink)); font-weight: 600; }
.uqline .px { margin-top: .25rem; color: var(--uc); }
:root[data-tone="dark"] .uqline { color: var(--uc); }

/* ── 아이템 카드 ── */
.icard { --gc: var(--g0); display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; padding: .55rem .6rem .6rem; background: color-mix(in srgb, var(--gc) 4%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gc) 35%, var(--line)); }
.icard.ghost { justify-content: center; min-height: 160px; border-style: dashed; }
.ic-frame .gearslot { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gc) 30%, transparent), 0 0 0 1px var(--line-2); }
.ic-label { display: flex; align-items: center; justify-content: center; gap: .3rem; width: 100%; padding: .22rem .5rem; font-size: .84rem; color: #fff8ec; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gc) 85%, #2a1d12) 12%, color-mix(in srgb, var(--gc) 85%, #2a1d12) 88%, transparent); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); min-width: 0; }
.ic-label b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-label .ic-gr { flex: none; opacity: .9; font-size: .76rem; }
.ic-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 170px; }
.ic-pips i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--surface-3); border: 1px solid var(--line-2); }
.ic-pips i.on { background: var(--gilt-2); border-color: var(--gilt); box-shadow: 0 0 3px color-mix(in srgb, var(--gilt-2) 70%, transparent); }
.ic-pips i:nth-child(5n) { margin-right: 3px; }
.ic-stats { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 1px; font-size: .82rem; }
.ic-stats li { display: flex; justify-content: space-between; gap: .5rem; padding: 1px .25rem; }
.ic-stats li .l { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-stats li .v { white-space: nowrap; }
.ic-stats li.chg { background: color-mix(in srgb, #3f9a5a 12%, transparent); }
.ic-stats li.chg .v { color: #2f8a4a; font-weight: 700; }
:root[data-tone="dark"] .ic-stats li.chg .v { color: var(--mint); }
.ic-stats li.unk .v { color: var(--gilt); }
.ic-stats li.ot4 .l, .ic-stats li.ot5 .l { color: color-mix(in srgb, var(--gilt) 80%, var(--ink)); }
.ic-stats .gem { display: inline-flex; margin-left: 2px; } .ic-stats .gem.empty { color: var(--ink-3); }
.ic-set { --sc: var(--gilt); font-size: .76rem; color: color-mix(in srgb, var(--sc) 75%, var(--ink)); font-weight: 600; }

/* ── 장비 상세: 얇은 행동 줄 ── */
.gd-card { margin-top: .5rem; } .gd-card .icard { max-width: 360px; margin: 0 auto; }
.gd-set { display: flex; justify-content: center; align-items: center; gap: .4rem; margin-top: .35rem; }
.gacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: .6rem; }
.gact { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 40px !important; height: auto; padding: .3rem .2rem; font-size: .76rem; line-height: 1.1; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; }
.gact .px { color: color-mix(in srgb, var(--gilt) 72%, var(--ink)); width: 18px; height: 18px; } /* 선 아이콘: 종이 · 밤 모두 3:1 넘게 */
.gact:hover:not(:disabled) { border-color: var(--gilt); color: var(--ink); }
.gact::after { content: ''; position: absolute; inset: -3px 0; }
.gd-foot .lockbtn.icon { margin-right: auto; width: 34px; min-width: 34px !important; padding: 0; justify-content: center; }

/* ── 강화 · 세공 · 옵션 판 (지금 → 결과) ── */
.modal.upgsheet { --mini: 34px; }
.upg-head { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding-right: 0; }
.upg-head h3 { font-size: 1.05rem; text-align: center; }
.upg-tabs { display: inline-flex; border: 1px solid var(--line-2); background: var(--surface-2); }
.upg-tabs button { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px !important; height: 32px; padding: 0 .85rem; font-size: .84rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink-3); position: relative; }
.upg-tabs button::after { content: ''; position: absolute; inset: -6px 0; }
.upg-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gilt); }
.upg-tabs button .px { color: color-mix(in srgb, var(--gilt) 72%, var(--ink)); }
.upg-cards { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .35rem; margin-top: .6rem; }
.upg-arrow { color: var(--line-2); display: grid; place-items: center; }
@media (max-width: 380px) { .upg-cards { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); gap: .2rem; } .upg-cards .icard { padding: .4rem .3rem; } .upg-cards .ic-stats { font-size: .74rem; } .upg-cards .ic-label { font-size: .74rem; } .upg-arrow .px { width: 14px; height: 10px; } }
.upg-cards .ic-label .ic-gr { display: none; }
.upg-res { text-align: center; margin: .35rem 0 0; font-weight: 700; font-family: var(--font-head); }
.upg-res.ok { color: #2f8a4a; } .upg-res.no { color: var(--ink-3); }
.upg-ctl { display: flex; flex-direction: column; gap: .4rem; margin-top: .55rem; }
.upg-ctl .seg { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; }
.upg-ctl .seg button { min-height: 30px !important; height: 30px; font-size: .8rem; padding: 0 .7rem; position: relative; }
.upg-ctl .seg button::after { content: ''; position: absolute; inset: -7px 0; }
.upg-ctl .seg button[aria-pressed="true"] { background: var(--ink-2); color: var(--surface); border-color: var(--ink-2); }
.optpick { display: flex; flex-direction: column; border: 1px solid var(--line); }
.opk { display: flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .5rem; font-size: .84rem; border-bottom: 1px dotted var(--line); cursor: pointer; }
.opk:last-child { border-bottom: 0; }
.opk.on { background: color-mix(in srgb, var(--gilt) 12%, transparent); }
.opk.lk { background: color-mix(in srgb, var(--gilt) 8%, transparent); } .opk.lk .px { color: var(--gilt); }
.opk .radio { width: 10px; height: 10px; border: 1px solid var(--ink-3); border-radius: 50%; flex: none; }
.opk.on .radio { background: var(--gilt); border-color: var(--gilt); }
.gempick { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; }
.gp { display: inline-flex; align-items: center; gap: .2rem; min-height: 36px !important; height: 36px; padding: 0 .45rem; font-size: .78rem; }
.gp.on { border-color: var(--gilt); background: color-mix(in srgb, var(--gilt) 14%, var(--surface)); }
.upg-cost { margin-top: .6rem; display: flex; flex-direction: column; gap: .35rem; }
.upg-ct { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-3); letter-spacing: .1em; }
.upg-ct::before, .upg-ct::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.upg-cr { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; }
.cframe { display: inline-flex; align-items: center; gap: .35rem; }
.cf-ic { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--surface); }
.cf-n { font-size: .82rem; color: var(--ink-3); } .cf-n b { color: var(--ink); }
.cframe.short .cf-n, .cframe.short .cf-n b { color: var(--rose); font-weight: 700; } .cframe.short .cf-ic { border-color: var(--rose); }
.upg-rate { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .86rem; }
.upg-rate b { font-size: 1.05rem; }
.upg-note { text-align: center; font-size: .78rem; }
.upg-go { display: flex; justify-content: center; margin-top: .7rem; padding-bottom: .4rem; }
button.primary.slim { min-height: 36px !important; height: 36px; min-width: 12rem; padding: 0 1.6rem; font-size: .92rem; letter-spacing: .12em; position: relative; }
button.primary.slim::after { content: ''; position: absolute; inset: -4px 0; }
/* 등급 색 (.eqc · .icard 의 기본값보다 앞서게) */
:is(.eqc, .icard).gb0 { --gc: var(--g0); } :is(.eqc, .icard).gb1 { --gc: var(--g1); } :is(.eqc, .icard).gb2 { --gc: var(--g2); }
:is(.eqc, .icard).gb3 { --gc: var(--g3); } :is(.eqc, .icard).gb4 { --gc: var(--g4); } :is(.eqc, .icard).gb5 { --gc: var(--g5); }
.ic-label[class*=" g"] { color: #fff8ec; }
.ic-stats .sk { display: inline-flex; margin-left: 3px; } .ic-stats .sk.sk0 { color: var(--ink-3); }
@media (max-width: 480px) { .ic-pips { max-width: 150px; gap: 1px; } .ic-pips i { width: 6px; height: 6px; } .ic-pips i:nth-child(5n) { margin-right: 2px; } }
/* ── 유물 칸 · 아스트롤라베 복원 (public/js/astro.js) ── */
.eqc.axc { --gc: var(--gilt); }
.eqc.axc.locked { --gc: var(--line-2); border-style: dashed; background: transparent; cursor: help; }
.eqc.axc.off { opacity: .72; }
.axc .gearslot.axic { display: grid; place-items: center; width: 52px; height: 52px; flex: none; }
.axstate { font-size: .8rem; } .axstate.gold { color: var(--gilt); } .axstate.good { color: var(--good, #3f7a3a); }
.axdot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 2px var(--surface); }
.axfx { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .8rem; }
.axfx.eqc-opts { flex-direction: row; }
.axmodal { width: min(520px, 100%); }
.axmodal .axsign, .axresult .axsign {
  display: block; width: fit-content; max-width: calc(100% - 3.2rem); margin: 0 auto .7rem; height: 2.2rem; line-height: calc(2.2rem - 2px); padding: 0 1.5rem; box-sizing: border-box;
  font-family: var(--font-head); font-weight: 400; font-size: 1.05rem; letter-spacing: .12em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--wood-ink); text-shadow: var(--engrave);
  background: var(--brass-nail) 4px 50% / 9px 9px no-repeat, var(--brass-nail) calc(100% - 4px) 50% / 9px 9px no-repeat, var(--wood-grain) 0 0 / 200px 32px, var(--wood);
  border: 1px solid var(--wood-edge); border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.axload { padding: 2rem 0; text-align: center; }
.axhead { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.axbig { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--surface); }
.axbig.done { border-color: var(--gilt); box-shadow: inset 0 0 0 2px var(--surface), 0 0 10px color-mix(in srgb, var(--gilt) 40%, transparent); }
.axname { font-family: var(--font-head); font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.axhead .row.between { gap: .5rem; }
.axhead button.small { flex: none; }
.axline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .25rem; margin-bottom: .7rem; }
@media (max-width: 560px) { .axline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.axst { display: grid; justify-items: center; gap: .15rem; padding: .3rem .1rem; min-height: 44px; border: 1px solid var(--line); background: var(--surface-2); font-size: .74rem; line-height: 1.25; text-align: center; color: var(--ink-2); font-family: inherit; }
.axst b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.axst .n { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: .7rem; }
button.axst { cursor: pointer; min-height: 44px; }
.axst.done { background: var(--primary-soft); }
.axst.done .n { background: var(--gilt); color: var(--on-primary, #fff); border-color: var(--gilt); }
.axst.gather, .axst.working { border-color: var(--gilt); box-shadow: 0 0 0 1px var(--gilt) inset; color: var(--ink); }
.axst.locked { opacity: .55; } .axst.gated .n { border-style: dashed; }
.axcur { display: flex; flex-direction: column; gap: .45rem; }
.axcur h4 { margin: 0; font-family: var(--font-head); }
.axdesc { margin: 0; font-size: .88rem; color: var(--ink-2); word-break: keep-all; }
.axwhos { display: inline-flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.axwho { font-size: .78rem; padding: .05rem .45rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); white-space: nowrap; cursor: help; }
.axgain { gap: .45rem; align-items: baseline; }
.axmats .li { cursor: pointer; }
.axhave { min-width: 3.6rem; text-align: right; font-size: .78rem; }
.axcost { gap: .5rem; align-items: center; }
.axgate { margin: 0; font-size: .84rem; color: var(--rose); }
.axacts { justify-content: flex-end; gap: .5rem; }
.axacts button { min-height: 36px; }
.axacts button.primary { min-width: 6.5rem; letter-spacing: .3em; text-indent: .3em; }
.axwork { display: flex; justify-content: space-between; align-items: baseline; padding: .45rem .2rem; border-top: 1px dotted var(--line-2); font-size: .92rem; }
.axdone .lore { margin: 0 0 .5rem; }
/* 결과: 조용히 떠오르는 원반 → 고친 사람의 이야기 → 금빛 줄 → 기억(종이가 한 겹 짙다) */
.axresult { width: min(560px, 100%); }
.axres-top { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: .2rem 0 .4rem; }
.axres-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gilt-2) 32%, transparent), transparent 70%); animation: axrise 1.4s ease-out both; }
.axres-ic.done { animation: axrise 1.4s ease-out both, axglow 3.2s ease-in-out 1.4s infinite; }
@keyframes axrise { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes axglow { 50% { box-shadow: 0 0 22px color-mix(in srgb, var(--gilt-2) 45%, transparent); } }
.axresult .scene { font-size: .98rem; line-height: 1.9; gap: .5rem; word-break: keep-all; }
.axresult .axmem { padding: .7rem .8rem; background: color-mix(in srgb, var(--surface-3) 55%, transparent); border-left: 2px solid var(--gilt); animation: axfade 1.6s ease-out .5s both; }
.axresult .axmem p { color: var(--ink); }
@keyframes axfade { from { opacity: 0; } to { opacity: 1; } }
.axrule { height: 1px; margin: .8rem 18%; background: linear-gradient(90deg, transparent, var(--gilt), transparent); }
.axres-fx { justify-content: center; margin: .8rem 0 .4rem; }
@media (prefers-reduced-motion: reduce) { .axres-ic, .axres-ic.done, .axresult .axmem { animation: none; } }
/* 아스트롤라베 세공 (public/js/astro.js refPlate · openAstroRefine) */
.axref { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .6rem; }
.axref h4 { margin: 0; font-family: var(--font-head); }
.axref .row.between button.small { min-height: 32px; height: 32px; position: relative; } .axref .row.between button.small::after { content: ''; position: absolute; inset: -6px 0; }
.axref-rows { display: flex; flex-direction: column; border: 1px solid var(--line); }
.axref-row { display: flex; align-items: center; gap: .45rem; min-height: 34px; padding: 0 .5rem; font-size: .84rem; border-bottom: 1px dotted var(--line); }
.axref-row:last-child { border-bottom: 0; }
.axref-row.locked { opacity: .6; } .axref-row .px { color: var(--ink-3); flex: none; }
.axref-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.axrefsheet .upg-head { margin-bottom: .1rem; }
.axref-card .ic-label b { font-family: var(--font-head); font-weight: 500; }
.axref-card .gearslot.axic { display: grid; place-items: center; width: 52px; height: 52px; }
.axref-pick { gap: .6rem; }
.axref-pick button.slim { min-width: 8.5rem; }
/* 「추천 카드 장착」 미리 보기 (public/js/pages/cards.js drawPreview) */
.cauto-bar { margin-top: .6rem; }
.cauto-bar .cauto-go, .cauto-btns button, .cauto-mode button { white-space: nowrap; }
.cauto { margin-top: .6rem; display: flex; flex-direction: column; gap: .5rem; max-width: 640px; }
.cauto-head { flex-wrap: wrap; gap: .3rem .6rem; }
.cauto-mode { gap: .35rem; }
.cauto-mode button.on, .cauto-mode button.on:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 700; opacity: 1; }
.cauto-list { display: flex; flex-direction: column; gap: .35rem; }
.cauto-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .15rem .5rem; align-items: center; padding: .35rem .45rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.cauto-row.ch { border-color: color-mix(in srgb, var(--gilt) 55%, var(--line)); }
.cauto-i { grid-row: span 2; font-size: var(--t-small); color: var(--ink-2); }
.cauto-sw { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .35rem; min-width: 0; }
.cauto-nm { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; }
.cauto-nm .cauto-t { overflow: hidden; text-overflow: ellipsis; }
.cauto-nm.old { color: var(--ink-2); font-size: var(--t-small); }
.cauto-nm.old .cauto-t { text-decoration: line-through; }
.cauto-nm.new { font-weight: 700; }
.cauto-from { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; max-width: 100%; }
.cauto-arr { color: var(--gilt); flex: none; }
.cauto-why { justify-self: start; }
.cauto-btns { gap: .5rem; }
.cauto .g { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.25rem; padding: 0 .25rem; font-size: .7rem; font-weight: 700; color: #f6e8c9; font-family: var(--font-num); clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); flex: none; }
.cauto .g.gC { background: #7d7466; } .cauto .g.gB { background: #3d7a4f; } .cauto .g.gA { background: #2f5f93; } .cauto .g.gS { background: linear-gradient(135deg, #8a3d7a, #5d3d8a); } .cauto .g.gSS { background: linear-gradient(135deg, #a6561c, #b8902a); }

/* ── 동행 펫 칸 (public/js/petslot.js): 장비 칸과 같은 꼴, 도트는 작게 ── */
.ptslot .pts-por { width: 52px; height: 52px; overflow: hidden; }
.ptslot .pts-por > span { border-radius: 0 !important; }
.ptslot.empty .pts-por .pxpaw { width: 22px; height: 22px; color: var(--ink-3); }
.ptslot .pts-go { color: var(--gilt); font-weight: 700; }
.ptslot .eqc-name { font-weight: 700; }
.pts-opts { gap: .25rem; }
.pts-opts .gxcomp-fx, .pts-card, .pts-card .faint { font-size: .78rem; }
.pts-fxs { display: flex; flex-wrap: wrap; gap: .2rem .35rem; }
.pts-fx { font-size: .78rem; padding: 0 .35rem; line-height: 1.5; background: color-mix(in srgb, var(--gc) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 28%, var(--line)); color: var(--ink-2); white-space: nowrap; }
.pts-card { display: flex; align-items: center; gap: .4rem; font-size: .78rem; min-width: 0; }
.pts-card .cardchip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 자세히 */
.ptsheet .pts-head { display: flex; gap: .7rem; align-items: center; padding-right: 2rem; }
.ptsheet .pts-por.big { width: 64px; height: 64px; overflow: hidden; }
.ptsheet .pts-tt { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ptsheet .pts-tt h3 { margin: 0; }
.ptsheet .pts-tags { gap: .4rem; flex-wrap: wrap; }
.ptsheet .pts-tags .pxpaw { width: 11px; height: 11px; }
.ptsheet .pts-desc { margin: .6rem 0 .4rem; font-size: .88rem; color: var(--ink-2); }
.ptsheet .pts-dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .7rem; margin: 0; font-size: .88rem; align-items: center; }
.ptsheet .pts-dl dt { color: var(--ink-3); }
.ptsheet .pts-dl dd { margin: 0; min-width: 0; }
.ptsheet .pts-note { margin: .55rem 0 0; }
.ptsheet .pts-foot { margin-top: .7rem; gap: .5rem; }
/* 능력 합계 아래: 펫 보유 효과 한 줄 */
.pts-hold { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; padding-top: .45rem; border-top: 1px dotted var(--line); }
.pts-hold-l { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-3); }
.pts-hold-l .pxpaw { width: 12px; height: 12px; }
.pts-hold-v { color: var(--ink-2); }

/* ── 스킬카드 강화 (public/js/pages/cards.js feed): 카드 고르기 격자 · 고른 카드 · 강화 재료 칸 — 장비 강화 판과 같은 결 ── */
.cfd { --gc: var(--g0); display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; max-width: 1120px; margin: 0 auto; text-align: left; }
@media (min-width: 900px) { .cfd { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: start; } .cfd-main { position: sticky; top: .5rem; } .cfd-pick .cfd-grid { max-height: min(68vh, 640px); } }
.cfd-main { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.cfd :is(.cfd-tile, .cfd-mat, .cfd-big, .cfd-sel).gC { --gc: var(--g0); } .cfd :is(.cfd-tile, .cfd-mat, .cfd-big, .cfd-sel).gB { --gc: var(--g1); } .cfd :is(.cfd-tile, .cfd-mat, .cfd-big, .cfd-sel).gA { --gc: var(--g2); }
.cfd :is(.cfd-tile, .cfd-mat, .cfd-big, .cfd-sel).gS { --gc: var(--g4); } .cfd :is(.cfd-tile, .cfd-mat, .cfd-big, .cfd-sel).gSS { --gc: var(--g5); }
.cfd .g, .cfd-chip .g { display: inline-grid; place-items: center; min-width: 1.45rem; height: 1.1rem; padding: 0 .22rem; font-size: .64rem; font-weight: 700; color: #f6e8c9; font-family: var(--font-num); line-height: 1; clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%); flex: none; }
.cfd .g.gC, .cfd-chip .g.gC { background: #7d7466; } .cfd .g.gB, .cfd-chip .g.gB { background: #3d7a4f; } .cfd .g.gA, .cfd-chip .g.gA { background: #2f5f93; }
.cfd .g.gS, .cfd-chip .g.gS { background: linear-gradient(135deg, #8a3d7a, #5d3d8a); } .cfd .g.gSS, .cfd-chip .g.gSS { background: linear-gradient(135deg, #a6561c, #b8902a); }
.cfd .plate { padding: .65rem .7rem; min-width: 0; }
.cfd-ph { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; min-width: 0; }
.cfd-ph h4 { margin: 0; white-space: nowrap; }
.cfd-ph > :last-child { margin-left: auto; }
.cfd-ph .si { width: 14px; height: 14px; }
.cfd-sum { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* 거르기 칩 */
.cfd-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .35rem; }
.cfd-chips.gr { margin-bottom: .55rem; }
.cfd-chip { min-height: 30px; padding: .15rem .6rem; font-size: .8rem; font-weight: 700; border-radius: 999px; background: var(--surface); box-shadow: none; gap: .3rem; }
.cfd-chip .n { font-size: .7rem; color: var(--ink-3); font-weight: 400; }
.cfd-chip.on { background: var(--ink-2); color: var(--surface); border-color: var(--ink-2); }
.cfd-chip.on .n { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.cfd-chip.up::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mint) 25%, transparent); }
.cfd-chip.gg { padding: .15rem .45rem; }

/* 카드 고르기 격자 */
.cfd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: .4rem; max-height: 236px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 4px; scrollbar-width: thin; }
.cfd-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .15rem; min-width: 0; min-height: 0; padding: .35rem .25rem .3rem; white-space: normal; background: color-mix(in srgb, var(--gc) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gc) 45%, var(--line)); border-top: 3px solid var(--gc); border-radius: var(--r-s); box-shadow: none; font-weight: 400; overflow: visible; }
.cfd-tile:hover:not(:disabled) { background: color-mix(in srgb, var(--gc) 12%, var(--surface)); border-color: var(--gc); }
.cfd-tile.cur { background: color-mix(in srgb, var(--gc) 16%, var(--surface)); box-shadow: 0 0 0 2px var(--gc), 0 0 10px color-mix(in srgb, var(--gc) 40%, transparent); }
.cfd-tile.gS, .cfd-tile.gSS { box-shadow: inset 0 0 8px color-mix(in srgb, var(--gc) 22%, transparent); }
.cfd-tile.cur.gS, .cfd-tile.cur.gSS { box-shadow: 0 0 0 2px var(--gc), 0 0 12px color-mix(in srgb, var(--gc) 50%, transparent); }
.cfd-art { position: relative; display: grid; place-items: center; width: 44px; height: 44px; background: color-mix(in srgb, var(--gc) 10%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--gc) 35%, var(--line)); border-radius: var(--r-s); flex: none; }
.cfd-art > .si { width: 24px; height: 24px; color: var(--gc); }
.cfd-art > .g { position: absolute; left: -5px; top: -6px; }
.cfd-eq { position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--gilt); color: #fff8ec; box-shadow: 0 0 0 2px var(--surface); }
.cfd-eq .si { width: 11px; height: 11px; stroke-width: 3; }
.cfd-dot { position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px var(--surface); }
.cfd-lv { font-size: .7rem; font-weight: 700; color: var(--ink-2); line-height: 1.1; }
.cfd-lv.max { color: var(--gilt); letter-spacing: .04em; }
.cfd-nm { display: block; width: 100%; font-size: .72rem; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfd-none { grid-column: 1 / -1; text-align: center; padding: .8rem 0; margin: 0; }

/* 고른 카드 */
.cfd-sel { border-top: 3px solid var(--gc); background: color-mix(in srgb, var(--gc) 4%, var(--surface)); }
.cfd-hero { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.cfd-big { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 84px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gc) 22%, var(--surface)), color-mix(in srgb, var(--gc) 8%, var(--surface-2))); border: 2px solid var(--gc); border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--surface), 0 0 12px color-mix(in srgb, var(--gc) 25%, transparent); overflow: visible; cursor: help; }
.cfd-big > .g { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); min-width: 1.9rem; height: 1.25rem; font-size: .74rem; }
.cfd-big .spks { position: absolute; inset: 0; pointer-events: none; }
.cfd-id { display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1; }
.cfd-title { font-size: 1.08rem; font-family: var(--font-head); line-height: 1.25; overflow-wrap: anywhere; }
.cfd-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.cfd-lvs { display: flex; align-items: center; gap: .3rem; font-family: var(--font-head); font-size: 1.05rem; }
.cfd-lvs .cur { color: var(--ink-2); }
.cfd-lvs .nx.up { color: var(--mint); font-weight: 700; }
:root:not([data-tone="dark"]) .cfd-lvs .nx.up { color: #2f7a46; }
.cfd-arr { display: inline-grid; color: var(--ink-3); } .cfd-arr .si { width: 16px; height: 16px; }
.cfd-plus { font-size: .74rem; padding: 0 .3rem; border-radius: 999px; background: color-mix(in srgb, var(--mint) 18%, transparent); color: var(--mint); font-family: var(--font-num); font-weight: 700; }
.cfd-max { font-size: .76rem; font-weight: 700; color: #fff8ec; background: linear-gradient(135deg, var(--gilt), var(--gilt-2)); padding: .05rem .45rem; border-radius: var(--r-s); font-family: var(--font-body, inherit); }
.cfd-pips { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 2px; max-width: 220px; }
.cfd-pips i { height: 6px; background: var(--surface-3); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.cfd-pips i.on { background: var(--gc); border-color: var(--gc); }
.cfd-pips i.nx { background: color-mix(in srgb, var(--mint) 70%, var(--surface)); border-color: var(--mint); animation: cfdBlink 1.2s ease-in-out infinite alternate; }
@keyframes cfdBlink { to { opacity: .45; } }
.cfd-eff { display: flex; flex-direction: column; gap: .25rem; margin-top: .8rem; padding-top: .5rem; border-top: 1px dotted color-mix(in srgb, var(--gc) 35%, var(--line)); font-size: .86rem; }
.cfd-er { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .4rem; align-items: baseline; }
.cfd-er .k { color: var(--ink-3); font-size: .78rem; white-space: nowrap; }
.cfd-er .v { min-width: 0; overflow-wrap: anywhere; }
.cfd-er.after { background: color-mix(in srgb, var(--mint) 8%, transparent); margin: 0 -.3rem; padding: .15rem .3rem; border-radius: var(--r-s); }
.cfd-chg { color: #2f7a46; font-weight: 700; }
:root[data-tone="dark"] .cfd-chg { color: var(--mint); }
.cfd-to { color: var(--ink-3); }
.cfd-xp { margin-top: .6rem; display: flex; flex-direction: column; gap: .25rem; }
.cfd-xph { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--ink-2); }
.cfd-gain { color: #2f7a46; font-weight: 700; } :root[data-tone="dark"] .cfd-gain { color: var(--mint); }
.cfd-bar { position: relative; height: 10px; background: var(--surface-3); border: 1px solid var(--line); overflow: hidden; border-radius: 2px; }
.cfd-bar i { position: absolute; top: 0; bottom: 0; left: 0; transition: width .25s, left .25s; }
.cfd-bar i.cur { background: repeating-linear-gradient(90deg, var(--gilt) 0 6px, var(--gilt-2) 6px 8px); }
.cfd-bar i.add { background: repeating-linear-gradient(90deg, var(--mint) 0 6px, color-mix(in srgb, var(--mint) 65%, #fff) 6px 8px); opacity: .9; }
.cfd-rule { font-size: .74rem; line-height: 1.4; }
.cfd-warn { color: var(--rose); }
.cfd-pulse .cfd-big { animation: cfdPulse .9s ease-out; }
@keyframes cfdPulse { 0% { box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 0 color-mix(in srgb, var(--gc) 70%, transparent); transform: scale(1.06); } 100% { box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 18px transparent; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cfd-pips i.nx, .cfd-pulse .cfd-big { animation: none; } }

/* 강화 재료 칸 */
.cfd-auto { gap: .25rem; }
.cfd-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .4rem; max-height: 290px; overflow-y: auto; padding: 6px 2px 2px; overscroll-behavior: contain; scrollbar-width: thin; }
.cfd-mat { position: relative; min-width: 0; }
.cfd-mat.dust { --gc: var(--gilt); }
.cfd-mt { display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 100%; min-height: 0; padding: .35rem .25rem .3rem; white-space: normal; font-weight: 400; background: var(--surface); border: 1px solid color-mix(in srgb, var(--gc) 40%, var(--line)); border-radius: var(--r-s); box-shadow: none; overflow: visible; }
.cfd-mt.full { cursor: default; }
.cfd-mat.on .cfd-mt { background: color-mix(in srgb, var(--mint) 12%, var(--surface)); border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.cfd-mt .cfd-art { width: 40px; height: 40px; }
.cfd-pk { position: absolute; right: -7px; top: -7px; min-width: 20px; height: 20px; padding: 0 .25rem; display: grid; place-items: center; border-radius: 999px; background: var(--mint); color: #fff; font-size: .72rem; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); }
.cfd-mi { display: flex; justify-content: space-between; gap: .2rem; width: 100%; font-size: .68rem; line-height: 1.2; }
.cfd-mi .have { color: var(--ink-3); white-space: nowrap; }
.cfd-mi .xp { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cfd-mi .xp.same { color: var(--ink); } .cfd-mi .xp.low { color: var(--ink-3); } .cfd-mi .xp.high { color: var(--g4); }
.cfd-minus { position: absolute; left: -5px; top: -5px; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); z-index: 1; }
.cfd-minus .si { width: 12px; height: 12px; }
.cfd-nomat { text-align: center; padding: .4rem .2rem; }
.cfd-nomat > b { color: var(--rose); }
.cfd-nomat p { margin: .3rem 0 .55rem; font-size: .82rem; }
.cfd-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.cfd-links .si { width: 14px; height: 14px; }
.cfd-where { margin-top: .5rem; font-size: .82rem; }
.cfd-where summary { cursor: pointer; color: var(--ink-3); }
.cfd-where .cfd-links { margin-top: .4rem; }
.cfd-empty { text-align: center; max-width: 520px; margin: 0 auto; }

/* 단추: 한 줄, 가운데 */
.cfd-act { display: flex; justify-content: center; gap: .5rem; }
.cfd-act button { flex: 0 1 auto; min-width: 7.5rem; }
.cfd-go { min-width: 10rem !important; }
@media (max-width: 520px) { .cfd .plate { padding: .55rem .55rem; } .cfd-act button { flex: 1 1 0; min-width: 0; } .cfd-big { width: 72px; height: 72px; } }
.cfd svg.si { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cfd .cfd-art > svg.si { width: 24px; height: 24px; } .cfd .cfd-eq svg.si { width: 11px; height: 11px; stroke-width: 3; } .cfd .cfd-arr svg.si { width: 16px; height: 16px; } .cfd .cfd-minus svg.si { width: 12px; height: 12px; stroke-width: 2.4; }
/* 칸이 갈래마다 따로인 판 (가방 · 가구 보관함): 탭의 「12/15」 · 가득 찬 탭 · 머리의 갈래 이름 */
.sttab.full small { color: #f08a7a; opacity: 1; }
.stcapl { font-size: .74rem; white-space: nowrap; }
@media (max-width: 420px) { .sttabs .sttab { padding: 0 .42rem; font-size: .78rem; } .sttab small { margin-left: .18rem; font-size: .64rem; } .stcapl { display: none; } }
/* 휴대폰: 갈래 탭이 한 줄을 고르게 채우고(글 가운데), 부위 · 정리 · 정렬은 그 아래 줄로 — 탭 하나만 아랫줄로 떨어지지 않게 */
@media (max-width: 520px) {
  .sttabs { column-gap: .2rem; row-gap: 0; }
  .sttabs .sttab { flex: 1 1 auto; justify-content: center; padding: 0 .22rem; font-size: .74rem; letter-spacing: -.01em; }
  .sttabs .sttab small { margin-left: .14rem; font-size: .62rem; }
  .sttabs::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .sttabs > :not(.sttab) { order: 2; margin-top: .4rem; }
}
.vexpand { align-items: center; justify-content: space-between; }
.chestfoot { margin: .35rem .15rem 0; } .chestfoot label { gap: .35rem; cursor: pointer; }

/* ── 장착한 카드 칸 (2026-10-28, public/js/ui.js cardSlot): 장비처럼 — 같은 크기의 틀 · 등급 색 테두리 · 놋쇠 모서리 · 액자 속 그림 ──
   모든 칸이 같은 높이: 머리 한 줄 · 효과 3줄 · 수치 한 줄 · 설명 2줄 · 아래 한 줄을 정해진 높이로 둔다 (넘치는 글은 잘리고, 올려 두거나 누르면 전체 설명) */
.cslots { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: .7rem; }
.cslot { --gc: var(--g0); --brass: color-mix(in srgb, var(--gilt-2) 72%, var(--gc)); position: relative; display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding: .55rem .7rem .55rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 9%, transparent), transparent 42%), var(--surface) var(--paper);
  border: 1px solid color-mix(in srgb, var(--gc) 62%, var(--line-2));
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px color-mix(in srgb, var(--gc) 26%, transparent), 0 2px 6px rgba(40, 24, 10, .16); }
.cslot.gb0 { --gc: var(--g0); } .cslot.gb1 { --gc: var(--g1); } .cslot.gb2 { --gc: var(--g2); } .cslot.gb3 { --gc: var(--g3); } .cslot.gb4 { --gc: var(--g4); } .cslot.gb5 { --gc: var(--g5); }
/* 놋쇠 모서리 (네 귀퉁이의 ㄱ자 쇠) */
.cs-orn { position: absolute; inset: 2px; pointer-events: none; --o: var(--brass); --L: 13px; --t: 2px;
  background:
    linear-gradient(var(--o), var(--o)) left top / var(--L) var(--t), linear-gradient(var(--o), var(--o)) left top / var(--t) var(--L),
    linear-gradient(var(--o), var(--o)) right top / var(--L) var(--t), linear-gradient(var(--o), var(--o)) right top / var(--t) var(--L),
    linear-gradient(var(--o), var(--o)) left bottom / var(--L) var(--t), linear-gradient(var(--o), var(--o)) left bottom / var(--t) var(--L),
    linear-gradient(var(--o), var(--o)) right bottom / var(--L) var(--t), linear-gradient(var(--o), var(--o)) right bottom / var(--t) var(--L);
  background-repeat: no-repeat; }
/* 등급이 높을수록 테두리가 은은히 빛난다 */
.cslot.cgA { box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px color-mix(in srgb, var(--gc) 32%, transparent), 0 0 10px color-mix(in srgb, var(--gc) 22%, transparent), 0 2px 6px rgba(40, 24, 10, .16); }
.cslot.cgS, .cslot.cgSS { --brass: var(--gilt-2); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px color-mix(in srgb, var(--gc) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--gilt) 35%, transparent), 0 0 16px color-mix(in srgb, var(--gc) 32%, transparent); }
.cslot.cgSS { --L: 16px; }
/* 머리: 등급 보석 · 이름 · Lv — 아래로 등급 색 금 */
.cs-head { display: flex; align-items: center; gap: .5rem; min-width: 0; height: 1.75rem; padding: 0 .1rem .4rem .15rem; border-bottom: 1px solid color-mix(in srgb, var(--gc) 35%, var(--line)); box-sizing: content-box; }
.cs-g { flex: none; display: inline-grid; place-items: center; min-width: 1.85rem; height: 1.45rem; padding: 0 .3rem; font: 700 .74rem/1 var(--font-num); color: #fbf0d6; letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gc) 70%, #fff) 0 18%, var(--gc) 45%, color-mix(in srgb, var(--gc) 70%, #000) 100%);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.cgS .cs-g { background: linear-gradient(135deg, #b46fa4 0 15%, #8a3d7a 45%, #5d3d8a); } .cgSS .cs-g { background: linear-gradient(135deg, #e7c36a 0 15%, #b8902a 45%, #a6561c); }
.cs-nm { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-lv { flex: none; font-size: .74rem; font-weight: 700; color: var(--ink-2); padding: .05rem .4rem; border: 1px solid color-mix(in srgb, var(--brass) 55%, var(--line)); background: color-mix(in srgb, var(--brass) 12%, var(--surface-2)); }
/* 그림 + 효과 */
.cs-body { display: flex; gap: .65rem; align-items: flex-start; min-width: 0; height: 4.4rem; }
.cs-art { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; background: radial-gradient(circle at 50% 40%, #3a2c20, #221a14 72%);
  border: 1px solid color-mix(in srgb, var(--gc) 70%, #000); box-shadow: inset 0 0 0 2px #3a2d22, inset 0 0 0 3px color-mix(in srgb, var(--brass) 45%, transparent), 0 1px 3px rgba(40, 24, 10, .3); }
.cs-art img, .cs-art canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.cgS .cs-art, .cgSS .cs-art { box-shadow: inset 0 0 0 2px #3a2d22, inset 0 0 0 3px var(--gilt-2), 0 0 0 1px var(--gilt), 0 0 10px rgba(214, 180, 106, .45); }
.cs-eff { flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; max-height: calc(3 * 1.45em); }
/* 수치 줄: 노리는 열 · 기력 · 역량 · 쿨타임 (같은 모양의 칩, 같은 순서) */
.cs-stats { display: flex; align-items: center; gap: .4rem; height: 1.5rem; min-width: 0; overflow: hidden; }
.cs-stats .tgt { flex: none; }
.cs-chips { display: flex; gap: .3rem; margin-left: auto; flex: none; }
.cs-chip { display: inline-flex; align-items: baseline; gap: .22rem; height: 1.3rem; align-items: center; padding: 0 .42rem; font-size: .72rem; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.cs-chip small { font-size: .66rem; color: var(--ink-3); }
.cs-chip b { font-weight: 700; color: var(--ink); }
/* 작은 설명 (2줄) */
.cs-note { font-size: .75rem; line-height: 1.45; color: var(--ink-3); height: calc(2 * 1.45em); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.cs-proc { display: inline-flex; align-items: center; gap: .2rem; margin-right: .3rem; padding: 0 .35rem; font-weight: 700; color: var(--gc); border: 1px solid color-mix(in srgb, var(--gc) 55%, transparent); background: color-mix(in srgb, var(--gc) 8%, transparent); }
/* 아래: 몇 번 칸 · 직업 전용 · 해제 (늘 같은 자리) */
.cs-foot { display: flex; align-items: center; gap: .45rem; min-width: 0; height: var(--ctl-s, 2rem); padding-top: .4rem; border-top: 1px dotted color-mix(in srgb, var(--gc) 35%, var(--line)); box-sizing: content-box; }
.cs-no { font-family: var(--font-head); font-size: .76rem; color: var(--ink-3); letter-spacing: .04em; white-space: nowrap; }
.cs-cls { font-size: .7rem; padding: .05rem .4rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cs-off, .cs-go { margin-left: auto; flex: none; }
/* 빈 칸: 같은 틀, 점선 · 흐린 놋쇠 */
button.cslot.empty { --gc: var(--line-2); --brass: color-mix(in srgb, var(--gilt) 45%, var(--line)); display: flex; align-items: stretch; justify-content: flex-start; text-align: left; white-space: normal; line-height: normal; font: inherit; color: inherit; cursor: pointer; border-radius: 0; overflow: visible; max-width: none;
  background: color-mix(in srgb, var(--surface) 55%, transparent); border-style: dashed; box-shadow: none; }
button.cslot.empty:hover:not(:disabled) { background: color-mix(in srgb, var(--surface) 85%, transparent); border-color: var(--gilt); }
button.cslot.empty:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.cslot.empty .cs-g { background: transparent; border: 1px dashed var(--line-2); clip-path: none; filter: none; min-width: 1.45rem; width: 1.45rem; transform: rotate(45deg) scale(.75); }
.cslot.empty .cs-nm { color: var(--ink-3); font-weight: 400; }
.cslot.empty .cs-art { background: transparent; border: 1px dashed var(--line-2); box-shadow: none; color: var(--ink-3); }
.cs-eff .lns > .ln + .ln { margin-top: 0; }
.cslot.empty .cs-eff { font-weight: 400; color: var(--ink-3); font-size: .8rem; align-self: center; }
.cs-go { display: inline-flex; align-items: center; height: var(--ctl-s, 2rem); padding: 0 .7rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-sizing: border-box; }
button.cslot.empty:hover .cs-go { border-color: var(--gilt); color: var(--ink); }
.cslot .spks { pointer-events: none; }
/* 좁은 옆 칸(마이홈 › 가구 보관함 · 방 창고): 갈래 탭은 한 줄을 고르게 채우고 정렬 · 공방은 아랫줄, 칸 격자는 양 끝을 맞춘다 */
:is(.furnstore, .roomchest) .sttabs { column-gap: .2rem; row-gap: 0; }
:is(.furnstore, .roomchest) .sttabs .sttab { flex: 1 1 auto; justify-content: center; padding: 0 .22rem; font-size: .74rem; }
:is(.furnstore, .roomchest) .sttabs .sttab small { margin-left: .14rem; font-size: .62rem; }
:is(.furnstore, .roomchest) .sttabs::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
:is(.furnstore, .roomchest) .sttabs > :not(.sttab) { order: 2; margin-top: .4rem; }
:is(.furnstore, .roomchest) .sgrid { justify-content: space-between; }
/* 마이홈: 가구 보관함 · 방 창고를 한 상자로 — 제목 자리의 「가구 | 창고」 토글 (창고는 2단계부터, 그 전에는 흐리게) */
.rbox-seg { display: inline-flex; flex: none; border: 1px solid #6a4c30; border-radius: 6px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.rbox-seg button { height: 26px; min-height: 0; padding: 0 .75rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--st-ink2); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.rbox-seg button + button { border-left: 1px solid #6a4c30; }
.rbox-seg button:hover:not(.sel):not([aria-disabled="true"]) { color: var(--st-ink); background: rgba(255, 230, 190, .06); }
.rbox-seg button.sel { color: #2a1a0c; background: linear-gradient(180deg, #e2bb6c, #b58637); }
.rbox-seg button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
