/* ================= 환생의 대륙 ================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #14161d;
  --panel: #1d2029;
  --panel2: #252935;
  --line: #333846;
  --text: #e8e6df;
  --dim: #9aa0ad;
  --gold: #ffd76a;
  --accent: #7fd0ff;
  --hot: #ff8a5c;
  --good: #8be28b;
  --bad: #ff7d7d;

  --r-common: #cfcfcf;
  --r-fine: #7fd97f;
  --r-rare: #6fb7ff;
  --r-epic: #c98bff;
  --r-legend: #ffb84d;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 14px;
  overflow-x: hidden;
  -webkit-user-select: none; user-select: none;   /* 강화 연타 시 텍스트 선택 방지 */
  -webkit-tap-highlight-color: transparent;
}
button, .btn, .tab-btn, .icon-btn, .ground-row, .rb-btn, #questChip {
  touch-action: manipulation;                      /* 더블탭 줌 방지 — 연타가 잦은 게임 */
}

.hidden { display: none !important; }

#app { max-width: 1280px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; }

/* ---------------- 상단 바 ---------------- */
#topbar {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px;
}
.brand { font-size: 17px; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.brand span { letter-spacing: .5px; }

#lvBox { flex: 1; min-width: 120px; max-width: 420px; }
.lv-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
#lvText { font-size: 15px; color: var(--accent); }
.cp-text { font-size: 12px; color: var(--gold); font-weight: 700; }
.rb-badge {
  font-size: 12px; color: var(--hot);
  background: rgba(255,138,92,.12); border: 1px solid rgba(255,138,92,.35);
  padding: 1px 8px; border-radius: 20px;
}
.exp-bar {
  position: relative; height: 14px; border-radius: 8px; overflow: hidden;
  background: #0e1015; border: 1px solid var(--line);
}
.exp-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #3f9bd8, #7fd0ff);
  transition: width .15s linear;
}
.exp-bar.capped i { background: linear-gradient(90deg, #ff8a5c, #ffd76a); }
.exp-bar span {
  position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 14px;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.res { font-weight: 700; color: var(--gold); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.res-ico { display: inline-flex; align-items: center; line-height: 1; } .res-ico img { display: block; }
.boost-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; position: absolute; left: 8px; top: 46px; z-index: 6; pointer-events: none; } /* 무대 위 — 골드 옆에 두면 폰에서 버튼이 둘째 줄로 내려가 화면이 밀렸다(실기기 2026-11-04) */
#riftGoBtn:not(.hidden) + .boost-chips { top: 68px; } /* 심층 도전 버튼 글자를 가렸다 */
.boost-chips:empty { display: none; }
.boost-chip { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: #2a2340; border: 1px solid #6d5bd0; color: #e6dcff; white-space: nowrap; }
.boost-chip.gold { background: #3a2f12; border-color: #c9a227; color: #ffe8a3; }
.shop-item:first-child { margin-top: 12px; } /* 제목과 첫 카드 사이 — 머리글 줄을 빼니 붙어 보였다(사용자 2026-10-15) */
.shop-item { display: grid; grid-template-columns: 30px 1fr auto; column-gap: 9px; row-gap: 1px; align-items: center; padding: 9px 10px; margin: 6px 0; border-radius: 10px; background: #1a1d28; border: 1px solid #2a2f40; } /* 두 줄 격자 — 아이콘 | 이름 … 버튼 / 설명이 한 줄로(한 줄에 다 넣으니 설명이 석 줄로 꺾여 답답했다, 사용자 2026-10-15) */
.shop-item.on { border-color: #6d5bd0; background: #1f1b33; }
.shop-item.off { opacity: .55; }
.shop-ico { font-size: 24px; width: 30px; text-align: center; grid-row: 1 / 3; }
.shop-name { font-weight: 800; min-width: 0; }
.shop-sub { font-size: 12px; color: var(--dim); grid-column: 2; line-height: 1.35; }
.shop-item .btn { white-space: nowrap; padding: 7px 10px; grid-column: 3; grid-row: 1 / 3; align-self: center; } /* 버튼은 두 줄 한가운데(사용자 2026-10-15 "위아래 가운데 정렬") */
.shop-hub { font-size: 12px; color: var(--dim); margin-top: 10px; line-height: 1.5; }
/* 고블린 앙코르 창 — 게임 판과 같은 남색+금테, 글자는 본문 색으로 또렷하게(보라 판·13px 는 읽기 어려웠다: 사용자 2026-10-13) */
.encore-box { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--gold); margin: 4px 0 8px; }
.encore-box .ei { flex: none; display: flex; align-items: center; }
.encore-box .ei img { width: 44px; height: 44px; }
.encore-box .ei img.ei-gob { width: auto; height: 64px; } /* 고블린 그림(2026-10-23 사용자 "결산 창도 고블린 나오면") */
.btn .ico-tile { width: 18px; height: 18px; border-radius: 4px; display: inline-block; vertical-align: -4px; }
.encore-box .et { font-size: 14px; line-height: 1.6; color: var(--text); }
.loot-sum { font-size: 13px; margin-bottom: 4px; }
.loot-one { font-size: 12.5px; word-break: keep-all; } /* 영어는 한 줄에 안 들어가 보상 설명이 잘렸다 — 줄바꿈 허용(점검 2026-11-05) */
.loot-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); } /* 고블린 전리품 한 줄 — 아이콘 · 이름 · 등급(·처분) */
.loot-row .ico-img { display: block; width: 22px; height: 22px; flex: none; }
.loot-row small { color: var(--dim); margin-left: auto; white-space: nowrap; }
.encore-box .et b { color: var(--gold); }
.encore-list { font-size: 13px; color: var(--dim); text-align: center; margin-bottom: 6px; }
.icon-btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  border-radius: 9px; padding: 5px 10px; font-size: 14px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--accent); }

/* ---------------- 본문 ---------------- */
#layout { display: flex; gap: 10px; align-items: stretch; flex: 1; }

#stage {
  position: relative; flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #000;
  align-self: flex-start;
}
#field { display: block; width: 100%; height: auto; } /* height:auto — 비트맵 비율 유지. 폰에서는 비트맵이 무대보다 길고 #stage 가 아래를 가린다(setupCanvas) */
/* 화면을 끌면 늘어나던 것(안드로이드 12+ 오버스크롤 스트레치) — 게임 화면엔 필요 없다 (포차 980e65d) */
html, body { overscroll-behavior: none; }
/* 무대 도장 — 보스 출현·처치, 만렙, 심층, 전설 드랍 같은 순간을 무대 위에 크게 찍는다 (강화 결과 도장과 같은 결) */
.stage-stamp { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; white-space: nowrap;
  font-weight: 900; font-size: 24px; letter-spacing: 1px; color: #fff; padding: 6px 18px; border-radius: 12px;
  background: rgba(10,12,18,.58); border: 2px solid rgba(255,215,106,.75); text-shadow: 0 0 14px rgba(255,215,106,.9), 0 2px 8px #000;
  animation: stampIn 1.7s cubic-bezier(.2,1.4,.4,1) forwards; }
.stage-stamp.red { border-color: rgba(255,107,90,.85); text-shadow: 0 0 14px rgba(255,80,60,.95), 0 2px 8px #000; }
.stage-stamp.purple { border-color: rgba(201,168,255,.85); text-shadow: 0 0 14px rgba(170,120,255,.95), 0 2px 8px #000; }
.stage-stamp.blue { border-color: rgba(127,208,255,.85); text-shadow: 0 0 14px rgba(100,190,255,.95), 0 2px 8px #000; }
.stage-stamp.small { font-size: 17px; top: 42%; padding: 4px 12px; } /* 24% 는 폰에서 위 막대 바로 밑이라 "골드 밑에 뜬다"로 보였다 */
.stage-stamp { display: flex; align-items: center; gap: 10px; text-align: left; }
.stage-stamp .st-ico { display: flex; align-items: center; flex: none; }
.stage-stamp .st-ico .ico-scene, .stage-stamp .st-ico .ico-emo { vertical-align: middle; margin: 0; }
.stage-stamp .st-txt { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.stage-stamp .st-txt small { margin-top: 3px; }
.ico-emo { display: inline-block; line-height: 1; vertical-align: -3px; margin-right: 2px; }
.ico-scene { vertical-align: -6px; margin-right: 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.rb-fx-ico .ico-scene { vertical-align: middle; margin: 0; filter: drop-shadow(0 0 12px rgba(255,255,255,.35)); }
.stage-stamp small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #e6ecf5; text-shadow: 0 1px 4px #000; margin-top: 2px; }
@keyframes stampIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4) rotate(-8deg); } 11% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  22% { transform: translate(-50%, -50%) scale(1.06) rotate(-3deg); } 30% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1) rotate(-3deg); } }
@media (max-width: 559px) { .stage-stamp { font-size: 20px; } .stage-stamp.small { font-size: 15px; } }
/* 전체 화면 배너 — 환생 연출(.rb-fx)과 같은 틀, 주제색만 다르다 */
.rb-fx.demon { background: radial-gradient(circle at 50% 45%, rgba(220,70,60,.55), rgba(16,6,8,.92)); }
.rb-fx.demon .rb-fx-title { text-shadow: 0 2px 12px rgba(255,100,80,.8); }
.rb-fx.demon .rb-fx-stars i { background: #ff8a7a; box-shadow: 0 0 8px #ff8a7a; }
.rb-fx.gold { background: radial-gradient(circle at 50% 45%, rgba(220,170,60,.5), rgba(14,10,4,.92)); }
.rb-fx.gold .rb-fx-title { text-shadow: 0 2px 12px rgba(255,215,106,.9); }
#groundLabel {
  position: absolute; top: 8px; left: 10px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.45); border-radius: 8px; padding: 3px 10px;
  pointer-events: none;
}
/* 균열 머무름 — 무대 위 [심층 N 도전] (이름표 아래, 2026-10-14) */
#riftGoBtn {
  position: absolute; top: 36px; left: 10px; z-index: 5;
  font-weight: 700; font-size: 12px; line-height: 1; font-family: inherit; color: #fff;
  background: linear-gradient(180deg, #6d4fd6, #4a2fa8); border: 1px solid #b89cff; border-radius: 9px; padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 10px rgba(150,110,255,.45); cursor: pointer; touch-action: manipulation;
  animation: riftGoPulse 1.6s ease-in-out infinite;
}
#riftGoBtn:active { transform: scale(.96); }
@keyframes riftGoPulse { 0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 8px rgba(150,110,255,.35); } 50% { box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 16px rgba(170,130,255,.8); } }
#koOverlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20,10,10,.45); color: #ffd7d7; font-size: 20px; font-weight: 800;
  pointer-events: none; text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
#questChip {
  position: absolute; top: 8px; right: 10px;
  background: rgba(0,0,0,.5); border: 1px solid var(--line); border-radius: 20px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#questChip b { color: var(--accent); }
#questChip.done {
  border-color: var(--gold); color: var(--gold);
  background: rgba(60,45,10,.75); animation: chipGlow 1.4s infinite; /* scale 1.25 pulse 는 과했다 — 살짝만 숨쉬게 */
}
@keyframes chipGlow { 50% { box-shadow: 0 0 12px rgba(255,215,106,.65); filter: brightness(1.18); } } /* 크기는 안 건드린다 — scale 은 과했다(사용자) */
#ultBtn {
  position: absolute; bottom: 12px; right: 12px;
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--line); background: #2a2f3d; color: #fff;
  font-size: 17px; font-weight: 800; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; line-height: 1; touch-action: manipulation;
}
#ultBtn span { font-size: 10px; color: var(--dim); font-weight: 700; white-space: nowrap; } /* "📺 5분" 이 두 줄로 꺾여 원 밖으로 잘렸다 */
#ultBtn.adready span { font-size: 9px; }
/* 순위표 닉네임 등록 창 */
.nick-form { display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.nick-sub { text-align: center; color: var(--dim); font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.nick-lbl { font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; }
.nick-field { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #141821; color: #fff; outline: none; }
.nick-field:focus { border-color: var(--gold); }
.nick-msg { min-height: 16px; font-size: 12px; color: #ff9a9a; }
.nick-go { width: 100%; padding: 12px; font-size: 15px; }
/* 쿠폰 창 — 닉네임 창과 같은 입력 칸 · 금테 남색 판(2026-10-29 "쿠폰 창도 우리 테마에 맞게") */
.cp-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px; }
.cp-ico { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--gold), 0 0 14px rgba(224,178,74,.35); }
.cp-field { text-align: center; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; border-color: #4d5780; }
.cp-msg { text-align: center; }
.cp-got { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.cp-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(224,178,74,.08); border: 1px solid rgba(224,178,74,.45); }
.cp-row .cp-name { display: flex; align-items: center; gap: 6px; }
.cp-row b { color: var(--gold); font-size: 16px; }
.demon-card.locked { opacity: .72; }
/* 난이도 단계 카드 — 사냥터 탭 맨 위 */
.tier-card { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(224,178,74,.14), var(--panel2) 55%); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 10px; margin-bottom: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.tier-card.off { opacity: .75; }
.tier-card .tier-main { flex: 1; min-width: 0; }
.tier-card .tier-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tier-card .tier-lab { font-size: 13px; font-weight: 700; color: var(--text); }
.tier-card .tier-num { font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1; text-shadow: 0 0 10px rgba(224,178,74,.35); }
.tier-card .tier-of { font-size: 12px; color: var(--dim); }
.tier-card .tier-pips { display: flex; gap: 3px; margin: 6px 0 5px; }
.tier-card .tier-pips i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.tier-card .tier-pips i.open { border-color: var(--gold); background: rgba(224,178,74,.15); }
.tier-card .tier-pips i.on { background: linear-gradient(180deg, #ffd978, var(--gold)); border-color: var(--gold); box-shadow: 0 0 6px rgba(224,178,74,.45); }
.tier-card .tier-sub { font-size: 13px; color: var(--text); line-height: 1.5; }
.tier-card .tier-sub.dim { color: var(--dim); font-size: 12px; }
.tier-card .tier-fit { font-size: 12.5px; margin-top: 2px; font-weight: 600; }
.tier-card .tier-fit.ok { color: #7fd98a; }
.tier-card .tier-fit.easy { color: #ff8a7a; }
.tier-card .tier-fit.hard { color: #e6c15a; }
.tier-card .tier-btn { font-size: 16px; padding: 10px 11px; border-radius: 10px; }
.hold-note { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 0 0 8px; padding: 8px 10px;
  border: 1px dashed var(--gold); border-radius: 10px; font-size: 12px; color: var(--gold); background: rgba(60,45,10,.35); }
.hold-note .btn { flex: none; padding: 6px 10px; font-size: 12px; }
/* 장비 정보 창 — 착용 중과 비교 */
.cmp-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: start; margin: 8px 0 4px; }
.cmp-col { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.cmp-t { font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.cmp-ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; }
.cmp-name { font-size: 12px; font-weight: 700; margin-top: 4px; word-break: keep-all; }
.cmp-sub { font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.cmp-stat { font-size: 12px; margin-top: 2px; }
.cmp-afx { font-size: 11px; color: var(--dim); margin-top: 3px; line-height: 1.4; }
.cmp-vs { align-self: center; font-size: 11px; color: var(--dim); font-weight: 700; }
.cmp-verdict { text-align: center; font-size: 13px; font-weight: 700; margin: 2px 0 8px; }
.bookx-card { margin-top: 10px; }
.bookx-card .gold-acts { margin-top: 6px; flex-direction: column; }
.bookx-card .gold-acts .btn { white-space: normal; width: 100%; } /* 360px 에서 두 버튼이 한 줄에 서면 둘째가 잘렸다 */
#ultBtn.ready {
  border-color: var(--gold); background: radial-gradient(#7a5a18, #3a2f10);
  animation: pulse 0.9s infinite; box-shadow: 0 0 16px rgba(255,215,106,.5);
}
#ultBtn.ready span { color: var(--gold); }
#ultBtn.active {
  border-color: var(--hot); background: radial-gradient(#8a3a18, #3a1a10);
  box-shadow: 0 0 18px rgba(255,138,92,.6);
}
#ultBtn.active span { color: #ffcbb3; font-size: 9px; } /* "📺 300s" — 켜져 있을 때 누르면 광고로 +5분 */
#flashFx { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
#flashFx.go { animation: flashOut .7s ease-out; }
@keyframes flashOut { 0% { opacity: .95; } 100% { opacity: 0; } }

/* ---------------- 우측 패널 ---------------- */
#side {
  width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px;
}
#tabs { display: flex; gap: 6px; }
.tab-btn {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; /* 아이콘 위 · 글자 아래 — 가로로 나란히 두면 탭마다 아이콘 자리가 들쭉날쭉했다(사용자 2026-10-13) */
  background: var(--panel); color: var(--dim); border: 1px solid var(--line);
  border-radius: 10px; padding: 6px 0 5px; font-size: 11px; font-weight: 700; cursor: pointer; line-height: 1.1;
  white-space: nowrap; /* overflow:hidden 은 배지(-5px 로 튀어나옴)를 잘라 버린다 */
}
.tab-btn.active { color: var(--text); border-color: var(--accent); background: linear-gradient(180deg, #2c3140, var(--panel2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(127,208,255,.15); }
.tab-btn .ico-ui { display: block; margin: 0; opacity: .7; filter: saturate(.6); }
.tab-btn.active .ico-ui { opacity: 1; filter: none; }
/* 그래픽 3단계 — 버튼·패널 질감: 위쪽 하이라이트 한 줄 + 아래로 살짝 어두운 그라데이션 (납작한 단색은 "웹 페이지"로 보였다) */
.btn { background-image: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.btn.primary { background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.35); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
.panel { background-image: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.06)); }
.equip-slot, .ground-row, .demon-card, .gold-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 1px 3px rgba(0,0,0,.25); }
/* 등급 타일 — 안쪽 빛으로 등급이 한눈에 (영웅·전설·고유·세트) */
.rbg-epic { box-shadow: inset 0 0 0 1px rgba(195,130,255,.55), inset 0 0 10px rgba(195,130,255,.25); }
.rbg-legend { box-shadow: inset 0 0 0 1px rgba(255,185,80,.6), inset 0 0 12px rgba(255,185,80,.3); }
.rbg-uniq { box-shadow: inset 0 0 0 1px rgba(255,130,100,.6), inset 0 0 12px rgba(255,130,100,.3); }
.rbg-set { box-shadow: inset 0 0 0 1px rgba(77,227,208,.6), inset 0 0 12px rgba(77,227,208,.28); }
.sec-title { letter-spacing: .02em; border-left: 3px solid var(--accent); padding-left: 7px; }
.tab-badge {
  position: absolute; top: -6px; right: -4px; z-index: 2; /* z-index 없이는 다음 탭이 배지를 덮는다 */
  box-shadow: 0 0 0 2px var(--bg);
  min-width: 16px; height: 16px; line-height: 16px; border-radius: 9px;
  background: var(--accent); color: #10222e; font-size: 10px; font-weight: 800; padding: 0 4px;
}
.tab-badge.hot { background: var(--hot); color: #331408; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; overflow-y: auto; flex: 1; min-height: 200px; max-height: 560px;
}

.sec-title { font-size: 12px; color: var(--dim); font-weight: 800; margin: 10px 0 6px; }
.sec-title:first-child { margin-top: 0; }

/* 사냥터 */
.ground-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 10px; margin-bottom: 7px; cursor: pointer;
}
.ground-row:hover { border-color: var(--accent); }
.ground-row.current { border-color: var(--good); background: rgba(139,226,139,.07); }
.ground-row.locked { opacity: .55; cursor: not-allowed; }
.ground-ico { font-size: 22px; min-width: 38px; display: flex; align-items: center; justify-content: center; }
.ground-ico .ground-img { height: 36px; width: auto; display: block; }
.cls-ico { display: inline-block; vertical-align: -0.28em; border-radius: 50%; }
.info-cls .big .info-cv { display: block; margin: 0 auto; }
.ground-main { flex: 1; min-width: 0; }
.ground-name { font-weight: 800; font-size: 14px; }
.ground-sub { font-size: 12px; color: var(--dim); margin-top: 1px; }
.ground-tag { font-size: 11px; font-weight: 800; white-space: nowrap; }
.ground-tag.now { color: var(--good); }
.ground-tag.danger { color: var(--bad); }
.ground-tag.lock { color: var(--dim); }

/* 장비 */
.equip-slot {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 7px;
}
.equip-ico { font-size: 22px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex: none; position: relative; }
/* 아이콘 타일 — 그림만 봐도 등급이 읽히게 */
.rbg-common { background: #262a33; box-shadow: inset 0 0 0 1px #3a3f4c; }
.rbg-fine { background: rgba(110, 205, 130, .13); box-shadow: inset 0 0 0 1px rgba(110, 205, 130, .45); }
.rbg-rare { background: rgba(100, 170, 255, .13); box-shadow: inset 0 0 0 1px rgba(100, 170, 255, .5); }
.rbg-epic { background: rgba(195, 130, 255, .15); box-shadow: inset 0 0 0 1px rgba(195, 130, 255, .55); }
.rbg-legend { background: rgba(255, 185, 80, .15); box-shadow: inset 0 0 0 1px rgba(255, 185, 80, .6); }
.rbg-uniq { background: rgba(255, 120, 100, .16); box-shadow: inset 0 0 0 1px rgba(255, 130, 100, .6); }
.equip-main { flex: 1; min-width: 0; }
.equip-name { font-weight: 800; font-size: 13px; }
.equip-stat { font-size: 12px; color: var(--dim); margin-top: 1px; }
.btn {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.warn { border-color: rgba(255,125,125,.4); color: var(--bad); }
.btn.primary { background: #2b4a63; border-color: var(--accent); }
.enh-btn { line-height: 1.25; min-width: 86px; }
.enh-btn small { font-weight: 600; color: var(--gold); }
.enh-btn.risky { border-color: rgba(255,184,77,.5); color: var(--r-legend); }

.inv-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.inv-row {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px dashed var(--line); padding: 6px 2px; font-size: 12px;
}
.inv-row:last-child { border-bottom: none; }
.inv-ico { font-size: 17px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 7px; flex: none; position: relative; }
/* 디아블로식 아이템 줄 — 등급색 이름 아래 유형줄, 큰 스탯 숫자 */
.itype { font-size: 10.5px; opacity: .8; margin-top: -1px; }
.statv { font-size: 14px; font-weight: 800; color: #fff; }
.inv-name, .equip-name { font-weight: 800; }
.inv-main { flex: 1; min-width: 0; }
.inv-name { font-weight: 700; }
.inv-sub { color: var(--dim); font-size: 11px; }
.inv-empty { color: var(--dim); text-align: center; padding: 18px 0; font-size: 12px; }

.r-uniq { color: #ffab3c; text-shadow: 0 0 8px rgba(255,171,60,.45); }
.afx-line { font-size: 11px; color: #8fd0a8; margin-top: 1px; }
.req-line { font-size: 11px; color: var(--hot); margin-top: 1px; }  /* 환생 착용 제한 — 미달이면 경고색 */
.req-line.ok { color: var(--dim); }
.uniq-line { font-size: 11px; color: var(--r-legend); margin-top: 1px; }
.r-common { color: var(--r-common); }
.r-fine { color: var(--r-fine); }
.r-rare { color: var(--r-rare); }
.r-epic { color: var(--r-epic); }
.r-legend { color: var(--r-legend); }

/* 과업 */
.quest-card {
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.quest-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.quest-ico { font-size: 26px; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; }
.quest-ico .quest-img { height: 32px; width: auto; display: block; }
.quest-ico .ico-img { display: block; }
.quest-ico.sm { font-size: 15px; min-width: 20px; vertical-align: middle; }
.quest-ico.sm .quest-img { height: 20px; }
.quest-name { font-weight: 800; font-size: 15px; }
.quest-sub { font-size: 12px; color: var(--dim); }
.quest-bar { margin: 6px 0 10px; }
.quest-reward { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 2px 8px; }
.quest-reward b { color: var(--gold); }
.quest-claim { width: 100%; padding: 9px; font-size: 14px; }
.quest-acts { display: flex; gap: 8px; }
.quest-acts .quest-claim { width: auto; flex: 1 1 0; min-width: 0; } /* 1 1 0 — 글 길이와 상관없이 두 버튼을 같은 폭으로(사용자 2026-10-29 "좌우 크기가 다르다") */
.quest-acts .quest-claim small { display: none; } /* 2배 받기 아래 보상 글씨는 뺐다 — 360px 에서 버튼 밖으로 삐져나왔고, 보상은 위 카드에 이미 있다(사용자 2026-10-29) */
.quest-claim:not(:disabled) { animation: chipGlowFin 1.6s ease-in-out infinite; transition: none; } /* 과업 칩·환생 버튼과 같은 빛 맥동(그림자만) — 밝기(filter)까지 깜빡이니 혼자 튀었다(2026-10-23 사용자) · .btn 의 transition:all 이 재렌더 때 섞이지 않게 끈다 */ /* 1.3초는 "깜박임이 너무 빠르다"(사용자) */ /* scale 맥동은 두 버튼이 커져 겹쳤다(2026-10-23 사용자) — 빛만 */
@keyframes glowSoft { 50% { filter: brightness(1.14); box-shadow: 0 0 10px rgba(255,215,106,.4); } }
@keyframes pulseSoft { 50% { transform: scale(1.05); filter: brightness(1.12); } }
.quest-next {
  font-size: 12px; color: var(--dim); padding: 6px 2px;
  border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 8px;
}
.quest-next:last-child { border-bottom: none; }

/* 특성 */
.talent-row {
  display: flex; gap: 8px; align-items: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 9px; margin-bottom: 6px;
}
.talent-ico { font-size: 18px; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; }
.talent-ico .ico-tile { width: 34px; height: 34px; display: block; border-radius: 7px; }
.shop-ico .ico-tile { width: 32px; height: 32px; display: block; border-radius: 7px; }
.sum-ico { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 6px; }
.sum-ico .ico-tile { width: 22px; height: 22px; border-radius: 5px; }
.sum-ico .ico-img { display: inline-block; }
.settle-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.settle-head .ico-tile { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.skill-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.skill-head .skill-cv { display: block; flex: none; }
.skill-head h3 { margin: 0; }
.talent-main { flex: 1; min-width: 0; }
.talent-name { font-size: 13px; font-weight: 800; }
.talent-name small { color: var(--accent); font-weight: 700; }
.talent-sub { font-size: 11px; color: var(--dim); }
/* 한 줄 요약 행 — 레벨 점 + 지금 값, 이름을 누르면 상세 */
.talent-row.compact .talent-main { cursor: pointer; }
.talent-row.compact .talent-sub { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pips { display: inline-flex; gap: 2px; }
.pips i { width: 6px; height: 6px; border-radius: 50%; background: #2f3a4f; }
.pips i.on { background: var(--accent); }
.talent-val { color: #e6ecf5; font-size: 12px; }
.talent-val.off { color: var(--dim); font-weight: 400; }

/* 환생 */
.rb-hero {
  text-align: center; background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 10px; margin-bottom: 10px;
}
.rb-hero .big { font-size: 30px; }
.rb-hero h3 { font-size: 16px; margin: 6px 0 2px; }
.rb-hero .sub { font-size: 12px; color: var(--dim); }
.rb-compare {
  display: flex; gap: 8px; margin: 10px 0;
}
.rb-col {
  flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; text-align: center;
}
.rb-col .t { font-size: 11px; color: var(--dim); font-weight: 800; }
.rb-col .v { font-size: 15px; font-weight: 800; margin-top: 3px; }
.rb-col.next { border-color: rgba(255,138,92,.5); }
.rb-col.next .v { color: var(--hot); }
.rb-btn {
  width: 100%; padding: 12px; font-size: 15px; font-weight: 800;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--dim); cursor: not-allowed;
}
.rb-btn.ready {
  background: linear-gradient(135deg, #b3402a, #e07b39); color: #fff;
  border-color: #ffb84d; cursor: pointer; animation: none;
}
.rb-note { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.6; }

.stat-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 2px; border-bottom: 1px dashed var(--line); }
.stat-row:last-child { border-bottom: none; }
.stat-row b { color: var(--gold); min-width: 0; text-align: right; }
.stat-row > span { flex: 0 0 auto; max-width: 48%; word-break: keep-all; margin-right: 10px; } /* 이름표가 글자 단위로 꺾였다('방어/구', 점검 2026-11-05) */

.set-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; font-size: 13px; }
/* 정보 탭 — 전투력 격자 · 접히는 기록 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 2px; }
.sg-cell { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.sg-k { font-size: 11px; color: var(--dim); word-break: keep-all; line-height: 1.2; }
.sg-v { font-size: 15px; font-weight: 800; margin-top: 2px; }
.sg-s { font-size: 10px; color: var(--dim); margin-top: 1px; }
details.rec { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; margin-top: 8px; background: rgba(255,255,255,.03); }
details.rec summary { cursor: pointer; font-size: 13px; font-weight: 700; padding: 5px 0; list-style: none; }
details.rec summary::-webkit-details-marker { display: none; }
details.rec summary::after { content: '▾'; float: right; color: var(--dim); }
details.rec[open] summary::after { content: '▴'; }
.info-cls .big { font-size: 30px; }

/* 직업 선택 */
.class-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.class-card:hover { border-color: var(--accent); background: #2a3040; }
.cc-ico { font-size: 30px; }
.cc-ico .cc-cv { display: block; }
.cc-main { flex: 1; min-width: 0; }
.cc-name { font-weight: 800; font-size: 16px; }
.cc-desc { font-size: 12px; color: var(--dim); margin-top: 2px; line-height: 1.5; }
.cc-goal { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 3px; }
.cc-skills { font-size: 12px; color: var(--accent); margin-top: 4px; font-weight: 700; }
.cls-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cls-row .btn { flex: 1 1 30%; padding: 8px 2px; white-space: nowrap; }

/* ---------------- 모달 / 토스트 ---------------- */
.modal-root { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal-root.over-char { z-index: 58; } /* 캐릭터 창(55) 위에 띄우는 확인 창 */
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-box {
  position: relative; width: min(440px, calc(100vw - 40px)); max-height: 80vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.modal-box h2 { font-size: 17px; margin-bottom: 10px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; } /* 버튼 셋(출석: 나중에·받기·광고 2배)이 360px 에서 넘쳐 첫 버튼이 잘렸다 — 줄바꿈 */
.modal-actions .btn { min-width: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.sum-row b { color: var(--gold); }
.modal-note { font-size: 12px; color: var(--dim); margin-top: 8px; line-height: 1.6; }

/* ===== 출석 보상 (포차 att-grid 이식) ===== */
.att-head { text-align: center; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.att-head b { color: var(--gold); }
.att-broke { text-align: center; font-size: 12px; color: var(--gold); background: #2a2330; border: 1px solid #6b5233; border-radius: 10px; padding: 7px 9px; margin-bottom: 8px; }
.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.att-cell { position: relative; background: var(--panel2); border: 1.5px solid var(--line); border-radius: 10px; padding: 5px 2px; text-align: center; }
.att-cell .att-day { font-size: 10px; color: var(--dim); font-weight: 700; line-height: 1.2; }
.att-cell .att-ico { font-size: 20px; line-height: 1.1; }
.att-cell .att-lbl { font-size: 9.5px; color: var(--text); line-height: 1.2; }
.att-cell.cur { border-color: var(--good); box-shadow: 0 0 10px #8be28b55; animation: attBump .9s ease infinite alternate; }
@keyframes attBump { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.att-cell.done { opacity: .5; }
.att-cell .att-check { position: absolute; inset: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--good); background: rgba(10, 13, 24, .45); }
.att-cell:nth-child(7) { grid-column: span 2; }
.att-cell:nth-child(7) .att-ico { font-size: 24px; }
.att-card { margin-bottom: 10px; cursor: pointer; }
.att-card .quest-head { margin-bottom: 0; }
.att-card .quest-head > div { flex: 1; min-width: 0; }
.att-card.ready { border-color: var(--good); }
.att-btn { flex-shrink: 0; }

#toastRoot {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column-reverse; gap: 6px; z-index: 60; pointer-events: none;
}
.toast {
  background: rgba(20,23,32,.94); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; text-align: center;
  animation: toastIn .18s ease-out;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.toast.gold { border-color: rgba(255,215,106,.5); }
.toast.hot { border-color: rgba(255,138,92,.6); color: #ffcbb3; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ===== 안내 말풍선 (각 1회) ===== */
.tip {
  position: fixed; z-index: 70; max-width: min(300px, calc(100vw - 16px));
  background: #2a2410; color: #fff3cf; border: 1.5px solid var(--gold); border-radius: 12px;
  padding: 9px 13px; font-size: 13px; line-height: 1.5; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.5); animation: tipIn .22s ease-out; cursor: pointer;
}
.tip b { color: var(--gold); }
.mark-confirm { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); }
.mark-confirm .mc-ico { font-size: 28px; line-height: 1; flex: none; }
.mark-confirm .mc-ico .eico { width: 34px; height: 34px; }
.mark-confirm .mc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mark-confirm .mc-txt b { font-size: 15px; color: var(--gold); }
.mark-confirm .mc-txt span { font-size: 13px; color: var(--text); }
.mc-note { margin: 10px 2px 0; font-size: 12px; color: var(--dim); text-align: left; }
.tip.tip-quest { white-space: nowrap; max-width: none; } /* 과업 완료 말풍선은 한 줄 — 두 줄로 꺾여 "보기 안 좋다"(사용자 2026-10-23) */
.tip::after {
  content: ''; position: absolute; left: var(--ax, 50%); margin-left: -8px;
  border: 8px solid transparent;
}
.tip-above::after { top: 100%; border-top-color: var(--gold); }
.tip-below::after { bottom: 100%; border-bottom-color: var(--gold); }
@keyframes tipIn { from { opacity: 0; transform: translateY(4px); } }

/* ---------------- 좁은 화면 ---------------- */
@media (max-width: 900px) {
  /* 위(전투 화면)는 고정, 아래(패널)만 스크롤 — 페이지 전체가 같이 밀리면 안 된다(사용자).
     패널 높이 고정도 유지된다: 화면 나머지를 전부 차지하므로 탭마다 출렁이지 않는다. */
  html, body { height: 100%; overflow: hidden; }
  #app { height: 100dvh; overflow: hidden; }
  #layout { flex-direction: column; overflow: hidden; min-height: 0; }
  #stage { flex: none; width: 100%; height: 36dvh; min-height: 0; } /* width:100% — 세로 배치에서 align-self:flex-start 는 폭을 캔버스 비트맵에 맞춘다. 비트맵은 무대 폭으로 잡으므로(setupCanvas) DPR 1 좁은 창(PC 브라우저 480px)에서 첫 300px 에 서로 맞물려 무대가 300px 로 굳었다(사용자 2026-10-15 "화면이 잘려 보인다") */ /* 전투 화면을 조금 더 크게(사용자) — 캔버스가 이 높이를 꽉 채운다(setupCanvas 의 VIEW_H) */
  #field { width: 100%; height: auto; } /* 비트맵 비율대로(폭×0.98) — 무대보다 길고 아래는 #stage 가 가린다. height:100% 였을 땐 비트맵이 무대 높이에 눌려 세로가 찌그러지거나(비트맵이 길 때) 아래에 검은 띠가 남았다(비트맵이 짧을 때, 1.0.14 실기기) */
  #side { width: 100%; flex: 1; min-height: 0; }
  .panel { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
}

/* 좁은 화면: 상단 바를 두 줄로 접는다 — 안 그러면 설정·도움말 버튼이 잘려 나간다 */
@media (max-width: 560px) {
  #topbar { flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; }
  .brand span:not(.res-ico) { display: none; }  /* 아이콘(#brandIco)만 남긴다 */
  .res { transform: translateY(2px); }           /* 폰 이모지 글꼴은 🌀 가 글줄 가운데보다 아래에 그려진다 — 금화·숫자를 그만큼 내려 🌀 높이에 맞춘다(사용자 2026-10-15, 사진) */
  .res { flex: 1 1 0; min-width: 0; overflow: hidden; } /* 골드 글자 폭이 바뀌어도 첫 줄이 꺾이지 않게 */
  #goldText { font-variant-numeric: tabular-nums; }
  #goldIco img { transform: translateY(-1.5px); } /* 폰 글꼴(Noto Sans CJK)은 숫자 잉크가 글줄 가운데보다 위에 앉아 금화가 1.5px 낮아 보였다(사용자 2026-10-15 두 번째 사진, 3배 확대로 잼). PC 는 1px 안이라 그대로 */
  #lvBox { order: 3; flex-basis: 100%; max-width: none; }
  /* 터치 표적 확대 — 27~29px 버튼은 손가락 기준 미달 (모바일이 기준 플랫폼) */
  .icon-btn { min-height: 38px; min-width: 38px; padding: 6px 9px; }
  .btn { min-height: 38px; padding: 8px 10px; }
  .tab-btn { min-height: 50px; }
  .bulk-filter .btn { min-height: 34px; padding: 6px 9px; }
  .talent-row .btn, .inv-row .btn { min-height: 40px; }
  /* 과업 칩은 항상 오른쪽 상단 — 라벨과 안 겹치게 서로 폭을 나눈다 */
  #questChip { top: 8px; max-width: 52%; }
  #groundLabel { max-width: 54%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #groundLabel.wide { max-width: calc(100% - 20px); }
}

/* ---------------- 강화 창 (던파 오마주) ---------------- */
.enh-root { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; }
.enh-root.hidden { display: none; }
.enh-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.72); }
.enh-box {
  position: relative; width: min(360px, calc(100vw - 32px));
  background: linear-gradient(#1b1e28, #14161d);
  border: 1px solid #4a3d22; border-radius: 14px; padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,215,106,.08), 0 18px 50px rgba(0,0,0,.6);
  text-align: center;
}
.enh-box h2 { font-size: 16px; color: var(--gold); margin-bottom: 10px; letter-spacing: 1px; }
.enh-stage { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; overflow: visible; }
/* 연출 층 — 조각·불꽃·충격파·연기·금. 전부 CSS 애니메이션, 끝나면 지운다 */
.enh-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.enh-fx i { position: absolute; left: 50%; top: 50%; display: block; will-change: transform, opacity; }
.enh-fx .shard { width: 6px; height: 6px; background: #8fd8ff; box-shadow: 0 0 6px #8fd8ff; transform: translate(var(--x), var(--y)) rotate(45deg) scale(.6); opacity: 0;
  animation: enhShard var(--d) cubic-bezier(.4,0,.9,.4) forwards; }
@keyframes enhShard { 0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(45deg) scale(.6); } 15% { opacity: 1; } 100% { opacity: 1; transform: translate(-3px, -3px) rotate(225deg) scale(.2); } }
.enh-fx .spark { width: 6px; height: 6px; border-radius: 50%; background: #ffe9a8; box-shadow: 0 0 8px #ffd76a; animation: enhSpark var(--d) cubic-bezier(.1,.8,.3,1) forwards; }
.enh-fx .spark.big { width: 10px; height: 10px; }
@keyframes enhSpark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); } 65% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 50%)) scale(.4); } } /* 65% 까지 또렷이 — 바로 바래면 정지 화면에서도 눈에서도 안 보였다 */
.enh-fx .wave { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; border: 3px solid #ffd76a; box-shadow: 0 0 18px rgba(255,215,106,.7); animation: enhWave var(--d) ease-out forwards; }
.enh-fx .wave.red { border-color: #ff6b5a; box-shadow: 0 0 18px rgba(255,107,90,.7); }
@keyframes enhWave { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(var(--s, 3)); } }
.enh-fx .smoke { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, rgba(170,180,200,.55), rgba(170,180,200,0) 70%); animation: enhSmoke var(--d) ease-out forwards; }
@keyframes enhSmoke { 0% { opacity: .9; transform: translate(var(--x), 0) scale(.6); } 100% { opacity: 0; transform: translate(calc(var(--x) * 1.6), -70px) scale(2.2); } }
.enh-fx .piece { width: 14px; height: 14px; background: linear-gradient(#3a4052, #171a22); border: 1px solid #ff6b5a; animation: enhPiece var(--d) cubic-bezier(.2,.6,.6,1) forwards; }
@keyframes enhPiece { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); } 100% { opacity: 0; transform: translate(calc(var(--x) - 50%), calc(var(--y) + 60px - 50%)) rotate(var(--r)); } }
.enh-fx .crack { position: absolute; left: 50%; top: 50%; width: 2px; height: 46px; margin-left: -1px; margin-top: -23px; background: linear-gradient(#ffb0a0, rgba(255,176,160,0)); transform-origin: 50% 0; transform: rotate(var(--r)) scaleY(0); animation: enhCrack .25s ease-out forwards; }
@keyframes enhCrack { to { transform: rotate(var(--r)) scaleY(1); } }
/* 회전 고리 — 충전 중 돌다가 끝으로 갈수록 빨라진다 */
.enh-ring { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255,215,106,0) 0deg, rgba(255,215,106,.9) 40deg, rgba(255,215,106,0) 80deg, rgba(255,215,106,0) 180deg, rgba(143,216,255,.8) 220deg, rgba(143,216,255,0) 260deg);
  -webkit-mask: radial-gradient(circle, transparent 46px, #000 47px, #000 51px, transparent 52px); mask: radial-gradient(circle, transparent 46px, #000 47px, #000 51px, transparent 52px); }
.enh-ring.on { opacity: 1; animation: enhRingSpin var(--d, 1.8s) cubic-bezier(.6,0,1,.2) forwards; }
@keyframes enhRingSpin { 0% { transform: rotate(0); opacity: .4; } 100% { transform: rotate(1440deg); opacity: 1; } }
/* 결과 순간 섬광 — 창 전체 */
.enh-flash { position: absolute; inset: 0; border-radius: 14px; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.enh-flash.go { animation: enhFlash .32s ease-out; }
.enh-flash.red { background: #ff6b5a; }
@keyframes enhFlash { 0% { opacity: .95; } 100% { opacity: 0; } }
/* 결과 글 — 숫자는 크게 */
.enh-result .rn { display: block; font-size: 34px; line-height: 1; margin-top: 2px; text-shadow: 0 0 18px rgba(255,215,106,.9), 0 2px 10px rgba(0,0,0,.8); }
.enh-result.fail .rn { text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.enh-result.boom .rn { text-shadow: 0 0 18px rgba(255,107,90,.9), 0 2px 10px rgba(0,0,0,.8); }
.enh-stat.flash { animation: enhStatFlash .9s ease-out; }
@keyframes enhStatFlash { 0% { color: #fff; text-shadow: 0 0 12px #9fe6a0; } 100% { } }
.enh-orb.charging { animation-timing-function: cubic-bezier(.7,0,1,.3); }
.enh-orb.charging #enhIco, .enh-orb.charging span { animation: enhIcoPulse .5s ease-in-out infinite alternate; }
@keyframes enhIcoPulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.enh-box.shake2 { animation: enhShake2 .55s ease-out; }
@keyframes enhShake2 { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-9px, 4px); } 25% { transform: translate(8px, -5px); } 40% { transform: translate(-6px, 3px); } 55% { transform: translate(5px, 2px); } 70% { transform: translate(-3px, -2px); } 85% { transform: translate(2px, 1px); } }
.enh-orb {
  width: 88px; height: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 44px;
  background: radial-gradient(circle at 50% 38%, #2c3140, #171a22 70%);
  border: 2px solid #3a4052;
  transition: border-color .2s, box-shadow .2s;
}
.enh-orb.charging {
  border-color: var(--gold);
  animation: enhCharge 1.15s ease-in forwards;
}
@keyframes enhCharge {
  0%   { box-shadow: 0 0 6px rgba(255,215,106,.15); transform: scale(1); }
  60%  { box-shadow: 0 0 22px rgba(255,215,106,.45); transform: scale(1.04); }
  100% { box-shadow: 0 0 46px rgba(255,215,106,.95), 0 0 90px rgba(255,215,106,.35); transform: scale(1.1); }
}
.enh-orb.win {
  border-color: var(--gold);
  animation: enhWin .7s ease-out;
  box-shadow: 0 0 30px rgba(255,215,106,.7);
}
@keyframes enhWin {
  0% { transform: scale(1.25); box-shadow: 0 0 80px rgba(255,255,220,1); }
  100% { transform: scale(1); }
}
.enh-orb.lose { border-color: #566; filter: grayscale(.7) brightness(.75); animation: enhLose .5s ease-out; }
@keyframes enhLose {
  0%, 40% { transform: translateX(0); }
  10% { transform: translateX(-7px); } 25% { transform: translateX(6px); }
  55% { transform: translateX(-3px); } 100% { transform: translateX(0); }
}
.enh-orb.boom { border-color: var(--bad); animation: enhBoom .6s ease-out forwards; }
@keyframes enhBoom {
  0% { transform: scale(1.3); box-shadow: 0 0 90px rgba(255,90,60,1); filter: none; }
  100% { transform: scale(.85); box-shadow: 0 0 8px rgba(255,90,60,.2); filter: grayscale(1) brightness(.4); }
}
.enh-result {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 900; pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,.8); opacity: 0;
}
.enh-result.pop { animation: enhPop 1.5s ease-out forwards; left: 50%; right: auto; width: max-content; max-width: 92%; transform: translate(-50%, -50%); background: rgba(10,12,18,.78); border: 1px solid rgba(255,215,106,.35); border-radius: 14px; padding: 6px 16px; z-index: 5; } /* 도장처럼 — 오브 위에 글자가 겹쳐 안 읽혔다 */
.enh-result.fail.pop { border-color: rgba(159,178,200,.35); }
.enh-result.boom.pop { border-color: rgba(255,107,90,.5); }
.enh-result small { display: block; font-size: 11px; font-weight: 600; color: var(--dim); margin-top: 2px; }
@keyframes enhPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  14% { opacity: 1; transform: translate(-50%, -50%) scale(1.22); }
  26% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -62%) scale(1); }
}
.enh-result.ok { color: var(--gold); }
.enh-result.fail { color: #9fb2c8; }
.enh-result.boom { color: var(--bad); }
.enh-name { font-weight: 800; margin-top: 4px; font-size: 14px; }
.enh-stat { font-size: 12.5px; color: var(--dim); margin: 3px 0 10px; }
.enh-stat b { color: #9fe6a0; }
.enh-info {
  background: #12141b; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 12px; text-align: left;
}
.enh-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.enh-row span { color: var(--dim); white-space: nowrap; flex: none; margin-right: 12px; } /* 이름표는 한 줄("실패 / 시"로 꺾였다, 2026-10-24) */
.enh-row b { text-align: right; min-width: 0; }
.enh-row b.z-safe { color: #9fe6a0; }
.enh-row b.z-drop { color: var(--gold); }
.enh-row b.z-reset { color: var(--hot); }
.enh-row b.z-boom { color: var(--bad); }
.enh-row b.no-gold { color: var(--bad); }
.enh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.enh-actions .btn { flex: 1; padding: 10px 0; font-size: 14px; }
.enh-actions #enhSafe { flex: 1 1 100%; max-width: 100%; min-width: 0; white-space: normal; line-height: 1.25; word-break: keep-all; } .enh-actions #enhSafe small { display: block; } /* 값과 괄호 설명을 두 줄로 — 한 줄이면 창 밖으로 넘쳤다(점검 2026-11-05) */
.enh-actions #enhSafe { background: #1d3a3a; border-color: #4fd1b5; color: #d9fff5; } /* 안전 강화 — 둘째 줄 전체(360px 에서 셋을 한 줄에 못 둔다) */
.enh-actions #enhSafe:disabled { opacity: .45; }
#enhGo.danger { background: #5a2318; border-color: var(--bad); color: #ffd3c7; }
.enh-box.shake { animation: enhShake .45s ease-out; }
/* 고강화 충전 중 떨림 — +8부터 미세하게, +12부터 거칠게 */
.enh-box.tremble { animation: enhTremble .09s linear infinite; }
.enh-box.tremble2 { animation: enhTremble2 .07s linear infinite; }
@keyframes enhTremble {
  0% { transform: translate(.6px, -.4px); } 25% { transform: translate(-.7px, .5px); }
  50% { transform: translate(.5px, .6px); } 75% { transform: translate(-.5px, -.6px); }
  100% { transform: translate(.4px, .3px); }
}
@keyframes enhTremble2 {
  0% { transform: translate(1.4px, -1px); } 25% { transform: translate(-1.5px, 1.1px); }
  50% { transform: translate(1.1px, 1.4px); } 75% { transform: translate(-1.2px, -1.3px); }
  100% { transform: translate(.9px, .8px); }
}

/* 지역 이동 연출 — 1초 암전 */
#travelFx {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: #0a0c12; opacity: 0; transition: opacity .35s ease;
}
#travelFx.on { opacity: 1; pointer-events: auto; }
#travelTxt { color: #dfe6f5; font-size: 16px; font-weight: 800; letter-spacing: 1px; }

/* 상위 등급 드랍 제안 바 — 궁극기 게이지 위, 오른쪽 (오른손 엄지 동선) 5초 */
#offerBar {
  position: absolute; right: 12px; bottom: 86px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,12,18,.88); border: 1px solid var(--gold); border-radius: 12px;
  padding: 6px 10px; max-width: calc(100% - 24px); overflow: hidden;
}
#offerBar .ob-txt { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eee; }
#offerBar .btn { flex: none; }
#offerBar .ob-timer { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--gold); width: 100%; }
#offerBar.run .ob-timer { animation: obShrink 7s linear forwards; }
@keyframes obShrink { from { width: 100%; } to { width: 0; } }

/* 과업 상세 설명 */
.quest-desc { font-size: 12.5px; color: var(--dim); line-height: 1.5; margin: 6px 0 8px; }

/* 미해금 스킬 — 배우기 전까지 비활성처럼 보인다 (버튼만 살아 있다) */
.sk-locked .talent-ico, .sk-locked .talent-main { opacity: .45; filter: grayscale(.9); }

/* 스킬 유형 배지 — 상시(수치) vs 발동형(확률) */
.sk-badge {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px;
  background: #262b38; color: var(--dim); border: 1px solid var(--line); vertical-align: 1px;
}
.sk-badge.proc { background: rgba(127,208,255,.12); color: var(--accent); border-color: rgba(127,208,255,.4); }
.sk-badge.cd { background: rgba(255,196,110,.12); color: #ffc46e; border-color: rgba(255,196,110,.4); } /* 쿨다운 자동 발동 */

/* 캐릭터 창 — 캐릭터를 가운데 두고 장비를 좌우로 */
.char-box { width: min(420px, calc(100vw - 24px)); text-align: left; }
.char-box h2 { text-align: center; padding: 2px 40px 0; margin: 0 0 14px; line-height: 1.3; } /* ✕(오른쪽 위 absolute)와 겹치지 않게 좌우 40px, 아래 격자와 14px 띄움(2026-10-23 사용자 "위아래 붙어 있고 취소 버튼이랑 칸이 겹친다") */
.char-grid { display: flex; gap: 8px; align-items: stretch; margin-bottom: 6px; }
.char-col { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.char-center {
  display: flex; align-items: flex-end; justify-content: center; width: 124px; flex: none;
  background: radial-gradient(circle at 50% 78%, #232838, #14161d 75%);
  border: 1px solid var(--line); border-radius: 12px;
}
.char-row-bottom { margin-bottom: 8px; }
.char-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 6px 7px; cursor: pointer; color: var(--text); width: 100%;
  font: inherit;
}
.char-slot:hover { border-color: var(--accent); }
.char-slot.empty { opacity: 0.55; }
.char-slot .cs-ico { font-size: 18px; line-height: 1; position: relative; display: inline-flex; padding: 2px; border-radius: 6px; margin-bottom: 1px; } /* 아이콘 위·이름·수치 아래를 가운데 정렬(2026-10-23 사용자 "장비도 보기 좋게 정렬" — 왼쪽 위 아이콘 옆이 비어 삐뚤게 보였다. 옆으로 두면 100px 칸에서 글이 잘린다) */
.char-slot .cs-name, .char-slot .cs-sub { min-width: 0; text-overflow: ellipsis; }
.char-slot .cs-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; max-width: 100%; }
.char-slot .cs-name b { color: var(--gold); }
.char-slot .cs-sub { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; max-width: 100%; }
.char-slot.r-fine .cs-ico { filter: drop-shadow(0 0 3px rgba(140,220,140,.6)); }
.char-slot.r-rare .cs-ico { filter: drop-shadow(0 0 3px rgba(111,183,255,.7)); }
.char-slot.r-epic .cs-ico { filter: drop-shadow(0 0 4px rgba(201,139,255,.8)); }
.char-slot.r-legend .cs-ico, .char-slot.r-uniq .cs-ico { filter: drop-shadow(0 0 5px rgba(255,184,77,.9)); }

/* 타이틀(메인) 화면 */
#titleRoot {
  position: fixed; inset: 0; z-index: 70; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(103,78,208,.32), transparent 55%),
    radial-gradient(ellipse at 80% 72%, rgba(46,110,180,.28), transparent 55%),
    radial-gradient(circle at 50% 42%, #1d2440, #0b0e1a 78%);
}
#titleRoot::after { /* 비네트 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, transparent 55%, rgba(0,0,0,.5));
}
/* 떠오르는 마력 입자 */
.title-fx { position: absolute; inset: 0; pointer-events: none; }
.title-fx i {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: #9fb8ff; box-shadow: 0 0 8px 2px rgba(140,170,255,.55);
  animation: tRise linear infinite;
}
.title-fx i:nth-child(1)  { left: 8%;  width: 3px; height: 3px; animation-duration: 9s; }
.title-fx i:nth-child(2)  { left: 18%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: 2s; background: #c9a8ff; }
.title-fx i:nth-child(3)  { left: 29%; width: 2px; height: 2px; animation-duration: 8s;  animation-delay: 4s; }
.title-fx i:nth-child(4)  { left: 41%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 1s; background: #ffd76a; box-shadow: 0 0 8px 2px rgba(255,215,106,.5); }
.title-fx i:nth-child(5)  { left: 52%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 6s; }
.title-fx i:nth-child(6)  { left: 63%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 3s; background: #c9a8ff; }
.title-fx i:nth-child(7)  { left: 72%; width: 2px; height: 2px; animation-duration: 9s;  animation-delay: 5s; }
.title-fx i:nth-child(8)  { left: 82%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 2.5s; }
.title-fx i:nth-child(9)  { left: 91%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 7s; background: #ffd76a; box-shadow: 0 0 8px 2px rgba(255,215,106,.5); }
.title-fx i:nth-child(10) { left: 36%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: 8s; }
@keyframes tRise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .9; }
  85% { opacity: .6; }
  100% { transform: translateY(-105vh); opacity: 0; }
}
#titleCv { position: absolute; inset: 0; width: 100%; height: 100%; }
.title-inner { position: relative; text-align: center; padding: 24px; margin-top: 0; transform: translateY(-3vh); } /* "약간 아래" 느낌 보정 */
#titleVer { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: rgba(230,230,245,.45); letter-spacing: .5px; } /* 우하단 (사용자) */
.title-orb {
  width: 128px; height: 128px; margin: 0 auto 6px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 32%, rgba(140,120,255,.35), rgba(30,26,64,.9) 70%);
  box-shadow: 0 0 44px rgba(122,96,255,.45), inset 0 0 26px rgba(150,130,255,.35);
  animation: orbPulse 3.2s ease-in-out infinite;
}
@keyframes orbPulse {
  0%, 100% { box-shadow: 0 0 34px rgba(122,96,255,.35), inset 0 0 22px rgba(150,130,255,.3); }
  50% { box-shadow: 0 0 58px rgba(122,96,255,.6), inset 0 0 30px rgba(150,130,255,.45); }
}
.title-logo { font-size: 66px; animation: titleSpin 9s linear infinite; filter: drop-shadow(0 0 10px rgba(150,130,255,.8)); }
@keyframes titleSpin { to { transform: rotate(360deg); } }
.title-name {
  font-size: 42px; margin: 12px 0 34px; letter-spacing: 6px; font-weight: 900; /* 버튼과 띄운다 — 붙어 있어 답답했다(사용자 2026-10-22). 버튼의 ⚔️ 도 뺐다 */
  background: linear-gradient(180deg, #ffffff, #b9c8ff 55%, #8f7bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 14px rgba(110,90,230,.55));
}
.title-sub { color: #a9c6ff; font-size: 14.5px; letter-spacing: 1px; margin-bottom: 18px; }
.title-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.title-chips span {
  font-size: 12.5px; color: #cfd8f5; padding: 5px 12px; border-radius: 20px;
  background: rgba(120,130,220,.12); border: 1px solid rgba(140,150,240,.3);
}
#titleStart {
  font-size: 18px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
  padding: 15px 52px; border-radius: 16px; color: #241a05;
  background: linear-gradient(180deg, #ffe9a8, #ffc94d 55%, #f0a828);
  border: 1px solid #ffdf8a;
  box-shadow: 0 6px 24px rgba(255,190,60,.35), inset 0 1px 0 rgba(255,255,255,.6);
  animation: startPulse 2.2s ease-in-out infinite;
}
#titleStart:active { transform: scale(.97); }
@keyframes startPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255,190,60,.3), inset 0 1px 0 rgba(255,255,255,.6); }
  50% { box-shadow: 0 6px 34px rgba(255,190,60,.55), inset 0 1px 0 rgba(255,255,255,.6); }
}
.title-note { color: #7d86a8; font-size: 12px; margin-top: 20px; }

.equip-slot[data-act] { cursor: pointer; }
.equip-slot[data-act]:hover { border-color: var(--accent); }

/* 캐릭터 창 부위 상세 — 보유 장비를 보며 직접 교체 */
.cs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cs-head [data-cback] { display: none; } /* 뒤로 버튼 대신 아래 닫기가 캐릭터 화면으로(2026-10-23) — 템플릿은 번역 열쇠 때문에 그대로 */
.cs-head b { font-size: 14px; }
.cs-list { max-height: 300px; overflow-y: auto; }
.cs-equipped { border-color: var(--accent) !important; }

/* 일괄 처분 필터 (장비 탭) */
.bulk-filter {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim); margin: 6px 0 2px;
}
.bulk-filter .btn { padding: 4px 9px; font-size: 12px; }
@keyframes enhShake {
  0% { transform: translate(0,0); } 15% { transform: translate(-6px,3px); }
  30% { transform: translate(6px,-3px); } 45% { transform: translate(-4px,-2px); }
  60% { transform: translate(4px,2px); } 100% { transform: translate(0,0); }
}

/* 가방 그리드 인벤토리 — 분류 칩 + 칸 클릭 상세 (디아블로식) */
.inv-tabs { display: flex; gap: 5px; margin: 6px 0; flex-wrap: wrap; }
.inv-tab { padding: 4px 10px; font-size: 11.5px; }
.inv-tab.on { border-color: var(--accent); color: var(--accent); background: rgba(127,208,255,.08); }
.inv-tab small { color: var(--dim); }
.afx-tabs { margin-top: 0; gap: 4px; } .afx-tabs .inv-tab { padding: 3px 7px; font-size: 11px; } /* (옛 접사 칩 줄 — 지금은 드롭다운) */
/* 접사 드롭다운(2026-10-22) — 버튼 하나, 누르면 목록이 아래로, 고르거나 밖을 누르면 닫힌다 */
.afx-dd { position: relative; display: inline-block; }
.afx-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; min-width: 150px; display: flex; flex-direction: column; padding: 4px; border-radius: 10px;
  background: var(--panel); border: 1.5px solid #4d5780; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.afx-item { background: none; border: 0; color: var(--text); text-align: left; padding: 7px 10px; border-radius: 7px; font: inherit; font-size: 12.5px; cursor: pointer; }
.afx-item:hover { background: rgba(127,208,255,.1); }
.afx-item.on { color: var(--accent); background: rgba(127,208,255,.12); }
.gold-more { margin-top: 4px; } .gold-more summary { font-size: 11.5px; color: var(--dim); cursor: pointer; } .gold-more .demon-sub { margin-top: 4px; } .gold-ex { margin-top: 6px; }
.ir-afx { display: block; font-size: 10.5px; color: #b9a8e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ir-afx b { font-weight: 600; } .ir-afx b.sel { color: var(--accent); }
.sortbtn { margin-left: auto; border-color: var(--gold); color: var(--gold); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 4px; }
.inv-cell {
  position: relative; height: 48px; font-size: 23px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 9px; padding: 0;
}
.inv-cell:active { transform: scale(.93); }
.cell-plus {
  position: absolute; top: 1px; right: 2px; font-style: normal;
  font-size: 9px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.cell-up { position: absolute; bottom: 0; left: 2px; font-style: normal; font-size: 10px; color: var(--good); }
.cell-lock { position: absolute; bottom: 0; right: 2px; font-style: normal; font-size: 9px; opacity: .8; }
.d3card { text-align: center; }
.d3-ico { width: 54px; height: 54px; font-size: 30px; display: flex; align-items: center; justify-content: center; border-radius: 12px; margin: 0 auto 8px; }
.d3-name { font-size: 16px; font-weight: 800; }
.d3card .itype { font-size: 12px; margin: 1px 0 7px; }
.d3-stat { font-size: 14px; margin-bottom: 4px; }
.d3-why { margin: 6px 0 2px; font-size: 12px; color: var(--dim); text-align: left; }
.d3-why summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.d3-why div { margin-top: 4px; line-height: 1.4; }
.d3-stat .statv { font-size: 18px; }
.d3card .afx-line { font-size: 12px; margin-top: 4px; }
.d3card .req-line { font-size: 12px; margin-top: 4px; }
.d3-sub { font-size: 11px; color: var(--dim); margin-top: 8px; }
/* 장비 카드 행동 — 본문 2열, 아래 줄은 닫기만 (버튼 7개가 한 줄에 몰리면 안 읽힌다) */
.d3-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.d3-acts .btn { padding: 9px 6px; font-size: 13px; white-space: nowrap; }

/* 로그인 안 됨 — ⚙️ 에 불이 들어오고 느낌표 배지 (설정 → 구글 로그인) */
#settingsBtn.need-login {
  position: relative; border-color: var(--gold);
  animation: loginPulse 1.6s ease-in-out infinite;
}
#settingsBtn.need-login::after {
  content: '!'; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: #1a1408; font-size: 11px; font-weight: 900; line-height: 16px; text-align: center;
}
.btn.attn { animation: loginPulse 1.2s ease-in-out infinite; border-color: var(--gold); } /* 드랍 뒤 ⚡ 추천 장착 짚어 주기(6초) */
@keyframes loginPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,215,106,.18), 0 0 8px rgba(255,215,106,.3); }
  50%      { box-shadow: 0 0 0 2px rgba(255,215,106,.45), 0 0 16px rgba(255,215,106,.7); }
}
#rankBtn.need-nick { position: relative; }
#rankBtn.need-nick::after { content: ''; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 2px #14161d; }
.set-row.need-login { border: 1px solid rgba(255,215,106,.45); border-radius: 8px; padding: 6px 8px; background: rgba(255,215,106,.06); }

/* 황금 들판 카드 — 사냥터 탭 (주간 토벌 카드와 같은 틀, 금빛) */
.gold-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(190,150,40,.22), var(--panel2));
  border: 1px solid #b8912e; border-radius: 10px;
  padding: 9px 10px; margin-bottom: 8px;
}
.gold-card.run { border-color: var(--gold); background: linear-gradient(135deg, rgba(255,215,106,.18), var(--panel2)); }
.gold-card.locked { opacity: .7; }
.gold-card.locked .gold-more .demon-sub { display: none; } /* 잠긴 카드엔 등급표·획득처를 안 보인다 — 교환소만(문구 점검 2026-10-22) */
.gold-card.ready { border-color: var(--gold); animation: loginPulse 1.6s ease-in-out infinite; } /* 만렙 + 입장권 있음 */
.gold-card .demon-name b { color: var(--gold); }
.gold-acts { display: flex; flex-direction: column; gap: 5px; }
.gold-acts .btn { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.gold-acts .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { /* 폰: 버튼 두 개를 카드 아래 한 줄로 — 오른쪽 열에 세우면 본문이 세로로 길게 접힌다 */
  .gold-card { flex-wrap: wrap; }
  .gold-acts { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .gold-acts .btn { flex: 1 1 40%; min-width: 0; white-space: normal; } /* 만렙에선 버튼이 셋(입장·광고·구매)이라 한 줄에 안 들어가 셋째가 잘렸다 — 줄바꿈 */
  .bookx-card .gold-acts .btn { flex-basis: 100%; }
  .gold-card .demon-name b { white-space: nowrap; }
}

/* 주간 토벌 카드 — 사냥터 탭 상단 */
.demon-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(106,50,136,.25), var(--panel2));
  border: 1px solid #8a4aa8; border-radius: 10px;
  padding: 9px 10px; margin-bottom: 8px;
}
.demon-card.done { border-color: var(--line); background: var(--panel2); opacity: .8; }
.demon-ico { font-size: 24px; }
.demon-main { flex: 1; min-width: 0; }
.demon-name { font-weight: 800; font-size: 14px; }
.demon-name b { color: #c98bff; }
.demon-sub { font-size: 11.5px; color: var(--dim); margin-top: 1px; }

/* 타이틀 구글 로그인 버튼 */
#titleLogin { /* 흰 구글 버튼은 밤하늘 타이틀과 안 어울렸다 — 게임 톤의 어두운 판 */
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 12px auto 0; padding: 9px 20px; line-height: 1;
  background: rgba(18,22,38,.68); color: #cfd4e8;
  border: 1px solid rgba(150,130,255,.45); border-radius: 22px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 0 14px rgba(122,96,255,.22);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
#titleLogin:hover { border-color: rgba(180,160,255,.75); color: #e8e6df; }
#titleLogin:active { transform: scale(.97); }
#titleLogin.signed { background: rgba(20,24,36,.72); color: #8be28b; border-color: rgba(139,226,139,.4); cursor: default; box-shadow: none; }
.g-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #4285f4 25% 50%, #34a853 50% 75%, #fbbc05 75% 100%);
  color: #fff; font-weight: 900; font-size: 12px;
}
#titleLogin.signed .g-badge { background: #34a853; }

/* 직업 선택 — 모달을 거의 전체 화면으로, 카드를 큼직하게 ("보기 어렵다" 피드백) */
.modal-box.class-select {
  width: min(560px, calc(100vw - 16px));
  max-height: 94dvh; display: flex; flex-direction: column;
}
.modal-box.class-select #modalBody { overflow-y: auto; flex: 1; min-height: 0; }
.cs-lead { margin-bottom: 10px; color: var(--dim); font-size: 13.5px; }
.class-list { display: flex; flex-direction: column; gap: 8px; }
.class-select .class-card { padding: 13px 14px; margin: 0; border-radius: 12px; }
.class-select .cc-ico { font-size: 38px; width: 56px; text-align: center; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.class-select .cc-name { font-size: 17px; }
.class-select .cc-goal { font-size: 13px; margin-top: 4px; }
.class-select .cc-desc { font-size: 12.5px; line-height: 1.45; margin-top: 3px; white-space: normal; }
.class-select .cc-skills { font-size: 12px; margin-top: 4px; }
.class-select .class-card:active { transform: scale(.98); border-color: var(--gold); }

/* 과업 카드 — 설명 길이와 무관하게 보상 버튼이 항상 같은 자리 (출렁임 피드백) */
.quest-desc { min-height: 3.9em; }
.quest-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 광고 자리 표시자 (웹 전용, 포차와 같은 마크업) ===== */
#adOverlay {
  position: fixed; inset: 0; z-index: 200;
  background: #000d; display: flex; align-items: center; justify-content: center;
}
#adOverlay.hidden { display: none; }
.ad-fake {
  width: min(80vw, 340px); border-radius: 16px; overflow: hidden;
  background: #10131f; border: 1px solid #3c4a80;
  text-align: center; padding: 0 0 16px; position: relative;
}
.ad-fake-tag { position: absolute; top: 8px; left: 8px; background: #ffcf4d; color: #422; font-size: 10px; font-weight: 900; border-radius: 6px; padding: 2px 6px; }
.ad-fake-art { font-size: 64px; padding: 36px 0 12px; background: linear-gradient(#1c2340,#10131f); }
#adOverlayLabel { font-size: 15px; font-weight: 800; color: #ffe27a; margin-top: 10px; }
#adOverlay.ad-loading .ad-fake-note { display: none; }   /* 앱: 광고 화면이 열리기 전까지만 덮는다(ads.js loadingCover) */
.ad-fake-note { font-size: 11px; color: #7c86ab; margin-top: 6px; }

/* 광고 궁극기 — 따로 버튼을 두지 않고 ⚡ 버튼이 그 상태가 된다(별도 버튼은 필드를 가려 방해된다는 피드백).
   게이지가 차기 전엔 늘 adready(쿨다운·게이지 조건 없음, 2026-10-22): 📺 표시와 금색 테두리, 누르면 광고 → 5분 */
#ultBtn.adready { border-color: var(--gold); background: radial-gradient(#4a3a12, #2a2210) !important; box-shadow: 0 0 12px rgba(255,215,106,.35); }
#ultBtn.adready span { color: var(--gold); }

/* ===== 아이템 종류 성향 · 계승 무기 ===== */
.kind-line { font-size: 11px; color: #b9c4d6; margin-top: 1px; }
.legacy-card { border-color: #7a5aa8; background: linear-gradient(135deg, #1e1830, #14161d); }
.legacy-bar { position: relative; height: 12px; border-radius: 6px; background: #2a2f3d; overflow: hidden; margin: 4px 0; }
.legacy-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7a5aa8, #c9a4ff); }
.legacy-bar span { position: absolute; inset: 0; font-size: 10px; line-height: 12px; text-align: center; color: #fff; text-shadow: 0 1px 2px #000; }
.mark-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 2px 6px; border-radius: 10px; background: #2b2540; border: 1px solid #5a4a80; margin: 2px 4px 2px 0; }
.mark-x { border: 0; background: transparent; color: #9a8ac0; font-size: 12px; cursor: pointer; padding: 0 2px; line-height: 1; }
.mark-re { border: 1px solid #6d5bd0; background: #3a2f60; color: #e6d9ff; font-size: 10px; cursor: pointer; padding: 2px 6px; line-height: 1; border-radius: 6px; margin-left: 3px; } /* 각인 갱신(새 후보 셋 중 하나로) */
.mark-re:hover { background: #4a3d80; }
.mark-re.pend { border-color: var(--gold); color: var(--gold); animation: markPend 1.2s ease-in-out infinite; } /* 굴려 둔 후보가 기다린다 */
@keyframes markPend { 50% { box-shadow: 0 0 6px rgba(255, 215, 106, .6); } }
.mark-x:hover { color: var(--gold); }
.mark-line { display: inline-flex; flex-wrap: wrap; align-items: center; background: transparent; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; touch-action: manipulation; } /* 각인 줄 전체가 버튼 → '각인' 창 */
.mark-line:active { opacity: .8; }
.mk-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.07); text-align: left; }
.mk-row .mk-ico { font-size: 20px; flex: none; }
.mk-row .mk-main { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.mk-row .btn { flex: none; min-height: 34px; }
/* 재각인 확인 창 — 지금 각인 ➜ 새 각인 카드 둘 + 비용 알약 */
.rr-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; }
.rr-card { flex: 1; max-width: 130px; padding: 10px 6px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); text-align: center; }
.rr-card.new { border-color: var(--gold); background: rgba(255,215,106,.07); }
.rr-card .ri { font-size: 28px; line-height: 1.1; }
.rr-card .rn { font-size: 13.5px; font-weight: 700; margin-top: 5px; white-space: nowrap; }
.rr-card small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.rr-arrow { font-size: 22px; color: var(--gold); flex: none; }
.rr-cost { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: rgba(255,215,106,.1); border: 1px solid rgba(255,215,106,.45); font-size: 13px; white-space: nowrap; }
.rr-cost small { color: var(--dim); }
.mark-pick { line-height: 1.4; }

/* ===== 세트 (디아블로 3 녹색) · 도감 ===== */
.r-set { color: #4de3d0; text-shadow: 0 0 6px rgba(77,227,208,.4); } /* 청록 — 초록은 고급 등급과 헷갈린다(사용자) */
.rbg-set { background: linear-gradient(135deg, #1b3a24, #0f2417); border-color: #3fae5a; }
.set-line { font-size: 11px; margin-top: 3px; color: #b9c4d6; line-height: 1.5; }
.set-on { color: #7ee787; }
.set-off { color: #6b7385; }
.codex-set { border: 1px solid #2a3a4c; border-radius: 10px; padding: 8px 10px; margin: 6px 0; background: #121722; }
.codex-head { font-size: 13px; margin-bottom: 4px; }
.codex-slots { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.codex-slot { font-size: 11px; padding: 2px 7px; border-radius: 10px; background: #1a2030; border: 1px solid #2f3a4f; color: #6b7385; }
.codex-slot.have { color: #7ee787; border-color: #3fae5a; background: #16301f; }
.codex-bon { font-size: 11px; line-height: 1.5; }
/* 도감 요약 — 카드 격자 */
/* 가방 목록 */
.inv-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.inv-row-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 7px 9px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel2); color: #e6ecf5; font: inherit; cursor: pointer; }
.inv-row-item.up { border-color: rgba(126,231,135,.55); }
.inv-row-item.nowear { opacity: .6; }
.inv-row-item:active { transform: scale(.99); }
.ir-ico { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ir-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ir-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ir-sub { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 6px; min-width: 0; }
.ir-sub .ir-stat { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* 수치가 먼저 — 끝에 두면 말줄임에 먹혔다(점검 2026-11-05) */
.ir-sub .ir-meta { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.ir-sub .ir-dots { flex: none; }
.ir-sub .statv { color: #e6ecf5; }
.ir-badge { flex: none; font-size: 13px; display: flex; gap: 3px; }
/* 접사 점 — 줄마다 글자로 늘어놓지 않고 개수만. 고른 접사(가방 접사 보기)는 밝게. 내용은 상세 카드(2026-10-22) */
.ir-dots { display: inline-flex; gap: 3px; margin-left: 7px; vertical-align: middle; }
.ir-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8f7cc9; display: inline-block; }
.ir-dots i.sel { background: var(--accent); box-shadow: 0 0 4px var(--accent); }
.inv-row-item { min-height: 54px; }                       /* 줄 높이 고정 — 접사 유무로 들쭉날쭉하지 않게 */
.afx-row { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; }
.afx-row small { margin-left: auto; white-space: nowrap; } /* 착용 합은 오른쪽 끝에 맞춘다 */
.ir-up { color: var(--good); }
/* 환생 연출 */
.rb-fx { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(120,80,220,.55), rgba(8,8,16,.92)); animation: rbIn .35s ease-out; }
.rb-fx.out { animation: rbOut .35s ease-in forwards; }
@keyframes rbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rbOut { to { opacity: 0; } }
.rb-fx-box { text-align: center; animation: rbPop .6s cubic-bezier(.2,1.4,.4,1); max-width: calc(100vw - 32px); padding: 0 12px; word-break: keep-all; } /* 긴 제목·줄이 360px 를 넘어 잘렸다(토벌 배너) */
@keyframes rbPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rb-fx-ico { font-size: 64px; line-height: 1; animation: rbSpin 1.2s ease-in-out; display: flex; justify-content: center; align-items: center; min-height: 72px; }
.rb-fx-ico .ico-scene { display: block; }
@keyframes rbSpin { from { transform: rotate(-360deg) scale(.4); } to { transform: none; } }
.rb-fx-title { font-size: 26px; line-height: 1.2; font-weight: 900; color: #fff; margin-top: 10px; text-shadow: 0 2px 12px rgba(160,120,255,.8); }
.rb-fx-bonus { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 22px; font-weight: 800; color: #cfd6e4; }
.rb-fx-bonus .arrow { color: var(--dim); }
.rb-fx-bonus b { color: var(--gold); font-size: 30px; text-shadow: 0 0 14px rgba(255,215,106,.7); animation: rbGlow 1s ease-in-out infinite alternate; }
@keyframes rbGlow { to { text-shadow: 0 0 26px rgba(255,215,106,1); } }
.rb-fx-sub { font-size: 13px; color: #cfd6e4; margin-top: 8px; white-space: normal; line-height: 1.5; }
.rb-fx-hint { font-size: 11px; color: var(--dim); margin-top: 18px; }
.rb-fx-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rb-fx-stars i { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: #ffd76a;
  opacity: 0; animation: rbStar 1.6s ease-out var(--d) infinite; box-shadow: 0 0 8px #ffd76a; }
@keyframes rbStar { 0% { opacity: 0; transform: translateY(20px) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.2); } }
.cdx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 8px; }
.cdx-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 7px; border-radius: 10px;
  border: 1px solid #2a3a4c; background: #121722; color: #cfd6e4; font: inherit; cursor: pointer; }
.cdx-card.done { border-color: #3fae5a; background: #16301f; }
.cdx-card:active { transform: scale(.97); }
.cdx-ico { font-size: 22px; line-height: 1; }
.cdx-name { font-size: 12px; font-weight: 700; }
.cdx-sub { font-size: 10px; color: var(--dim); }
.cdx-dots { display: flex; gap: 3px; margin-top: 2px; }
.cdx-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2f3a4f; }
.cdx-dots i.on { background: #7ee787; }
.cdx-ugrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 8px; }
.cdx-u { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  border: 1px solid #2a3a4c; background: #121722; cursor: pointer; padding: 0; }
.cdx-u.have { border-color: #b78cff; background: #221a33; }
.cdx-u .cdx-q { font-size: 18px; font-weight: 800; color: #4a5366; }
.codex-slot { font: inherit; font-size: 11px; cursor: pointer; }
.guide-line { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.btn.mini { padding: 3px 8px; font-size: 11px; flex: none; }

/* ===== 피드백 반영 — 창이 화면보다 길면 안에서 스크롤(닫기 버튼이 잘리지 않게) · 강화분 표기 ===== */
.enh-box { max-height: 92dvh; overflow-y: auto; }
.statplus { color: #ffd76a; font-size: 0.8em; margin-left: 2px; }
.cell-keep { position: absolute; right: 2px; top: 2px; font-size: 10px; }
/* 캐릭터 창 상단 ✕ */
.char-box { position: relative; max-height: 96dvh; }
/* 능력치는 두 열로 — 한 열이면 작은 폰에서 닫기 버튼까지 스크롤해야 한다("한눈에 보였으면": 사용자) */
.char-box #charStats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 0; }
.char-box #charStats .enh-row { font-size: 12.5px; padding: 2px 0; min-width: 0; }
.char-box #charStats .enh-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; margin-right: 6px; }
.char-box #charStats .enh-row > b { flex: none; }
.char-box #charStats .cs-prof { grid-column: 1 / -1; }
.char-box #charStats .enh-row b { white-space: nowrap; }
.char-box #charStats .cs-wide { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 3px; padding-top: 5px; }
.char-slot .cs-sub { white-space: normal; line-height: 1.15; } /* 좁은 카드에서 "800 체력"이 잘리느니 두 줄 */
.char-x { position: absolute; right: 10px; top: 10px; padding: 4px 10px; font-size: 14px; line-height: 1; }
/* 전체 순위 */
.rank-list { max-height: 34dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
/* 1~3위 단상 (포차와 같은 결) */
.rank-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 6px; align-items: end; margin-bottom: 10px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.pod-name { font-size: 12px; font-weight: 800; color: #e8ecff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-score { font-size: 11px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.pod-cv { display: block; margin-bottom: -4px; } /* 단 위에 선 캐릭터(2026-10-23) */
.pod-base { width: 100%; margin-top: 4px; border-radius: 9px 9px 4px 4px; background: linear-gradient(#262c44, #171b2a); border: 1.5px solid var(--line); border-top: 4px solid #c9d2e6; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 900; color: #dde3f2; }
.pod.p1 .pod-base { color: #ffd76a; font-size: 20px; }
.pod.p3 .pod-base { color: #e8b07c; } /* 어두운 단 + 색 띠 — 밝은 금/은/동 블록은 테마와 따로 놀았다 */
.pod.p1 .pod-base { height: 46px; border-top-color: #ffd76a; }
.pod.p2 .pod-base { height: 32px; }
.pod.p3 .pod-base { height: 24px; border-top-color: #d79a62; }
.pod.mine .pod-name { color: var(--gold); }
.pod.empty { opacity: .45; }
.rank-me { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 11px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(255,215,106,.08); }
.rank-me-no { flex: 0 0 auto; min-width: 40px; text-align: center; font-size: 20px; font-weight: 900; color: var(--gold); }
.rank-me-no small { font-size: 11px; color: #c9b48f; }
.rank-me-body { flex: 1; min-width: 0; }
.rank-me-name { font-size: 13px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-me-name small { color: var(--dim); font-weight: 700; }
.rank-me-score { font-size: 12px; color: var(--gold); font-weight: 700; }
.rank-edit { flex: none; padding: 6px 10px; font-size: 12px; }
/* 품질 칩 · 가방 목록 증감 · Lv 표기 · 정리 창 */
.qtag { font-size: 10px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 8px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.qtag.hi { color: var(--gold); border-color: rgba(255,215,106,.5); }
.qtag.lo { color: #8a93a8; }
.qtag { white-space: nowrap; display: inline-block; }
.inv-row-item .qtag, .char-box .itype .qtag, .enh-box .itype .qtag { display: none; } /* 목록 줄·칸 상세에서는 품질 칩을 숨긴다 — 둘째 줄로 꺾여 잘렸다(사용자 2026-10-23). 장비 정보 카드에만 */
.ir-dn { color: var(--bad); font-weight: 700; font-size: 12px; }
.ir-eq { color: var(--dim); font-size: 12px; }
.lvtag { font-size: 11px; font-weight: 800; color: var(--accent); }
.lvtag small { color: var(--dim); font-weight: 600; }
.lvtag.off { color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.chip { font: inherit; font-size: 12px; padding: 5px 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); color: #cfd6e4; cursor: pointer; }
.chip.on { border-color: var(--accent); background: rgba(126,200,255,.14); color: #fff; }
.cl-preview { text-align: center; font-size: 13px; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; margin: 4px 0 6px; line-height: 1.5; }
.cl-preview small { color: var(--dim); }
.cl-acts { flex-direction: row; margin-top: 2px; }
.cl-row { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 6px; margin: 0 0 6px; }
.cl-lbl { font-size: 11.5px; color: var(--dim); font-weight: 700; word-break: keep-all; }
html[lang="ko"] .cl-row { grid-template-columns: 30px minmax(0, 1fr); }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel2); }
.seg .chip { flex: 1; border: 0; border-radius: 0; border-right: 1px solid var(--line); padding: 6px 4px; font-size: 11.5px; white-space: nowrap; text-align: center; background: transparent; }
.seg .chip:last-child { border-right: 0; }
.seg .chip.on { background: rgba(126,200,255,.18); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.cl-keep { margin: 0; gap: 6px; }
.cl-keep .chip { padding: 5px 9px; font-size: 11.5px; }
.cl-preview { margin: 8px 0 6px; }
.cl-acts .btn { flex: 1; white-space: normal; }
.rank-row { display: grid; grid-template-columns: 28px 24px 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--panel2); font-size: 13px; }
.rank-row.me { outline: 1px solid var(--accent); }
.rank-row, .pod { cursor: pointer; }
/* 순위표 줄을 누르면 그 사람의 착용 장비(2026-10-19) */
.rg-head { text-align: center; font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.rg-row { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.rg-row .rg-ico { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.rg-row .rg-ico .ico-img { display: block; }
.rg-row .rg-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rg-row .rg-main small { color: var(--dim); font-size: 11px; }
/* 순위표 장비 창 — 캐릭터 창 꼴(2026-10-19). 모달 안쪽이 284px 라 가운데 캐릭터는 96px 로 줄이고 부위 칸은 아래 2열 */
.rg-top { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.rg-center { width: 96px; height: 120px; flex: none; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 78%, #232838, #14161d 75%); border: 1px solid var(--line); border-radius: 12px; }
.rg-info { font-size: 13px; line-height: 1.55; color: var(--text); }
.rg-info b { font-size: 15px; }
.rg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.rg-grid .char-slot { cursor: pointer; }
.rg-grid .char-slot.empty { cursor: default; }
.rg-grid .char-slot.wide { grid-column: 1 / 3; }
.rg-note { font-size: 11.5px; color: var(--dim); text-align: center; margin-top: 8px; }
.rank-row:nth-child(1) .rank-no { color: #ffd76a; } .rank-row:nth-child(2) .rank-no { color: #d8dde8; } .rank-row:nth-child(3) .rank-no { color: #d9a066; }
.rank-no { font-weight: 800; text-align: center; } /* 원 배지는 뺐다(사용자 2026-10-23 "원래 없었지? 빼는 게 좋겠어") */
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { color: var(--gold); white-space: nowrap; display: inline-grid; grid-template-columns: auto 56px; gap: 8px; }
.rank-val .rv-a, .rank-val .rv-b { text-align: right; }
.rank-val .rv-b { font-variant-numeric: tabular-nums; }
/* 해체기·창고 모달 — 그리드는 모달 안에서 스크롤 */
.dis-head { text-align: center; margin-bottom: 8px; font-size: 13px; }
.dis-grid { max-height: 48dvh; overflow-y: auto; padding: 2px; }
.dis-skip { opacity: .28; filter: grayscale(1); }

/* 아이템 아이콘 — icons.js 가 코드로 그린 <img>. 타일(.equip-ico 등)이 flex 가운데 정렬이라 block 이면 중앙에 앉는다 */
.ico-img { display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.ico-img.ico-inl { display: inline-block; vertical-align: -0.22em; margin-right: 2px; }
/* 화면의 OS 이모지 → 코드 아이콘(game.js emoIcoDom, 2026-10-23). 그림은 부팅 때 <style id="emoIcoCss"> 가 배경으로 깐다. 크기는 글자를 따른다 */
.eico { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.3em; margin: 0 .05em; background: center / contain no-repeat; font-style: normal; pointer-events: none; }
.eico[class*="e-img_"] { background-size: 132%; border-radius: 22%; }
.eico.e-img_t_hp { background-size: 112%; } /* 체력 타일 그림이 칸의 72%×67% 를 채워(다른 타일 52~62%) 글줄에서 혼자 커 보였다(사용자 2026-10-23) — 112% 면 트로피 타일과 같은 크기 */ /* 글줄 속 타일 아이콘(img/icon, 남색 바탕+금테가 그림에 구워져 있다)은 금테를 밖으로 밀어내 테두리가 안 보이게 — 작은 칩에서 "아직도 테두리"(사용자 2026-10-23) */
.icon-btn .eico { width: 22px; height: 22px; vertical-align: middle; margin: 0; }
#ultBtn .eico { width: 22px; height: 22px; vertical-align: middle; margin: 0; }
#ultBtn span .eico { width: 13px; height: 13px; vertical-align: -2px; }
.demon-ico .eico { width: 34px; height: 34px; }
.sg-k .eico, .stat-row .eico { width: 1.2em; height: 1.2em; }
.ground-tag .eico { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.eico.e-hero { border-radius: 50%; }
.tab-badge .eico { width: 13px; height: 13px; vertical-align: -2px; margin: 0; }
.shop-ico .eico, .att-ico .eico, .quest-ico .eico { width: 1.3em; height: 1.3em; vertical-align: middle; margin: 0; }
/* +11 이상 강화 아이콘의 빛 — 은은하게, 단마다 색·세기가 옮겨 간다(2026-10-14). 실루엣을 따르는 drop-shadow 라 네모 테두리가 안 생긴다 */
.ico-img.hi-plus { filter: drop-shadow(0 0 var(--hpr, 3px) var(--hpc)) drop-shadow(0 0 1px var(--hpc)); }
.ico-img.hp11 { --hpc: rgba(142,197,255,.75); --hpr: 2.5px }
.ico-img.hp12 { --hpc: rgba(160,170,255,.8); --hpr: 3px }
.ico-img.hp13 { --hpc: rgba(190,140,255,.85); --hpr: 3.5px }
.ico-img.hp14 { --hpc: rgba(224,124,240,.85); --hpr: 4px }
.ico-img.hp15 { --hpc: rgba(255,200,80,.9); --hpr: 4.5px }
.ico-img.hp16 { --hpc: rgba(255,170,60,.9); --hpr: 5px }
.ico-img.hp17 { --hpc: rgba(255,130,70,.9); --hpr: 5.5px }
.ico-img.hp18 { --hpc: rgba(255,95,90,.9); --hpr: 6px }
.ico-img.hp19 { --hpc: rgba(255,70,120,.95); --hpr: 6.5px }
.ico-img.hp20 { --hpc: rgba(255,50,160,1); --hpr: 7px }


/* ---- 화면 언어 (2026-10-20, 포차와 같은 규칙) ---- */
.lang-bi { font-family: inherit; }
.set-menu.lang-bi { display: flex; flex-direction: column; gap: 6px; }
.set-menu .lang-opt { width: 100%; justify-content: space-between; text-align: left; }
.set-menu .lang-opt.on { border-color: var(--gold); color: var(--gold); }
.set-menu .lang-opt small { color: var(--dim); }
/* keep-all 은 한국어 전용 — 일본어·중국어는 띄어쓰기가 없어 문장 전체가 한 단어가 된다 */
html:not([lang="ko"]) body, html:not([lang="ko"]) body * { word-break: normal !important; }
html[lang="ja"] body, html[lang="zh-Hant"] body { line-break: strict; }
html[lang="ja"] body, html[lang="ja"] body * { word-break: auto-phrase !important; }


/* =====================================================================
   UI 스킨 후보 (2026-10-22) — ?ui=a|b|c 로 미리 본다. 클래스가 없으면 위의 기본 그대로.
   일러스트 스프라이트·배경과 결을 맞추려는 후보 셋. game.js 가 body 에
   ui-skin + ui-a|b|c + ui-light|ui-dark 를 단다(A·C = light, B = dark).
   기본 선택자는 고치지 않고 body.ui-* 로만 덮는다.
   ===================================================================== */

/* 제목 글꼴 — 쓰일 때만 받는다(@font-face 는 게으르다). land 호스팅에 font/ 가 없으면
   pocha 번들로, 그것도 없으면 Pretendard 로 내려간다. 스킨을 고르면 public/land/font/ 로 복사할 것 */
@font-face {
  font-family: "LandJua";
  src: url("font/Jua-Regular.woff2") format("woff2"), url("../pocha/font/Jua-Regular.woff2") format("woff2");
  font-display: swap;
}

/* ---------- 공통: 읽기 좋게 (셋 다) ---------- */
body.ui-skin .panel { padding: 12px; }
body.ui-skin .sec-title { font-size: 13.5px; margin: 12px 0 8px; }
body.ui-skin .sec-title:first-child { margin-top: 0; }
body.ui-skin .rb-note, body.ui-skin .modal-note { font-size: 12.5px; line-height: 1.55; }
body.ui-skin .ground-sub, body.ui-skin .equip-stat, body.ui-skin .talent-sub, body.ui-skin .demon-sub,
body.ui-skin .quest-sub, body.ui-skin .shop-sub, body.ui-skin .cc-desc, body.ui-skin .quest-desc,
body.ui-skin .d3-sub, body.ui-skin .tier-card .tier-sub.dim { font-size: 12.5px; line-height: 1.5; }
body.ui-skin .ir-sub { font-size: 12px; }
body.ui-skin .itype { font-size: 11.5px; opacity: 1; }
body.ui-skin .afx-line, body.ui-skin .kind-line, body.ui-skin .set-line, body.ui-skin .uniq-line, body.ui-skin .req-line { font-size: 12px; line-height: 1.5; }
body.ui-skin .ground-row { padding: 11px 12px; margin-bottom: 9px; }
body.ui-skin .equip-slot { padding: 10px 12px; margin-bottom: 9px; }
body.ui-skin .talent-row { padding: 9px 11px; margin-bottom: 8px; }
body.ui-skin .inv-list { gap: 7px; }
body.ui-skin .inv-row-item { padding: 9px 10px; }
body.ui-skin .shop-item { padding: 10px 11px; margin: 8px 0; }
body.ui-skin .shop-sub { font-size: 12px; }
/* 분류 칩은 작게 — 3D 버튼 크기로 두면 칩 두세 줄이 판을 다 먹는다 */
body.ui-skin .inv-tabs .btn { min-height: 32px; padding: 4px 9px; font-size: 11.5px; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
body.ui-skin .toast { font-size: 14px; }
/* 토스트 줄 폭 — 기본은 화면 가운데에서 오른쪽 끝까지(180px)만 써서 한 줄이 세 줄로 꺾였다 */
body.ui-skin #toastRoot { width: max-content; max-width: calc(100vw - 40px); align-items: center; }
body.ui-skin .tip { font-size: 14px; line-height: 1.55; }
body.ui-skin .modal-box { padding: 20px; width: min(440px, calc(100vw - 24px)); }
/* 가방 머리 줄 — 큰 제목에서 "가방 (1/100) · 999" 가 세 줄로 꺾였다 */
body.ui-skin .inv-head { gap: 6px; }
body.ui-skin .inv-head .sec-title { font-size: 13.5px; min-width: 0; line-height: 1.3; }
body.ui-skin .inv-head .sec-title span { white-space: nowrap; }
body.ui-light .inv-head .sec-title { display: block; }
body.ui-light .inv-head .sec-title::before { display: inline-block; vertical-align: 1px; margin-right: 7px; }
body.ui-c .inv-head .sec-title::after { display: none; }
body.ui-skin .inv-head .btn { padding-left: 9px; padding-right: 9px; }
body.ui-skin .stat-row, body.ui-skin .sum-row { padding: 7px 2px; font-size: 13.5px; }

/* ---------- 밝은 판(A·C) 공통 — 어두운 바탕을 전제로 박아 둔 글자색을 진하게 ---------- */
body.ui-light .statv, body.ui-light .ir-sub .statv, body.ui-light .talent-val { color: var(--text); }
body.ui-light .inv-row-item { color: var(--text); }
body.ui-light .r-uniq { color: #c4561a; text-shadow: none; }
body.ui-light .r-set { color: #0f8577; text-shadow: none; }
body.ui-light .afx-line { color: #2c8450; }
body.ui-light .ir-afx { color: #6d48ad; }
body.ui-light .kind-line, body.ui-light .set-line { color: var(--dim); }
body.ui-light .talent-val.off { color: var(--dim); }
body.ui-light .sk-badge { background: rgba(90,58,36,.08); color: var(--dim); border-color: rgba(90,58,36,.3); }
body.ui-light .sk-badge.proc { background: rgba(43,127,196,.12); color: var(--accent); border-color: rgba(43,127,196,.45); }
body.ui-light .sk-badge.cd { background: rgba(200,130,20,.12); color: #a86a08; border-color: rgba(200,130,20,.45); }
body.ui-light .qtag { color: var(--dim); border-color: rgba(90,58,36,.3); }
body.ui-light .qtag.hi { color: var(--gold); border-color: var(--gold); }
body.ui-light .rbg-common { background: #ecdcbc; box-shadow: inset 0 0 0 1.5px #c4a173; }
body.ui-light .rbg-fine { background: rgba(80,180,100,.16); }
body.ui-light .rbg-rare { background: rgba(70,140,230,.16); }
body.ui-light .rbg-epic { background: rgba(160,90,230,.16); }
body.ui-light .rbg-legend { background: rgba(240,160,40,.2); }
body.ui-light .tier-card .tier-pips i { background: rgba(90,58,36,.1); border-color: rgba(90,58,36,.28); }
body.ui-light .tier-card .tier-pips i.open { background: rgba(210,150,30,.18); border-color: var(--gold); }
body.ui-light .tier-card .tier-fit.ok { color: #2d8a3a; }
body.ui-light .tier-card .tier-fit.easy { color: #c4432c; }
body.ui-light .tier-card .tier-fit.hard { color: #a87408; }
body.ui-light .tier-card .tier-num { text-shadow: 0 2px 0 rgba(90,58,36,.25); }
body.ui-light .legacy-bar { background: #e2cda6; }
body.ui-light .mark-chip { background: #efe3ff; border-color: #a283d6; color: #4a2f80; }
body.ui-light .chip { background: #fffaf0; color: var(--text); border-color: #c4a173; }
body.ui-light .pod-name, body.ui-light .rank-me-name { color: var(--text); }
body.ui-light .hold-note { background: rgba(255,210,110,.25); }
body.ui-light .cmp-col, body.ui-light .sg-cell, body.ui-light details.rec { background: rgba(255,255,255,.55); border-color: #c4a173; }
body.ui-light .stat-row, body.ui-light .sum-row, body.ui-light .quest-next { border-bottom-color: rgba(90,58,36,.25); }
body.ui-light .nick-field { background: #fffaf0; color: var(--text); border-color: #c4a173; }
body.ui-light .cdx-card, body.ui-light .cdx-u, body.ui-light .codex-set { background: #fffaf0; color: var(--text); border-color: #c4a173; }
body.ui-light .cdx-card.done { background: #e4f5dc; border-color: #4aa65a; }
body.ui-light .codex-slot { background: #f3e6cc; border-color: #c4a173; color: var(--dim); }
body.ui-light .codex-slot.have { background: #e4f5dc; border-color: #4aa65a; color: #2d7a3a; }
body.ui-light .loot-row { border-top-color: rgba(90,58,36,.15); }
body.ui-light .ground-tag.lock { color: var(--dim); }
body.ui-light .tab-badge { background: #4aa8ee; color: #fff; }
body.ui-light .tab-badge.hot { background: #f06a3a; color: #fff; }
body.ui-light .att-cell .att-lbl { color: var(--text); }
/* 무대·강화 창·연출은 어두운 판 그대로 — 그 안의 변수는 원래 값으로 되돌린다 */
body.ui-light #stage, body.ui-light .enh-root, body.ui-light .rb-fx, body.ui-light #titleRoot, body.ui-light #adOverlay {
  --text: #e8e6df; --dim: #9aa0ad; --gold: #ffd76a; --accent: #7fd0ff; --hot: #ff8a5c; --good: #8be28b; --bad: #ff7d7d;
  --line: #333846; --panel: #1d2029; --panel2: #252935;
  --r-common: #cfcfcf; --r-fine: #7fd97f; --r-rare: #6fb7ff; --r-epic: #c98bff; --r-legend: #ffb84d;
}
body.ui-light .enh-root .statv { color: #fff; }

/* =====================================================================
   A · 카툰 라이트 — 크림 판 · 진갈색 굵은 둥근 윤곽선 · 눌리는 3D 버튼 (가디언 테일즈·쿠키런 결)
   ===================================================================== */
body.ui-a {
  --bg: #e9c98f; --panel: #fff3dc; --panel2: #fffaf0; --line: #5a3a24;
  --text: #3b2614; --dim: #7a5a3c; --gold: #c47f0a; --accent: #2272b8; --hot: #d9581f; --good: #2f8f3a; --bad: #cc3b30;
  --r-common: #6e6253; --r-fine: #2c9244; --r-rare: #2468c0; --r-epic: #8a3fd0; --r-legend: #cc720a;
  background: radial-gradient(ellipse at 50% 0%, #f8e2b4, #e6c389 70%) fixed, #e9c98f;
}
body.ui-a #topbar {
  background: var(--panel); border: 2.5px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 0 rgba(90,58,36,.55);
}
body.ui-a .exp-bar { background: #ecd8b2; border: 2px solid var(--line); height: 16px; border-radius: 9px; }
body.ui-a .exp-bar i { background: linear-gradient(180deg, #8fd6ff, #3f9be0); }
body.ui-a .exp-bar span { line-height: 12px; color: #fff; text-shadow: 0 1px 0 #2a5a85, 0 0 3px #2a5a85; font-weight: 800; }
body.ui-a .icon-btn {
  background: #fffaf0; border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 3px 0 var(--line);
}
body.ui-a .icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
body.ui-a #stage { border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 4px 0 rgba(90,58,36,.55); }

body.ui-a #tabs { gap: 5px; }
body.ui-a .tab-btn {
  background: #f6e2bd; color: #8a6644; border: 2px solid var(--line); border-radius: 14px;
  box-shadow: 0 3px 0 var(--line); font-size: 11.5px; font-weight: 800;
}
body.ui-a .tab-btn .ico-ui { opacity: .85; filter: saturate(.8); }
body.ui-a .tab-btn.active {
  background: linear-gradient(180deg, #ffe48f, #ffbf33); color: #4a2a06; border-color: #6e400c;
  box-shadow: 0 3px 0 #6e400c, inset 0 2px 0 rgba(255,255,255,.6);
}
body.ui-a .tab-btn.active .ico-ui { opacity: 1; filter: none; }
body.ui-a .tab-badge { box-shadow: 0 0 0 2px var(--line); }

body.ui-a .panel {
  background: var(--panel); border: 2.5px solid var(--line); border-radius: 18px;
  box-shadow: 0 4px 0 rgba(90,58,36,.55), inset 0 0 0 3px #fffbf0;
}
body.ui-a .sec-title {
  font-family: "LandJua", "Pretendard", "Malgun Gothic", sans-serif; font-weight: 400;
  font-size: 15px; color: #5a3a24; border-left: 0; padding-left: 0; letter-spacing: 0;
  display: flex; align-items: center; gap: 6px;
}
body.ui-a .sec-title::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: #ffbf33; border: 2px solid var(--line); transform: rotate(45deg); }
body.ui-a .inv-head .sec-title { margin: 0; }

/* 카드 — 안쪽 판은 한 톤 연한 갈색 윤곽 */
body.ui-a .ground-row, body.ui-a .equip-slot, body.ui-a .talent-row, body.ui-a .inv-row-item, body.ui-a .quest-card,
body.ui-a .rb-hero, body.ui-a .rb-col, body.ui-a .class-card, body.ui-a .shop-item, body.ui-a .rank-row, body.ui-a .att-cell, body.ui-a .rr-card, body.ui-a .encore-box {
  background: var(--panel2); border: 2px solid #c79c66; border-radius: 14px;
  box-shadow: 0 3px 0 #d9b98a;
}
body.ui-a .ground-row:hover, body.ui-a .equip-slot[data-act]:hover { border-color: #a57a45; }
body.ui-a .ground-row.current { background: #eaf8dd; border-color: #3c9a3c; box-shadow: 0 3px 0 #8cc87a; }
body.ui-a .inv-row-item.up { border-color: #4aa65a; }
body.ui-a .shop-item.on { background: #f1e9ff; border-color: #8a62c4; box-shadow: 0 3px 0 #c6b0ea; }
body.ui-a .tier-card { background: linear-gradient(180deg, #fff1c2, #fffaf0 70%); border: 2.5px solid #c98a12; border-radius: 16px; box-shadow: 0 3px 0 #e2b55a; }
body.ui-a .demon-card { background: linear-gradient(135deg, #f1e3ff, #fffaf0 70%); border: 2px solid #9b5cc7; border-radius: 14px; box-shadow: 0 3px 0 #d0b4ea; }
body.ui-a .demon-name b { color: #8a3fd0; }
body.ui-a .gold-card { background: linear-gradient(135deg, #fff0c4, #fffaf0 70%); border: 2px solid #c98a12; border-radius: 14px; box-shadow: 0 3px 0 #e2b55a; }
body.ui-a .legacy-card { background: linear-gradient(135deg, #efe5ff, #fffaf0 70%); border-color: #8a62c4; }
body.ui-a .hold-note { border: 2px dashed #c98a12; color: #8a5a06; }

/* 버튼 — 채도 높은 판 + 같은 계열 윤곽선 + 아래 두꺼운 그림자(누르면 꺼진다) */
body.ui-a .btn {
  background: #fffaf0; color: #4a2f18; border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 3px 0 var(--line); font-weight: 800;
}
body.ui-a .btn:hover:not(:disabled) { border-color: var(--line); filter: brightness(1.03); }
body.ui-a .btn.primary {
  background: linear-gradient(180deg, #ffe07a, #ffb21f); color: #4a2806; border-color: #7a4608;
  box-shadow: 0 3px 0 #7a4608, inset 0 2px 0 rgba(255,255,255,.55);
}
body.ui-a .btn.warn { background: #ffe1d6; color: #a8321e; border-color: #a8321e; box-shadow: 0 3px 0 #a8321e; }
body.ui-a .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
body.ui-a .btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 #7a4608; }
body.ui-a .btn:disabled { opacity: .45; }
body.ui-a .btn.mini { border-radius: 9px; box-shadow: 0 2px 0 var(--line); }
body.ui-a .enh-btn small { color: #a8650a; }
body.ui-a .sortbtn { color: #8a5a06; }
body.ui-a .inv-tab.on { background: #dff0ff; color: #1d5f9a; border-color: #2272b8; box-shadow: 0 3px 0 #2272b8; }

/* 토스트 — 굵은 윤곽 둥근 알약 */
body.ui-a .toast {
  background: #fffaf0; color: #3b2614; border: 2.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-weight: 800; box-shadow: 0 4px 0 var(--line), 0 8px 18px rgba(60,35,15,.25);
}
body.ui-a .toast.gold { background: linear-gradient(180deg, #fff2c2, #ffd76a); border-color: #7a4608; box-shadow: 0 4px 0 #7a4608, 0 8px 18px rgba(60,35,15,.25); }
body.ui-a .toast.hot { background: #ffe3d6; color: #8a2a12; border-color: #a8321e; box-shadow: 0 4px 0 #a8321e, 0 8px 18px rgba(60,35,15,.25); }

/* 말풍선 */
body.ui-a .tip {
  background: #fffbe8; color: #3b2614; border: 2.5px solid var(--line); border-radius: 18px;
  font-weight: 700; box-shadow: 0 4px 0 var(--line), 0 10px 22px rgba(60,35,15,.3);
}
body.ui-a .tip b { color: #c45f00; }
body.ui-a .tip::after { border-width: 9px; margin-left: -9px; }
body.ui-a .tip-above::after { border-top-color: var(--line); }
body.ui-a .tip-below::after { border-bottom-color: var(--line); }

/* 모달 — 주황 머리띠 + 굵은 윤곽 */
body.ui-a .modal-backdrop { background: rgba(50,30,12,.55); }
body.ui-a .modal-box {
  background: var(--panel); border: 3px solid var(--line); border-radius: 22px;
  box-shadow: 0 6px 0 var(--line), 0 24px 50px rgba(30,15,5,.45);
}
body.ui-a .modal-box h2 {
  margin: -20px -20px 14px; padding: 13px 16px 11px; text-align: center;
  font-family: "LandJua", "Pretendard", "Malgun Gothic", sans-serif; font-weight: 400; font-size: 21px;
  color: #4a2806; background: linear-gradient(180deg, #ffe07a, #ffb21f);
  border-bottom: 3px solid var(--line); border-radius: 19px 19px 0 0;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
body.ui-a .modal-actions { justify-content: center; }
body.ui-a .d3-stat { color: var(--text); }

/* =====================================================================
   B · 카툰 다크 — 남색 바탕은 그대로, 판은 뚜렷하게 · 색 머리띠 · 3D 버튼 · 금테 알약 · 글자 한 단 크게
   ===================================================================== */
body.ui-b {
  --bg: #11131d; --panel: #1c2032; --panel2: #262b42; --line: #414a6b;
  --text: #f2f0ea; --dim: #b0b7c8; --gold: #ffd76a; --accent: #8fd6ff;
  background: radial-gradient(ellipse at 50% 0%, #1d2340, #11131d 70%) fixed, #11131d;
  font-size: 14.5px;
}
body.ui-b #topbar {
  background: linear-gradient(180deg, #262c46, #1c2032); border: 2px solid #4d5780; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 rgba(0,0,0,.45);
}
body.ui-b .exp-bar { border: 2px solid #4d5780; height: 16px; border-radius: 9px; }
body.ui-b .exp-bar span { line-height: 12px; font-weight: 800; }
body.ui-b .icon-btn {
  background: linear-gradient(180deg, #343c5c, #262c46); border: 2px solid #56608c; border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 3px 0 #0d0f18;
}
body.ui-b .icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0d0f18; }
body.ui-b #stage { border: 2px solid #4d5780; border-radius: 16px; box-shadow: 0 3px 0 rgba(0,0,0,.45); }

/* 탭 — 탭마다 제 색 머리띠, 고르면 그 색으로 물든다 */
body.ui-b .tab-btn[data-tab="ground"] { --tc: #5fd07a; --tcb: rgba(95,208,122,.38); }
body.ui-b .tab-btn[data-tab="equip"] { --tc: #ffab4a; --tcb: rgba(255,171,74,.38); }
body.ui-b .tab-btn[data-tab="skill"] { --tc: #c48bff; --tcb: rgba(196,139,255,.38); }
body.ui-b .tab-btn[data-tab="quest"] { --tc: #ff7a7a; --tcb: rgba(255,122,122,.38); }
body.ui-b .tab-btn[data-tab="rebirth"] { --tc: #ffd76a; --tcb: rgba(255,215,106,.34); }
body.ui-b .tab-btn[data-tab="info"] { --tc: #6fc3ff; --tcb: rgba(111,195,255,.38); }
body.ui-b .tab-btn {
  background: linear-gradient(180deg, #2a3049, #1f2337); color: #aab2c8; border: 2px solid #3d4566;
  border-top: 4px solid var(--tc, #6fc3ff); border-radius: 12px; font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 0 #0d0f18;
}
body.ui-b .tab-btn .ico-ui { opacity: .8; filter: saturate(.75); }
body.ui-b .tab-btn.active {
  color: #fff; border-color: var(--tc, #6fc3ff);
  background: linear-gradient(180deg, var(--tcb, rgba(111,195,255,.38)), rgba(38,43,66,0) 85%), #262b42;
  box-shadow: 0 3px 0 #0d0f18, 0 0 12px var(--tcb, rgba(111,195,255,.38)), inset 0 1px 0 rgba(255,255,255,.2);
}
body.ui-b .tab-btn.active .ico-ui { opacity: 1; filter: none; }

body.ui-b .panel {
  background: linear-gradient(180deg, #1f2338, #1a1d2e); border: 2px solid #3d4566; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 0 rgba(0,0,0,.45);
}
body.ui-b .sec-title {
  font-size: 13.5px; color: #e6ecff; font-weight: 800; letter-spacing: -.2px;
  border-left: 4px solid var(--accent); border-radius: 4px; padding: 4px 8px;
  background: linear-gradient(90deg, rgba(127,208,255,.22), rgba(127,208,255,0) 85%);
}
body.ui-b .inv-head .sec-title { margin: 0; }

body.ui-b .ground-row, body.ui-b .equip-slot, body.ui-b .talent-row, body.ui-b .inv-row-item, body.ui-b .quest-card,
body.ui-b .rb-hero, body.ui-b .rb-col, body.ui-b .class-card, body.ui-b .shop-item, body.ui-b .rank-row, body.ui-b .att-cell, body.ui-b .rr-card {
  background: linear-gradient(180deg, #2b3150, #232840); border: 2px solid #48527a; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 rgba(0,0,0,.4);
}
body.ui-b .ground-row.current { border-color: #5fd07a; background: linear-gradient(180deg, #24443a, #1f3330); }
body.ui-b .inv-row-item.up { border-color: rgba(126,231,135,.7); }
body.ui-b .shop-item.on { border-color: #9a86ff; background: linear-gradient(180deg, #2f2a55, #241f40); }
body.ui-b .tier-card { border: 2px solid var(--gold); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 rgba(0,0,0,.4), 0 0 14px rgba(224,178,74,.18); }
body.ui-b .demon-card, body.ui-b .gold-card { border-width: 2px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.4); }
/* 글자 한 단 크게 */
body.ui-b .ground-name, body.ui-b .demon-name { font-size: 15.5px; }
body.ui-b .equip-name, body.ui-b .talent-name, body.ui-b .ir-name { font-size: 14.5px; }
body.ui-b .shop-name { font-size: 15px; }
body.ui-b .ground-sub, body.ui-b .equip-stat, body.ui-b .talent-sub, body.ui-b .demon-sub, body.ui-b .shop-sub,
body.ui-b .quest-desc, body.ui-b .tier-card .tier-sub { font-size: 13px; }
body.ui-b .rb-note, body.ui-b .modal-note { font-size: 13px; color: #bcc3d4; }
body.ui-b .tab-badge { box-shadow: 0 0 0 2px #11131d; }

body.ui-b .btn {
  background: linear-gradient(180deg, #3b4466, #2c3350); color: #eef1ff; border: 2px solid #5a6592; border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 #0d0f18; font-weight: 800;
}
body.ui-b .btn:hover:not(:disabled) { border-color: #7a87bd; }
body.ui-b .btn.primary {
  background: linear-gradient(180deg, #5cc0ff, #2a83d6); color: #fff; border-color: #9fdcff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #154a7c; text-shadow: 0 1px 1px rgba(0,30,60,.6);
}
body.ui-b .btn.warn { color: #ffd0c8; border-color: #c4574a; background: linear-gradient(180deg, #5a2a2a, #43201f); }
body.ui-b .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0d0f18; }
body.ui-b .btn.mini { border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 0 #0d0f18; }

body.ui-b .toast {
  background: linear-gradient(180deg, #2c3252, #1d2135); color: #fff6dc; border: 2.5px solid var(--gold); border-radius: 999px;
  padding: 9px 20px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 0 2px #0d0f18, 0 6px 18px rgba(0,0,0,.55), 0 0 14px rgba(255,215,106,.25);
}
body.ui-b .toast.hot { border-color: #ff8a5c; color: #ffd6c4; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 0 2px #0d0f18, 0 6px 18px rgba(0,0,0,.55), 0 0 14px rgba(255,138,92,.3); }
body.ui-b .tip {
  background: linear-gradient(180deg, #34300f, #231f0c); color: #fff3cf; border: 2.5px solid var(--gold); border-radius: 18px;
  box-shadow: 0 0 0 2px #0d0f18, 0 8px 22px rgba(0,0,0,.55), 0 0 14px rgba(255,215,106,.25);
}
body.ui-b .tip::after { border-width: 9px; margin-left: -9px; }

body.ui-b .modal-backdrop { background: rgba(5,6,12,.7); }
body.ui-b .modal-box {
  background: linear-gradient(180deg, #212640, #1a1d2e); border: 2px solid #56608c; border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 2px #0d0f18, 0 24px 50px rgba(0,0,0,.6);
}
body.ui-b .modal-box h2 {
  margin: -20px -20px 14px; padding: 14px 16px 12px; text-align: center; font-size: 19px; font-weight: 900;
  background: linear-gradient(180deg, #343d64, #262c48); border-bottom: 2px solid var(--gold); border-radius: 18px 18px 0 0;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
body.ui-b .modal-actions { justify-content: center; }

/* =====================================================================
   C · 양피지·나무 — 양피지 판 · 나무 틀 · 금빛 모서리 징 · 나무/금 버튼 · 두루마리 토스트 (판타지 RPG 결)
   ===================================================================== */
body.ui-c {
  --bg: #2e2014; --panel: #f1e2c0; --panel2: #f8edd3; --line: #6b4a2a;
  --text: #3a2614; --dim: #6c5034; --gold: #a06c08; --accent: #24679f; --hot: #c5501c; --good: #2e7f35; --bad: #b8352b;
  --r-common: #6a5a48; --r-fine: #2b8740; --r-rare: #22609f; --r-epic: #7c3cb8; --r-legend: #b3620a;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 46px, rgba(0,0,0,.18) 46px 48px),
    repeating-linear-gradient(0deg, rgba(255,220,170,.03) 0 3px, rgba(0,0,0,.04) 3px 7px),
    linear-gradient(180deg, #4a3220, #2e2014) fixed;
}
/* 나무 판(위 막대·탭 버튼) 안은 밝은 글자 */
body.ui-c #topbar {
  --text: #fbefd5; --dim: #e2c9a0; --gold: #ffd76a; --accent: #9fdcff; --line: #3a2614; --hot: #ffa27a;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 9px, rgba(0,0,0,.12) 9px 10px),
    linear-gradient(180deg, #8a6038, #5f3f22);
  border: 2.5px solid #2e1d0e; border-radius: 12px;
  box-shadow: inset 0 0 0 2px #c99a3c, inset 0 3px 6px rgba(255,220,160,.2), 0 4px 0 rgba(0,0,0,.45);
}
body.ui-c .exp-bar { background: #2a1a0c; border: 2px solid #c99a3c; height: 16px; border-radius: 8px; }
body.ui-c .exp-bar span { line-height: 12px; font-weight: 800; }
body.ui-c .icon-btn {
  background: linear-gradient(180deg, #a7794a, #6e4b29); border: 2px solid #2e1d0e; border-radius: 9px;
  box-shadow: inset 0 0 0 1px #d9ad55, 0 2px 0 #1e1208;
}
body.ui-c #stage { border: 3px solid #2e1d0e; border-radius: 12px; box-shadow: 0 0 0 2px #c99a3c, 0 4px 0 rgba(0,0,0,.45); }

body.ui-c #tabs { gap: 5px; }
body.ui-c .tab-btn {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 8px, rgba(0,0,0,.1) 8px 9px),
    linear-gradient(180deg, #8f6539, #64431f);
  color: #f1dcb4; border: 2px solid #2e1d0e; border-radius: 10px; font-size: 11.5px; font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(217,173,85,.5), 0 3px 0 #1e1208; text-shadow: 0 1px 1px rgba(0,0,0,.6);
}
body.ui-c .tab-btn .ico-ui { opacity: .9; filter: saturate(.8); }
body.ui-c .tab-btn.active {
  background: linear-gradient(180deg, #fbe39a, #d8a544); color: #3a2614; text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 1px #fff3c4, 0 3px 0 #1e1208, 0 0 10px rgba(255,215,106,.35);
}
body.ui-c .tab-btn.active .ico-ui { opacity: 1; filter: none; }
body.ui-c .tab-badge { box-shadow: 0 0 0 2px #2e1d0e; }

/* 양피지 판 — 나무 틀 + 금 안쪽 줄 + 네 모서리 금징 + 바랜 가장자리 */
body.ui-c .panel, body.ui-c .modal-box {
  background:
    radial-gradient(circle at 11px 11px, #fff1b8 0 2px, #d9a83c 2.5px 4.5px, #6b4a14 5px, rgba(0,0,0,0) 6px),
    radial-gradient(circle at calc(100% - 11px) 11px, #fff1b8 0 2px, #d9a83c 2.5px 4.5px, #6b4a14 5px, rgba(0,0,0,0) 6px),
    radial-gradient(circle at 11px calc(100% - 11px), #fff1b8 0 2px, #d9a83c 2.5px 4.5px, #6b4a14 5px, rgba(0,0,0,0) 6px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #fff1b8 0 2px, #d9a83c 2.5px 4.5px, #6b4a14 5px, rgba(0,0,0,0) 6px),
    radial-gradient(ellipse at 30% 20%, rgba(255,250,230,.55), rgba(255,250,230,0) 60%),
    radial-gradient(ellipse at 80% 90%, rgba(170,120,60,.16), rgba(170,120,60,0) 55%),
    #f1e2c0;
  border: 3px solid #4a3018; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #c99a3c, inset 0 0 26px rgba(130,85,30,.32), 0 4px 0 rgba(0,0,0,.45);
}
body.ui-c .sec-title {
  font-family: "LandJua", "Pretendard", "Malgun Gothic", sans-serif; font-weight: 400;
  font-size: 15px; color: #5a3a1c; border-left: 0; padding-left: 0; letter-spacing: 0;
  display: flex; align-items: center; gap: 7px;
}
body.ui-c .sec-title::before { content: ''; flex: none; width: 8px; height: 8px; background: #d9a83c; border: 1.5px solid #6b4a14; transform: rotate(45deg); }
body.ui-c .sec-title::after { content: ''; flex: 1; height: 1.5px; background: linear-gradient(90deg, #c99a3c, rgba(201,154,60,0)); }
body.ui-c .inv-head .sec-title { margin: 0; flex: 1; }

body.ui-c .ground-row, body.ui-c .equip-slot, body.ui-c .talent-row, body.ui-c .inv-row-item, body.ui-c .quest-card,
body.ui-c .rb-hero, body.ui-c .rb-col, body.ui-c .class-card, body.ui-c .shop-item, body.ui-c .rank-row, body.ui-c .att-cell, body.ui-c .rr-card, body.ui-c .encore-box {
  background: linear-gradient(180deg, #fbf3de, #f3e5c4); border: 1.5px solid #a9804c; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 2px 0 rgba(107,74,42,.3);
}
body.ui-c .ground-row.current { background: linear-gradient(180deg, #eef6d8, #dfecc0); border-color: #4c8a3a; }
body.ui-c .inv-row-item.up { border-color: #4c8a3a; }
body.ui-c .shop-item.on { background: linear-gradient(180deg, #f1e8fb, #e3d4f2); border-color: #7c5cae; }
body.ui-c .tier-card { background: linear-gradient(180deg, #fbe8b0, #f6e9c8 70%); border: 2px solid #8a5f1c; border-radius: 9px; box-shadow: inset 0 0 0 1.5px #f8dd90, 0 2px 0 rgba(107,74,42,.35); }
body.ui-c .demon-card { background: linear-gradient(135deg, #eadcf2, #f6ebd0 70%); border: 1.5px solid #7c4c9c; border-radius: 8px; }
body.ui-c .demon-name b { color: #6e3a9c; }
body.ui-c .gold-card { background: linear-gradient(135deg, #f8e2a0, #f6ebd0 70%); border: 1.5px solid #8a5f1c; border-radius: 8px; }
body.ui-c .legacy-card { background: linear-gradient(135deg, #e7dcf0, #f6ebd0 70%); border-color: #7c5cae; }
body.ui-c .hold-note { border: 1.5px dashed #8a5f1c; color: #7a4f08; }

/* 버튼 — 나무, 주요 버튼은 금박 */
body.ui-c .btn {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.09) 7px 8px),
    linear-gradient(180deg, #93683b, #5f3f20);
  color: #fbefd5; border: 2px solid #2e1d0e; border-radius: 8px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,225,170,.4), 0 2px 0 #1e1208; text-shadow: 0 1px 1px rgba(0,0,0,.6);
}
body.ui-c .btn:hover:not(:disabled) { border-color: #2e1d0e; filter: brightness(1.06); }
body.ui-c .btn.primary {
  background: linear-gradient(180deg, #fde7a2, #e0b04e 55%, #c18c2c); color: #3a2410; border-color: #5e3d0c;
  box-shadow: inset 0 1px 0 #fff6d0, 0 2px 0 #3d2706; text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
body.ui-c .btn.warn { background: linear-gradient(180deg, #a5462c, #6e2a18); color: #ffe3d6; }
body.ui-c .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 #1e1208; }
body.ui-c .btn.mini { border-radius: 6px; }
body.ui-c .enh-btn small { color: #ffd76a; }
body.ui-c .btn .statv, body.ui-c .btn b { color: inherit; }
body.ui-c .inv-tab.on { background: linear-gradient(180deg, #fde7a2, #d8a544); color: #3a2410; text-shadow: none; }
body.ui-c .sortbtn { color: #ffe08a; }

/* 토스트 — 두루마리 띠(양 끝에 말린 나무 축) */
body.ui-c .toast {
  position: relative; background: linear-gradient(180deg, #fbf1d6, #ead6a8); color: #3a2614;
  border: 0; border-top: 2px solid #6b4a2a; border-bottom: 2px solid #6b4a2a; border-radius: 2px;
  padding: 8px 24px; font-weight: 800; margin: 0 8px;
  box-shadow: inset 0 0 12px rgba(150,100,40,.25), 0 6px 16px rgba(0,0,0,.45);
}
body.ui-c .toast::before, body.ui-c .toast::after {
  content: ''; position: absolute; top: -6px; bottom: -6px; width: 11px; border-radius: 6px;
  background: linear-gradient(90deg, #6e4b29, #c99a5c 45%, #5f3f20); border: 1.5px solid #2e1d0e;
}
body.ui-c .toast::before { left: -8px; }
body.ui-c .toast::after { right: -8px; }
body.ui-c .toast.gold { background: linear-gradient(180deg, #fff1c4, #f0d17c); }
body.ui-c .toast.hot { background: linear-gradient(180deg, #fbe0d0, #eab89c); color: #7a2a10; }

body.ui-c .tip {
  background: linear-gradient(180deg, #fbf3dc, #eedcb2); color: #3a2614; border: 2.5px solid #4a3018; border-radius: 10px;
  font-weight: 700; box-shadow: inset 0 0 0 1.5px #c99a3c, 0 8px 20px rgba(0,0,0,.5);
}
body.ui-c .tip b { color: #a85a00; }
body.ui-c .tip::after { border-width: 9px; margin-left: -9px; }
body.ui-c .tip-above::after { border-top-color: #4a3018; }
body.ui-c .tip-below::after { border-bottom-color: #4a3018; }

body.ui-c .modal-backdrop { background: rgba(20,12,4,.65); }
body.ui-c .modal-box { border-width: 4px; border-radius: 12px; box-shadow: inset 0 0 0 2px #c99a3c, inset 0 0 30px rgba(130,85,30,.32), 0 0 0 2px #1e1208, 0 24px 50px rgba(0,0,0,.6); }
body.ui-c .modal-box h2 {
  text-align: center; font-family: "LandJua", "Pretendard", "Malgun Gothic", sans-serif; font-weight: 400; font-size: 21px;
  color: #4a2e12; padding: 2px 0 10px; margin-bottom: 12px; border-bottom: 2px solid #c99a3c;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
body.ui-c .modal-box h2::before, body.ui-c .modal-box h2::after { content: '◆'; color: #c99a3c; font-size: 10px; vertical-align: 4px; margin: 0 9px; }
body.ui-c .modal-actions { justify-content: center; }

/* ---------- B2: B 를 가라앉힌 판(사용자 "B 가 나은데 과한 부분이 있다") — 탭 색 머리띠·광택·굵은 테두리·둥근 알약을 걷어낸다 ---------- */
body.ui-b2 #topbar { border-width: 1.5px; border-color: #3f4766; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 rgba(0,0,0,.4); }
body.ui-b2 .exp-bar { border-width: 1.5px; border-color: #3f4766; height: 14px; }
body.ui-b2 .icon-btn { border-width: 1.5px; border-color: #4a5478; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 2px 0 #0d0f18; }
body.ui-b2 #stage { border-width: 1.5px; border-color: #3f4766; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
body.ui-b2 .tab-btn { --tc: #3d4566; --tcb: rgba(127,208,255,.22); border: 1.5px solid #3d4566; border-top-width: 1.5px; box-shadow: 0 2px 0 #0d0f18; font-weight: 700; }
body.ui-b2 .tab-btn.active { --tc: var(--accent); --tcb: rgba(127,208,255,.22); border-color: var(--accent); border-top: 3px solid var(--accent); box-shadow: 0 2px 0 #0d0f18, inset 0 1px 0 rgba(255,255,255,.12); }
body.ui-b2 .panel { border-width: 1.5px; border-color: #363d5c; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 rgba(0,0,0,.4); }
body.ui-b2 .sec-title { background: none; border-left-width: 3px; padding: 2px 8px; }
body.ui-b2 .ground-row, body.ui-b2 .equip-slot, body.ui-b2 .talent-row, body.ui-b2 .inv-row-item, body.ui-b2 .quest-card,
body.ui-b2 .rb-hero, body.ui-b2 .rb-col, body.ui-b2 .class-card, body.ui-b2 .shop-item, body.ui-b2 .rank-row, body.ui-b2 .att-cell, body.ui-b2 .rr-card {
  border-width: 1.5px; border-color: #3e4668; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.35);
}
body.ui-b2 .tier-card { border-width: 1.5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.35); }
body.ui-b2 .demon-card, body.ui-b2 .gold-card { border-width: 1.5px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 0 rgba(0,0,0,.35); }
body.ui-b2 .btn { border-width: 1.5px; border-color: #4f5a85; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #0d0f18; font-weight: 700; }
body.ui-b2 .btn.primary { background: linear-gradient(180deg, #3f8fd9, #2b6cb5); border-color: #6fb0e8; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 #163f69; text-shadow: none; }
body.ui-b2 .btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #0d0f18; }
body.ui-b2 .btn.mini { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #0d0f18; }
body.ui-b2 .toast { border-width: 1.5px; border-radius: 12px; padding: 8px 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
body.ui-b2 .toast.hot { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
body.ui-b2 .tip { border-width: 1.5px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.5); }
body.ui-b2 .tip::after { border-width: 8px; margin-left: -8px; }

/* ---------- 최종(기본) 스킨 ui-fin — B2 위에 사용자가 요소별로 고른 것(2026-10-22): 탭·버튼·모달 제목은 현재 꼴로 되돌리고 위 막대 겉 테두리만 B ---------- */
/* 겉 테두리 통일(사용자 2026-10-22 "UI 맨 끝 테두리는 통일") — 위 막대·무대·패널·모달 전부 1.5px #4d5780 · 16px. 안쪽 카드는 한 단 얇고 어둡게(#3e4668) */
body.ui-fin #topbar, body.ui-fin #stage, body.ui-fin .panel, body.ui-fin .modal-box { border: 1.5px solid #4d5780; border-radius: 16px; }
body.ui-fin .inv-tabs .btn { box-shadow: none; min-height: 0; padding: 4px 9px; }
body.ui-fin .inv-tabs .btn.inv-tab.on { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.12)), #3a2f12; border: 1.5px solid var(--gold); color: #ffd76a; } /* 고른 칸 — ui-fin 버튼 스타일이 .inv-tab.on 을 덮어 "무엇이 선택됐는지 구분이 안 된다"(사용자 2026-10-23) */
body.ui-fin .inv-tabs .btn.inv-tab.on small { color: #e6c873; }
/* ② 탭 줄: 현재 그대로 */
body.ui-fin .tab-btn { background: var(--panel); color: var(--dim); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 10px; font-size: 11px; font-weight: 700; box-shadow: none; }
body.ui-fin .tab-btn.active { color: var(--text); border-color: var(--accent); border-top-color: var(--accent); background: linear-gradient(180deg, #2c3140, var(--panel2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(127,208,255,.15); }
body.ui-fin .tab-btn .ico-ui { opacity: .7; filter: saturate(.6); }
body.ui-fin .tab-btn.active .ico-ui { opacity: 1; filter: none; }
/* ⑨ 버튼: 현재 그대로 */
body.ui-fin .btn { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.08)), var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); text-shadow: none; }
body.ui-fin .btn:hover:not(:disabled) { border-color: var(--accent); }
body.ui-fin .btn.primary { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.1)), #2b4a63; border-color: var(--accent); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.35); }
/* 📺 광고 버튼 — ⚡ 광고 버튼과 같은 금빛(2026-10-23) */
body.ui-fin .btn.ad, body.ui-fin .btn.ad.primary { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.12)), #3a2f12; border-color: var(--gold); color: #ffd76a; box-shadow: inset 0 1px 0 rgba(255,235,170,.18), 0 2px 6px rgba(0,0,0,.35); }
body.ui-fin .btn.ad:disabled { opacity: .45; }
body.ui-fin .btn.warn { background: var(--panel); border-color: rgba(255,125,125,.4); color: var(--bad); }
body.ui-fin .btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(0,0,0,.3); }
body.ui-fin .btn.mini { border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
/* ⑧ 모달: 현재 꼴(머리띠 없음·제목 왼쪽) + 테두리만 */
body.ui-fin .modal-box { border: 1.5px solid #4d5780; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
body.ui-fin .enh-box { background: var(--panel); border: 1.5px solid #4d5780; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.6); } /* 강화 창·캐릭터 창도 모달과 같은 판(2026-10-23 사용자 "팝업 결을 맞추고 싶다") */
body.ui-fin .modal-box h2 { margin: 0 0 10px; padding: 0; text-align: left; font-size: 17px; background: none; border-bottom: none; border-radius: 0; text-shadow: none; }
body.ui-fin .modal-actions { justify-content: flex-end; }

/* 스킬북 교환 카드 설명 줄은 숨긴다(사용자 2026-10-23 "설명 없어도 될 것 같아") — 템플릿 열쇠(번역)를 안 바꾸려고 CSS 로 */
.bookx-card .demon-sub { display: none; }

/* 출석 카드 설명 줄 숨김(사용자 2026-10-23 "설명 필요 없을 것 같아") — 받기/보기 버튼이 상태를 말한다 */
.att-card .quest-sub { display: none; }

/* 환생 탭 아래 긴 안내 묶음(특성·장비 티어·균열·숙련·단계) 숨김(사용자 2026-10-23 "이 설명도 필요 없을 것 같아") */
#panel-rebirth .rb-note { display: none; }

/* 주간 토벌 카드 설명 줄(잠김 안내·보상 목록) 숨김(사용자 2026-10-23) — 완료(.done) 상태 줄은 남긴다 */
.demon-card:not(.done) .demon-sub { display: none; }

/* 정보 탭 직업 카드의 "주력기·광역기·숙련 — 환생 때 무료 전직" 줄과 설정 창 맨 아래 저장 안내 숨김(사용자 2026-10-23) */
.info-cls .sub { display: none; }
.set-row ~ .modal-note { display: none; }

/* 브랜드 아이콘은 Gemini 차원 포탈 그림(2026-10-23 사용자가 후보 6 중 1번) — 🌀 이모지 자리 */
.brand .brand-img { width: 24px; height: 24px; display: block; border-radius: 50%; }

/* 무대 위 칩·버튼도 ui-fin 결로(2026-10-23 사용자 "과업 완료랑 필살기 발동도 테마에 맞게") — 금테 남색 판(.btn.ad 와 같은 색) */
body.ui-fin #questChip { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.1)), var(--panel); border: 1.5px solid #4d5780; border-radius: 10px; color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
body.ui-fin #questChip.done { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.12)), #3a2f12; border-color: var(--gold); color: #ffd76a; animation: chipGlowFin 1.6s infinite; }
/* 설정 ⚙️ 의 loginPulse 와 같은 빛(2026-10-23 사용자 "설정처럼 은은하게"). 50% 만 적으면 버튼 자체 그림자(inset 하이라이트)와 섞이지 못해 중간에 뚝 바뀌어 깜빡였다 — 처음·끝·가운데를 같은 꼴의 그림자로 다 적는다 */
@keyframes chipGlowFin {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,215,106,.18), 0 0 8px rgba(255,215,106,.3), 0 2px 6px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 0 0 2px rgba(255,215,106,.45), 0 0 16px rgba(255,215,106,.7), 0 2px 6px rgba(0,0,0,.35); }
}
body.ui-fin #ultBtn { border: 1.5px solid #4d5780; background: radial-gradient(circle at 50% 30%, #2c3140, var(--panel)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.4); }
body.ui-fin #ultBtn.ready { border-color: var(--gold); background: radial-gradient(circle at 50% 30%, #5a4716, #2a2110); animation: ultGlowFin 1s infinite; box-shadow: 0 0 14px rgba(255,215,106,.45); }
@keyframes ultGlowFin { 50% { box-shadow: 0 0 22px rgba(255,215,106,.75); filter: brightness(1.15); } } /* scale 1.25 맥동 대신 빛만 — 원이 커졌다 작아지면 테마와 따로 논다 */
body.ui-fin #ultBtn.active { border-color: var(--hot); background: radial-gradient(circle at 50% 30%, #6a3418, #2a1810); box-shadow: 0 0 14px rgba(255,138,92,.5); }
body.ui-fin #ultBtn.adready { border-color: var(--gold); background: radial-gradient(circle at 50% 30%, #3a2f12, #221b0c) !important; box-shadow: 0 0 10px rgba(255,215,106,.3); }
/* 환생 버튼 — scale 1.25 맥동이 "너무 커진다"(사용자). 크기는 그대로 두고 빛만, 색도 주황 띠 대신 금테 남색 */
body.ui-fin .rb-btn { padding: 10px; font-size: 14px; border-radius: 10px; }
body.ui-fin .rb-btn.ready { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(0,0,0,.12)), #3a2f12; border: 1.5px solid var(--gold); color: #ffd76a; animation: chipGlowFin 1.6s infinite; box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* ---------- 장비 정보 카드 — 디아블로 3/4 · PoE · 던파 문법(2026-10-23 사용자 "접사 많은 게임들 어떻게 표시하는지 참고") ----------
   아이콘·이름(+강화 금색)·칩 줄 / 주 수치 표(라벨 왼쪽·값 오른쪽) / 구분선 / 속성 목록(한 줄에 하나) / 세트(켜진 줄만 밝게) / 착용 조건 */
.icard { text-align: left; }
.ic-head { display: flex; gap: 10px; align-items: center; }
.ic-ico { flex: none; width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ic-title { flex: 1; min-width: 0; }
.ic-name { font-size: 16px; font-weight: 800; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
.ic-plus { color: var(--gold); margin-left: 4px; text-shadow: 0 0 6px rgba(255,215,106,.35); }
.ic-up { color: var(--good); font-size: 13px; margin-left: 4px; }
.ic-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ic-chip { font-size: 11px; font-weight: 700; color: var(--dim); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; line-height: 18px; white-space: nowrap; }
.ic-chip.hi { color: var(--gold); border-color: rgba(255,215,106,.5); }
.ic-chip.lo { color: #8a93a8; }
.ic-warn { font-size: 12px; font-weight: 700; color: var(--bad); margin-top: 8px; }
.ic-stats { margin-top: 10px; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.ic-st { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; padding: 2px 0; }
.ic-st .ic-l { color: var(--dim); }
.ic-st .statv { font-size: 14px; }
.ic-st.main .ic-l { color: var(--text); font-weight: 700; }
.ic-st.main .statv { font-size: 20px; }
.ic-bar { margin-top: 8px; }
.ic-sep { height: 1px; margin: 10px 0 4px; background: linear-gradient(90deg, rgba(77,87,128,0), #4d5780 15%, #4d5780 85%, rgba(77,87,128,0)); }
.ic-h { font-size: 11px; font-weight: 800; color: var(--dim); letter-spacing: .03em; margin: 6px 0 1px; }
.ic-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; line-height: 1.45; padding: 1px 0; }
.ic-row .ic-l { min-width: 0; overflow-wrap: anywhere; }
.ic-row .ic-v { flex: none; max-width: 62%; font-weight: 800; text-align: right; }
.ic-row .ic-v small { font-weight: 600; font-size: 10.5px; color: var(--dim); margin-left: 5px; white-space: nowrap; }
.ic-row.afx { color: #8fd0a8; }
.ic-row.kind { color: #b9c4d6; }
.ic-row.uniq { color: var(--r-legend); }
.ic-row.mark { color: #c9a4ff; }
.ic-row.mark .ic-v { font-weight: 600; font-size: 11.5px; }
.ic-set { margin-top: 10px; border: 1px solid rgba(77,227,208,.35); border-radius: 10px; padding: 7px 10px; background: rgba(77,227,208,.05); }
.ic-set-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; color: #4de3d0; margin-bottom: 3px; }
.ic-set-r { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; padding: 1px 0; color: #6a7388; }
.ic-set-r .ic-sn { flex: none; min-width: 34px; font-weight: 800; }
.ic-set-r .ic-sd { min-width: 0; overflow-wrap: anywhere; }
.ic-set-r.on { color: #4de3d0; }
.ic-src { font-size: 11px; color: var(--dim); margin-top: 4px; }
.ic-req { margin-top: 10px; font-size: 12.5px; font-weight: 700; }
.ic-req.ok { color: var(--good); }
.ic-req.no { color: var(--bad); }
.ic-req.na { color: var(--dim); }
.ic-foot { margin-top: 6px; font-size: 11.5px; color: var(--dim); line-height: 1.5; }

/* 비교 — 표 하나(라벨 · 착용 중 · 이 장비), 나아지면 초록 ▲ · 나빠지면 빨강 ▼ */
.cmp2 { margin: 12px 0 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 4px; background: rgba(255,255,255,.03); }
.cmp2-g { display: grid; grid-template-columns: minmax(52px, 0.75fr) 1fr 1fr; column-gap: 8px; row-gap: 2px; align-items: baseline; } /* 1fr 84px 84px 는 두 값 칸이 오른쪽에 몰렸다(사용자 2026-10-23 "한쪽에 몰려 있어 이상") — 세 칸을 고르게 */
.cmp2-v { text-align: center; display: block; }
.cmp2-t { font-size: 11px; font-weight: 800; color: var(--dim); text-align: center; }
.cmp2-it { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 2px 0 6px; align-self: start; }
.cmp2-ico { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; }
.cmp2-n { font-size: 11px; font-weight: 700; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
.cmp2-n .ic-plus { margin-left: 2px; }
.cmp2-s { font-size: 10px; color: var(--dim); }
.cmp2-l { font-size: 12px; color: var(--dim); overflow-wrap: anywhere; text-align: left; }
.cmp2-l.afx { color: #8fd0a8; }
.cmp2-v { font-size: 12.5px; font-weight: 800; text-align: center; white-space: nowrap; } /* right 는 두 값이 오른쪽 끝에 몰려 표로 안 읽혔다(사용자 2026-10-23) — 머리글·그림과 같은 세로선에 */
.cmp2-v.dim { color: var(--dim); font-weight: 600; }
.cmp2-v.up { color: var(--good); }
.cmp2-v.down { color: var(--bad); }
.cmp2-sep { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 4px 0; }
.cmp2 .cmp-verdict { margin: 6px 0 4px; }

/* 설정 창 — ui-fin 결(2026-10-23 사용자 "설정 창도 통일이 필요"): 섹션마다 판 하나, 줄은 라벨 왼쪽 · 버튼 오른쪽 */
.set-group { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 10px; padding: 2px 10px; }
.set-group .set-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; border-top: 1px solid rgba(77,87,128,.35); }
.set-group .set-row:first-child { border-top: none; }
.set-group .set-lbl { min-width: 0; line-height: 1.35; overflow-wrap: anywhere; }
.set-group .set-lbl small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 1px; }
.set-group .set-row .btn { min-width: 64px; min-height: 34px; padding: 6px 12px; font-size: 12.5px; }
.set-group .set-row .set-tgl { min-width: 58px; }
.set-group .set-row.need-login { margin: 4px -6px; padding: 8px 6px; border: 1px solid var(--gold); border-radius: 8px; background: rgba(255,215,106,.06); }
.set-group .set-row.need-login + .set-row { border-top: none; }
.set-group .set-row.need-login .set-lbl small { color: var(--gold); }

/* 설정 — 소리 크기 막대(2026-10-29) */
.set-vol { display: inline-flex; align-items: center; gap: 8px; }
.set-vol input[type=range] { width: 120px; accent-color: #d6b05c; }
.set-vol b { min-width: 38px; text-align: right; font-size: 12px; color: var(--sub, #9aa3c2); font-weight: 600; }
/* 궁극기 버튼 B안 — 남색 원 + 금테 두 줄 + 큰 번개, 글자는 아래 알약(사용자 2026-10-29 후보 셋 중 B) */
body.ui-fin #ultBtn, body.ui-fin #ultBtn.ready, body.ui-fin #ultBtn.active, body.ui-fin #ultBtn.adready {
  width: 62px; height: 62px; border-radius: 50%; border: 2.5px solid #d6b05c; background: #1b2140 !important; overflow: visible; padding: 0;
  box-shadow: inset 0 0 0 2px #1b2140, inset 0 0 0 3.5px rgba(214,176,92,.5), 0 2px 6px rgba(0,0,0,.45); justify-content: center;
}
body.ui-fin #ultBtn > .eico { width: 30px; height: 30px; filter: drop-shadow(0 0 4px rgba(255,215,106,.6)); }
body.ui-fin #ultBtn > span { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 9px; background: #141826; border: 1px solid #d6b05c; color: #ffd76a; font-size: 10px; }
body.ui-fin #ultBtn:not(.ready):not(.active):not(.adready) { border-color: #6b6247; }
body.ui-fin #ultBtn:not(.ready):not(.active):not(.adready) > .eico { filter: saturate(.4) brightness(.75); }
body.ui-fin #ultBtn:not(.ready):not(.active):not(.adready) > span { border-color: #4d5780; color: #cfd6ee; }
body.ui-fin #ultBtn.ready { animation: ultGlowFin 1s infinite; box-shadow: inset 0 0 0 2px #1b2140, inset 0 0 0 3.5px rgba(214,176,92,.5), 0 0 14px rgba(255,215,106,.55); }
body.ui-fin #ultBtn.active { border-color: #ffd76a; box-shadow: inset 0 0 0 2px #1b2140, inset 0 0 0 3.5px rgba(255,215,106,.7), 0 0 18px rgba(255,215,106,.7); } /* 켜져 있을 때 — 주황 대신 밝은 금빛(사용자 2026-10-29). 준비됨(깜빡임)과는 빛이 멈춰 있는 것으로 가른다 */
body.ui-fin #ultBtn.active > span { border-color: #ffd76a; color: #ffd76a; }
/* 궁극기 — 가만히 있을 때(게이지 차는 중·📺 5분)는 금테 없이 남색 테두리만, 빛나는 건 쓸 수 있을 때·켜졌을 때뿐(사용자 2026-10-29) */
body.ui-fin #ultBtn:not(.ready):not(.active), body.ui-fin #ultBtn.adready:not(.active) { border-color: #4d5780; box-shadow: inset 0 0 0 2px #1b2140, inset 0 0 0 3.5px rgba(77,87,128,.5), 0 2px 6px rgba(0,0,0,.45); }
body.ui-fin #ultBtn:not(.ready):not(.active) > span { border-color: #4d5780; color: #cfd6ee; }
/* 더 좋은 장비가 가방에 있을 때 장비 탭 — 금빛 맥동(사용자 2026-10-29) */
.tab-btn.attn { border-color: var(--gold); animation: loginPulse 1.2s ease-in-out infinite; }
body.ui-fin #ultBtn.free.adready:not(.active):not(.ready) { border-color: #d6b05c; animation: ultGlowFin 1s infinite; box-shadow: inset 0 0 0 2px #1b2140, inset 0 0 0 3.5px rgba(214,176,92,.5), 0 0 14px rgba(255,215,106,.55); }
body.ui-fin #ultBtn.free.adready:not(.active):not(.ready) > span { border-color: #d6b05c; color: #ffd76a; }
body.ui-fin #ultBtn.free.adready:not(.active):not(.ready) > .eico { filter: drop-shadow(0 0 4px rgba(255,215,106,.6)); }
/* 과업 '상점 나들이' 안내 — 위 막대 🛒 깜빡임(사용자 2026-10-29) */
#shopBtn.attn { border-color: var(--gold); animation: loginPulse 1.2s ease-in-out infinite; }

/* ── 실시간 채팅 (2026-10-31) — 아래에서 올라오는 판. 모달(50)보다 아래라 신고 확인·닉네임 창이 위에 뜬다 ── */
#chatBtn { position: relative; }
#chatBtn.has-unread::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 2px #14161d; }
.chat-root { position: fixed; inset: 0; z-index: 48; display: flex; align-items: flex-end; justify-content: center; }
.chat-root.hidden { display: none; }
body .modal-box.notice-mode, body.ui-fin .modal-box.notice-mode { border: 2px solid #d6b05c; background: linear-gradient(180deg, #232a52 0%, #151a33 38%); box-shadow: 0 0 0 1px #4d5780 inset, 0 10px 40px rgba(0, 0, 0, .6), 0 0 24px rgba(214, 176, 92, .25); padding-top: 14px; }
.modal-box.notice-mode #modalTitle { display: none; }
.notice-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.notice-ico { width: 54px; height: 54px; border-radius: 12px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.notice-tag { font-size: 11px; letter-spacing: .2em; color: #d6b05c; opacity: .85; }
.notice-tag::before, .notice-tag::after { content: '—'; margin: 0 8px; opacity: .6; }
.notice-list { max-height: 58vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 2px; }
.notice-title { text-align: center; font-size: 17px; font-weight: 800; color: #ffd36b; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); margin: 2px 0 8px; word-break: keep-all; }
.notice-body { font-size: 14px; line-height: 1.65; text-align: left; white-space: normal; word-break: keep-all; color: #e6e8f6; background: rgba(8, 11, 26, .55); border: 1px solid #3a4470; border-left: 3px solid #d6b05c; border-radius: 10px; padding: 12px 14px; }
.modal-box.notice-mode .modal-actions { justify-content: center; }
.modal-box.notice-mode .modal-actions .btn { min-width: 120px; }
.chat-root.docked { bottom: 0; }
.chat-root.docked .chat-back { display: none; }
.chat-root.docked .chat-box { height: 100%; border-radius: 14px 14px 0 0; }
.chat-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.chat-box { position: relative; width: min(520px, 100vw); height: min(72dvh, 640px); background: #151a33; border: 2px solid #4d5780; border-bottom: none; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #2c3354; }
.chat-tabs { display: flex; gap: 6px; flex: 1; min-width: 0; }
.chat-tabs button, .chat-x, .chat-blk { background: #1e2442; color: #c9cdf0; border: 1.5px solid #3a4268; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.chat-tabs button.on { background: linear-gradient(#ffd96a, #f0a52a); color: #3a1e0a; border-color: #e8b84a; }
.chat-x, .chat-blk { padding: 7px 10px; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.chat-empty { margin: auto; color: #7c84a8; font-size: 13px; text-align: center; padding: 20px; }
.cm-act { display: flex; gap: 6px; margin-top: 7px; }
.cm-act .btn { font-size: 12.5px; padding: 6px 10px; }
.cm-sys { word-break: keep-all; text-align: center; font-size: 12.5px; color: #ffd36b; background: rgba(255, 211, 107, .08); border: 1px solid rgba(255, 211, 107, .25); border-radius: 8px; padding: 5px 8px; }
.chat-foot { display: flex; gap: 6px; align-items: center; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #2c3354; }
.chat-foot input { flex: 1; min-width: 0; background: #0f1328; border: 1.5px solid #4d5780; border-radius: 10px; color: #fff; padding: 10px 11px; font: inherit; font-size: 15px; }
.chat-foot .btn { flex: none; }
.chat-note { flex: 1; font-size: 13px; color: #aab0d0; }
.chat-rules { margin: 6px 0 8px 18px; padding: 0; font-size: 13.5px; line-height: 1.6; }

/* ── 파티 레이드 (2026-10-31) ── */
.raid-card { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 10px; padding: 10px 12px; background: linear-gradient(90deg, #3a1f4a, #1b2140); border: 2px solid #e8b84a; border-radius: 14px; color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 14px rgba(232, 184, 74, .25); }
.raid-card-i { font-size: 26px; }
.raid-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.raid-card-t b { font-size: 15px; color: #ffd36b; }
.raid-card-t small { font-size: 12px; color: #c9cdf0; }
.raid-card.soon { cursor: default; filter: saturate(.75); box-shadow: none; }
.raid-card.soon .raid-card-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.raid-card.soon .raid-card-go { color: #9aa0c8; }
.raid-card-go { font-size: 13px; color: #ffd36b; white-space: nowrap; }
.raid-root { position: fixed; inset: 0; z-index: 49; display: flex; align-items: stretch; justify-content: center; background: rgba(5, 6, 20, .7); }
.raid-root.hidden { display: none; }
.raid-root { word-break: keep-all; overflow-wrap: anywhere; } /* 단어 중간에서 꺾이지 않게 — 다른 언어는 html:not([lang="ko"]) 규칙이 되돌린다 */
.rd-nameline { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #aab0d0; }
.rd-nameline .btn { flex: none; padding: 4px 10px; font-size: 12px; }
.raid-box { width: min(520px, 100vw); display: flex; flex-direction: column; background: #121733; border-left: 2px solid #4d5780; border-right: 2px solid #4d5780; }
.raid-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px calc(10px); padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid #2c3354; }
.raid-head b { font-size: 16px; color: #ffd36b; }
.raid-x { background: #1e2442; color: #c9cdf0; border: 1.5px solid #3a4268; border-radius: 10px; padding: 6px 11px; font: inherit; cursor: pointer; }
.raid-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.rd-intro { font-size: 13px; color: #aab0d0; line-height: 1.5; }
.rd-make { width: 100%; }
.rd-list { display: flex; flex-direction: column; gap: 8px; }
.rd-empty { color: #7c84a8; font-size: 13px; text-align: center; padding: 16px; }
.rd-row { display: flex; align-items: center; gap: 10px; background: #1b2140; border: 1.5px solid #3a4268; border-radius: 12px; padding: 8px 10px; }
.rd-faces { display: flex; gap: 2px; flex: none; }
.rd-faces img { width: 26px; height: 26px; border-radius: 50%; }
.rd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-info small { font-size: 12px; color: #aab0d0; }
.rd-boss { font-size: 14px; color: #ffd36b; }
.rd-boss small { color: #aab0d0; font-size: 12px; margin-left: 4px; }
.rd-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rd-slot { display: flex; align-items: center; gap: 7px; background: #1b2140; border: 1.5px solid #3a4268; border-radius: 12px; padding: 7px 8px; position: relative; min-height: 58px; }
.rd-slot.me { border-color: #e8b84a; }
.rd-slot.empty { justify-content: center; color: #5c6488; font-size: 13px; border-style: dashed; }
.rd-slot img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.rd-slot-i { min-width: 0; display: flex; flex-direction: column; }
.rd-slot-i b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-slot-i small { font-size: 11px; color: #aab0d0; }
.rd-sk { font-size: 13px; }
.rd-ready { position: absolute; left: 3px; bottom: 2px; width: 44px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; font-style: normal; font-size: 10px; line-height: 1.3; color: #7c84a8; }
.rd-ready.on { color: #5fd36a; }
.rd-ready.host { color: #ffd36b; }
.rd-pick { display: flex; flex-direction: column; gap: 6px; }
.rd-pick-h { font-size: 13px; color: #ffd36b; }
.rd-opt { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; background: #1b2140; border: 1.5px solid #3a4268; border-radius: 10px; padding: 7px 9px; color: #fff; font: inherit; cursor: pointer; }
.rd-opt span { grid-row: 1 / 3; font-size: 20px; text-align: center; }
.rd-opt b { font-size: 13.5px; }
.rd-opt small { font-size: 11.5px; color: #aab0d0; }
.rd-opt.on { border-color: #e8b84a; background: #2a2752; }
.rd-opt:disabled { opacity: .6; }
.rd-acts { display: flex; gap: 8px; }
.rd-acts .btn { flex: 1; }
.rd-note { flex: 1; font-size: 12.5px; color: #aab0d0; align-self: center; }
.rd-chat { display: flex; flex-direction: column; gap: 6px; background: #0f1328; border: 1.5px solid #2c3354; border-radius: 12px; padding: 8px; }
.rd-chat-list { height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rd-cm b { color: #ffd36b; margin-right: 4px; }
.rd-chat-in { display: flex; gap: 6px; }
.rd-chat-in input { flex: 1; min-width: 0; background: #151a33; border: 1.5px solid #4d5780; border-radius: 9px; color: #fff; padding: 8px 10px; font: inherit; font-size: 14px; }
.rd-fight { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.rd-fight canvas { flex: 1; width: 100%; min-height: 360px; border-radius: 14px; border: 2px solid #4d5780; touch-action: none; }
.rd-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rd-skb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; background: linear-gradient(#2a2f58, #1b2140); border: 2px solid #e8b84a; border-radius: 12px; color: #fff; font: inherit; cursor: pointer; overflow: hidden; }
.rd-skb span { font-size: 22px; }
.rd-skb b { font-size: 12.5px; }
.rd-skb.cool { filter: grayscale(.8) brightness(.6); border-color: #4d5780; }
.rd-cd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 22px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px #000; pointer-events: none; }
.rd-result { display: flex; flex-direction: column; gap: 12px; }
.rd-res-big { font-size: 20px; text-align: center; color: #ffd36b; margin-top: 10px; }
.rd-reward { text-align: center; font-size: 15px; background: rgba(255, 211, 107, .08); border: 1px solid rgba(255, 211, 107, .3); border-radius: 10px; padding: 8px; }
.rd-res-list { display: flex; flex-direction: column; gap: 6px; }
.rd-res-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: #1b2140; border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.rd-res-row img { width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
/* 레이드 2차: ◀ ▶ 이동 + 특수 스킬 3개(2026-10-31) */
.rd-ctl { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: stretch; }
.rd-mv { background: linear-gradient(#2a2f58, #1b2140); border: 2px solid #4d5780; border-radius: 12px; color: #ffd36b; font-size: 22px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.rd-mv:active { background: #3a3f78; border-color: #e8b84a; }
.rd-ctl .rd-skills { gap: 6px; }
.rd-skb { user-select: none; -webkit-user-select: none; touch-action: manipulation; }
div.rd-opt { cursor: default; }
.rd-note2 { font-size: 11.5px; color: #8f97c0; }
.rd-ctl { grid-template-columns: 48px 1fr 48px; gap: 6px; }
.rd-ctl .rd-skb { padding: 7px 2px; }
.rd-ctl .rd-skb b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rd-ctl .rd-skb span { font-size: 20px; }

/* 채팅 줄 — 던파식 한 줄(사용자 2026-11-01): 작은 직업 얼굴 · 이름 : 메시지 · 시각(끝에 작게). 내 줄은 금색 이름 + 옅은 금빛 배경 */
.cm { display: block; padding: 2px 6px; border-radius: 6px; font-size: 13.5px; line-height: 1.45; color: #eef0fb; word-break: break-word; overflow-wrap: anywhere; cursor: pointer; }
.cm.me { background: rgba(255, 211, 107, .09); }
.cm-ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.cm-ico img { width: 16px; height: 16px; border-radius: 50%; }
.cm-n { font-size: 13px; font-weight: 700; color: #8fc3ff; }
.cm-n::after { content: " :"; color: #7c84a8; font-weight: 400; }
.cm.me .cm-n { color: #ffd36b; }
.cm-m { margin-left: 4px; }
.cm-t { font-size: 10.5px; color: #6c7398; margin-left: 6px; white-space: nowrap; }
.cm-act { display: flex; gap: 6px; margin: 5px 0 3px; }
.cm-act .btn { font-size: 12.5px; padding: 5px 10px; }
.cm-sys { word-break: keep-all; font-size: 12.5px; line-height: 1.45; color: #ffd36b; padding: 2px 6px; background: none; border: none; border-radius: 0; text-align: left; }
.chat-list { gap: 2px; padding: 6px 6px; }
.chat-root.docked .chat-head { padding: 5px 8px; }
.chat-root.docked .chat-tabs button, .chat-root.docked .chat-x, .chat-root.docked .chat-blk { padding: 5px 10px; font-size: 12.5px; }
.chat-root.docked .chat-foot { padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
.chat-root.docked .chat-foot input { padding: 7px 10px; font-size: 14px; }
/* 내 말은 오른쪽(사용자 2026-11-01 "내 말을 우측에 두면 둘 다 잡는 것") — 한 줄 밀도는 그대로, 얼굴·이름은 빼고 금빛 글로 */
.cm.me { text-align: right; background: none; padding-left: 40px; }
.cm.me .cm-ico, .cm.me .cm-n { display: none; }
.cm.me .cm-m { margin-left: 0; color: #ffffff; }
/* 레이드 전투 중 파티 채팅 — 짧게(최근 세 줄) 두어 전투 화면을 덜 먹는다 */
.rd-chat.fight { gap: 4px; padding: 5px 6px; border-radius: 10px; }
.rd-chat.fight .rd-chat-list { height: 56px; gap: 1px; font-size: 12.5px; line-height: 1.35; }
.rd-chat.fight .rd-chat-in input { padding: 6px 9px; font-size: 13px; }
.rd-chat.fight .rd-chat-in .btn { padding: 6px 10px; font-size: 12.5px; }
.rd-chat.fight .rd-empty { font-size: 12px; padding: 4px 0; }
.rd-fight canvas { min-height: 300px; }
body.raid-open #toastRoot { top: 64px; bottom: auto; }

/* 채팅 번역 줄 — 원문 바로 아래 작게 */
.cm-tr { font-size: 12.5px; line-height: 1.4; color: #9fd0ff; padding: 1px 0 2px 20px; }
.cm.me .cm-tr { padding-left: 0; }
.cp-ok { color: #8fe08f; font-weight: 700; margin-bottom: 6px; }
/* 공지 속 쿠폰 코드 — 눌러서 복사 */
.cp-copy { display: inline-block; font: inherit; font-weight: 800; letter-spacing: .03em; color: #ffd36b; background: rgba(255, 211, 107, .1); border: 1px dashed #d6b05c; border-radius: 6px; padding: 0 6px; margin: 1px 0; cursor: pointer; }
.cp-copy::after { content: ' 📋'; font-size: 11px; }
.cp-copy:active { background: rgba(255, 211, 107, .3); }
/* 레이드 창을 게임 창 크기의 카드로(사용자 2026-11-01 "창 가득 차 보인다") — 화면을 다 덮던 세로 기둥 → 가운데 카드, 높이는 내용만큼(넘치면 안에서 스크롤) */
.raid-root { align-items: center; padding: 12px; }
.raid-box { width: min(420px, 100%); max-height: calc(100dvh - 24px); border: 2px solid #4d5780; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.raid-head { padding: 8px 12px; }
.raid-body { flex: 0 1 auto; padding: 10px; gap: 8px; }
.rd-fight { flex: none; }
.rd-fight canvas { flex: none; min-height: 0; aspect-ratio: 5 / 4; height: auto; }

/* 채팅 이름 앞 순위 — 1~3위는 금·은·동 */
.cm-rk { display: inline-block; font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 4px; margin-right: 3px; border-radius: 4px; vertical-align: 1px; color: #c9cdf0; background: #232a52; border: 1px solid #3a4268; }
.cm-rk.r1 { color: #3a2a00; background: #ffd36b; border-color: #e8b84a; }
.cm-rk.r2 { color: #23272f; background: #d6dbe6; border-color: #aab2c2; }
.cm-rk.r3 { color: #2e1a0a; background: #e0a06a; border-color: #b97a48; }
/* 채팅 줄 맞춤(사용자 2026-11-01 "아이콘·국가·이름 정렬") — 얼굴·순위·국기·이름을 한 줄 가운데선에 맞춘다. 줄 높이를 고정해 글자 크기가 달라도 들썩이지 않게 */
.cm { line-height: 20px; }
.cm-ico { width: 18px; height: 18px; vertical-align: middle; margin: -2px 4px 0 0; }
.cm-ico img { width: 18px; height: 18px; display: block; }
.cm-rk { vertical-align: middle; margin-top: -2px; }
.cm-cc { display: inline-block; font-size: 10px; font-weight: 800; line-height: 1; padding: 2px 3px; margin-right: 3px; border-radius: 3px; color: #9aa0c8; background: rgba(255, 255, 255, .06); vertical-align: middle; margin-top: -2px; }
.cm-n, .cm-m, .cm-t { vertical-align: middle; }
/* 얼굴은 왼쪽 칸, 순위·국기·이름·글·시각은 오른쪽 칸에서 이어진다 — 줄이 넘어가도 얼굴 아래로 안 들어간다 */
.cm:not(.me) { display: flex; flex-wrap: wrap; align-items: flex-start; }
.cm:not(.me) .cm-ico { flex: none; margin: 1px 5px 0 0; }
.cm-txt { flex: 1; min-width: 0; }
.cm:not(.me) .cm-tr, .cm:not(.me) .cm-act { flex-basis: 100%; padding-left: 23px; }
.cm-sys { padding-left: 26px; text-indent: -20px; }

/* 파티 레이드 전투 — 평소 게임 화면처럼 위에서 내려다보는 무대 + 아래 판(시안 app-land/design/raid-mock.html, 2026-11-04) */
.rd-brand { width: 24px; height: 24px; border-radius: 50%; flex: none; margin-right: 8px; display: none; }
.rd-pill { display: none; margin-left: auto; margin-right: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #1e2442; border: 1px solid #4d5780; color: #eef0fb; white-space: nowrap; }
.rd-pill.enr { background: #5a1420; border-color: #d04050; color: #ffd2d2; }
.raid-head { justify-content: flex-start; }
.raid-head .raid-x { margin-left: auto; }
.raid-box.fight .rd-pill { display: inline-block; }
.raid-box.fight .rd-brand { display: block; }
.raid-box.fight .raid-head { background: linear-gradient(90deg, #2a1240, #151a33); padding: 6px 10px; }
.raid-box.fight .raid-head b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.raid-box.fight .raid-x { margin-left: 0; padding: 3px 8px; font-size: 12px; }
.raid-box.fight .raid-body { padding: 6px; gap: 6px; }
.rd-fight { display: flex; flex-direction: column; gap: 6px; }
.rd-fight canvas { flex: none; display: block; width: 100%; height: min(86vw, 44dvh, 360px); min-height: 0; aspect-ratio: auto; border: 1.5px solid #4d5780; border-radius: 14px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.rd-pan { display: flex; flex-direction: column; gap: 6px; background: #151a33; border: 1.5px solid #4d5780; border-radius: 14px; padding: 7px; }
.rd-bossrow { display: flex; align-items: center; gap: 8px; }
.rd-bossrow img { width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid #8a5ad8; object-fit: cover; object-position: top; background: #1b1036; flex: none; }
.rd-bhpw { flex: 1; min-width: 0; }
.rd-bnm { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; margin-bottom: 3px; }
.rd-bnm b { color: #e8c6ff; }
.rd-bnm span { color: #9aa0c8; white-space: nowrap; }
.rd-bhp { height: 12px; border-radius: 6px; background: #2a1020; border: 1px solid #6a2a40; position: relative; overflow: hidden; }
.rd-bhp i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(#ff6a7a, #b31d38); }
.rd-bhp s { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .35); }
.rd-next { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9aa0c8; white-space: nowrap; overflow: hidden; min-height: 20px; }
.rd-chip { padding: 2px 6px; font-size: 10.5px; border-radius: 999px; background: #1e2442; border: 1px solid #3a4268; color: #eef0fb; white-space: nowrap; }
.rd-chip.now { border-color: #d04050; background: #3a1020; color: #ffd2d2; }
.rd-fight .rd-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rd-fight .rd-skb { position: relative; display: block; min-width: 0; background: linear-gradient(#232a52, #1b2140); border: 1.5px solid #3a4268; border-radius: 13px; padding: 6px 3px 5px; text-align: center; overflow: hidden; color: #eef0fb; font: inherit; cursor: pointer; filter: none; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.rd-fight .rd-skb.ready { border-color: #e8b84a; }
.rd-fight .rd-skb.cool { filter: none; }
.rd-fight .rd-skb.hint { border-color: #ffd36b; box-shadow: 0 0 0 2px rgba(255, 211, 107, .5), 0 0 14px rgba(255, 211, 107, .55); animation: rdHint 1.1s ease-in-out infinite; }
@keyframes rdHint { 50% { box-shadow: 0 0 0 2px rgba(255, 211, 107, .9), 0 0 20px rgba(255, 211, 107, .8); } }
.rd-fight .rd-skb img { display: block; width: 36px; height: 36px; margin: 0 auto; object-fit: contain; }
.rd-fight .rd-skb b { display: block; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-fight .rd-skb small { display: block; font-size: 10px; color: #9aa0c8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-tag { position: absolute; top: 3px; left: 3px; font-size: 9.5px; font-weight: 800; padding: 1px 4px; border-radius: 5px; background: #3a2a10; color: #ffd36b; border: 1px solid #8a6a2a; white-space: nowrap; z-index: 1; }
.rd-fight .rd-cd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 4px #000; pointer-events: none; }
.rd-fight .rd-cd:empty { display: none; }
.rd-now { display: none; position: absolute; top: -1px; right: -1px; background: #ffd36b; color: #3a1e0a; font-size: 10px; font-style: normal; font-weight: 800; border-radius: 0 12px 0 8px; padding: 2px 5px; z-index: 1; }
.rd-skb.hint .rd-now { display: block; }
.rd-party { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rd-pm { background: #0f1328; border: 1px solid #2c3354; border-radius: 8px; padding: 3px 1px; text-align: center; position: relative; min-width: 0; }
.rd-pm.me { border-color: #e8b84a; background: #1f1a10; }
.rd-pm img { display: block; width: 24px; height: 24px; margin: 0 auto; border-radius: 50%; }
.rd-pm.dead img { filter: grayscale(1) brightness(.5); }
.rd-pm.dead::after { content: "💀"; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); font-size: 13px; }
.rd-pm div { font-size: 8.5px; letter-spacing: -.3px; color: #c9cdf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 1px; }
.rd-pm u { display: block; height: 4px; border-radius: 2px; background: #2a3158; margin: 2px 4px 0; overflow: hidden; text-decoration: none; }
.rd-pm u i { display: block; height: 100%; width: 100%; background: #58d68d; }
.rd-pm u i.low { background: #ff6b6b; }
.rd-cm.sys { color: #ff9a9a; }
.rd-cm.me { text-align: right; }
.rd-tip { font-size: 10.5px; color: #7c84a8; text-align: center; }
.rd-sk { display: flex; gap: 2px; margin-top: 2px; }
.rd-sk img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: rgba(255, 255, 255, .05); }
.rd-opt span img { width: 30px; height: 30px; object-fit: contain; display: block; }
.rd-fight .rd-skb .rd-tag { font-size: 9.5px; }
.rd-fight .rd-skb .rd-now { font-size: 10px; }
body.raid-open .tip { display: none !important; }
.rd-kick { position: absolute; bottom: 4px; right: 6px; font: inherit; font-size: 10.5px; color: #ffb0b0; background: rgba(90, 20, 32, .6); border: 1px solid #7a3040; border-radius: 6px; padding: 1px 5px; cursor: pointer; }
.rd-res-row { grid-template-columns: minmax(0, 1fr) 72px 54px; }
.rd-res-row.me { outline: 1.5px solid #e8b84a; }
.rd-res-n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rd-res-n em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cover { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-cover span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #1e1626; border: 1px solid #4a3040; color: #b08a9a; white-space: nowrap; }
.rd-cover span.on { background: #16261e; border-color: #3a6a4a; color: #9fe0b0; }
.rd-slot > img { margin-bottom: 12px; }
.rd-boss small { white-space: nowrap; }
.rd-unite { position: relative; display: block; width: 100%; height: 24px; padding: 0; border-radius: 8px; border: 1px solid #5a4a20; background: #1a1610; color: #cdbb88; font: inherit; font-size: 11px; font-weight: 700; overflow: hidden; }
.rd-unite i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #7a5a18, #caa02e); transition: width .3s; }
.rd-unite span { position: relative; z-index: 1; text-shadow: 0 1px 2px #000; }
.rd-unite.full { border-color: #ffd36b; color: #fff; cursor: pointer; animation: rdHint 1.1s ease-in-out infinite; }
.rd-seg { display: flex; gap: 4px; }
.rd-seg button { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 6px 2px; border-radius: 9px; border: 1.5px solid #3a4268; background: #1b2140; color: #c9cdf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-seg button.on { border-color: #e8b84a; color: #ffd36b; background: #2a2752; }
.rd-seg button:disabled { opacity: .75; }
.rd-seg small { font-size: 10px; color: #8fd8ff; }
.rd-shop-i { font-size: 24px; width: 32px; text-align: center; flex: none; }
.rd-rank { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; background: #1b2140; border: 1.5px solid #4d5780; border-radius: 12px; padding: 8px 14px; }
.rd-rank b { grid-row: 1 / 3; font-size: 46px; line-height: 1; font-weight: 900; }
.rd-rank span { font-size: 13px; color: #eef0fb; }
.rd-rank small { font-size: 11.5px; color: #aab0d0; }
.rd-rank.rS b { color: #ffd36b; text-shadow: 0 0 14px rgba(255, 211, 107, .7); }
.rd-rank.rA b { color: #c9a7ff; }
.rd-rank.rB b { color: #8fd8ff; }
.rd-rank.rC b { color: #aab0d0; }
.rd-title { font-style: normal; flex: none; font-size: 9.5px; font-weight: 800; padding: 1px 4px; border-radius: 5px; background: #3a2a10; color: #ffd36b; border: 1px solid #8a6a2a; white-space: nowrap; }
.rd-slots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rd-slot { min-width: 0; }
.rd-kick { bottom: 3px; right: 3px; width: 22px; height: 22px; padding: 0; font-size: 12px; line-height: 1; }
.rd-res-n { flex-wrap: wrap; row-gap: 2px; }
.rd-res-n em { min-width: 44px; }
.rd-row.me { border-color: #e8b84a; }

/* 레이드 화면 손질(2026-11-05) — 방: 틈·이름·채팅을 한 화면에 / 전투: 카드는 태그가 그림을 덮지 않게, 금테는 '지금!' 전용 */
#rdRoom { display: flex; flex-direction: column; gap: 8px; }
.rd-slot { min-height: 46px; padding: 5px 8px; }
.rd-slot > img { margin-bottom: 0; }
.rd-slot.kick { padding-right: 30px; }
.rd-slot-i { flex: 1; }
.rd-slot-i small { display: flex; gap: 5px; white-space: nowrap; }
.rd-slot-i small span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rd-ready { position: static; flex: none; width: auto; overflow: visible; font-size: 11px; line-height: inherit; }
.rd-slot.empty { grid-column: 1 / -1; min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: 5px 8px; padding: 6px 9px; }
.rd-slot.empty span { flex: 1; min-width: 60px; }
.rd-slot.empty button, .rd-cover-h button { font: inherit; font-size: 12px; padding: 4px 9px; border-radius: 8px; border: 1px solid #4d5780; background: #1e2442; color: #d6daf2; cursor: pointer; white-space: nowrap; }
.rd-kick { top: 50%; bottom: auto; margin-top: -11px; color: #9aa0c8; background: #1e2442; border-color: #3a4268; }
.rd-cover-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #aab0d0; margin-bottom: -3px; }
.rd-cover span:not(.on) { color: #ff9a9a; border-color: #7a3040; }
.rd-chat-list { height: 96px; }
.rd-pick-d { font-size: 12px; line-height: 1.45; color: #c9cdf0; }
.rd-pick-d b { color: #ffe9a8; }
.rd-pick .rd-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rd-pick .rd-skb { display: block; min-width: 0; padding: 6px 3px 5px; text-align: center; background: linear-gradient(#232a52, #1b2140); border: 1.5px solid #3a4268; border-radius: 13px; }
.rd-pick .rd-skb.on { border-color: #6a76ad; background: linear-gradient(#2d3566, #1f2650); }
.rd-pick .rd-skb img { display: block; width: 36px; height: 36px; margin: 0 auto; object-fit: contain; }
.rd-pick .rd-skb b { display: block; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-pick .rd-skb em { display: block; font-style: normal; font-size: 10.5px; color: #9aa0c8; margin-top: 1px; }
.rd-fight .rd-skb .rd-tag, .rd-pick .rd-skb .rd-tag { position: static; display: inline-block; max-width: 100%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; font-size: 9.5px; }
.rd-slots.solo .rd-slot { grid-column: 1 / -1; }
.rd-fight .rd-skb.ready { border-color: #6a76ad; }
.rd-fight .rd-skb.cool b { color: #8a90b0; }
.rd-skb.dead { opacity: .45; filter: grayscale(1); }
.rd-fight .rd-skb.dead { filter: grayscale(1); }
.rd-fight .rd-skb:active { transform: scale(.96); }
.rd-fight .rd-cd { inset: 0 0 auto 0; height: 44px; border-radius: 13px 13px 0 0; }
.rd-chip.mine { border-color: #e8b84a; color: #ffd36b; }
.rd-next { flex-wrap: wrap; height: 20px; align-content: flex-start; } /* 넘치는 칩은 반쯤 잘리지 않고 통째로 빠진다 */
.rd-next > span { flex: none; line-height: 18px; }
.rd-next .rd-chip { line-height: normal; }
.rd-nx { display: inline-flex; align-items: center; gap: 4px; } /* 화살표·'다음'은 가리키는 칩과 함께 넘어간다 */
.rd-bhp.grog { border-color: #caa02e; }
.rd-bhp.grog i { background: linear-gradient(#ffe27a, #caa02e); }
.rd-unite { height: 30px; color: #fff; }
.rd-unite span { text-shadow: 0 0 3px #000, 0 1px 2px #000; }
.rd-unite s { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .28); z-index: 1; }
.rd-unite.up { animation: rdUniteUp .5s ease-out; }
@keyframes rdUniteUp { 25% { filter: brightness(1.9); box-shadow: 0 0 14px rgba(255, 211, 107, .9); } }
.rd-party.few .rd-pm div { font-size: 11px; letter-spacing: 0; }
.rd-pm.tgt { border-color: #ff4040; box-shadow: 0 0 6px #ff4040; }
.rd-cm.sys.good { color: #ffd36b; }
/* 목록: 일곱이어도 두 줄 — 얼굴을 겹치고 인원을 맨 앞에 */
.rd-board { display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 3px; align-items: stretch; font-size: 11px; }
.rd-board > b { text-align: center; font-size: 10.5px; font-weight: 700; color: #aab0d0; }
.rd-board-n { align-self: center; line-height: 1.2; color: #c9cdf0; }
.rd-board-c { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 25px; background: #1b2140; border: 1px solid #3a4268; border-radius: 7px; white-space: nowrap; }
.rd-board-c b { font-size: 13px; font-weight: 900; color: #aab0d0; }
.rd-board-c small { font-size: 10px; color: #aab0d0; }
.rd-board-c.rS b { color: #ffd36b; }
.rd-board-c.rA b { color: #c9a7ff; }
.rd-board-c.rB b { color: #8fd8ff; }
.rd-board-c.off { font-size: 10px; color: #5c6488; background: #141934; border-style: dashed; }
.rd-empty .btn { display: block; margin: 10px auto 0; }
.rd-empty { line-height: 1.5; }
.rd-faces img { width: 22px; height: 22px; }
.rd-faces img:not(:first-child) { margin-left: -16px; }
.rd-row { gap: 8px; }
.rd-row .btn { flex: none; padding-left: 10px; padding-right: 10px; }
.rd-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-shards { display: flex; align-items: center; gap: 10px; background: #1b2140; border: 1.5px solid #3a4268; border-radius: 12px; padding: 8px 12px; }
.rd-shards span { flex: none; font-size: 15px; color: #8fd8ff; }
.rd-shards b { font-size: 22px; font-weight: 900; color: #eef0fb; }
.rd-shards small { font-size: 12px; line-height: 1.4; color: #aab0d0; }
/* 패턴 보기 */
.rd-pats-h { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #aab0d0; margin-bottom: 8px; }
.rd-pats-h img { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1.5px solid #8a5ad8; object-fit: cover; object-position: top; background: #1b1036; }
.rd-pats { display: flex; flex-direction: column; gap: 5px; text-align: left; max-height: 54dvh; overflow-y: auto; }
.rd-pat { display: flex; gap: 8px; align-items: flex-start; padding: 5px 7px; background: #1b2140; border: 1px solid #3a4268; border-radius: 9px; }
.rd-pat-i { flex: none; width: 20px; text-align: center; font-size: 15px; }
.rd-pat b { font-size: 13px; }
.rd-pat em { margin-left: 5px; font-style: normal; font-weight: 800; font-size: 12px; color: #ff9a9a; }
.rd-pat em.on { color: #9fe0b0; }
.rd-pat i { margin-left: 6px; font-style: normal; font-weight: 700; font-size: 12px; color: #ffd36b; }
.rd-pat small { display: block; font-size: 11.5px; line-height: 1.35; color: #aab0d0; }
/* 결과 */
.rd-result { gap: 8px; }
.rd-reward { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 14px; }
.rd-reward span { white-space: nowrap; }
.rd-reward b { flex-basis: 100%; font-size: 12.5px; font-weight: 700; color: #ffd36b; }
.rd-rank b { grid-row: 1 / 4; }
.rd-rank-next { color: #ffd36b !important; }
.rd-fc { text-align: center; font-size: 14px; font-weight: 800; color: #ffd36b; }
.rd-block { text-align: center; font-size: 12.5px; color: #c9cdf0; }
.rd-norw { text-align: center; font-size: 12.5px; color: #ffb9a0; }
.rd-rank.dim { opacity: .55; }
.rd-rank.dim b { text-shadow: none; }
.rd-lose { display: flex; flex-direction: column; gap: 5px; background: #1b2140; border: 1.5px solid #4d5780; border-radius: 12px; padding: 8px 12px; }
.rd-lose .rd-res-big { margin-top: 0; font-size: 16px; color: #ff9a9a; }
.rd-lose-t { text-align: center; font-size: 13px; color: #eef0fb; }
.rd-lose-h { font-size: 12.5px; color: #ffd36b; }
.rd-lose-h small { display: block; font-size: 11.5px; color: #aab0d0; }
.rd-res-row { gap: 6px; font-size: 12.5px; }
.rd-res-row > span { white-space: nowrap; }
.rd-res-sub { grid-column: 1 / -1; font-size: 11px; color: #aab0d0; }
.raid-card.attn { animation: chipGlowFin 1.6s ease-in-out infinite; }
#raidChip { position: absolute; top: 38px; right: 10px; z-index: 7; max-width: 60%; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 700; color: #ffd76a; background: rgba(60, 45, 10, .9); border: 1.5px solid var(--gold); border-radius: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; animation: chipGlowFin 1.6s infinite; }
#raidChip.hidden { display: none; }
.cm-join { margin-left: 6px; padding: 1px 9px; font-size: 12px; text-indent: 0; }

/* 판의 재미 — 막·합심·격파 연출 (2026-11-05) */
.rd-bhp i { z-index: 1; transform-origin: left center; }
.rd-bhp b { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .62); transform-origin: left center; transition: transform .6s ease-out .15s; }
.rd-bhp s { z-index: 2; }
.rd-bhp.act2 { border-color: #a070e0; }
.rd-bhp.act3 { border-color: #ff5a5a; }
.rd-bhp.low { animation: rdBhpLow .8s ease-in-out infinite; }
@keyframes rdBhpLow { 50% { box-shadow: 0 0 0 1.5px rgba(255, 90, 90, .9), 0 0 8px rgba(255, 90, 90, .8); } }
.rd-unite.rally { border-color: #ffd36b; color: #fff; cursor: pointer; animation: rdRally .5s ease-in-out infinite; }
.rd-unite.rally i { background: linear-gradient(90deg, #8a6616, #c49a2a); }
@keyframes rdRally { 50% { filter: brightness(1.2); box-shadow: 0 0 12px rgba(255, 211, 107, .95); } }
.rd-unite.on { border-color: #ffd36b; color: #fff; }
.rd-unite.on i { background: linear-gradient(90deg, #8a6616, #c49a2a); transition: width .2s linear; }
.rd-fight canvas.uniting { border-color: #ffd36b; box-shadow: 0 0 0 1.5px rgba(255, 211, 107, .7), 0 0 14px rgba(255, 211, 107, .55); }
.rd-pm.flash { animation: rdPmFlash .7s ease-out; }
@keyframes rdPmFlash { 0%, 40% { border-color: #ff4040; box-shadow: 0 0 8px #ff4040; background: #3a1020; } }
.rd-pats-g { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #ffd36b; margin-bottom: 8px; }
.rd-pats-g b { font-weight: 800; }
.rd-pats-g small { font-size: 11.5px; color: #aab0d0; }
.rd-cover span:not(.on) { max-width: 100%; white-space: normal; }
/* 결과 — 등급 도장, 보상은 차례로 */
.rd-rank b { animation: rdStamp .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.rd-rank.rS b { animation: rdStamp .35s cubic-bezier(.2, 1.4, .4, 1) both, rdRankS 1.6s ease-in-out .35s infinite; }
.rd-rank.rS.dim b { animation: rdStamp .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes rdStamp { 0% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rdRankS { 50% { text-shadow: 0 0 22px rgba(255, 211, 107, 1); } }
.rd-fc, .rd-block, .rd-norw, .rd-reward, .rd-res-list { animation: rdRise .3s ease-out both; }
.rd-fc { animation-delay: .25s; }
.rd-block { animation-delay: .35s; }
.rd-reward { animation-delay: .45s; }
.rd-res-list { animation-delay: .65s; }
.rd-title { animation: rdRise .3s ease-out .85s both; }
@keyframes rdRise { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
/* 파티 채팅 메뉴 · 잠수 · 이번 주 보스 · 세트 고르기 */
.rd-cm.tap { cursor: pointer; }
.rd-cm .cm-act { margin: 3px 0 2px; flex-wrap: wrap; }
.rd-cm .cm-act .btn { font-size: 12px; padding: 3px 8px; }
.rd-cm .cm-act .btn:active { transform: none; }
.rd-chat.fight .rd-chat-list.cm-open { position: relative; z-index: 6; height: 120px; margin-top: -64px; padding: 4px 6px; background: #0f1328; border: 1.5px solid #4d5780; border-radius: 9px; } /* 위로만 자란다 — 전투 화면이 안 밀린다. 번역한 줄은 세 줄이라 56px 에 안 들어간다 */
.rd-cm-tr { font-size: 12px; color: #8fd8ff; line-height: 1.3; }
.rd-pm.afk img { opacity: .55; }
.rd-pm.afk::after { content: "💤"; position: absolute; top: 0; right: 1px; font-size: 11px; line-height: 1; }
.rd-board-wk { align-self: center; font-style: normal; font-size: 10px; color: #ffd36b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-board-n.week { color: #ffd36b; font-weight: 700; }
.rd-shop-note { margin: 6px 2px 2px; }
.rd-shop-t { font-style: normal; font-weight: 700; color: #ffd36b; }
.rd-setp-h { font-size: 12.5px; line-height: 1.4; color: #c9cdf0; margin-bottom: 8px; }
.rd-setp-h small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.35; color: #aab0d0; }
html[lang="ko"] .rd-setp-h, html[lang="ko"] .rd-setp-t small { word-break: keep-all; }
.rd-setp { display: flex; flex-direction: column; gap: 5px; }
.rd-setp-r { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 7px; width: 100%; background: #1b2140; border: 1.5px solid #3a4268; border-radius: 10px; padding: 6px 8px; color: #eef0fb; font: inherit; text-align: left; }
.rd-setp-r:active { border-color: #e8b84a; }
.rd-setp-i { font-size: 18px; text-align: center; }
.rd-setp-t { min-width: 0; display: flex; flex-direction: column; }
.rd-setp-nm { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.rd-setp-t b { font-size: 13px; }
html[lang="ko"] .rd-note2 { word-break: keep-all; }
.rd-setp-t small { font-size: 10.5px; line-height: 1.25; color: #aab0d0; }
.rd-setp-r em { font-style: normal; font-size: 10.5px; color: #8fd8ff; white-space: nowrap; }
