﻿* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden; background: #0b0a10;
  font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', sans-serif;
  color: #f0e8d8; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
  overscroll-behavior: none;
}
#wrap { position: absolute; width: 1280px; height: 720px; overflow: hidden; background: #000; }
#cv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; }
/* UI 레이어는 클릭을 통과시킨다 (버튼 · 모달만 클릭 가능) → 마을의 건물 · NPC 터치가 캔버스에 전달됨 */
#ui { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; pointer-events: none; }
img { -webkit-touch-callout: none; pointer-events: none; }
#rotate-msg { display: none; }
@media (orientation: portrait) and (hover: none) {
  #rotate-msg { display: flex; position: fixed; inset: 0; z-index: 1000; background: #0b0a10f2; align-items: center; justify-content: center;
    text-align: center; font-size: 22px; line-height: 1.8; color: #ffe6a8; }
  #rotate-msg div { font-size: 22px; }
}
.pulse { animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 16px #ffd84a, 0 2px 0 #120e18; filter: brightness(1.15); } }
.hidden { display: none !important; }
.mode-town .adv-only, .mode-adv .town-only { display: none !important; }
b { font-weight: bold; }
.up { color: #6aff7a; font-weight: bold; }
.down { color: #ff6a6a; font-weight: bold; }
.good { color: #8aff9a; }
.bad { color: #ff6a6a !important; }
.muted { color: #9a90a8; font-size: 13px; }
.small { font-size: 12px; }
.sp { flex: 1; }

/* ---------- 등급 색 ---------- */
.r0 { --rc: #9a9a9a; } .r1 { --rc: #4da6ff; } .r2 { --rc: #c77dff; } .r3 { --rc: #ffb84d; }
.c0 { color: #d4d4d4; } .c1 { color: #4da6ff; } .c2 { color: #c77dff; } .c3 { color: #ffb84d; }
.rtag { display: inline-block; padding: 0 6px; border-radius: 3px; font-size: 11px; line-height: 16px; background: var(--rc); color: #120e18; font-weight: bold; vertical-align: 1px; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud button, #hud .hud-box, #skill-bar, #potion-bar { pointer-events: auto; }
.hud-box {
  background: linear-gradient(#2a2236ee, #1a1522ee); border: 2px solid #6d5a3a; border-radius: 8px;
  box-shadow: 0 0 0 2px #120e18, inset 0 0 12px #0008; padding: 8px 12px;
}
#hud-status { position: absolute; left: 12px; top: 12px; width: 310px; }
.hs-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.hs-lv b { font-size: 22px; color: #ffd36a; text-shadow: 0 2px 0 #000; }
.hs-cls { color: #c9b9a0; }
.hs-power { margin-left: auto; font-size: 12px; color: #c9b9a0; }
.hs-power b { color: #ff9a6a; font-size: 14px; }
.bar { position: relative; height: 18px; background: #120e16; border: 1px solid #000; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.bar .fill { height: 100%; width: 0; transition: width .15s; }
.bar span { position: absolute; inset: 0; text-align: center; font-size: 12px; line-height: 17px; font-weight: bold; text-shadow: 0 1px 2px #000, 0 0 2px #000; white-space: nowrap; }
.bar-hp .fill { background: linear-gradient(#ff7b7b, #c0282f); }
.bar-hp.low { animation: lowhp .6s infinite alternate; }
@keyframes lowhp { to { box-shadow: 0 0 10px #ff2a2a; border-color: #ff4a4a; } }
.bar-exp { height: 13px; }
.bar-exp span { line-height: 12px; font-size: 10px; }
.bar-exp .fill { background: linear-gradient(#9fe0ff, #3a8ad8); }
.hs-gold { font-size: 16px; display: flex; align-items: center; gap: 6px; color: #ffd84a; margin-top: 2px; }
.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px;
  background: radial-gradient(circle at 35% 35%, #fff6b0, #ffc928 50%, #b07a10); border: 1px solid #6a4a00; }

#hud-stage { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); text-align: center; min-width: 360px; }
#h-stage-name { font-size: 15px; font-weight: bold; color: #ffe6a8; margin-bottom: 6px; }
.stage-dots { display: flex; gap: 7px; justify-content: center; margin-bottom: 6px; }
.stage-dots i { min-width: 40px; height: 20px; border-radius: 10px; background: #3a3344; border: 2px solid #120e18;
  font-style: normal; font-size: 12px; line-height: 16px; font-weight: bold; color: #fff; text-shadow: 0 1px 2px #000; }
.stage-dots i.done { background: #7ad06a; }
.stage-dots i.cur { background: #ffd84a; box-shadow: 0 0 8px #ffd84a; }
.stage-dots i.boss { border-radius: 4px; background: #6a2a2a; }
.stage-dots i.boss.cur { background: #ff4a4a; box-shadow: 0 0 10px #ff4a4a; }
.stage-dots i.boss.done { background: #7ad06a; }
.bar-prog { height: 6px; margin: 0; }
.bar-prog .fill { background: linear-gradient(90deg, #7ad8ff, #c8f0ff); transition: none; }

#hud-boss { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); width: 560px; text-align: center; }
.boss-name { color: #ff8a7a; font-weight: bold; font-size: 18px; text-shadow: 0 2px 3px #000, 0 0 8px #000; margin-bottom: 4px; }
.bar-boss { height: 22px; border: 2px solid #4a1010; box-shadow: 0 0 12px #ff2a2a66; }
.bar-boss .fill { background: linear-gradient(#ff6a5a, #9a1a1a); }
.bar-boss span { line-height: 19px; }

#town-title { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 24px; font-weight: bold;
  color: #fff3c8; text-shadow: 0 2px 0 #5a3a1a, 0 0 14px #000a; letter-spacing: 3px; }
#hud-right { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }

#hud-bottom { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; }
#skill-bar, #potion-bar { display: flex; gap: 8px; align-items: center; background: #1a1522d8; border: 2px solid #6d5a3a; border-radius: 8px; padding: 6px; }
.skill { position: relative; width: 60px; height: 60px; border: 2px solid #a08a5a; border-radius: 8px; overflow: hidden;
  background: radial-gradient(#4a3c66, #1a1525); display: flex; align-items: center; justify-content: center; }
.skill .ic { font-size: 26px; margin-bottom: 10px; }
.skill .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #000b; }
.skill .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; text-shadow: 0 0 4px #000, 0 0 4px #000; }
.skill .nm { position: absolute; bottom: 2px; left: 0; right: 0; font-size: 10px; text-align: center; text-shadow: 0 0 3px #000; font-weight: bold; }
.skill .lock { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #ffd36a; background: #000a; }
.skill.locked .lock { display: flex; }
.skill.locked .ic { filter: grayscale(1); opacity: .5; }
.pot { position: relative; width: 54px; height: 54px; border: 2px solid #a08a5a; border-radius: 8px; background: #221c2c; cursor: pointer; }
.pot:hover { filter: brightness(1.25); }
.pot img { width: 48px; height: 48px; image-rendering: pixelated; margin: 1px; }
.pot .cnt { position: absolute; right: 4px; bottom: 1px; font-size: 14px; font-weight: bold; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; }
.pot.empty img { filter: grayscale(1) brightness(.5); }
.auto-pot { height: 54px; min-width: 80px; }

#town-menu { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }

/* ---------- 버튼 ---------- */
.btn {
  font-family: inherit; cursor: pointer; color: #fff3dc; background: linear-gradient(#5a4a6a, #3a2f48);
  border: 2px solid #a08a5a; border-radius: 6px; padding: 8px 14px; font-size: 14px; font-weight: bold;
  text-shadow: 0 1px 2px #000; box-shadow: 0 2px 0 #120e18; white-space: nowrap;
}
.btn:hover { filter: brightness(1.2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.big { padding: 12px 22px; font-size: 17px; }
.btn.gold { background: linear-gradient(#e8b040, #9a6a1a); border-color: #ffe08a; }
.btn.green { background: linear-gradient(#4aa04a, #2a6a2a); border-color: #9ae08a; }
.btn.red { background: linear-gradient(#b04848, #6a2020); border-color: #ff9a8a; }
.x { margin-left: auto; background: none; border: none; color: #c9b9a0; font-size: 22px; cursor: pointer; padding: 0 4px; }
.x:hover { color: #fff; }

/* ---------- 모달 ---------- */
#modals { position: absolute; inset: 0; pointer-events: none; }
.modal-back { position: absolute; inset: 0; background: #0009; display: flex; align-items: center; justify-content: center; pointer-events: auto; animation: fadein .15s; }
.modal {
  background: linear-gradient(#2c2438, #1b1624); border: 3px solid #a08a5a; border-radius: 10px;
  box-shadow: 0 0 0 3px #0d0a12, 0 10px 40px #000c; padding: 16px 20px;
  max-height: calc(100% - 16px); max-width: calc(100% - 16px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; animation: popin .18s ease-out;
}
.modal > * { flex-shrink: 0; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { transform: scale(.92); opacity: 0; } }
.mh { display: flex; align-items: center; margin-bottom: 10px; }
.mh h2, .modal h2 { font-size: 22px; color: #ffd98a; text-shadow: 0 2px 0 #000; }
.modal .btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.npc-say { background: #120e18aa; border-left: 3px solid #ffd98a; padding: 8px 12px; font-size: 14px; margin-bottom: 12px; border-radius: 4px; }
.npc-say b { color: #ffd98a; margin-right: 6px; }
.npc-say .hint { color: #9a90a8; font-size: 12px; }

.confirm { width: 440px; text-align: center; }
.confirm h3 { color: #ffd98a; margin-bottom: 10px; font-size: 19px; }
.confirm p { font-size: 14px; line-height: 1.6; color: #d8d0c0; }

.welcome { width: 640px; }
.welcome h2 { text-align: center; font-size: 30px; }
.welcome .lead { text-align: center; color: #c9b9a0; margin: 6px 0 14px; }
.welcome ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.5; }
.welcome li { background: #120e1888; padding: 8px 12px; border-radius: 6px; }
.welcome .boss { color: #ff7a6a; }

.settings { width: 560px; }
.settings .opt { display: flex; align-items: center; gap: 10px; padding: 9px 4px; font-size: 15px; border-bottom: 1px solid #ffffff12; cursor: pointer; }
.settings input { width: 18px; height: 18px; accent-color: #e8b040; }
.settings select { margin-left: auto; font-family: inherit; font-size: 14px; padding: 4px 8px; background: #120e18; color: #f0e8d8; border: 1px solid #a08a5a; border-radius: 4px; }
.settings .rec { margin-top: 12px; font-size: 13px; color: #c9b9a0; }
.settings .rec b { color: #ffd98a; }

/* ---------- 아이템 슬롯 ---------- */
.islot { position: relative; width: 52px; height: 52px; flex: none; border: 2px solid var(--rc, #5a5068); border-radius: 6px; cursor: pointer;
  background: radial-gradient(circle, color-mix(in srgb, var(--rc, #5a5068) 32%, #1a1520) 0%, #15111c 78%); }
.islot img { width: 48px; height: 48px; image-rendering: pixelated; display: block; }
.islot:hover { filter: brightness(1.3); }
.islot.r3 { animation: lglow 1.4s infinite alternate; }
@keyframes lglow { from { box-shadow: 0 0 3px #ffb84d88; } to { box-shadow: 0 0 14px #ffb84d; } }
.islot.r2 { box-shadow: 0 0 6px #c77dff66; }
.islot.empty { cursor: default; border-color: #3a3344; background: #15111c; }
.islot.empty:hover { filter: none; }
.islot.sel { outline: 3px solid #fff; outline-offset: 1px; }
.islot.cons { --rc: #6a7a5a; }
.islot .cnt { position: absolute; right: 3px; bottom: 0; font-size: 13px; font-weight: bold; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; }
.up-badge { position: absolute; left: 2px; top: 0; color: #6aff7a; font-size: 12px; font-weight: bold; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.enh-badge { position: absolute; right: 2px; top: 0; color: #ffe066; font-size: 12px; font-weight: bold; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 3px #000; }
.eq-badge { position: absolute; left: 2px; bottom: 0; color: #8aff9a; font-size: 11px; font-weight: bold; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.tip-enh { margin-top: 4px; font-size: 12px; color: #ffe066; font-weight: bold; }

/* ---------- 툴팁 ---------- */
#tip { position: absolute; z-index: 100; width: 280px; background: #120e18f4; border: 2px solid #a08a5a; border-radius: 8px;
  padding: 10px 12px; pointer-events: none; font-size: 13px; box-shadow: 0 6px 20px #000a; }
.tip-name { font-size: 16px; font-weight: bold; margin-bottom: 3px; }
.tip-type { font-size: 12px; color: #c9b9a0; margin-bottom: 4px; }
.tip-q { font-size: 12px; color: #c9b9a0; display: flex; align-items: center; gap: 6px; }
.qbar { flex: 1; height: 6px; background: #2a2434; border-radius: 3px; overflow: hidden; }
.qbar i { display: block; height: 100%; }
.tip-sec { border-top: 1px solid #ffffff1a; margin-top: 6px; padding-top: 6px; }
.sl { display: flex; gap: 6px; line-height: 1.6; }
.sl span:first-child { flex: 1; color: #d8d0c0; }
.sl.sub span:first-child, .sl.sub b { color: #8ac8ff; }
.tip-cmp { margin-top: 6px; font-size: 12px; color: #c9b9a0; }
.tip-desc { margin-top: 6px; font-size: 12px; color: #b8b0c8; line-height: 1.5; }
.tip-req { margin-top: 6px; font-size: 12px; color: #c9b9a0; }
.tip-eq { margin-top: 4px; color: #8aff9a; font-weight: bold; font-size: 12px; }
.tip-price { margin-top: 6px; font-size: 12px; color: #ffd84a; text-align: right; }

/* ---------- 토스트 ---------- */
#toasts { position: absolute; top: 150px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; z-index: 90; }
.toast { background: #120e18e8; border: 2px solid #a08a5a; border-radius: 6px; padding: 7px 16px; font-size: 14px; font-weight: bold; animation: popin .2s; transition: opacity .5s; }
.toast.good { border-color: #6ac86a; }
.toast.bad { border-color: #e05a5a; color: #ffb0a0; }
.toast.gold { border-color: #ffd84a; color: #ffe9a0; box-shadow: 0 0 14px #ffd84a66; }
.toast.out { opacity: 0; }

/* ---------- 상점 ---------- */
.smith { width: 820px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow-y: auto; max-height: 480px; }
.shop-card { display: flex; align-items: center; gap: 10px; background: #120e18aa; border: 2px solid color-mix(in srgb, var(--rc) 50%, #2a2434); border-radius: 8px; padding: 8px; }
.sc-info { flex: 1; min-width: 0; }
.nm { font-weight: bold; font-size: 15px; }
.meta, .meta2 { font-size: 12px; color: #c9b9a0; margin-top: 2px; }
.meta2 { color: #a8a0b8; }
.shop-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gold-line { font-size: 17px; color: #ffd84a; }
.empty-msg { grid-column: 1 / 3; text-align: center; padding: 40px; color: #9a90a8; }
.potion { width: 720px; }
.ps-list { display: flex; flex-direction: column; gap: 6px; }
.ps-row { display: flex; align-items: center; gap: 12px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 6px 10px; }
.ps-info { flex: 1; }
.ps-info .nm.potion { color: #ff9ac8; width: auto; }
.ps-info .nm.food { color: #9aff8a; }
.ps-own { font-size: 13px; color: #c9b9a0; width: 64px; }
.ps-own b { color: #fff; }

/* ---------- 가방 ---------- */
.inv { width: 1100px; }
.inv-body { display: flex; gap: 16px; min-height: 0; }
.inv-left { width: 330px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.char-box { display: flex; align-items: center; gap: 10px; background: radial-gradient(#3a3050, #120e18); border: 2px solid #4a3e5a; border-radius: 8px; height: 150px; overflow: hidden; }
.char-box canvas { width: 180px; height: 190px; image-rendering: pixelated; margin-top: 30px; }
.char-name { font-size: 18px; color: #ffe6a8; }
.char-name b { font-size: 26px; color: #ffd36a; }
.equip-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.eq-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.eq-label { font-size: 11px; color: #c9b9a0; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; background: #120e18aa; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.sr { display: flex; justify-content: space-between; line-height: 1.7; }
.sr span { color: #c9b9a0; }
.sr b { color: #fff; }
.inv-right { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.inv-tools { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.inv-tools b { color: #ffd98a; }
.inv-grid { display: grid; grid-template-columns: repeat(12, 52px); gap: 5px; max-height: 290px; overflow-y: auto; padding: 2px; }
.cons-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #120e18aa; border-radius: 8px; padding: 6px; min-height: 66px; }
.detail { background: #120e18aa; border-radius: 8px; padding: 10px 12px; min-height: 120px; display: flex; gap: 14px; align-items: flex-start; }
.det-tip { flex: 1; columns: 2; column-gap: 20px; font-size: 13px; }
.det-tip > div { break-inside: avoid; }
.det-btns { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 보상 ---------- */
.reward { width: 760px; }
.reward.boss { border-color: #ffd23a; box-shadow: 0 0 0 3px #0d0a12, 0 0 40px #ffd23a55; }
.rw-head { text-align: center; }
.rw-head h2 { font-size: 26px; }
.rw-sub { color: #c9b9a0; font-size: 13px; margin-top: 2px; }
.rw-gains { display: flex; justify-content: center; gap: 30px; margin: 10px 0; font-size: 18px; font-weight: bold; }
.g-gold { color: #ffd84a; }
.g-exp { color: #8ad8ff; }
.rw-title { font-size: 14px; color: #ffd98a; margin-bottom: 6px; font-weight: bold; }
.rw-list { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 4px; }
.rw-row { display: flex; align-items: center; gap: 10px; background: #120e18aa; border: 2px solid color-mix(in srgb, var(--rc) 45%, #2a2434); border-radius: 8px; padding: 6px 10px; animation: popin .25s; }
.rw-row.r3 { background: linear-gradient(90deg, #ffb84d22, #120e18aa 60%); }
.rw-info { flex: 1; min-width: 0; }
.rw-cmp { width: 64px; text-align: center; font-size: 14px; }
.tag-eq { color: #8aff9a; font-size: 12px; font-weight: bold; }
.rw-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; width: 170px; text-align: right; }
.rw-cons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cons-chip { display: flex; align-items: center; gap: 6px; background: #120e18aa; border-radius: 8px; padding: 3px 10px 3px 3px; font-size: 13px; }
.cons-chip .islot { width: 40px; height: 40px; }
.cons-chip .islot img { width: 36px; height: 36px; }
.rw-hp { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rw-hp .bar { width: 260px; height: 22px; margin: 0; flex: none; }
.rw-hp .bar span { line-height: 20px; }
.foods { display: flex; align-items: center; gap: 6px; }
.foods .islot { width: 44px; height: 44px; }
.foods .islot img { width: 40px; height: 40px; }
.rw-opts { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: #c9b9a0; }
.rw-opts label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.rw-opts input { accent-color: #e8b040; }
.rw-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.rw-btns .big { min-width: 220px; }

.defeat { width: 520px; text-align: center; border-color: #a04040; }
.defeat h2 { color: #ff7a6a; font-size: 28px; margin-bottom: 10px; }
.defeat p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.defeat .hint { color: #a8a0b8; font-size: 13px; }

/* ---------- 스테이지 선택 ---------- */
.stages { width: 620px; }
.ss-art { height: 90px; border-radius: 8px; border: 2px solid #000; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; }
.ss-art div { font-size: 20px; font-weight: bold; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; }
.ss-pick { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; }
.ss-range { flex: 1; text-align: center; font-size: 18px; color: #c9b9a0; }
.ss-range b { color: #ffe6a8; font-size: 24px; }
.ss-list { display: flex; gap: 8px; }
.ss-st { flex: 1; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ss-st b { font-size: 22px; color: #ffe6a8; }
.ss-st span { font-size: 12px; color: #c9b9a0; }
.ss-st em { font-style: normal; font-size: 11px; color: #9a90a8; }
.ss-st.cleared em { color: #8aff9a; }
.ss-st.boss { border-color: #ff5a4a; box-shadow: 0 0 10px #ff5a4a55; }
.ss-st.boss span { color: #ff9a8a; font-weight: bold; }
.ss-info { margin-top: 10px; font-size: 14px; color: #c9b9a0; text-align: center; line-height: 1.7; }
.ss-info b { color: #ffd98a; }

/* ---------- 탭 ---------- */
.tabs { display: flex; gap: 4px; margin-left: 16px; }
.tab { font-family: inherit; cursor: pointer; background: #1a1522; color: #c9b9a0; border: 2px solid #4a3e5a; border-radius: 6px 6px 0 0; padding: 6px 14px; font-size: 14px; font-weight: bold; }
.tab.on { background: #4a3c66; color: #fff3dc; border-color: #a08a5a; }

/* ---------- 강화 ---------- */
.enh-wrap { display: flex; gap: 12px; min-height: 300px; }
.enh-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, 52px); gap: 5px; align-content: start; max-height: 420px; overflow-y: auto; padding: 2px; }
.enh-panel { width: 300px; flex: none; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.enh-panel .sl { width: 100%; }
.ep-name { font-size: 16px; font-weight: bold; }
.ep-step { font-size: 22px; font-weight: bold; color: #c9b9a0; }
.ep-step .lv { color: #fff; }
.ep-step .next { color: #ffe066; text-shadow: 0 0 8px #ffe06688; }
.ep-stats { width: 100%; font-size: 14px; }
.ep-rate { font-size: 15px; }
.ep-fail { font-size: 12px; color: #9a90a8; }
.ep-max { color: #ffe066; font-weight: bold; padding: 20px 0; }
.ep-go { width: 100%; }
.flash-ok { animation: flashok .6s; }
.flash-bad { animation: flashbad .5s; }
@keyframes flashok { from { box-shadow: 0 0 40px #ffe066; border-color: #ffe066; background: #5a4a1a; } }
@keyframes flashbad { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } from { border-color: #ff4a4a; background: #4a1a1a; } }

/* ---------- 전직 ---------- */
.job { width: 760px; }
.job-cur { font-size: 15px; margin-bottom: 10px; }
.job-cur b { color: #ffd98a; font-size: 18px; }
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-card { display: flex; align-items: center; gap: 14px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 10px 12px; }
.job-card.ok { border-color: #ffd98a; box-shadow: 0 0 12px #ffd98a33; }
.jc-color { width: 34px; height: 70px; border-radius: 4px 4px 14px 14px; border: 2px solid #000; flex: none; }
.jc-info { flex: 1; }
.jc-name { font-size: 18px; font-weight: bold; color: #ffe6a8; }
.jc-desc { font-size: 13px; color: #c9b9a0; margin: 2px 0 4px; }
.jc-bonus { font-size: 13px; color: #8aff9a; font-weight: bold; }
.jc-skill { font-size: 13px; color: #d8d0c0; margin-top: 3px; }
.jc-skill b { color: #ffd98a; }
.job-road { margin-top: 10px; text-align: center; }
.skill.jobsk { border-color: #ffd23a; background: radial-gradient(#6a4a20, #1a1525); }

/* ---------- 장비 비교 툴팁 ---------- */
#tip.dual { width: 560px; }
.tip-dual { display: flex; gap: 12px; }
.tip-col { flex: 1; min-width: 0; }
.tip-col.eqc { border-left: 2px solid #ffffff22; padding-left: 12px; opacity: .92; }
.tip-eqhead { display: inline-block; font-size: 11px; font-weight: bold; color: #120e18; background: #8aff9a; border-radius: 3px; padding: 0 6px; margin-bottom: 4px; }
.det-tip { columns: auto !important; }

/* ---------- 스토리 ---------- */
.modal-back.story-back { align-items: flex-end; background: linear-gradient(transparent 35%, #000c); cursor: pointer; }
.modal.story { width: min(980px, calc(100% - 16px)); margin-bottom: 18px; background: linear-gradient(#1e1830f2, #120e1cf2); border-color: #c9a03a; }
.st-title { font-size: 13px; color: #c9a03a; font-weight: bold; letter-spacing: 1px; margin-bottom: 6px; }
.st-box { display: flex; gap: 16px; align-items: flex-start; min-height: 110px; }
.st-portrait { width: 104px; height: 104px; flex: none; border: 2px solid #a08a5a; border-radius: 8px; background: radial-gradient(#3a3050, #120e18); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.st-portrait canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.st-main { flex: 1; position: relative; }
.st-name { font-size: 18px; font-weight: bold; color: #ffd98a; margin-bottom: 6px; min-height: 22px; }
.st-name.kairen { color: #8ad8ff; }
.st-name.elesia { color: #ffa8d8; }
.st-name.morden { color: #c8b8ff; }
.st-name.enemy { color: #ff7a6a; }
.st-text { font-size: 18px; line-height: 1.65; color: #f4ecdc; white-space: pre-line; min-height: 60px; }
.st-text.narr { color: #d8d0e8; font-style: italic; }
.st-next { position: absolute; right: 0; bottom: -4px; color: #ffd98a; animation: bob .8s infinite alternate; }
@keyframes bob { to { transform: translateY(4px); } }
.st-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.st-count { font-size: 12px; color: #8a80a0; }
.journal { width: 560px; }
.jr-sword { font-size: 15px; margin-bottom: 10px; }
.jr-sword b { color: #ffd23a; letter-spacing: 2px; }
.jr-list { display: flex; flex-direction: column; gap: 5px; }
.jr-row { display: flex; align-items: center; justify-content: space-between; background: #120e18aa; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.jr-row.locked { color: #6a6078; }
.rw-sword { text-align: center; color: #9ae8ff; font-size: 14px; margin-bottom: 6px; }
.rw-sword b { color: #ffd23a; }
.ss-info .lock { color: #ff9a8a; font-weight: bold; }
.ss-st.cboss { border-color: #c06aff; box-shadow: 0 0 12px #c06aff77; }
.ss-st.cboss span { color: #e0b0ff; }
.stage-dots i.cboss { background: #5a1a6a; }
.stage-dots i.cboss.cur { background: #c06aff; box-shadow: 0 0 10px #c06aff; }

/* ---------- NPC 얼굴 + 인사 ---------- */
.npc-head { display: flex; gap: 12px; align-items: center; background: #120e18aa; border-left: 3px solid #ffd98a; border-radius: 6px; padding: 6px 12px 6px 6px; margin-bottom: 10px; }
.nh-pt { width: 72px; height: 72px; flex: none; border: 2px solid #a08a5a; border-radius: 8px; background: radial-gradient(#3a3050, #120e18); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.nh-pt canvas { width: 72px; height: 72px; image-rendering: pixelated; }
.nh-txt b { color: #ffd98a; font-size: 14px; }
.nh-txt p { font-size: 15px; margin: 2px 0; color: #f4ecdc; }
.nh-txt .hint { font-size: 12px; color: #a8a0b8; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff4a4a; color: #fff; font-size: 11px; line-height: 18px; padding: 0 4px; text-align: center; box-shadow: 0 0 6px #ff4a4a; }
#btn-inv, #btn-inv-quick, #btn-stat, #btn-stats { position: relative; }
#hud-status { cursor: pointer; }
#hud-status:hover { filter: brightness(1.15); }
.compact #town-menu .btn.big { padding: 8px 9px; font-size: 13px; }
.compact #town-menu { gap: 4px; }

/* ---------- 강화 (착용 / 가방 분리) ---------- */
.enh-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.enh-sec { font-size: 13px; font-weight: bold; color: #ffd98a; margin-top: 4px; }
.enh-eqrow { display: grid; grid-template-columns: repeat(6, 56px); gap: 6px; background: #120e18aa; border-radius: 8px; padding: 6px; }
.enhance .enh-grid { max-height: 300px; background: #120e18aa; border-radius: 8px; padding: 6px; }
.islot.mat { outline: 3px dashed #ffb84d; outline-offset: 1px; }
.islot.dim { opacity: .35; }
.mat-badge { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: bold; text-align: center; background: #ffb84dd0; color: #1a1008; }
.islot .q { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #6a6078; font-size: 20px; font-weight: bold; }
.ep-where { font-size: 12px; color: #a8a0b8; }
.ep-mats-t { font-size: 13px; color: #c9b9a0; }
.ep-mats { display: flex; gap: 8px; justify-content: center; }

/* ---------- 스탯 분배 ---------- */
.stats { width: 600px; }
.stat-btn { width: 100%; }
.sp-head { font-size: 15px; margin-bottom: 8px; }
.sp-head b.pts { color: #ffd23a; font-size: 22px; }
.sp-rows { display: flex; flex-direction: column; gap: 6px; }
.sp-row { display: flex; align-items: center; gap: 10px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 6px 10px; }
.sp-row.rec { border-color: #ffd23a; box-shadow: 0 0 10px #ffd23a44; }
.sp-row .ic { font-size: 24px; width: 32px; text-align: center; }
.sp-info { flex: 1; }
.sp-info b { font-size: 16px; color: #ffe6a8; }
.rec-tag { margin-left: 6px; font-size: 11px; background: #ffd23a; color: #1a1008; border-radius: 3px; padding: 0 5px; font-weight: bold; }
.sp-val { font-size: 22px; font-weight: bold; color: #fff; min-width: 48px; text-align: right; }
.sp-sum { margin-top: 10px; font-size: 13px; color: #c9b9a0; text-align: center; }
.sp-sum b { color: #fff; }
.sp-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #c9b9a0; }
.sp-foot label { display: flex; align-items: center; gap: 5px; cursor: pointer; }

/* ---------- 펫 ---------- */
.pethouse { width: 800px; }
.ph-body { display: flex; flex-direction: column; gap: 8px; min-height: 260px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.pet-card { display: flex; align-items: center; gap: 10px; background: #120e18aa; border: 2px solid color-mix(in srgb, var(--rc) 45%, #2a2434); border-radius: 8px; padding: 8px 10px; }
.pet-card.active { box-shadow: 0 0 12px #8aff9a55; border-color: #8aff9a; }
.pc-info { flex: 1; min-width: 0; }
.pc-btns { display: flex; flex-direction: column; gap: 6px; }
.star { color: #ffd23a; font-size: 13px; letter-spacing: 1px; }
.new { background: #ff4a4a; color: #fff; font-size: 11px; border-radius: 3px; padding: 0 5px; }
.bar-food { height: 14px; margin: 4px 0 0; max-width: 300px; }
.bar-food .fill { background: linear-gradient(#ffd27a, #e08a2a); }
.bar-food span { font-size: 10px; line-height: 13px; }
.inc-row { display: flex; gap: 12px; }
.inc-slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 10px; padding: 10px; text-align: center; font-size: 13px; }
.inc-slot.r1 { border-color: #4da6ff88; } .inc-slot.r2 { border-color: #c77dff88; } .inc-slot.r3 { border-color: #ffb84d; }
.inc-slot .bar-food { width: 100%; }
.inc-egg { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 36px; animation: wobble 2s infinite; }
.inc-egg.empty { animation: none; opacity: .5; }
.inc-egg.ready { animation: wobble .4s infinite; filter: drop-shadow(0 0 8px #ffe066); }
.inc-egg img { width: 48px; height: 48px; image-rendering: pixelated; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.egg-list { display: flex; flex-direction: column; gap: 5px; }
.egg-row { display: flex; align-items: center; gap: 10px; background: #120e18aa; border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.egg-row img { width: 36px; height: 36px; image-rendering: pixelated; }
.egg-row > span { flex: 1; }
.hatch { width: 420px; text-align: center; align-items: center; }
.hatch .hr-pet img { width: 120px; height: 120px; image-rendering: pixelated; filter: drop-shadow(0 0 14px #ffe066); animation: popin .5s; }
.hatch .nm { font-size: 22px; margin-top: 6px; }
.hatch p { font-size: 14px; margin: 8px 0; color: #d8d0c0; }
.pet-chip { position: relative; width: 54px; height: 54px; border: 2px solid #8aff9a; border-radius: 8px; background: #221c2c; cursor: pointer; }
.pet-chip img { width: 46px; height: 40px; image-rendering: pixelated; object-fit: contain; display: block; margin: 0 auto; }
.pet-chip .bar-food { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 6px; margin: 0; }
.pet-chip .zz { display: none; position: absolute; top: 0; right: 3px; color: #c8d8ff; font-weight: bold; font-size: 12px; }
.pet-chip.asleep { border-color: #6a6a8a; } .pet-chip.asleep img { filter: grayscale(.8) brightness(.6); } .pet-chip.asleep .zz { display: block; }
.pet-chip.hungry { animation: lowhp .6s infinite alternate; }
.cons-chip.egg .islot { width: 40px; height: 40px; }

/* ---------- 신화 · 태초 등급 ---------- */
.r4 { --rc: #ff5a7a; } .r5 { --rc: #7afff0; }
.c4 { color: #ff5a7a; } .c5 { color: #7afff0; }
.islot.r4 { animation: mglow 1.1s infinite alternate; }
@keyframes mglow { from { box-shadow: 0 0 4px #ff5a7a88; } to { box-shadow: 0 0 18px #ff5a7a, 0 0 4px #fff inset; } }
.islot.r5 { animation: pglow 2.4s infinite linear; }
@keyframes pglow {
  0% { box-shadow: 0 0 14px #7afff0; border-color: #7afff0; } 33% { box-shadow: 0 0 14px #ff9af0; border-color: #ff9af0; }
  66% { box-shadow: 0 0 14px #ffe066; border-color: #ffe066; } 100% { box-shadow: 0 0 14px #7afff0; border-color: #7afff0; }
}
.rtag.r5 { background: linear-gradient(90deg, #7afff0, #ff9af0, #ffe066); }
.rw-row.r4 { background: linear-gradient(90deg, #ff5a7a2a, #120e18aa 60%); }
.rw-row.r5 { background: linear-gradient(90deg, #7afff02a, #ff9af022 40%, #120e18aa 70%); }
.rw-rescue { text-align: center; color: #b0ffb0; font-size: 14px; margin-bottom: 6px; }
.rw-rescue b { color: #fff; }

/* ---------- FIN ---------- */
.modal-back.fin-back { background: radial-gradient(ellipse at center, #1a1a3a 0%, #05050c 80%); }
.modal.fin { width: 640px; text-align: center; align-items: center; background: transparent; border: none; box-shadow: none; animation: finin 2.4s ease-out; }
@keyframes finin { from { opacity: 0; transform: scale(.94); } }
.fin-sub { font-size: 16px; color: #c8c8e8; letter-spacing: 2px; }
.fin-title { font-size: 120px; font-weight: bold; font-style: italic; letter-spacing: 12px; color: #fff3c8; margin: 6px 0;
  text-shadow: 0 0 30px #ffd23a, 0 0 60px #ff9a3a88, 0 4px 0 #5a3a1a; font-family: Georgia, 'Times New Roman', serif; }
.fin-game { font-size: 20px; color: #ffd98a; font-weight: bold; margin-bottom: 18px; }
.fin-stats { font-size: 14px; color: #a8a0c8; line-height: 1.9; }
.fin-stats b { color: #fff; }
.fin-thanks { margin-top: 14px; font-size: 18px; color: #e0d8ff; font-style: italic; }
.compact .fin-title { font-size: 72px; }

/* ---------- 스킬 레벨 ---------- */
.skill .slv { position: absolute; left: 2px; top: 1px; font-size: 10px; font-weight: bold; color: #ffe066; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.skill .slv::before { content: 'Lv'; font-size: 8px; margin-right: 1px; color: #c8c0a0; }
.slv-t { font-size: 12px; background: #ffd23a; color: #1a1008; border-radius: 3px; padding: 0 5px; margin-left: 4px; vertical-align: 2px; }
#skill-bar.many .skill { width: 50px; height: 50px; }
#skill-bar.many .skill .ic { font-size: 22px; margin-bottom: 8px; }
#skill-bar.many .skill .nm { font-size: 8px; }
.compact #skill-bar { flex-wrap: wrap; max-width: 58%; }
.compact #skill-bar.many .skill { width: 38px; height: 38px; }

/* ---------- 사이드 스토리 ---------- */
.sidequest { width: 640px; border-color: #c06aff; }
.sq-boss { display: flex; gap: 14px; align-items: center; background: #120e18aa; border: 2px solid #5a3a7a; border-radius: 8px; padding: 10px; }
.sq-pt { width: 96px; height: 96px; flex: none; border: 2px solid #c06aff; border-radius: 8px; background: radial-gradient(#3a2050, #120e18); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.sq-pt canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.sq-bn { font-size: 17px; font-weight: bold; color: #e0b8ff; margin-bottom: 4px; }
.sq-rw { margin-top: 6px; font-size: 14px; color: #ffe066; font-weight: bold; }
.rw-side { text-align: center; color: #e0b8ff; font-size: 14px; margin-bottom: 6px; }
.rw-side b { color: #ffe066; }
.jr-tabs { margin-bottom: 8px; }
.jr-row.side { gap: 6px; }
.jr-row.side > span { flex: 1; }

/* ---------- 훈장 ---------- */
.medal { position: relative; width: 52px; height: 66px; flex: none; }
.m-ribbon { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 26px; height: 26px;
  background: linear-gradient(90deg, #2a4ab0 0 33%, #ffffff 33% 66%, #b02a3a 66%); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.m-coin { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--mc) 35%, var(--md) 100%); border: 3px solid var(--md);
  box-shadow: 0 0 0 2px #120e18, 0 2px 6px #000a; display: flex; align-items: center; justify-content: center; }
.m-coin span { font-size: 20px; filter: drop-shadow(0 1px 1px #0008); }
.medal.tier4 .m-coin, .medal.tier5 .m-coin { box-shadow: 0 0 0 2px #120e18, 0 0 14px var(--mc); }
.medal.tier5 .m-ribbon { background: linear-gradient(90deg, #a01a2a 0 33%, #ffd23a 33% 66%, #a01a2a 66%); }
.medal.locked .m-ribbon { background: #3a3344; }
.medal.locked .m-coin { background: radial-gradient(circle at 35% 30%, #4a4458, #2a2434); border-color: #1a1622; box-shadow: 0 0 0 2px #120e18; }
.medal.locked .m-coin span { color: #6a6078; font-weight: bold; filter: none; }
.medal.small { transform: scale(.9); }
.medal.big { transform: scale(1.6); margin: 22px auto 30px; }
#medal-pop { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 80; pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; min-width: 460px; max-width: 640px;
  background: linear-gradient(#3a2a12f0, #1e160af0); border: 3px solid #ffd23a; border-radius: 12px;
  box-shadow: 0 0 0 3px #120e18, 0 0 30px #ffd23a66; animation: mpin .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; }
#medal-pop.out { opacity: 0; transform: translateX(-50%) translateY(16px); }
@keyframes mpin { from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.9); } }
.mp-pt { width: 64px; height: 64px; flex: none; border: 2px solid #ffd23a; border-radius: 8px; overflow: hidden; background: radial-gradient(#5a3a1a, #1a1008); display: flex; align-items: flex-end; justify-content: center; }
.mp-pt canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.mp-txt { flex: 1; }
.mp-who { font-size: 13px; color: #ffd98a; font-weight: bold; }
.mp-who span { font-size: 11px; background: #ffd23a; color: #1a1008; border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.mp-line { font-size: 14px; color: #fff3dc; margin: 3px 0; }
.mp-name { font-size: 15px; font-weight: bold; color: #ffe066; }
#btn-medals { position: relative; }
.medalbook { width: 900px; }
.mb-count { margin-left: 14px; font-size: 14px; color: #c9b9a0; }
.mb-count b { color: #ffd23a; font-size: 18px; }
.mb-tabs { margin: 0 0 10px; flex-wrap: wrap; }
.mb-body { display: flex; gap: 12px; }
.mb-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 470px; overflow-y: auto; padding: 4px; align-content: start; }
.mb-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; background: #120e18aa; border: 2px solid transparent; cursor: pointer; }
.mb-cell:hover { background: #2a2238; }
.mb-cell.sel { border-color: #ffd23a; }
.mb-name { font-size: 11px; text-align: center; color: #e8e0d0; line-height: 1.3; word-break: keep-all; }
.mb-cell.locked .mb-name { color: #6a6078; }
.mb-detail { width: 280px; flex: none; background: #120e18aa; border: 2px solid #3a3344; border-radius: 10px; padding: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.md-name { font-size: 18px; font-weight: bold; color: #ffe6a8; }
.md-tier { font-size: 12px; font-weight: bold; margin: 2px 0 6px; }
.md-desc { font-size: 14px; color: #d8d0c0; margin-bottom: 10px; }
.md-rec { width: 100%; background: #0b0a10; border-radius: 6px; padding: 8px; font-size: 13px; color: #c8f0c8; text-align: left; line-height: 1.8; }
.md-line { margin-top: 10px; font-size: 13px; color: #ffd98a; font-style: italic; }
.md-lock { color: #8a80a0; font-size: 14px; margin-bottom: 8px; }
.md-prog { width: 100%; max-width: none; }
.compact .medalbook .mb-detail { width: 210px; }
.compact .mb-grid { max-height: 260px; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.compact #medal-pop { min-width: 0; width: 92%; bottom: 64px; }

/* ---------- 저장 코드 ---------- */
.save-box { margin-top: 12px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 8px 10px; }
.sv-t { font-size: 14px; font-weight: bold; color: #ffd98a; margin-bottom: 6px; }
.sv-code { width: 100%; height: 54px; resize: none; font-family: Consolas, monospace; font-size: 11px; background: #0b0a10; color: #c8f0c8; border: 1px solid #5a4a6a; border-radius: 4px; padding: 4px 6px; user-select: text; -webkit-user-select: text; pointer-events: auto; }
.sv-btns { display: flex; gap: 8px; margin-top: 6px; }

/* ---------- 암시장 ---------- */
.nightshop { width: 720px; border-color: #9a6ad1; box-shadow: 0 0 0 3px #0d0a12, 0 0 40px #9a6ad155; }
.nightshop .mh h2 { color: #e0b8ff; }
.nx-ic { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.ps-row.sold { opacity: .45; }

/* ---------- 스테이지 이벤트 ---------- */
.event { width: 620px; }
.event.good { border-color: #8aff9a; } .event.bad { border-color: #ff7a6a; }
.ev-box { display: flex; gap: 14px; align-items: center; }
.ev-pt { width: 96px; height: 96px; flex: none; border: 2px solid #a08a5a; border-radius: 8px; background: radial-gradient(#3a3050, #120e18); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ev-pt canvas { width: 96px; height: 96px; image-rendering: pixelated; }
.ev-pt.icon { font-size: 48px; }
.ev-name { font-size: 18px; font-weight: bold; color: #ffd98a; }
.ev-line { font-size: 16px; margin: 6px 0; color: #f4ecdc; }
.ev-eff { font-size: 15px; font-weight: bold; padding: 6px 10px; border-radius: 6px; }
.ev-eff.good { background: #2a5a2a88; color: #9aff9a; } .ev-eff.bad { background: #5a2a2a88; color: #ffa090; }
.ev-chip { margin-top: 5px; font-size: 12px; font-weight: bold; border-radius: 5px; padding: 2px 8px; pointer-events: auto; }
.ev-chip.good { background: #2a5a2acc; color: #b0ffb0; } .ev-chip.bad { background: #5a2a2acc; color: #ffb0a0; }

/* ---------- 작은 화면 (모바일) ---------- */
.compact .enh-eqrow { grid-template-columns: repeat(6, 52px); gap: 3px; }
.compact .enhance .enh-grid { max-height: 150px; }
.compact .nh-pt, .compact .nh-pt canvas { width: 52px; height: 52px; }
.compact .nh-txt p { font-size: 13px; }
.compact .nh-txt .hint { display: none; }
.compact .npc-head { margin-bottom: 6px; }
.compact .ev-pt, .compact .ev-pt canvas { width: 72px; height: 72px; }
.compact .ph-body { max-height: 220px; min-height: 0; }
.compact .pet-chip { width: 46px; height: 46px; }
.compact .pet-chip img { width: 40px; height: 34px; }
.compact #tip.dual { width: 460px; }
.compact .st-text { font-size: 15px; }
.compact .st-portrait { width: 80px; height: 80px; }
.compact .st-portrait canvas { width: 76px; height: 76px; }
.compact .st-box { min-height: 84px; }
.compact .modal.story { margin-bottom: 8px; }
.compact #hud-status { width: 230px; left: 8px; top: 8px; padding: 6px 8px; }
.compact .hs-lv b { font-size: 18px; }
.compact .hs-top { font-size: 12px; margin-bottom: 4px; white-space: nowrap; }
.compact .hs-power { font-size: 10px; }
.compact .hs-power b { font-size: 12px; }
.compact .skill .nm { white-space: nowrap; overflow: hidden; }
.compact .hs-gold { font-size: 14px; }
.compact #hud-stage { top: 8px; min-width: 0; padding: 5px 8px; left: 52%; }
.compact #h-stage-name { font-size: 12px; margin-bottom: 4px; }
.compact .stage-dots i { min-width: 32px; height: 18px; line-height: 14px; font-size: 11px; }
.compact #hud-right { right: 8px; top: 8px; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
.compact #hud-right .btn { padding: 5px 7px; }
.compact #hud-boss { top: 80px; width: 380px; }
.compact .boss-name { font-size: 14px; }
.compact #hud-bottom { left: 6px; right: 6px; bottom: 6px; }
.compact #skill-bar, .compact #potion-bar { gap: 4px; padding: 4px; }
.compact .skill { width: 40px; height: 40px; }
.compact .skill .nm { display: none; }
.compact .skill .ic { font-size: 18px; margin-bottom: 0; }
.compact .skill .nm { font-size: 8px; }
.compact .pot { width: 46px; height: 46px; }
.compact .pot img { width: 40px; height: 40px; }
.compact .auto-pot { height: 46px; min-width: 64px; padding: 4px; font-size: 12px; }
.compact #town-title { font-size: 14px; top: 14px; left: 52%; white-space: nowrap; letter-spacing: 0; }
.compact #town-menu { bottom: 10px; gap: 6px; }
.compact #town-menu .btn.big { padding: 9px 12px; font-size: 14px; }
.compact .modal { padding: 10px 12px; }
.compact .mh h2, .compact .modal h2 { font-size: 18px; }
.compact .inv-left { width: 230px; }
.compact .char-box { height: 110px; }
.compact .char-box canvas { width: 130px; height: 137px; margin-top: 24px; }
.compact .equip-grid { grid-template-columns: repeat(3, 1fr); }
.compact .stat-list { grid-template-columns: 1fr; font-size: 12px; }
.compact .inv-grid { grid-template-columns: repeat(auto-fill, 52px); max-height: 180px; }
.compact .inv-tools { flex-wrap: wrap; }
.compact .detail { flex-direction: column; }
.compact .det-tip { columns: 1; }
.compact .det-btns { flex-direction: row; }
.compact .shop-grid { max-height: none; }
.compact .shop-card .meta2 { display: none; }
.compact .enh-panel { width: 240px; }
.compact .enh-grid { max-height: 260px; }
.compact .rw-head h2 { font-size: 20px; }
.compact .rw-gains { margin: 4px 0; font-size: 15px; }
.compact .rw-list { max-height: 150px; }
.compact .rw-row { padding: 4px 6px; }
.compact .rw-row .meta { display: none; }
.compact .rw-act { width: auto; }
.compact .rw-hp .bar { width: 180px; }
.compact .rw-opts { gap: 10px; flex-wrap: wrap; }
.compact .rw-btns { margin-top: 8px; }
.compact .rw-btns .big { min-width: 0; padding: 10px 14px; font-size: 15px; }
.compact .ss-art { height: 56px; }
.compact .ss-pick { margin: 8px 0 6px; }
.compact .ss-st b { font-size: 18px; }
.compact .welcome ul { font-size: 13px; gap: 5px; }
.compact .welcome li { padding: 5px 10px; }
.compact .job-card { padding: 6px 8px; gap: 8px; }
.compact .jc-color { height: 50px; width: 24px; }
.compact #tip { width: 240px; font-size: 12px; }
.compact .npc-say { font-size: 12px; padding: 6px 10px; margin-bottom: 8px; }
.compact .npc-say .hint { display: none; }
.compact .tabs { margin-left: 8px; }
.compact .tab { padding: 5px 8px; font-size: 13px; }
.compact #toasts { top: 90px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #5a4a6a; border-radius: 4px; }
::-webkit-scrollbar-track { background: #120e18; }

/* ---------- 난이도 · 클라우드 저장 ---------- */
.diff-box, .cloud-box { margin: 4px 0 10px; background: #120e18aa; border: 2px solid #3a3344; border-radius: 8px; padding: 8px 10px; }
.cloud-box { margin-top: 12px; border-color: #3a5a7a; }
.diff-row { display: flex; gap: 6px; }
.diff-b { flex: 1; font-family: inherit; cursor: pointer; background: #1a1522; color: #c9b9a0; border: 2px solid #4a3e5a; border-radius: 8px; padding: 6px 4px; font-size: 14px; font-weight: bold; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.diff-b span { font-size: 18px; }
.diff-b.on { border-color: var(--dc); color: var(--dc); background: #2a2238; box-shadow: 0 0 10px -2px var(--dc); }
.diff-b:disabled { opacity: .45; cursor: default; }
.diff-desc { margin-top: 6px; font-size: 12.5px; }
.cl-form { display: flex; gap: 6px; }
.cl-form input { flex: 1; min-width: 0; font-family: inherit; font-size: 14px; background: #0c0a10; color: #fff3dc; border: 2px solid #4a3e5a; border-radius: 6px; padding: 6px 8px; }
.cl-st { font-size: 13px; margin-bottom: 4px; }
.cloud-box .small, .diff-box .small { font-size: 11.5px; margin-top: 4px; }
.welcome .btns { gap: 8px; }

/* ---------- 몬스터 소재 · 무기 각인 ---------- */
.rw-mats { text-align: center; font-size: 13px; color: #c8e0a8; margin-bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.rw-mats .mt b { color: #a8ff9a; }
.mats-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 13px; }
.mats-row .mr-t { font-weight: bold; color: #ffd98a; }
.mats-row .mt b { margin-left: 2px; color: #fff3dc; }
.smith-tabs { margin: 0 0 6px 0; }
.trait-wrap .enh-grid { max-height: 210px; }
.tr-badge { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center; background: #000a; color: #ffd98a; white-space: nowrap; overflow: hidden; }
.mat-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.mat-cell { background: #1a1522; border: 2px solid #4a3e5a; border-radius: 6px; padding: 3px 4px; display: flex; align-items: center; gap: 4px; font-size: 13px; }
.mat-cell .mi { font-size: 17px; }
.mat-cell.zero { opacity: .45; }
.trait-panel { min-width: 330px; }
.tr-slots { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; width: 100%; }
.tr-slot { background: #1a1522; border: 2px solid #6a5a3a; border-radius: 8px; padding: 6px 8px; text-align: left; }
.tr-slot.empty { border-style: dashed; border-color: #5a4e6a; }
.tr-slot.locked { opacity: .5; }
.tr-h { font-weight: bold; font-size: 14px; }
.tr-d { font-size: 12.5px; color: #e8dcc8; margin-top: 2px; }
.tr-d.next { color: #a8ffb0; }
.tr-cost { font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.tr-cost .good { color: #8aff9a; } .tr-cost .bad { color: #ff7a6a; }
.tr-btns { display: flex; gap: 6px; margin-top: 5px; }
.tr-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 5px 0; }
.tr-opt { font-family: inherit; cursor: pointer; background: #241d30; color: #e8dcc8; border: 2px solid #4a3e5a; border-radius: 6px; padding: 3px 2px; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.tr-opt span { font-size: 15px; }
.tr-opt.on { border-color: #ffd23a; background: #3a2e1a; color: #ffe066; }
.tr-opt:disabled { opacity: .35; cursor: default; }
.tip-traits { margin-top: 4px; }
.tip-traits .tt { font-size: 12px; font-weight: bold; }
.tip-traits .tt span { font-weight: normal; color: #e8dcc8; margin-left: 4px; }
.tip-traits .tt.empty { color: #8a7e9a; font-weight: normal; }
.compact .trait-panel { min-width: 0; }
.compact .trait-wrap .enh-grid { max-height: 120px; }

/* ---------- 항구 마을 · 정기선 · 바다 ---------- */
.mode-voyage .adv-only, .mode-voyage .town-only { display: none !important; }
.loc-port .rowen-only { display: none !important; }
.dock-body, .ch-body { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.dk-row { display: flex; gap: 10px; align-items: baseline; background: #1a1522; border: 2px solid #2a3a5a; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.dk-row > span:first-child { min-width: 110px; color: #9ac8e8; }
.dk-lock { color: #ff9a8a; background: #2a1418; border: 2px solid #6a2a2a; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.dk-booked { color: #c8f0ff; background: #12283a; border: 2px solid #3a7aa0; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.ch-body p { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: #e8dcc8; }
.nami-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.nami-row { display: flex; align-items: center; gap: 10px; background: #1a1522; border: 2px solid #2a5a6a; border-radius: 8px; padding: 6px 10px; }
.nami-row .mi { font-size: 26px; }
.nami-row .nr-info { flex: 1; font-size: 14px; }
.nami-row.done { opacity: .55; }
.forge-info { font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.forge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.forge-card { background: #121e2a; border: 2px solid #2a6a8a; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.forge-card .fc-n { font-weight: bold; color: #9ae8ff; }
.mat-cell .small { font-size: 10.5px; margin-left: 2px; }
.stages.sea .ss-art div { color: #e8f8ff; }
.compact .forge-grid { grid-template-columns: repeat(2, 1fr); }
.mat-box.wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.mat-box.wide .small { white-space: nowrap; }
.gd-tree { background: #142018; border: 2px solid #3a6a3a; border-radius: 8px; padding: 8px 10px; margin: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.gd-t { font-weight: bold; color: #b0ff6a; margin-top: 4px; }
.gd-row { font-size: 13.5px; color: #e8dcc8; }

/* ---------- 가방 소재 칸 · 마을 의뢰 ---------- */
.mats-row { display: block; margin-top: 6px; }
.mats-row .mr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mats-grid { display: flex; flex-wrap: wrap; gap: 5px; background: #120e18aa; border-radius: 8px; padding: 5px; min-height: 30px; }
.islot.matc { display: flex; align-items: center; justify-content: center; position: relative; border-color: #6a8a5a; background: #1a2218; cursor: pointer; }
.islot.matc.sea { border-color: #3a8aa8; background: #12202a; }
.islot.matc.rare { border-color: #c08aff; background: #221830; }
.islot.matc .mi { font-size: 24px; }
.islot.matc .cnt { position: absolute; right: 2px; bottom: 0; font-size: 11px; font-weight: bold; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.requests .nami-list { max-height: 440px; overflow-y: auto; }
.rq-loc { font-weight: bold; color: #ffd98a; margin-top: 6px; }
.rq-who { min-width: 96px; font-size: 13px; font-weight: bold; color: #c8f0ff; }
.compact .rq-who { min-width: 70px; font-size: 12px; }

/* ---------- 스킬: 숫자키 · 자동/수동 · 스킬 창 ---------- */
.skill { cursor: pointer; }
.skill .skey { position: absolute; left: 2px; bottom: 13px; font-size: 10px; font-weight: bold; color: #1a1008; background: #ffe08a; border-radius: 3px; padding: 0 3px; line-height: 13px; }
.skill .sauto { position: absolute; right: 1px; top: 1px; font-size: 8.5px; font-weight: bold; line-height: 11px; padding: 0 2px; border-radius: 3px; background: #3a2a4a; color: #e0c8ff; cursor: pointer; }
.skill .sauto.on { background: #2a5a3a; color: #b0ffb0; }
.skill.manual { box-shadow: 0 0 0 2px #7affff inset, 0 0 8px #7affff88; }
.skills .sk-intro { background: #2a2040; border: 2px solid #c08aff; border-radius: 8px; padding: 8px 10px; font-size: 14px; margin-bottom: 6px; line-height: 1.5; }
.sk-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sk-sp { font-size: 15px; }
.sk-sp b { font-size: 20px; }
.sk-opt { margin: 4px 0 !important; }
.sk-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-height: 440px; overflow-y: auto; padding-right: 4px; }
.sk-group { font-weight: bold; color: #ffd98a; margin-top: 4px; }
.sk-row { display: flex; gap: 10px; align-items: flex-start; background: #1a1522; border: 2px solid #4a3e5a; border-radius: 8px; padding: 7px 9px; }
.sk-row.locked { opacity: .5; }
.sk-ic { position: relative; font-size: 28px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: #241d30; border-radius: 8px; flex-shrink: 0; }
.sk-ic .skey { position: absolute; left: -3px; bottom: -3px; font-size: 11px; font-weight: bold; color: #1a1008; background: #ffe08a; border-radius: 3px; padding: 0 4px; }
.sk-main { flex: 1; min-width: 0; }
.sk-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.sk-lv { color: #9ae8ff; font-weight: bold; font-size: 13px; }
.sk-pips { display: inline-flex; gap: 2px; }
.sk-pips i { width: 9px; height: 9px; border-radius: 2px; background: #3a3344; }
.sk-pips i.on { background: #ffd23a; }
.sk-pips i.br { outline: 1px solid #c08aff; }
.sk-desc { font-size: 12.5px; color: #c8bca8; margin-top: 2px; }
.sk-eff { font-size: 12.5px; color: #8aff9a; margin-top: 2px; }
.sk-br { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; align-items: center; }
.sk-br .sk-br-t { width: 100%; font-weight: bold; color: #e0b8ff; font-size: 13px; }
.sk-br.pick .btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 48%; }
.sk-br.pick .btn span { font-size: 11px; font-weight: normal; opacity: .9; }
.sk-bo { font-size: 12px; background: #241d30; border: 1px solid #4a3e5a; border-radius: 6px; padding: 2px 7px; color: #b8a8c8; }
.sk-bo em { font-style: normal; margin-left: 4px; color: #8a7e9a; }
.sk-bo.on { border-color: #c08aff; color: #f0e0ff; background: #2e2244; }
.sk-bo.on em { color: #d8c8f0; }
.sk-bo.off { opacity: .4; text-decoration: line-through; }
.sk-side { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.compact .sk-list { max-height: 220px; }
.compact .sk-br.pick .btn { max-width: 100%; }
.qd-gets { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 15px; background: #1a2218; border: 2px solid #5a8a4a; border-radius: 8px; padding: 8px 12px; }
.qd-gets div { color: #e8ffd8; }
.quests .nami-list { max-height: 460px; overflow-y: auto; }

/* ---------- 스킬 트리 (세로로 긴 창 · 한 줄 행) ---------- */
.btn.tiny { padding: 2px 7px; font-size: 12px; border-width: 1px; }
.btn.cyan { background: linear-gradient(#3a8aa0, #1a5068); border-color: #7affff; }
.modal.skills { width: 600px; height: calc(100% - 16px); overflow: hidden; padding: 12px 14px; }
.modal.skills .mh { gap: 8px; }
.modal.skills .sk-list { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; gap: 4px; margin-top: 4px; }
.sk-help { background: #1a1522; border: 2px solid #4a3e5a; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; line-height: 1.6; margin-bottom: 4px; }
.sk-help.hidden { display: none; }
.sk-tools { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.sk-tools .sk-opt { font-size: 12px; display: flex; align-items: center; gap: 3px; margin-left: 4px; }
.modal.skills .sk-row { display: block; padding: 4px 6px; border-width: 1px; }
.sk-line { display: flex; align-items: center; gap: 6px; }
.modal.skills .sk-ic { width: 32px; height: 32px; font-size: 20px; border-radius: 6px; }
.modal.skills .sk-ic .skey { font-size: 9px; padding: 0 3px; }
.sk-nm { display: flex; align-items: center; gap: 6px; font-size: 13.5px; min-width: 0; flex-wrap: wrap; }
.sk-nm .sk-lv { font-size: 11px; color: #9ae8ff; }
.sk-brpick { display: inline-flex; gap: 3px; align-items: center; font-size: 12px; color: #e0b8ff; }
.sk-line .sk-bo { font-size: 11px; padding: 1px 6px; }
.sk-detail { display: none; padding: 4px 0 2px 38px; }
.sk-row.open .sk-detail { display: block; }
.sk-row.open { border-color: #a08a5a; }
.compact .modal.skills { width: auto; }
.compact .modal.skills .sk-nm { font-size: 12px; }

/* ---------- 펫 장비 ---------- */
.islot.pgi { display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.islot.pgi span { font-size: 24px; }
.pg-ghost { font-size: 20px; opacity: .25; }
.pg-pets { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.pg-pets .islot { cursor: pointer; position: relative; }
.pg-pets .eq-badge { font-size: 8px; }
.pg-wrap { background: #1a1522; border: 2px solid #4a3e5a; border-radius: 8px; padding: 8px 10px; }
.pg-name { font-weight: bold; margin-bottom: 6px; }
.pg-slots { display: flex; gap: 10px; }
.pg-tot { margin-top: 6px; font-size: 13px; color: #b0ffb0; }
.pg-grid { display: flex; flex-wrap: wrap; gap: 5px; max-height: 150px; overflow-y: auto; background: #120e18aa; border-radius: 8px; padding: 5px; }
.pg-det { margin-top: 6px; }
.compact .pg-grid { max-height: 100px; }
/* 메뉴 버튼이 많아져서 폭 줄이기 */
#town-menu { gap: 6px; max-width: calc(100% - 16px); flex-wrap: wrap; justify-content: center; }
#town-menu .btn.big { padding: 10px 13px; font-size: 15px; }
.compact #town-menu { gap: 3px; }
.compact #town-menu .btn.big { padding: 6px 7px; font-size: 12px; }
.ph-body > * { flex-shrink: 0; }
.pg-grid { min-height: 60px; }
#town-menu { gap: 5px; }
#town-menu .btn.big { padding: 9px 10px; font-size: 14px; }
.compact #town-menu .btn.big { padding: 6px 7px; font-size: 12px; }
#town-menu { left: 8px; right: 8px; transform: none; max-width: none; }

/* ---------- 직업 선택 · 캐릭터 ---------- */
.cls-t { text-align: center; font-weight: bold; color: #ffd98a; margin: 8px 0 4px; }
.cls-pick { display: flex; gap: 10px; justify-content: center; }
.cls-card { font-family: inherit; cursor: pointer; flex: 1; max-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: #241d30; color: #fff3dc; border: 2px solid #a08a5a; border-radius: 10px; padding: 10px; }
.cls-card .ci { font-size: 36px; }
.cls-card b { font-size: 18px; }
.cls-card em { font-style: normal; font-size: 12px; color: #c8bca8; text-align: center; }
.cls-card:hover { border-color: #ffe08a; background: #2e2440; }
.cls-card.archer { border-color: #6aa84a; }
.chars-box { margin-top: 10px; background: #120e18aa; border: 2px solid #5a4a3a; border-radius: 8px; padding: 8px 10px; }
.ch-list { display: flex; flex-direction: column; gap: 4px; }
.ch-row { display: flex; align-items: center; gap: 8px; background: #1a1522; border: 1px solid #4a3e5a; border-radius: 6px; padding: 4px 8px; font-size: 13px; }
.ch-row.cur { border-color: #ffd23a; }
.ch-row .ci { font-size: 18px; }
.ch-new { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; font-size: 13px; }
.ch-name { width: 110px; font-family: inherit; font-size: 13px; background: #0c0a10; color: #fff3dc; border: 2px solid #4a3e5a; border-radius: 6px; padding: 4px 6px; }
.chars-box .ch-name { width: 120px !important; height: auto !important; display: inline-block; }
