:root {
  --cream: #fff8ec;
  --brown: #6b4423;
  --brown2: #8a5a32;
  --line: #d9b98a;
  --accent: #ff9b3d;
  --accent2: #ff7a2a;
  --green: #4caf50;
  --red: #e5484d;
  --ink: #3a2a1c;
  --evo: #3f9f45;
  --mix: #3b82f6;
  --shadow: 0 6px 18px rgba(60, 35, 10, .28);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1e2a1e; color: var(--ink);
  font-family: 'Gowun Dodum', 'Malgun Gothic', sans-serif; }
button, input { font-family: inherit; }
.hidden { display: none !important; }
h1, h2, h3, h4, .btn, .menu b, .logo, .me-name, .fac b, .gitem b, .qt, .cmd-head b, .bt-top { font-family: 'Jua', 'Malgun Gothic', sans-serif; font-weight: 400; }
.screen { position: fixed; inset: 0; }
.bg-cover { background-size: cover; background-position: center; }

/* ---------- 공통 ---------- */
.card { background: var(--cream); border: 3px solid var(--brown2); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
label { display: block; font-size: 14px; margin: 8px 0; }
input { width: 100%; padding: 9px 12px; margin-top: 4px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; outline: none; }
input:focus { border-color: var(--accent); }
.btn { border: 2px solid var(--brown2); background: #fff3dc; color: var(--brown); border-radius: 12px; padding: 8px 14px;
  font-size: 16px; cursor: pointer; transition: transform .08s, filter .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(#ffb25e, var(--accent2)); color: #fff; border-color: #c75a12; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.green { background: linear-gradient(#7fd27f, #3f9f45); color: #fff; border-color: #2c7a32; }
.btn.red { background: linear-gradient(#ff8a8a, #d9434a); color: #fff; border-color: #a52a30; }
.btn.small { font-size: 13px; padding: 4px 9px; border-radius: 9px; }
.btn.big { font-size: 22px; padding: 12px 26px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn small { opacity: .7; font-size: 11px; }
.row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.row > * { flex: 1; }
.msg { min-height: 18px; color: var(--red); font-size: 14px; white-space: pre-line; margin: 8px 0 0; }
.msg.small, .small-note { color: #8a6a4a; font-size: 12px; }
.small-note { margin: 6px 0; }
.center { text-align: center; }
.tc { text-align: center; }
.empty { color: #a08060; font-size: 13px; text-align: center; padding: 10px; }
.bar { height: 9px; background: rgba(0,0,0,.25); border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.2); }
.bar i { display: block; height: 100%; width: 0; transition: width .35s; }
.bar.exp i { background: linear-gradient(90deg, #6ec6ff, #3b82f6); }
.bar.hp i { background: linear-gradient(90deg, #7be07b, #3fae45); }
.bar.hp i.mid { background: linear-gradient(90deg, #ffd25e, #f5a623); }
.bar.hp i.low { background: linear-gradient(90deg, #ff8a8a, #e5484d); }
.el { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; color: #fff; vertical-align: middle; line-height: 17px; font-family: 'Gowun Dodum'; }
.el-전기 { background: #e0b400; color: #3a2a00; } .el-얼음 { background: #5cc4e8; color: #062a3a; } .el-불 { background: #f0642a; } .el-물 { background: #3b8de0; } .el-풀 { background: #48a84a; }
.el-땅 { background: #a87a45; } .el-바람 { background: #3fa89c; } .el-빛 { background: #d9a61b; } .el-어둠 { background: #6d4aa8; }
.grade { font-size: 11px; padding: 0 6px; border-radius: 8px; font-weight: bold; }
.g-up { margin-left: 3px; font-size: 10px; font-weight: bold; color: #b4520c; white-space: nowrap; }
.g-명품 { background: #ffe066; color: #8a5a00; } .g-우수 { background: #c8f0c8; color: #24702a; }
.g-보통 { background: #e8e0d0; color: #6b5a40; } .g-평범 { background: #eee; color: #888; } .g-하급 { background: #f3d0d0; color: #a33; }
.mut { font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; background: linear-gradient(90deg,#ff5ac8,#7a5aff,#3ad0ff); }
img.mutant { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 6px rgba(255,120,240,.9)); transform: scale(1.08); }
img.flip { transform: scaleX(-1); }
img.mutant.flip { transform: scaleX(-1) scale(1.08); }
.fbadge { font-size: 12px; padding: 1px 8px; border-radius: 8px; color: #fff; vertical-align: middle; font-family: 'Gowun Dodum'; }
.f-evo.fbadge, .fdot.f-evo { background: var(--evo); }
.f-mix.fbadge, .fdot.f-mix { background: var(--mix); }
.fdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.fdot.hidden-f { background: #888; color: #fff; font-size: 9px; text-align: center; line-height: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 3px 10px; cursor: pointer; font-family: 'Jua'; font-size: 14px; color: var(--brown); }
.tabs button.on { background: var(--accent); border-color: var(--accent2); color: #fff; }
.tabs.small button { font-size: 12px; padding: 1px 8px; }

/* ---------- 로그인 / 생성 / 스토리 ---------- */
#scr-login { display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 14px; padding: 16px 12px 40px; overflow-y: auto; }
.title-wrap { text-align: center; }
.logo { margin: 0; font-size: clamp(40px, 11vw, 66px); white-space: nowrap; color: #fff; letter-spacing: 2px;
  text-shadow: 0 4px 0 #c75a12, 0 8px 0 #7a3a0a, 0 10px 18px rgba(0,0,0,.4); -webkit-text-stroke: 2px #7a3a0a; }
.title-wrap .sub { margin: 8px 0 0; color: #fff; font-size: clamp(14px, 3.8vw, 18px); text-shadow: 0 1px 2px #3a2008, 0 2px 8px rgba(0,0,0,.75), 0 0 14px rgba(0,0,0,.45); }
.login-card { width: min(360px, 92vw); padding-top: 12px !important; }
/* c387: 로그인 화면 — 대표 아크링 · 특징 3줄 · 처음/계정 탭 */
.lg-stage { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: min(420px, 92vw); height: 104px; margin: -2px 0 -4px; }
.lg-h { flex: 0 1 auto; min-width: 0; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); animation: lgBob 3.2s ease-in-out infinite; }
.lg-h.h1 { height: 70px; max-width: 22%; animation-delay: -.4s; } .lg-h.h2 { height: 100px; max-width: 28%; animation-delay: -1.2s; }
.lg-h.h3 { height: 100px; max-width: 28%; animation-delay: -2s; } .lg-h.h4 { height: 70px; max-width: 22%; animation-delay: -2.6s; }
@keyframes lgBob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }
.lg-pts { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; width: min(420px, 92vw); }
.lg-pts li { flex: 1; text-align: center; padding: 7px 4px; border-radius: 12px; background: rgba(20,22,40,.62); border: 1px solid rgba(232,176,74,.45); backdrop-filter: blur(4px); }
.lg-pts b { display: block; color: #ffd98a; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 16px; }
.lg-pts span { color: #e8e2f0; font-size: 11.5px; }
.lg-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: #efe2c8; }
.lg-tabs button { flex: 1; border: 0; padding: 9px 0; border-radius: 9px; background: transparent; color: #8a6a4a; font-family: 'Jua', sans-serif; font-size: 15px; cursor: pointer; }
.lg-tabs button.on { background: #fff; color: #5a3a1a; box-shadow: 0 1px 4px rgba(90,58,26,.25); }
.lg-go { width: 100%; margin-top: 6px; padding: 12px 0 !important; font-size: 17px !important; }
.lg-note { margin: 8px 0 0; text-align: center; font-size: 12px; color: #9a7a5a; }
@media (max-height: 720px) { .lg-stage { display: none; } .lg-pts li { padding: 5px 3px; } #scr-login { gap: 10px; } }
#scr-create { display: flex; align-items: center; justify-content: center; }
.create-card { width: min(640px, 95vw); max-height: 95vh; overflow: auto; }
.create-card h2 { margin: 0 0 4px; color: var(--brown); }
.pick-title { font-size: 14px; color: var(--brown2); margin: 12px 0 6px; font-weight: bold; }
.faction-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.faction { text-align: left; border: 3px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.faction b { font-family: 'Jua'; font-size: 20px; }
.faction.f-evo b { color: var(--evo); } .faction.f-mix b { color: var(--mix); }
.faction small { color: #6b5a40; font-size: 12px; }
.faction span { font-size: 12px; font-weight: bold; color: var(--accent2); }
.gender-pick, .starter-pick { display: flex; gap: 10px; }
.gender, .starter { flex: 1; background: #fff; border: 3px solid var(--line); border-radius: 14px; padding: 6px; cursor: pointer; text-align: center; }
.gender img { height: 140px; object-fit: contain; display: block; margin: 0 auto; }
.gender span, .starter div { font-family: 'Jua'; font-size: 17px; color: var(--brown); }
.starter img { width: 84px; height: 84px; object-fit: contain; }
.gender.sel, .starter.sel, .faction.sel { border-color: var(--accent2); background: #fff1df; box-shadow: 0 0 0 3px rgba(255,155,61,.35); }
/* 프롤로그 화면 전용 (퀘스트의 .story 와 겹치지 않게 범위 한정) */
.screen.story { background: radial-gradient(circle at 50% 30%, #2a3a5a, #070a12 75%); display: flex; align-items: center; justify-content: center; }
.story-box { width: min(720px, 92vw); text-align: center; color: #f2ead8; }
.story-box p { font-size: 22px; line-height: 1.8; min-height: 120px; }
.story-box p.fade { animation: fadein 1.1s; }
/* c254: 프롤로그 장면 그림 — 화면 가득, 글은 아래 어두운 띠 위 */
.screen.story { overflow: hidden; }
.story-cg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.2s, transform 8s ease-out; }
.story-cg.on { opacity: 1; transform: scale(1); }
.screen.story:has(.story-cg.on) { align-items: flex-end; }
.screen.story:has(.story-cg.on) .story-box { position: relative; z-index: 1; width: 100%; max-width: none; padding: 28px max(4vw, 16px) 28px; background: linear-gradient(180deg, transparent, rgba(6,8,14,.82) 30%, rgba(6,8,14,.92)); }
.screen.story:has(.story-cg.on) .story-box p { font-size: 19px; min-height: 96px; max-width: 760px; margin: 0 auto 12px; text-shadow: 0 2px 8px #000; }
#story-skip { z-index: 2; } .screen.story:has(.story-cg.on) #story-skip { position: fixed !important; }
@media (max-width: 700px) { .story-cg { object-position: 50% 40%; } .screen.story:has(.story-cg.on) .story-box p { font-size: 16px; } }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* ---------- 게임 화면 레이아웃 ---------- */
.scene { position: absolute; inset: 0; transition: background-image .4s; }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35)); }
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: 8px 12px; z-index: 5; }
.me { display: flex; align-items: center; gap: 8px; background: rgba(255,248,236,.94); border: 2px solid var(--brown2); border-radius: 14px; padding: 4px 12px 4px 4px; box-shadow: var(--shadow); min-width: 260px; }
.me img { width: 44px; height: 44px; object-fit: cover; object-position: top; border-radius: 10px; background: #fff; }
.me-name { font-size: 17px; color: var(--brown); }
.me-name .lv { color: var(--accent2); font-size: 14px; }
.me .bar { height: 7px; margin-top: 3px; }
.where { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: #fff; font-family: 'Jua'; font-size: 26px; text-shadow: 0 2px 0 #4a2a10, 0 3px 10px rgba(0,0,0,.6); }
.where small { font-size: 15px; opacity: .85; }
.gold { background: rgba(255,248,236,.94); border: 2px solid var(--brown2); border-radius: 14px; padding: 6px 14px; font-size: 16px; box-shadow: var(--shadow); }

.center { position: absolute; left: 230px; right: 300px; top: 70px; bottom: 80px; display: flex; align-items: flex-start; justify-content: center; z-index: 2; overflow-y: auto; }
/* 가운데 정렬은 margin:auto 로 — 내용이 화면보다 길면 위가 잘려서 못 보던 문제(마을 이름·첫 줄 가려짐) 방지, 대신 스크롤 */
.center > * { margin-top: auto; margin-bottom: auto; }
.town-card, .ground-card { background: rgba(255,248,236,.93); border: 3px solid var(--brown2); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; width: min(640px, 100%); text-align: center; }
.town-card h2, .ground-card h2 { margin: 0; color: var(--brown); font-size: 30px; }
.town-card p, .ground-card p { margin: 6px 0; color: #6b5a40; }
.neutral-note { background: #eef3ff; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.facs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.fac { background: linear-gradient(#fffaf0, #f4e2c4); border: 2px solid var(--brown2); border-radius: 14px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .1s; }
.fac:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fac .ic { font-size: 26px; }
.fac b { font-size: 17px; color: var(--brown); }
.fac small { font-size: 11px; color: #8a6a4a; }
.appear { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.appear div { display: flex; flex-direction: column; align-items: center; font-size: 12px; }
.appear img { width: 76px; height: 76px; object-fit: contain; }
.ground-card .btn.big { display: block; margin: 10px auto; min-width: 240px; }

.party { position: absolute; left: 12px; top: 74px; width: 210px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.side-title { font-family: 'Jua'; color: #fff; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.pslot { display: flex; align-items: center; gap: 6px; background: rgba(255,248,236,.93); border: 2px solid var(--brown2); border-radius: 12px; padding: 4px 8px 4px 4px; cursor: pointer; font-size: 13px; }
.pslot img { width: 50px; height: 50px; object-fit: contain; }
.pslot.empty { color: #8a6a4a; padding: 14px; cursor: default; justify-content: center; }

.side { position: absolute; right: 12px; top: 74px; bottom: 80px; width: 280px; z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.here { background: rgba(30,22,14,.7); border-radius: 12px; padding: 8px; max-height: 40%; overflow: auto; }
.here-list { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.hp-row { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.hp-row:hover { background: rgba(255,255,255,.12); }
.hp-row img { width: 26px; height: 26px; object-fit: cover; object-position: top; border-radius: 6px; background: rgba(255,255,255,.8); }
.hp-row span:nth-child(2) { flex: 1; }
.hp-row .busy { font-size: 10px; background: var(--red); padding: 0 5px; border-radius: 6px; }
.chat { flex: 1; display: flex; flex-direction: column; background: rgba(30,22,14,.72); border-radius: 12px; padding: 8px; color: #fff; min-height: 0; }
.chat .tabs { margin-bottom: 4px; }
.chat-log { flex: 1; overflow-y: auto; font-size: 13px; line-height: 1.45; min-height: 60px; }
.chat-log .sys { color: #9fe08a; }
.chat-log b { color: #ffd28a; }
.chat-log .ch-room .tag { color: #8ad0ff; }
.chat input { margin-top: 6px; padding: 6px 8px; font-size: 13px; background: rgba(255,255,255,.92); border: none; }

.menu { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.menu button { background: linear-gradient(#fffaf0, #f4e2c4); border: 2px solid var(--brown2); border-radius: 14px; padding: 6px 14px; cursor: pointer; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.menu b { font-size: 17px; color: var(--brown); font-weight: 400; }
.menu small { font-size: 10px; color: #a07a50; }

/* ---------- 패널 ---------- */
.panel { position: absolute; left: 50%; top: 70px; bottom: 98px; transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); background: var(--cream);
  border: 3px solid var(--brown2); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; z-index: 10; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 2px solid var(--line); }
.panel-head h3 { margin: 0; color: var(--brown); font-size: 22px; }
.x { border: none; background: none; font-size: 20px; cursor: pointer; color: var(--brown2); }
.panel-body { flex: 1; overflow-y: auto; padding: 12px 14px; }
.hlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.hlist.small { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); margin-bottom: 8px; }
.hcard { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 4px; text-align: center; cursor: pointer; position: relative; }
.hcard img { width: 66px; height: 66px; object-fit: contain; }
.hlist.small .hcard img { width: 52px; height: 52px; }
.hcard .nm { font-family: 'Jua'; font-size: 14px; }
.hcard .lv { font-size: 11px; color: #8a6a4a; }
.hcard.sel { border-color: var(--accent2); background: #fff1df; }
.hcard.trade { opacity: .5; }
.hcard .badges { position: absolute; left: 3px; right: 3px; top: 3px; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }   /* c338: 아크링 그림이 ✨변이 칩을 덮던 것 */
.hcard .badges .mut { white-space: nowrap; }
.slotb { background: var(--accent2); color: #fff; font-size: 11px; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; margin-left: auto; }
.hdetail { display: flex; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.hdetail img.big { width: 170px; height: 170px; object-fit: contain; flex-shrink: 0; }
.hdetail .info { flex: 1; min-width: 0; }
.hdetail h4 { margin: 0; font-size: 22px; color: var(--brown); }
.hdetail .sub { font-size: 12px; color: #8a6a4a; margin: 2px 0 4px; }
.stats { display: grid; grid-template-columns: auto auto 1fr; gap: 1px 10px; font-size: 13px; margin: 6px 0; }
.stats .g { color: #3f9f45; font-size: 12px; }
.skills-line { font-size: 12px; color: #6b5a40; margin: 4px 0; }
.acts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.rows { display: flex; flex-direction: column; gap: 4px; }
.rowi { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; font-size: 14px; flex-wrap: wrap; }
.rowi > span:nth-child(2), .rowi > b:first-child + * { flex: 1; }
.rowi .ic { font-size: 20px; }
.rowi img.mini { width: 36px; height: 36px; object-fit: contain; }
.rowi img.gray { filter: grayscale(1) brightness(.75); }
.rowi .cnt { color: #6b5a40; min-width: 54px; }
.rowi .cnt.ok, .rowi .ready { color: var(--green); font-weight: bold; font-size: 12px; }
.rowi .price { color: var(--accent2); font-weight: bold; min-width: 56px; text-align: right; }
.rowi small { color: #8a6a4a; }
.rowi.dim { opacity: .55; }
.t2 { color: #3b82f6; } .t3 { color: #c03ad0; }
.q-sec { font-family: 'Jua'; font-size: 16px; color: var(--brown2); margin: 12px 0 6px; }
.quest { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; }
.quest.story { border-color: var(--accent); background: #fffaf2; }
.qt { font-size: 17px; color: var(--brown); }
.qtext { font-size: 13px; color: #6b5a40; margin: 4px 0; font-style: italic; }
.qobj { font-size: 13px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13px; color: var(--accent2); }
.dexgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.dex { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; text-align: center; font-size: 12px; opacity: .55; }
.dex.own { opacity: 1; border-color: var(--accent); }
.dex img { width: 62px; height: 62px; object-fit: contain; }
.dex .st { font-size: 10px; color: #a08060; }
.recipe { display: flex; align-items: center; gap: 4px; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px 8px; margin-bottom: 4px; flex-wrap: wrap; }
.recipe img { width: 34px; height: 34px; object-fit: contain; }
.recipe .rt { margin-left: auto; color: #8a6a4a; font-size: 12px; }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.gitem { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 10px; cursor: pointer; text-align: left; }
.gitem.rec { border-color: var(--accent); background: #fffaf2; }
.gitem .glv { font-size: 12px; color: #8a6a4a; }
.gitem b { font-size: 17px; color: var(--brown); }
.gitem .gmons img { width: 30px; height: 30px; object-fit: contain; }
.gitem .recb { position: absolute; right: 8px; top: 6px; font-size: 11px; background: var(--accent2); color: #fff; border-radius: 6px; padding: 0 5px; }
.gitem .fdot { position: absolute; right: 8px; bottom: 8px; }
.travel-btn { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-size: 15px; text-align: left; }
.travel-btn b { font-family: 'Jua'; font-size: 20px; color: var(--brown); }
.route-mons { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.route-mons img { width: 34px; height: 34px; object-fit: contain; filter: brightness(.25); }
.mixbox { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px; }
.mixslot { width: 130px; height: 140px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: #a08060; text-align: center; cursor: pointer; }
.mixslot img { width: 84px; height: 84px; object-fit: contain; }
.mixop { font-family: 'Jua'; font-size: 30px; color: var(--accent2); }
.mixinfo { text-align: center; margin: 8px 0; font-size: 14px; min-height: 36px; }
.room-code { font-family: 'Jua'; font-size: 42px; letter-spacing: 6px; color: var(--accent2); text-align: center; background: #fff; border: 2px dashed var(--accent); border-radius: 14px; padding: 6px; }
.member { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; margin-bottom: 5px; }
.member img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 8px; }
.member .host { font-size: 11px; background: var(--accent2); color: #fff; border-radius: 6px; padding: 0 5px; }
.member .sp { margin-left: auto; }
.raid-intro { display: flex; gap: 14px; align-items: center; }
.raid-intro img { width: 240px; max-width: 40%; }
.raid-intro h3 { margin: 0; font-size: 28px; color: #a5281a; }

/* ---------- 전투 ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; }
.overlay.dim { background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
.battle { background-size: cover; background-position: center; display: flex; flex-direction: column; }
/* ⚠ .battle 자체에 기본 애니메이션을 두면 안 됨: 시작 연출(.intro)이 0.7초 뒤 빠질 때 기본 애니메이션(fadein)이 처음부터 다시 돌아서
   전투 화면 전체(첫 턴 필살기 컷신 포함)가 한 번 투명해졌다가 다시 나타났음 → "컷신이 끊겼다 두 번 나오는" 진짜 원인 */
.battle::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.18); pointer-events: none; }
.bt-top { position: relative; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 8px; color: #fff; font-size: 20px; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.bt-timer { background: rgba(0,0,0,.45); border-radius: 10px; padding: 0 10px; }
.bt-timer.hurry { color: #ff8a8a; }
.bt-field { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 20px; min-height: 0; }
.bt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-content: center; }
.bt-row.enemy { flex: 1.1; }
.bt-row.ally { flex: 1; align-content: flex-end; }
.unit { position: relative; width: 150px; display: flex; flex-direction: column; align-items: center; cursor: default; transition: transform .15s, opacity .5s; }
.unit .u-img { position: relative; height: 120px; display: flex; align-items: flex-end; }
.unit .u-img img { width: 120px; height: 120px; object-fit: contain; filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 6px 4px rgba(0,0,0,.35)); }
.unit.boss { width: 300px; }
.unit.boss .u-img { height: 260px; }
.unit.boss .u-img img { width: 280px; height: 260px; }
.bt-row.ally.many .unit { width: 112px; }
.bt-row.ally.many .unit .u-img { height: 84px; }
.bt-row.ally.many .unit .u-img img { width: 84px; height: 84px; }
.u-info { background: rgba(255,248,236,.93); border: 2px solid var(--brown2); border-radius: 10px; padding: 3px 7px; width: 100%; font-size: 12px; text-align: left; }
.u-info b { font-family: 'Jua'; font-size: 14px; font-weight: 400; }
.u-info .owner { font-size: 10px; color: var(--accent2); }
.u-info .bar { height: 7px; margin-top: 2px; }
.u-info .hpt { font-size: 10px; color: #6b5a40; }
.unit.mine .u-info { border-color: var(--accent2); }
.unit.down { opacity: .35; filter: grayscale(1); }
.unit.captured { opacity: 0; transform: scale(.3); }
.unit.acting { transform: translateY(-10px) scale(1.06); }
.unit.hit .u-img { animation: hit .35s; }
@keyframes hit { 25% { transform: translateX(8px); filter: brightness(2.2); } 75% { transform: translateX(-6px); } }
.unit.cur .u-info { box-shadow: 0 0 0 3px #ffd25e; }
.unit.targetable { cursor: pointer; }
.unit.targetable .u-info { box-shadow: 0 0 0 3px #ff5a5a; animation: pulse .8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(255,90,90,.4); } }
.fx { position: absolute; left: 0; right: 0; top: 20%; text-align: center; pointer-events: none; }
.dmg { position: absolute; left: 50%; transform: translateX(-50%); font-family: 'Jua'; font-size: 30px; color: #fff; -webkit-text-stroke: 2px #b02020; animation: dmg 1s forwards; white-space: nowrap; }
.dmg.super { color: #ffd84a; font-size: 36px; }
.dmg.weak { color: #ddd; font-size: 24px; }
.dmg.heal { -webkit-text-stroke: 2px #1f7a2a; color: #b8ffb8; }
.dmg.eff { -webkit-text-stroke: 2px #5a2a8a; color: #f0d8ff; font-size: 22px; }
@keyframes dmg { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -50px); opacity: 0; } }
.bt-bottom { position: relative; display: flex; gap: 10px; padding: 10px; background: rgba(40,28,16,.88); }
.bt-log { flex: 1; height: 130px; overflow-y: auto; color: #fff; font-size: 14px; line-height: 1.5; background: rgba(0,0,0,.25); border-radius: 10px; padding: 6px 10px; }
.bt-cmd { width: 470px; color: #fff; }
.cmd-head { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.cmd-head b { font-size: 18px; color: #ffd28a; }
.cmd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cmd-grid .btn { font-size: 15px; padding: 7px 6px; }
.cmd-grid .btn i { font-style: normal; font-size: 12px; }
.wait { padding: 16px; text-align: center; color: #ffe8c8; }
.bt-result { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; z-index: 5; }
.bt-result .card { width: min(520px, 92vw); text-align: center; max-height: 90vh; overflow: auto; }
.bt-result h2 { margin: 0 0 8px; font-size: 40px; }
.bt-result h2.win { color: var(--accent2); }
.bt-result h2.lose { color: #6b5a8a; }
.bt-result .rw { margin: 6px 0; font-size: 14px; }
.bt-result .pen { color: var(--red); }
.bt-result .btn { margin: 10px 4px 0; }

/* ---------- 교환 / 토스트 / 확인 ---------- */
.trade-card { width: min(640px, 94vw); max-height: 92vh; overflow: auto; }
.trade-card h3 { margin: 0 0 10px; color: var(--brown); }
.trade-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
.trade-arrow { font-size: 30px; color: var(--accent2); align-self: center; }
.trade-who { font-family: 'Jua'; font-size: 16px; margin-bottom: 4px; }
.trade-who .ok { color: var(--green); font-size: 13px; }
.trade-offer { min-height: 120px; background: #fff; border: 2px dashed var(--line); border-radius: 12px; padding: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.trade-offer .hcard { width: 96px; cursor: default; }
.trade-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; }
.trade-pick .hcard img { width: 52px; height: 52px; }
.toast { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); background: rgba(40,28,16,.92); color: #fff; padding: 10px 18px;
  border-radius: 12px; font-size: 15px; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 60; white-space: pre-line; text-align: center; }
.toast.show { opacity: 1; }
.ask { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 70; background: var(--cream); border: 3px solid var(--brown2);
  border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.5); min-width: 320px; max-width: 92vw; text-align: center; font-size: 16px; }
.ask img.pop { width: 180px; height: 180px; object-fit: contain; animation: pop .6s; }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }

@media (max-width: 1100px) {
  .party { display: none; }
  .center { left: 12px; }
  .facs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .side { display: none; }
  .center { right: 12px; }
  .bt-cmd { width: 100%; }
  .bt-bottom { flex-direction: column; }
  .bt-log { height: 70px; }
  .unit { width: 110px; } .unit .u-img img { width: 84px; height: 84px; } .unit .u-img { height: 84px; }
  .me { min-width: 0; }
  .where { font-size: 18px; }
}

/* ===================== 추가: 이펙트 / 연출 / 신규 UI ===================== */
.menu button { white-space: nowrap; }
.mute { background: rgba(255,248,236,.94); border: 2px solid var(--brown2); border-radius: 12px; font-size: 18px; padding: 4px 8px; cursor: pointer; box-shadow: var(--shadow); }
.scene { background-color: #3d6b3a; background-image: linear-gradient(#7cc4ff, #bfe6a8 55%, #6aa84f); }
.battle { background-color: #2e4a2c; }
.town-card.hostile { border-color: #a52a30; }
.hostile-note { background: #ffe8e8; color: #a52a30; border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.fac.off { opacity: .45; filter: grayscale(.6); }
.appear .unknown { width: 76px; justify-content: center; }
.appear .unknown span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; font-family: 'Jua'; font-size: 34px; color: #8a6a4a; }
.gitem .q, .route-mons .q { color: #a08060; font-family: 'Jua'; letter-spacing: 3px; }
.route-mons img { filter: none; }
.travel-btn.hostile { border-color: #e5a0a0; }
.travel-btn .hs { color: #a52a30; }

/* 아크링 카드: HP, 기절 */
.bar.hp.mini { height: 5px; margin: 2px 6px 0; }
.hcard.fainted img { filter: grayscale(1) brightness(.7); }
.hcard .ko { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-12deg); background: var(--red); color: #fff; font-family: 'Jua'; font-size: 13px; padding: 1px 8px; border-radius: 6px; }
.hcard .lv.over { color: var(--red); font-weight: bold; }
.ko-t { color: var(--red); }
.bond { font-size: 11px; }
.reb { color: #c08a00; font-size: 12px; margin-left: 2px; }
.hpline { font-size: 13px; margin: 4px 0; }
.hpline .bar { height: 8px; margin-top: 2px; }
.warn { color: var(--red); font-size: 12px; margin: 4px 0; }
.ult-t { color: #c03ad0; }
.pslot.down { opacity: .6; }
img.stone { filter: grayscale(1) sepia(.35) brightness(.85) contrast(1.1); }
.hatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.hatch-cell { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hatch-cell img { width: 70px; height: 70px; object-fit: contain; }
.dex.unknown img.shadow { filter: brightness(0) opacity(.25); }
/* c262: 각성(眞·終) 모습은 빛나는 애니메이션이 filter 를 덮어써서 실루엣이 반짝일 때마다(終은 항상) 드러나던 것 — 실루엣은 애니메이션 없이 고정 */
.dex.unknown img.shadow, .di-evo img.shadow { animation: none !important; filter: brightness(0) opacity(.25) !important; }
.dex.seen { opacity: .85; }
.egg-crack { font-size: 40px; animation: crack .6s; }
@keyframes crack { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.ask img.pop.evo { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 18px #ffd84a); }
.rw.stones .stone-get { display: inline-flex; align-items: center; gap: 2px; margin: 2px 4px; }
.rw.stones img { width: 34px; height: 34px; object-fit: contain; }

/* 수색 중 */
.searching { position: absolute; inset: 0; z-index: 15; background: rgba(20,35,15,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; animation: fadein .2s; }
.searching .bushes { font-size: 54px; display: flex; gap: 6px; }
.searching .bushes span { display: inline-block; animation: rustle .5s ease-in-out infinite alternate; }
.searching .bushes span:nth-child(2n) { animation-delay: .2s; }
.searching .bushes span:nth-child(3n) { animation-delay: .35s; }
@keyframes rustle { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-4px); } }
.search-txt { font-family: 'Jua'; font-size: 34px; color: #fff; text-shadow: 0 3px 8px rgba(0,0,0,.6); }
.dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.searcher { height: 150px; animation: walk .45s ease-in-out infinite alternate; }
@keyframes walk { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6px) rotate(2deg); } }
.searching.found .search-txt, .travel.found .tr-info small { color: #ffd84a; font-size: 40px; animation: pop .4s; }
.searching.found { background: rgba(255,255,255,.35); }

/* 이동 연출 */
.travel { position: absolute; inset: 0; z-index: 15; overflow: hidden; animation: fadein .25s; }
.tr-sky { position: absolute; inset: 0; background: linear-gradient(#8fd0ff, #d8f1ff 60%); }
.tr-hills { position: absolute; left: 0; right: 0; bottom: 22%; height: 40%; background:
  radial-gradient(ellipse 30% 60% at 15% 100%, #6fbf5a 98%, transparent 100%),
  radial-gradient(ellipse 35% 70% at 55% 100%, #5aae48 98%, transparent 100%),
  radial-gradient(ellipse 30% 55% at 90% 100%, #6fbf5a 98%, transparent 100%);
  background-size: 1200px 100%; background-repeat: repeat-x; animation: scroll 6s linear infinite; }
.tr-road { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background:
  repeating-linear-gradient(90deg, #d9b97c 0 80px, #cfae72 80px 160px); border-top: 6px solid #5aae48; animation: scroll2 1.2s linear infinite; }
@keyframes scroll { to { background-position: -1200px 0; } }
@keyframes scroll2 { to { background-position: -160px 0; } }
.tr-walker { position: absolute; left: 50%; bottom: 14%; height: 200px; translate: -50% 0; animation: walk .35s ease-in-out infinite alternate; }
.tr-info { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(255,248,236,.95); border: 3px solid var(--brown2); border-radius: 16px; padding: 12px 20px; text-align: center; min-width: 320px; font-size: 18px; }
.tr-info b { font-family: 'Jua'; font-size: 22px; color: var(--brown); }
.tr-info .bar { height: 12px; margin: 8px 0 4px; }
.tr-info .bar i { transition: width .2s linear; }

/* 전투 이펙트 */
.battle.intro { animation: btintro .6s; }
@keyframes btintro { 0% { opacity: .3; filter: brightness(3) blur(6px); transform: scale(1.1); } 100% { opacity: 1; filter: none; transform: none; } }
.battle.shake .bt-bg, .battle.shake .bt-field { animation: shake .3s; }
.battle.shake2 .bt-bg, .battle.shake2 .bt-field { animation: shake2 .45s; }
/* 배경 층: 가장자리보다 넉넉히 크게 → 흔들려도 뒤가 안 보임 (로그·버튼은 안 흔들림) */
.bt-bg { position: absolute; inset: -28px; background-size: cover; background-position: center; z-index: -1; pointer-events: none; }
@keyframes shake { 25% { transform: translate(-5px, 3px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, -2px); } }
@keyframes shake2 { 15% { transform: translate(-12px, 6px); } 30% { transform: translate(10px, -8px); } 45% { transform: translate(-8px, 4px); } 60% { transform: translate(6px, -3px); } 80% { transform: translate(-3px, 2px); } }
.u-img { position: relative; }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.burst .flash { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c) 35%, transparent 70%); animation: flash .45s forwards; }
.burst .ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--c); animation: ring .55s forwards; }
.burst b { position: absolute; left: -12px; top: -14px; font-size: 24px; animation: particle .7s ease-out forwards; }
.burst.big .flash { left: -100px; top: -100px; width: 200px; height: 200px; }
.burst.big b { font-size: 32px; }
@keyframes flash { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.3); } }
@keyframes ring { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(3.2); } }
@keyframes particle { from { transform: translate(0,0) rotate(0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }
.dmg { font-size: 38px; z-index: 4; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.dmg.super { font-size: 46px; }
.sk-banner { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); white-space: nowrap; font-family: 'Jua'; font-size: 20px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55);
  background: var(--c); border: 2px solid #fff; border-radius: 12px; padding: 1px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: banner .9s forwards; z-index: 5; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
.cmd-grid .btn.ult { background: linear-gradient(90deg, #ff5ac8, #7a5aff); color: #fff; border-color: #5a2a8a; animation: pulse 1.2s infinite; }
.cmd-grid .btn.ult:disabled { animation: none; }

/* 필살기 컷신 */
.cutscene { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.85); overflow: hidden; display: flex; align-items: center; justify-content: center; animation: fadein .15s; }
.cutscene.out { animation: csfade .3s forwards; }
@keyframes csfade { to { opacity: 0; } }
@keyframes csout { to { opacity: 0; filter: brightness(4); } }
.cs-lines { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, transparent 0deg 4deg, rgba(255,255,255,.18) 4deg 5deg); animation: spin 1.8s linear; }
@keyframes spin { to { transform: rotate(25deg) scale(1.1); } }
.cs-band { position: absolute; left: 0; right: 0; top: 50%; height: 46%; transform: translateY(-50%) skewY(-6deg); background: linear-gradient(90deg, transparent, var(--c) 20%, var(--c) 80%, transparent); opacity: .55; animation: band .5s ease-out; }
@keyframes band { from { transform: translateY(-50%) skewY(-6deg) scaleX(0); } }
.cs-img { position: relative; height: 70%; max-width: 60%; object-fit: contain; filter: drop-shadow(0 0 30px var(--c)) drop-shadow(0 0 60px var(--c)); animation: csimg 1.7s ease-out; }
.cs-img.mutant { filter: hue-rotate(var(--hue)) drop-shadow(0 0 30px var(--c)); }
@keyframes csimg { 0% { transform: translateX(-60%) scale(.6); opacity: 0; } 25% { transform: translateX(0) scale(1.15); opacity: 1; } 70% { transform: scale(1.05); } 100% { transform: scale(1.3); } }
.cs-img.flip { animation-name: csimgf; }
@keyframes csimgf { 0% { transform: scaleX(-1) translateX(-60%) scale(.6); opacity: 0; } 25% { transform: scaleX(-1) scale(1.15); opacity: 1; } 100% { transform: scaleX(-1) scale(1.3); } }
.cs-name { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; font-family: 'Jua'; font-size: 64px; color: #fff;
  text-shadow: 0 0 20px var(--c), 0 4px 0 #000; animation: csname 1.7s ease-out; letter-spacing: 4px; }
.cs-name small { display: block; font-size: 22px; letter-spacing: 1px; opacity: .85; }
@keyframes csname { 0%, 20% { opacity: 0; transform: scale(2.5); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 1; } }

/* ===================== 모바일 (폰 세로) ===================== */
.m-only { display: none !important; }
@media (max-width: 760px) {
  .m-only { display: flex !important; }
  /* 상단바: 한 줄로 압축 */
  .topbar { gap: 6px; padding: 6px; }
  .me { flex: 1; min-width: 0; padding: 3px 8px 3px 3px; gap: 6px; border-radius: 12px; }
  .me img { width: 36px; height: 36px; }
  .me > div { min-width: 0; flex: 1; }
  .me-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .me-name .lv { font-size: 12px; }
  .me .fbadge { display: none; }
  .where { display: none; }
  .gold { padding: 5px 9px; font-size: 14px; border-radius: 12px; }
  .mute { padding: 3px 6px; font-size: 16px; }

  /* 가운데 화면: 위아래 바 사이에서 스크롤 */
  .center { left: 6px; right: 6px; top: 58px; bottom: 62px; align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .town-card, .ground-card { padding: 10px; border-radius: 14px; }
  .town-card h2, .ground-card h2 { font-size: 22px; }
  .town-card p, .ground-card p { font-size: 13px; }
  .facs { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
  .fac { padding: 7px 2px; border-radius: 12px; }
  .fac .ic { font-size: 20px; }
  .fac b { font-size: 15px; }
  .fac small { font-size: 10px; }
  .appear img { width: 56px; height: 56px; }
  .ground-card .btn.big { min-width: 0; width: 100%; }

  /* 하단 메뉴: 화면 폭에 꽉 차게 */
  .menu { left: 4px; right: 4px; bottom: 6px; transform: none; gap: 4px; }
  .menu button { flex: 1; min-width: 0; padding: 7px 2px; border-radius: 10px; }
  .menu b { font-size: 14px; }
  .menu small { display: none; }

  /* 채팅/접속자: 버튼으로 열고 닫는 시트 */
  body.show-side .side { display: flex; left: 6px; right: 6px; width: auto; top: 58px; bottom: 62px; z-index: 12; background: rgba(30,22,14,.9); border-radius: 14px; padding: 8px; }
  #btn-logout b { font-size: 12px; }
  #btn-chat.on { filter: brightness(.9); border-color: var(--accent2); }

  /* 패널 */
  .panel { top: 56px; bottom: 70px; width: calc(100vw - 8px); border-radius: 12px; }
  .panel-body { padding: 8px; }
  .hlist { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .dexgrid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
  .glist { grid-template-columns: 1fr; }
  .hatch-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

  /* 전투 */
  .bt-top { font-size: 15px; gap: 8px; padding: 6px; }
  .bt-field { padding: 4px 4px; }
  .bt-row { gap: 4px; }
  .unit, .bt-row.ally.many .unit { width: 31vw; max-width: 112px; }
  .unit .u-img, .bt-row.ally.many .unit .u-img { height: 72px; }
  .unit .u-img img, .bt-row.ally.many .unit .u-img img { width: 72px; height: 72px; }
  .unit.boss { width: 70vw; max-width: 260px; }
  .unit.boss .u-img { height: 170px; }
  .unit.boss .u-img img { width: 190px; height: 170px; }
  .u-info { padding: 2px 4px; font-size: 10px; }
  .u-info b { font-size: 12px; }
  .u-info .el { display: none; }
  .dmg { font-size: 24px; } .dmg.super { font-size: 28px; }
  .bt-bottom { padding: 6px; gap: 6px; }
  .bt-log { height: 64px; font-size: 12px; }
  .cmd-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .cmd-grid .btn { font-size: 14px; padding: 9px 4px; }
  .cmd-head { font-size: 13px; }

  /* 카드/창 */
  .trade-cols { grid-template-columns: 1fr; }
  .trade-arrow { text-align: center; }
  .create-card { padding: 12px; }
  .faction-pick small { display: none; }
  .tr-walker { height: 150px; }
  .tr-info { min-width: 0; width: 88vw; font-size: 15px; }
  .ask { width: 90vw; }
  input, select, textarea { font-size: 16px; } /* iOS 입력 시 자동 확대 방지 */
}

/* ===================== 추가 기능 (탑/월드보스/거래소/소셜/일일/회복약/자동전투) ===================== */
.tracker { position: absolute; left: 12px; bottom: 80px; width: 210px; z-index: 3; background: rgba(30,22,14,.72); color: #fff; border-radius: 12px; padding: 7px 9px; font-size: 12px; cursor: pointer; }
.tracker.hidden, .tracker:empty { display: none; }
.tr-head { font-family: 'Jua'; font-size: 14px; color: #ffd28a; margin-bottom: 2px; }
.tr-q { line-height: 1.5; }
.tr-q i { font-style: normal; color: #ffd28a; }
.tr-q.done { color: #9fe08a; }
.tr-q.story b { color: #ffb070; }
.mini-btn { background: rgba(255,248,236,.9); border: 1px solid var(--brown2); border-radius: 8px; font-size: 13px; padding: 0 5px; cursor: pointer; margin-left: 4px; }
.elem-hint { font-size: 13px; }
.ground-card .row { justify-content: center; gap: 8px; }

.bt-auto { margin-left: auto; position: absolute; right: 10px; top: 6px; background: rgba(0,0,0,.45); color: #fff; border: 2px solid rgba(255,255,255,.4); border-radius: 10px; padding: 3px 10px; font-size: 14px; cursor: pointer; font-family: inherit; }
.bt-auto.on { background: #e8a33a; border-color: #ffe0a0; color: #3a2008; box-shadow: 0 0 12px #ffbf4a; }
.auto-next { margin-top: 10px; font-size: 14px; color: #8a5a10; }

.attend-pop h3 { margin: 0 0 8px; color: var(--brown); font-size: 24px; }
.att-days { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.att-days span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eee3cf; color: #8a6a4a; font-weight: bold; }
.att-days span.on { background: #ffcf6a; color: #5a3a10; }
.att-days span.today { box-shadow: 0 0 0 3px #e8742a; transform: scale(1.12); }
.att-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.att { background: #fff; border: 2px solid #e5d4b5; border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 12px; }
.att.on { background: #fff1c9; border-color: #e8a33a; }
.att small { display: block; font-size: 10px; color: #6b5a40; }
.quest.claimed { opacity: .55; }
.ok { color: #2c7a32; font-weight: bold; }

.pot-have { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.rowi .bar.mini { width: 120px; margin: 2px 0; }

.tower-intro { display: flex; gap: 16px; align-items: flex-start; }
.tower-ic { font-size: 90px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.tower-intro h3 { margin: 0; font-size: 28px; color: var(--brown); }
.tower-stats { display: flex; gap: 14px; margin: 8px 0; font-size: 15px; }
.tower-stats b { color: #c0541a; font-size: 20px; }
.tower-intro .row { gap: 8px; flex-wrap: wrap; }

.wb { display: flex; gap: 16px; align-items: flex-start; }
.wb-img { width: 200px; filter: hue-rotate(170deg) drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.wb h3 { margin: 0 0 6px; font-size: 24px; color: #2a4a8a; }
.bar.hp.big { height: 16px; }
.wb-hp { font-size: 13px; text-align: right; color: #6b5a40; margin-bottom: 8px; }
.wb-top { margin: 4px 0; padding-left: 22px; font-size: 14px; }
.wb-top b { color: #c0541a; margin-left: 6px; }

.msell { display: grid; grid-template-columns: 110px 1fr 80px 120px auto; gap: 6px; align-items: center; }
.msell select, .msell input { padding: 6px; border: 2px solid #e5d4b5; border-radius: 8px; font-size: 14px; font-family: inherit; }

.rank { list-style: none; padding: 0; margin: 6px 0; }
.rank li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; background: #fff; margin-bottom: 4px; border: 1px solid #eee0c8; }
.rank li.mine { background: #fff1c9; border-color: #e8a33a; box-shadow: 0 0 0 1px rgba(232,163,58,.35); }   /* c311: '.me'(상단 내 정보 상자)와 겹쳐 글자가 안 보이던 것 */
.rank img { width: 30px; height: 30px; object-fit: cover; object-position: top; border-radius: 8px; }
.rank .rk { width: 26px; text-align: center; font-family: 'Jua'; font-size: 18px; color: #8a6a4a; }
.rank .r1 { color: #e0a800; } .rank .r2 { color: #8a9aa8; } .rank .r3 { color: #b0703a; }
.rank .rv { margin-left: auto; font-weight: bold; color: #c0541a; }
.tabs.small button { font-size: 13px; padding: 4px 8px; }
.friend .face { width: 36px; height: 36px; object-fit: cover; object-position: top; border-radius: 8px; background: #fff; }
.friend.on { border-left: 4px solid #4cc35a; }
.chat-log b[data-nick] { cursor: pointer; }
.chat-log .ch-whisper, .chat-log .ch-whisper-to { color: #ffb0e0; }

.dex-reward { background: #fff8e6; border: 2px solid #e8c98a; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 14px; }
.dr-next { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .tracker { left: 12px; bottom: 80px; }
}
@media (max-width: 760px) {
  /* 출전 아크링: 상단바 아래 가로 줄 */
  .party { display: flex !important; flex-direction: row; left: 6px; right: 6px; top: 54px; width: auto; gap: 4px; }
  .party .side-title { display: flex; align-items: center; font-size: 0; }
  .party .side-title .mini-btn { font-size: 18px; padding: 4px 6px; margin: 0; }
  .party .pslot { flex: 1; min-width: 0; padding: 2px 4px; gap: 3px; font-size: 11px; }
  .party .pslot img { width: 30px; height: 30px; }
  .party .pslot small, .party .pslot .el { display: none; }
  .party .pslot b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .party .pslot.empty { padding: 8px 2px; font-size: 10px; }
  .center { top: 104px; bottom: 92px; }
  .tracker { left: 6px; right: 6px; bottom: 58px; width: auto; padding: 4px 8px; display: flex; gap: 10px; overflow: hidden; white-space: nowrap; }
  .tracker .tr-head { display: none; }
  .tracker .tr-q:nth-child(n+4) { display: none; }
  .tower-intro, .wb { flex-direction: column; align-items: center; }
  .tower-ic { font-size: 60px; }
  .wb-img { width: 140px; }
  .msell { grid-template-columns: 1fr 1fr; }
  .att-grid { grid-template-columns: repeat(4, 1fr); }
  .bt-auto { top: 34px; right: 6px; font-size: 12px; padding: 2px 8px; }
  .rowi .bar.mini { width: 80px; }
}

/* ===================== 고유기 / 장비 / 허가서 ===================== */
.sig-t { color: #b0541a; cursor: help; }
.cmd-grid .btn.sig { background: linear-gradient(#fff3d6, #ffd99a); border-color: #d08a2a; }
.equip-line { margin: 4px 0; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ask .row { flex-wrap: wrap; justify-content: center; }
.ask .row .btn small { display: block; font-size: 11px; color: #6b5a40; font-weight: normal; }
.gitem { position: relative; }
.gitem.locked { opacity: .55; filter: grayscale(.6); }
.gitem .lock { position: absolute; right: 8px; top: 6px; font-size: 16px; }
.portal { position: absolute; inset: 0; z-index: 16; display: grid; place-items: center; background: radial-gradient(circle, rgba(120,220,140,.35), rgba(0,0,0,.65)); animation: fadein .2s; }
.portal.gate { background: radial-gradient(circle, rgba(160,120,255,.5), rgba(10,0,30,.8)); }
.portal.out { opacity: 0; transition: opacity .3s; }
.pt-ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 8px solid rgba(255,255,255,.7); box-shadow: 0 0 40px #b08aff, inset 0 0 40px #b08aff; animation: ptspin 1.1s ease-in forwards; }
.portal:not(.gate) .pt-ring { border-color: rgba(200,255,200,.7); box-shadow: 0 0 40px #7fe07f, inset 0 0 30px #7fe07f; }
@keyframes ptspin { from { transform: scale(.2) rotate(0); opacity: 0; } 50% { opacity: 1; } to { transform: scale(1.6) rotate(360deg); opacity: 0; } }
.pt-txt { position: relative; color: #fff; font-family: 'Jua'; font-size: 20px; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.pt-txt b { display: block; font-size: 34px; color: #ffe08a; }
.btn.red small { color: #ffe; }

/* ===================== 다이아 / 다이아 상점 ===================== */
.gold.dia { cursor: pointer; font-family: inherit; color: #2a5ab0; }
.cash-top { background: linear-gradient(90deg, #e8f0ff, #f6eaff); border: 2px solid #b8c8f0; border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.cash-top b { font-size: 22px; color: #2a5ab0; margin: 0 6px; }
.cash-top small { display: block; color: #5a6a8a; }
.cash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.cash-item { background: #fff; border: 2px solid #d8e0f5; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.cash-item.stone { border-color: #e8c98a; background: linear-gradient(#fffbea, #fff); }
.ci-ic { font-size: 34px; height: 76px; display: grid; place-items: center; }
.ci-ic img { width: 76px; height: 76px; object-fit: contain; }
.cash-item small { color: #6b5a40; font-size: 11px; flex: 1; }
.btn.red, button.red { background: #e5484d; color: #fff; border-color: #b0282d; }
@media (max-width: 760px) { .gold.dia { padding: 5px 7px; } .cash-grid { grid-template-columns: repeat(2, 1fr); } }

/* 모바일 전투 로그: 최근 2줄만 (누르면 펼침) → 화면 안 가리게 */
@media (max-width: 760px) {
  .bt-log { flex: none; height: 38px; font-size: 11px; line-height: 1.45; padding: 3px 8px; transition: height .2s; position: relative; }
  .bt-log.open { height: 150px; }
  .bt-log::after { content: '▲ 로그'; position: sticky; float: right; bottom: 0; font-size: 10px; opacity: .6; }
  .bt-log.open::after { content: '▼ 접기'; }
  .bt-bottom { gap: 4px; padding: 4px 6px 6px; }
  .cmd-grid .btn { padding: 7px 4px; font-size: 13px; }
  .cmd-head { margin-bottom: 4px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .unit .u-img, .bt-row.ally.many .unit .u-img { height: 56px; }
  .unit .u-img img, .bt-row.ally.many .unit .u-img img { width: 56px; height: 56px; }
  .bt-top { padding: 3px; font-size: 13px; }
}

/* ===================== 모바일 채팅 (아래쪽 시트) ===================== */
#btn-chat { position: relative; }
#btn-chat .badge, #camp-badge { position: absolute; top: -6px; right: -4px; background: #e5484d; color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; padding: 0 4px; line-height: 18px; text-align: center; }
#btn-chat .badge.hidden { display: none; }
.chat-close { margin-left: auto; }
@media (max-width: 760px) {
  /* 채팅을 화면 아래 절반만 차지하는 시트로 → 게임 화면 위쪽은 보이게 */
  body.show-side .side { top: auto; height: 46%; bottom: 58px; padding: 6px; gap: 4px; background: rgba(20,14,8,.94); box-shadow: 0 -6px 20px rgba(0,0,0,.4); }
  body.show-side .here { max-height: 26px; overflow: hidden; padding: 4px 8px; flex: none; }
  body.show-side.here-open .here { max-height: 40%; overflow: auto; }
  body.here-open .here-arrow { display: inline-block; transform: rotate(180deg); }
  body.show-side .chat { padding: 4px 6px; }
  body.show-side .chat .tabs button { padding: 3px 8px; font-size: 12px; }
  body.show-side .chat-log { font-size: 13px; }
  body.show-side .chat input { font-size: 16px; padding: 8px; margin-top: 4px; }
  /* 입력 중(키보드 올라옴): 채팅창을 위쪽까지, 메뉴는 숨김 */
  body.typing.show-side .side { top: 6px; height: auto; bottom: 6px; }
  body.typing .menu, body.typing .tracker { display: none; }
}

/* 기술 분류 / 위력 / 버프 표시 */
.cat { display: inline-block; font-size: 10px; padding: 0 5px; border-radius: 6px; color: #fff; background: var(--c); vertical-align: middle; }
.pw { font-size: 11px; color: #b0541a; font-weight: bold; }
.sk-sub { display: block; font-size: 10px; opacity: .75; font-weight: normal; }
.bf { display: inline-block; font-size: 9px; padding: 0 3px; border-radius: 4px; margin-left: 1px; color: #fff; vertical-align: middle; }
.bf.up { background: #2c8a3a; } .bf.down { background: #a0283a; }
.hcard .gr { font-size: 10px; }
.formula { background: #fff8e6; border: 1px solid #e8c98a; border-radius: 10px; padding: 6px 10px; margin: 8px 0; font-size: 13px; }
.formula summary { cursor: pointer; font-weight: bold; color: #8a5a10; }
.formula p { margin: 6px 0; } .formula ul { margin: 2px 0; padding-left: 18px; }
.recipe .tag { display: inline-block; font-size: 10px; background: #f0e2c4; border-radius: 6px; padding: 0 5px; margin-right: 4px; color: #6b4a2a; }
.invite-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; } .invite-list small { opacity: .7; }
.trade-money { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.trade-money input { width: 120px; padding: 6px; font-size: 15px; }
.tr-money { font-weight: bold; color: #8a5a10; margin-bottom: 4px; width: 100%; }
.tr-eq-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 120px; overflow-y: auto; }
.tr-eq { padding: 6px 10px; border: 1px solid #c9b48a; border-radius: 8px; background: #fffaf0; cursor: pointer; font-size: 14px; user-select: none; }
.tr-eq.sel { background: #ffe9b0; border-color: #d39a1c; font-weight: bold; }
.tr-eq .minus { margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #d9534f; color: #fff; }
/* 도감 상세 */
.dex[data-dex] { cursor: pointer; }
.dex[data-dex]:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.dexinfo { text-align: left; max-height: 66vh; overflow-y: auto; min-width: min(420px, 82vw); }
.di-head { display: flex; gap: 12px; align-items: center; }
.di-head img { width: 96px; height: 96px; object-fit: contain; }
.di-head h3 { margin: 0 0 4px; }
.di-own { font-size: 12px; background: var(--accent); color: #fff; border-radius: 8px; padding: 1px 6px; vertical-align: middle; }
.di-st { display: grid; grid-template-columns: 44px 44px 1fr 92px 70px; align-items: center; gap: 6px; font-size: 13px; margin: 3px 0; }
.di-st .bar { height: 8px; background: #eee3cf; border-radius: 4px; overflow: hidden; }
.di-st .bar i { display: block; height: 100%; background: #e0a43a; }
.di-st .bar.g i { background: #6cb86a; }
.di-st small { color: #8a7050; text-align: right; }
.di-sig { background: #fff8e6; border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.di-src div { padding: 5px 0; border-bottom: 1px dashed #e6d8bd; font-size: 14px; }
.di-src small { color: #8a7050; }
.di-evo { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.di-evo span { display: flex; flex-direction: column; align-items: center; opacity: .6; }
.di-evo span.cur { opacity: 1; font-weight: bold; }
.di-evo img { width: 52px; height: 52px; object-fit: contain; }
@media (max-width: 700px) {
  .di-st { grid-template-columns: 38px 36px 1fr 78px; font-size: 12px; }
  .di-st .bar.g { display: none; }
  .di-head img { width: 72px; height: 72px; }
}
.di-evo img.shadow { filter: brightness(0) opacity(.25); }
/* 버프·디버프·상태이상 연출 */
.aura { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.aura .glow { position: absolute; left: 50%; bottom: 4%; width: 110%; height: 34%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, var(--c) 0%, transparent 70%); opacity: 0; animation: aura-glow 1.1s ease-out; }
.aura b { position: absolute; left: calc(50% + var(--x)); bottom: 10%; font-size: 22px; font-weight: bold; color: var(--c);
  text-shadow: 0 0 6px var(--c), 0 2px 0 rgba(0,0,0,.35); opacity: 0; animation: aura-up 1s ease-out var(--d) forwards; }
.aura-down b, .aura-miss b { animation-name: aura-down; bottom: auto; top: 6%; }
.aura-guard .glow { bottom: 0; height: 100%; border-radius: 40%; background: radial-gradient(circle, transparent 45%, var(--c) 70%, transparent 75%); }
.aura-sleep b { font-family: 'Jua', sans-serif; }
@keyframes aura-glow { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 30% { opacity: .85; } 100% { opacity: 0; transform: translateX(-50%) scale(1.15); } }
@keyframes aura-up { 0% { opacity: 0; transform: translateY(0) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }
@keyframes aura-down { 0% { opacity: 0; transform: translateY(0) scale(1.1); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(80px) scale(.7); } }
/* 목록 필터 */
.fbar { background: #fff8ea; border: 1px solid #ead9b8; border-radius: 10px; padding: 6px 8px; margin-bottom: 8px; }
.frow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 3px 0; }
.fchip { border: 1px solid #d8c39b; background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 13px; cursor: pointer; font-family: inherit; }
.fchip.on { background: #e8a33a; color: #fff; border-color: #d18a1d; font-weight: bold; }
.fsearch { flex: 1; min-width: 120px; padding: 5px 8px; border: 1px solid #d8c39b; border-radius: 8px; font-size: 14px; }
.ftog { font-size: 13px; display: flex; align-items: center; gap: 3px; cursor: pointer; white-space: nowrap; }
.mixhint { margin-top: 6px; padding: 8px 10px; background: #f3ecff; border: 1px dashed #b9a2e6; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.mixhint small { color: #7a64a8; }
.evo-rule { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; background: #fff8ea; border-radius: 8px; }
.evo-rule th, .evo-rule td { padding: 4px 6px; text-align: center; border-bottom: 1px solid #ead9b8; }
b.ok, .cnt.ok { color: #2c8a3a; }
/* 상점 */
.shop-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.shop-mode button { padding: 12px; font-size: 18px; font-family: inherit; border: 2px solid #d8c39b; background: #fff; border-radius: 12px; cursor: pointer; }
.shop-mode button.on { background: linear-gradient(#ffcf6b, #f0a63a); border-color: #c9851b; color: #fff; font-weight: bold; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.sellrow { cursor: pointer; }
.sellrow.incart { background: #fff1c9; outline: 2px solid #f0b443; }
.cbadge { background: #e2563b; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; }
.cartbar { position: sticky; bottom: -12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  background: #fffaf0; border-top: 2px solid #ead9b8; padding: 10px 6px; margin-top: 10px; z-index: 2; }
.cartbar > span { margin-right: auto; font-size: 15px; }
.cartbar .sumg { color: #b5781a; font-size: 17px; }
[data-act=allloot] { margin-bottom: 6px; }
/* 부화 수량 */
.qty { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.qty input { width: 64px; text-align: center; font-size: 16px; padding: 4px; }
.hatch-many { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-height: 40vh; overflow-y: auto; margin: 6px 0; }
.hatch-many span { display: flex; flex-direction: column; align-items: center; font-size: 11px; }
/* 프리셋 */
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; padding: 6px 8px; background: #eef6ff; border-radius: 10px; }
.presets .pl { font-weight: bold; font-size: 13px; margin-right: 2px; }
.pset { display: inline-flex; border: 1px solid #9cbbe0; border-radius: 8px; overflow: hidden; background: #fff; }
.pset button { border: 0; background: transparent; padding: 4px 8px; font-family: inherit; cursor: pointer; font-size: 13px; }
.pset .pload { font-weight: bold; color: #2a5a9a; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pset.empty .pload { color: #aaa; }
.pset .psave { border-left: 1px solid #c9dbf0; }
.presets .btn { margin-left: auto; }
/* ===== 스킬 이펙트 개편: 단계별 강도 + 속성 고유 모양 ===== */
.burst b { font-size: calc(22px * var(--s, 1)); }
.burst .ring.r2 { animation-delay: .08s; border-width: 2px; }
.burst.lv3 .flash { left: -80px; top: -80px; width: 160px; height: 160px; }
.burst.lv4 .flash { left: -110px; top: -110px; width: 220px; height: 220px; }
.burst .shape { position: absolute; pointer-events: none; }
/* 불: 불기둥 */
.burst .shape.pillar { left: -26px; bottom: -40px; width: 52px; height: 150px; border-radius: 40% 40% 20% 20%;
  background: linear-gradient(to top, #fff6c0, #ffb02a 30%, #ff4a1a 65%, transparent); filter: blur(2px); transform-origin: bottom; animation: pillar .6s ease-out forwards; }
.burst .shape.pillar.s2 { left: -44px; width: 88px; opacity: .6; animation-delay: .08s; }
@keyframes pillar { 0% { transform: scaleY(0) scaleX(.6); opacity: 1; } 40% { transform: scaleY(1.1) scaleX(1); } 100% { transform: scaleY(1.2) scaleX(.3); opacity: 0; } }
/* 물: 물보라 */
.burst .shape.splash { left: -70px; top: -10px; width: 140px; height: 60px; border-radius: 50% 50% 0 0;
  border-top: 8px solid #bfe6ff; border-left: 6px solid transparent; border-right: 6px solid transparent; animation: splash .6s ease-out forwards; }
.burst .shape.splash.s2 { left: -100px; width: 200px; animation-delay: .1s; border-top-color: #3ba7ff; }
@keyframes splash { 0% { transform: scale(.2, .2) translateY(30px); opacity: 1; } 60% { transform: scale(1, 1.3) translateY(-20px); opacity: .9; } 100% { transform: scale(1.2, 1.5) translateY(-34px); opacity: 0; } }
/* 풀: 덩굴 고리 */
.burst .shape.vine { left: -55px; top: -55px; width: 110px; height: 110px; border-radius: 50%;
  border: 6px dashed #52c44a; animation: vine .7s ease-out forwards; }
.burst .shape.vine.s2 { left: -75px; top: -75px; width: 150px; height: 150px; border-color: #9be36a; animation-direction: normal; animation-delay: .06s; }
@keyframes vine { 0% { transform: rotate(0) scale(.3); opacity: 1; } 100% { transform: rotate(270deg) scale(1.1); opacity: 0; } }
/* 땅: 균열 + 바위 */
.burst .shape.crack { left: -80px; top: 20px; width: 160px; height: 24px;
  background: repeating-linear-gradient(115deg, transparent 0 10px, #5a3a1a 10px 13px, transparent 13px 22px); animation: crack .7s ease-out forwards; }
.burst .shape.crack.s2 { top: 34px; left: -110px; width: 220px; animation-delay: .05s; }
@keyframes crack { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); } 100% { transform: scaleX(1.05); opacity: 0; } }
/* 바람: 참격 */
.burst .shape.slash { left: -70px; top: -4px; width: 140px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #fff, #7fe0d0, transparent); transform: rotate(-30deg); animation: slash .45s ease-out forwards; }
.burst .shape.slash.s2 { transform: rotate(30deg); animation-delay: .1s; }
@keyframes slash { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 60% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); opacity: .2; } }
/* 빛: 빛기둥 */
.burst .shape.beam { left: -22px; top: -220px; width: 44px; height: 300px;
  background: linear-gradient(to bottom, transparent, #fffbe0 30%, #ffd84a 70%, transparent); filter: blur(1px); animation: beam .6s ease-out forwards; }
.burst .shape.beam.s2 { left: -40px; width: 80px; opacity: .5; }
@keyframes beam { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1.2); } 100% { transform: scaleX(.1); opacity: 0; } }
/* 어둠: 소용돌이 */
.burst .shape.vortex { left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, #2a0a4a, #9a5aff, transparent, #2a0a4a, transparent); animation: vortex .7s ease-in forwards; }
.burst .shape.vortex.s2 { left: -85px; top: -85px; width: 170px; height: 170px; opacity: .55; }
@keyframes vortex { 0% { transform: rotate(0) scale(1.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotate(-540deg) scale(.1); opacity: 0; } }
/* 완전체 타격: 화면 속성 색 번쩍 */
#battle.tint::after { content: ''; position: absolute; inset: 0; background: var(--tint); mix-blend-mode: screen; pointer-events: none; z-index: 20; animation: tint .35s ease-out forwards; }
@keyframes tint { from { opacity: .45; } to { opacity: 0; } }
/* 날아가는 속성 탄 */
.proj { position: absolute; width: 0; height: 0; z-index: 15; pointer-events: none; animation: proj .23s ease-in forwards; }
.proj i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--c) 45%, transparent 72%);
  box-shadow: 0 0 12px var(--c), 0 0 24px var(--c); }
.proj b { position: absolute; left: -12px; top: -14px; font-size: 22px; }
.proj.lv2 i { transform: scale(1.3); } .proj.lv3 i { transform: scale(1.7); } .proj.lv4 i { transform: scale(2.2); }
@keyframes proj { from { transform: translate(0, 0) scale(.6); } to { transform: translate(var(--tx), var(--ty)) scale(1.2); } }
/* 필살기 전장 연출 */
.ult-fx { position: absolute; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.ult-fx .veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, var(--c), transparent 75%); opacity: 0; animation: veil 1.2s ease-out forwards; }
.ult-fx .sweep { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); animation: sweep .7s ease-in .1s forwards; }
.ult-fx b { position: absolute; top: -40px; font-size: calc(30px * var(--s)); animation: rain .75s ease-in var(--d) forwards; filter: drop-shadow(0 0 8px var(--c)); }
.ult-fx .boom { position: absolute; left: 50%; top: 32%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 80px 40px var(--c); animation: boom .9s ease-out .5s forwards; opacity: 0; }
@keyframes veil { 0% { opacity: 0; } 25% { opacity: .75; } 100% { opacity: 0; } }
@keyframes sweep { to { left: 120%; } }
@keyframes rain { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(70vh) rotate(200deg); opacity: 0; } }
@keyframes boom { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(60); } }
/* 필살기 컷신 파티클 */
.cs-p { position: absolute; left: 50%; top: 50%; font-size: 34px; transform: rotate(var(--a)) translateY(-40px); opacity: 0; animation: csp 1.5s ease-out var(--d) forwards; z-index: 2; }
@keyframes csp { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--a) + 60deg)) translateY(-46vh) scale(1.4); } }
.cs-name { animation: csname 1.6s ease-out; }
@keyframes csname { 0% { transform: scale(2.4); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 90% { opacity: 1; } 100% { opacity: 1; } }
/* 컷신 움직이는 요소는 GPU 레이어로 (자간·필터 애니메이션은 매 프레임 다시 그려서 끊김의 원인이었음) */
.cs-lines, .cs-img, .cs-band, .cs-name, .cine-h, .cine-egg, .cine-cap { will-change: transform, opacity; }
/* 수문장 스토리 컷신 */
.gate-scene { position: fixed; inset: 0; z-index: 90; background: radial-gradient(ellipse at 50% 35%, rgba(60,40,20,.75), rgba(0,0,0,.92)); display: flex; flex-direction: column; justify-content: space-between; padding: 6vh 16px; animation: fadein .4s; cursor: pointer; }
.gate-scene.out { animation: csout .3s forwards; }
.gs-top { text-align: center; color: #ffe2a0; font-family: 'Jua', sans-serif; }
.gs-top small { display: block; color: #c9b28a; font-size: 14px; letter-spacing: 2px; }
.gs-top b { font-size: clamp(22px, 5vw, 38px); text-shadow: 0 0 18px #ffb02a; animation: csname 1.4s ease-out; display: inline-block; }
.gs-box { max-width: 760px; width: 100%; margin: 0 auto; background: rgba(255,250,235,.96); border: 3px solid #c9963a; border-radius: 14px; padding: 16px 18px 26px; position: relative; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.gs-who { position: absolute; top: -16px; left: 16px; background: #6b4a1e; color: #fff; padding: 3px 14px; border-radius: 10px; font-family: 'Jua', sans-serif; font-size: 16px; }
.gs-who.boss { background: #8a2a1a; }
.gs-who.ancient { background: linear-gradient(90deg, #2a6a8a, #6a3a9a); }
.gs-text { font-size: clamp(16px, 3.6vw, 20px); line-height: 1.6; min-height: 3.2em; color: #3a2a12; }
.gs-next { position: absolute; right: 14px; bottom: 6px; font-size: 12px; color: #a08050; animation: pulse 1.2s infinite; }
.pset button, .pset button:disabled { height: 28px; min-height: 0; line-height: 1; margin: 0; box-shadow: none; transform: none; opacity: 1; }
/* 완전체별 필살기 변주 */
.ult-fx .veil { background: radial-gradient(ellipse at 50% 30%, var(--c), var(--c2) 45%, transparent 78%); }
.ult-fx.rev .sweep { left: auto; right: -40%; transform: skewX(20deg); animation-name: sweeprev; }
@keyframes sweeprev { to { right: 120%; } }
.ult-fx .halo { position: absolute; left: 50%; top: 30%; width: 60vmin; height: 60vmin; margin: -30vmin; border-radius: 50%;
  border: 6px solid var(--c2); box-shadow: 0 0 40px var(--c2), inset 0 0 40px var(--c); animation: halo 1.1s ease-out forwards; opacity: 0; }
@keyframes halo { 0% { transform: scale(.2) rotate(0); opacity: 1; } 100% { transform: scale(1.8) rotate(90deg); opacity: 0; } }
.cutscene .cs-band { background: linear-gradient(90deg, transparent, var(--c) 20%, var(--c2) 50%, var(--c) 80%, transparent); }
.cutscene.grand .cs-lines { background: repeating-conic-gradient(from 0deg, transparent 0deg 3deg, rgba(255,240,180,.3) 3deg 4deg); }
.cutscene.grand .cs-name { color: #fff6d0; text-shadow: 0 0 20px var(--c2), 0 0 40px var(--c); }
/* 신수 */
.raid-pick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.raid-pick .rp { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 6px 4px; border: 2px solid #d8c39b; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; }
.raid-pick .rp img { width: 56px; height: 56px; object-fit: contain; }
.raid-pick .rp.on { border-color: #d9534f; background: #fff1ec; }
.raid-pick .rp small { font-size: 11px; color: #8a7050; }
.divine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.divine-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 12px; background: linear-gradient(#fffaf0, #fff1d6); border: 2px solid #e6c788; text-align: center; }
.divine-cell img { width: 110px; height: 110px; object-fit: contain; }
.divine-cell img.dim { filter: grayscale(.6) brightness(.8); }
.divine-cell .bar { width: 100%; }

/* ===== 적대 / 결투 ===== */
.hostile-tag { background: linear-gradient(180deg, #c0392b, #7d1d14); color: #fff; border: 1px solid #ff8a7a; border-radius: 6px;
  font-size: 11px; font-weight: 700; padding: 1px 6px; margin-left: 4px; cursor: pointer; white-space: nowrap; }
button.hostile-tag:hover:not(:disabled) { filter: brightness(1.2); box-shadow: 0 0 8px #ff5a4a; }
button.hostile-tag:disabled { opacity: .45; cursor: default; }
span.hostile-tag { cursor: default; }

/* ===== 거래소 3종 ===== */
.mk-head { padding: 8px 10px; border-radius: 8px; margin-bottom: 8px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 3px; }
.mk-head.own { border-left: 4px solid #4caf50; }
.mk-head.port { border-left: 4px solid #3fa7ff; }
.mk-head.dark { border-left: 4px solid #8e44ad; background: linear-gradient(90deg, rgba(60,10,80,.55), rgba(0,0,0,.3)); }
.mk-head small { opacity: .8; }
.mk-head .dark-note { color: #d9a8ff; opacity: 1; }
.price.dia { color: #1583ad; }
.cash-top.fshop { background: linear-gradient(90deg, rgba(200,150,40,.25), rgba(0,0,0,.2)); }

/* ===== 초대 목록 ===== */
.inv-box { margin-top: 12px; border: 1px solid rgba(120,90,60,.25); border-radius: 12px; background: linear-gradient(180deg, rgba(255,250,240,.9), rgba(245,235,220,.9)); overflow: hidden; }
.inv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; background: linear-gradient(90deg, #8a5a2b, #b07a3a); color: #fff; }
.inv-head small { opacity: .85; flex: 1; min-width: 160px; }
.inv-head input { flex: 0 1 160px; padding: 5px 10px; border-radius: 999px; border: none; font-size: 13px; }
.inv-sec { padding: 8px 10px 10px; }
.inv-sec + .inv-sec { border-top: 1px dashed rgba(120,90,60,.25); }
.inv-label { font-weight: 700; font-size: 13px; color: #6b4a2a; margin: 2px 2px 6px; }
.inv-label small { color: #9a7a5a; font-weight: 400; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 2px; }
.inv-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(120,90,60,.25);
  background: #fff; cursor: pointer; text-align: left; transition: transform .12s, box-shadow .12s, border-color .12s; font: inherit; color: inherit; }
.inv-card:hover { transform: translateY(-1px); border-color: #e0952a; box-shadow: 0 3px 10px rgba(224,149,42,.25); }
.inv-card img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; background: radial-gradient(#fff6e6, #f0dcc0); flex: none; }
.inv-card .ic-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.inv-card .ic-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.inv-card .ic-t small { color: #8a7a6a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-card .ic-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; color: #fff; flex: none; }
.ic-tag.friend { background: #e0a020; } .ic-tag.busy { background: #888; } .ic-tag.hostile { background: #c0392b; }
.inv-card .ic-go { font-size: 11px; font-weight: 700; color: #fff; background: #e0952a; border-radius: 999px; padding: 3px 8px; flex: none; opacity: 0; transition: opacity .12s; }
.inv-card:hover .ic-go { opacity: 1; }
.inv-card.busy { opacity: .6; }
.inv-card.hostile { border-color: rgba(192,57,43,.35); }
.inv-card.sent .ic-go { opacity: 1; background: #4caf50; }
.inv-card.sent .ic-go::before { content: '✓ '; }
.inv-empty { margin: 4px; font-size: 12px; color: #9a7a5a; }
@media (hover: none) { .inv-card .ic-go { opacity: 1; } }

/* ===== VFX 캔버스 / 상태이상 ===== */
.vfx-canvas { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 26; }
.stt { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 6px; margin-left: 2px; color: #fff; line-height: 15px; vertical-align: middle; }
.stt.burn { background: #e2541c; } .stt.para { background: #c9a400; } .stt.freeze { background: #3a9ad8; } .stt.sleep { background: #6a6ab0; }
.stt.poison, .stt.toxic { background: #8a3ad0; } .stt.bleed { background: #b01a2a; } .stt.stun { background: transparent; }
.stt.confuse { background: #c0369a; }
.unit.st-freeze .u-img img { filter: brightness(1.1) saturate(.4) hue-rotate(160deg) drop-shadow(0 0 6px #8fd8ff); }
.unit.st-burn .u-img img { animation: st-burn 1s infinite; }
.unit.st-para .u-img img { animation: st-para 1.4s infinite; }
.unit.st-poison .u-img img, .unit.st-toxic .u-img img { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #a64aff) saturate(1.2); }
.unit.st-sleep .u-img img { filter: hue-rotate(var(--hue, 0deg)) brightness(.8); animation: st-sleep 2.4s infinite ease-in-out; }
@keyframes st-burn { 0%, 100% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 4px #ff6a1f); } 50% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 10px #ff3a00) brightness(1.08); } }
@keyframes st-para { 0%, 88%, 100% { filter: hue-rotate(var(--hue, 0deg)); transform: none; } 90% { filter: hue-rotate(var(--hue, 0deg)) brightness(1.6) drop-shadow(0 0 8px #ffe14a); transform: translateX(-2px); } 94% { transform: translateX(2px); } }
@keyframes st-sleep { 50% { transform: translateY(3px) scale(.98); } }

/* ===== 컷신 (진화·믹스·부화·신수 합성) ===== */
.cine { position: fixed; inset: 0; z-index: 400; overflow: hidden; opacity: 0; transition: opacity .3s; }
.cine.on { opacity: 1; }
.cine-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 44%, #1d2440 0%, #090b16 70%, #000 100%); }
.cine.mix .cine-bg { background: radial-gradient(ellipse at 50% 44%, #2a1640 0%, #0c0816 70%, #000 100%); }
.cine.hatch .cine-bg { background: radial-gradient(ellipse at 50% 44%, #3a2a18 0%, #120c06 70%, #000 100%); }
.cine.divine .cine-bg { background: radial-gradient(ellipse at 50% 44%, #10283a 0%, #03080e 70%, #000 100%); }
.cine-stage { position: absolute; inset: 0; z-index: 1; }
.cine .vfx-canvas { z-index: 2; }
.cine-h { position: absolute; transform: translate(-50%, -50%); z-index: 1; transition: transform .9s cubic-bezier(.6,0,.4,1), opacity .25s, filter .2s; }
.cine-h img { width: 100%; height: 100%; object-fit: contain; filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.cine-h.hide { opacity: 0; }
.cine-h.sil img { filter: brightness(0) invert(1) drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 16px rgba(160,216,255,.8)); }
.cine-h.pulse { animation: cine-pulse .35s ease-out; }
.cine-h.glowmax img { filter: brightness(0) invert(1) drop-shadow(0 0 30px #fff) drop-shadow(0 0 80px #fff); }
.cine-h.glowmax { animation: cine-tremble .08s infinite; }
.cine-h.reveal { animation: cine-reveal .9s cubic-bezier(.2,1.6,.4,1) both; }
.cine-h.reveal.grand img { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 30px rgba(255,240,180,.8)) drop-shadow(0 8px 20px rgba(0,0,0,.6)); }
.cine-h.failed img { filter: grayscale(.8) brightness(.7); }
.cine-h.failed { animation: cine-fail .5s; }
.cine-h.pull-r { transform: translate(calc(-50% + min(30vw, 300px)), -50%) scale(.05) rotate(540deg); opacity: 0; transition: transform .9s cubic-bezier(.6,0,.4,1), opacity .9s ease-in; }
.cine-h.pull-l { transform: translate(calc(-50% - min(30vw, 300px)), -50%) scale(.05) rotate(-540deg); opacity: 0; transition: transform .9s cubic-bezier(.6,0,.4,1), opacity .9s ease-in; }
@keyframes cine-pulse { 0% { transform: translate(-50%, -50%) scale(1.12); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes cine-tremble { 0% { transform: translate(-51%, -50%); } 50% { transform: translate(-49%, -51%); } 100% { transform: translate(-50%, -49%); } }
@keyframes cine-reveal { 0% { transform: translate(-50%, -50%) scale(.3); filter: hue-rotate(var(--hue, 0deg)) brightness(3); } 60% { transform: translate(-50%, -50%) scale(1.12); } 100% { transform: translate(-50%, -50%) scale(1); filter: hue-rotate(var(--hue, 0deg)); } }
@keyframes cine-fail { 0%, 100% { transform: translate(-50%, -50%); } 20% { transform: translate(-54%, -50%); } 40% { transform: translate(-46%, -50%); } 60% { transform: translate(-53%, -50%); } 80% { transform: translate(-48%, -50%); } }
.cine-egg { position: absolute; width: min(200px, 40vw); aspect-ratio: 4/5; transform: translate(-50%, -50%); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; z-index: 1;
  background: radial-gradient(ellipse at 35% 28%, #fff 0%, var(--c2) 22%, var(--c) 70%, #1a1a1a 130%); box-shadow: 0 0 40px var(--c), inset -14px -20px 30px rgba(0,0,0,.35); overflow: hidden; }
.cine-egg .egg-in { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; filter: brightness(0); opacity: .18; }
.cine-egg.wob { animation: cine-wob .5s ease-in-out; }
.cine-egg.glowmax { animation: cine-tremble .06s infinite; box-shadow: 0 0 80px #fff, 0 0 160px var(--c2); filter: brightness(1.6); }
@keyframes cine-wob { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(var(--amp)); } 75% { transform: translate(-50%, -50%) rotate(calc(var(--amp) * -1)); } }
.cine-grid { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: center; width: min(760px, 94vw); max-height: 56vh; overflow-y: auto; padding: 10px; z-index: 3; }
.cine-grid span { position: relative; width: var(--sz, 84px); height: var(--sz, 84px); border-radius: 14px; flex: none;
  background: radial-gradient(circle at 50% 40%, rgba(255,240,200,.16), rgba(255,255,255,.04) 70%); border: 1px solid rgba(232,194,122,.35);
  box-shadow: 0 6px 16px rgba(0,0,0,.35); animation: grid-pop .5s cubic-bezier(.2,1.6,.4,1) var(--d) both; }
.cine-grid span.best { background: radial-gradient(circle at 50% 40%, rgba(255,224,120,.45), rgba(255,200,80,.08) 70%); border-color: #ffd76a; box-shadow: 0 0 18px rgba(255,214,100,.7), 0 6px 16px rgba(0,0,0,.35); }
.cine-grid span.best::after { content: 'BEST'; position: absolute; left: 50%; top: -9px; transform: translateX(-50%); font: 11px 'Jua', sans-serif; color: #2a1a00; background: linear-gradient(#ffe89a, #e8b040); padding: 1px 8px; border-radius: 999px; }
.cine-grid img { width: 100%; height: 100%; object-fit: contain; padding: 6%; filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.cine-grid .grade { position: absolute; right: 4px; bottom: 4px; }
.cine-grid.n-s { --sz: 140px; } .cine-grid.n-m { --sz: 104px; } .cine-grid.n-l { --sz: 80px; }
@keyframes grid-pop { from { transform: scale(.3) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cine-cap { position: absolute; left: 50%; bottom: 7vh; transform: translateX(-50%); z-index: 5; width: min(560px, 92vw); text-align: center; color: #fff;
  font-size: 18px; text-shadow: 0 2px 8px #000; opacity: 0; transition: opacity .3s; }
.cine-cap.show { opacity: 1; }
.cine-cap.tense { font-size: 28px; letter-spacing: 4px; animation: cine-tremble .1s infinite; }
.cine-cap .big { font-size: 30px; font-weight: 800; margin-bottom: 4px; }
.cine-cap.good .big { color: #ffe680; text-shadow: 0 0 18px #ffb02a, 0 2px 6px #000; animation: cap-pop .6s cubic-bezier(.2,1.6,.4,1) both; font-family: 'Jua', sans-serif; }
@keyframes cap-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.cine-cap.bad .big { color: #b8c0cc; }
.cine-cap b.new { color: #ffe680; }
.cine-cap small { display: block; margin-top: 6px; font-size: 13px; opacity: .85; }
.cine-ok { margin-top: 14px; }
.cine-ok .btn { min-width: 140px; }
.cine .rar { font-size: 14px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.rar.r2 { background: #3a8ad8; } .rar.r3 { background: linear-gradient(90deg, #c08a00, #ffd84a); color: #3a2a00; } .rar.r4 { background: linear-gradient(90deg, #ff5a5a, #ffb02a, #5aff8a, #5ab8ff, #b05aff); }
.rar.r5 { background: linear-gradient(90deg, #0ab, #ffd84a, #f5a); }
.cine-skip { position: absolute; right: 14px; top: 14px; z-index: 6; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; }
.cine-skip:hover { background: rgba(255,255,255,.25); }
.cine.shake { animation: shake .3s; } .cine.shake2 { animation: shake2 .45s; }
.cine-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b4a2a; margin: 2px 0 8px; cursor: pointer; user-select: none; }

/* ===== 레이드 모집 / 매칭 ===== */
.raid-party { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0; font-size: 13px; }
.raid-party > b { margin-right: 4px; color: #6b4a2a; }
.rp-m { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 2px; border-radius: 999px; background: #fff; border: 1px solid rgba(120,90,60,.25); font-size: 12px; }
.rp-m img { width: 22px; height: 22px; border-radius: 50%; background: #f0dcc0; object-fit: contain; }
.rp-m.host { border-color: #e0952a; box-shadow: 0 0 0 1px #e0952a inset; }
.raid-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.raid-ads { margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(255,250,240,.7); border: 1px solid rgba(120,90,60,.2); }
.ra-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.ra-card { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(120,90,60,.2); }
.ra-card.mine { border-color: #e0952a; background: #fff6e6; }
.ra-card img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: radial-gradient(#3a2a4a, #1a1020); }
.ra-card .ra-t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ra-card .ra-t small { color: #8a7a6a; font-size: 11px; }
.ra-card .ra-n { font-weight: 800; color: #b0541a; font-size: 15px; }
.ra-card .ic-tag { font-size: 11px; padding: 2px 8px; }

/* ===== 연금 공방 ===== */
.ws-pot { border-radius: 14px; padding: 12px; background: radial-gradient(ellipse at 50% 120%, #ff9a3a55, transparent 60%), linear-gradient(180deg, #3a2a4a, #1e1628); color: #fff; margin-bottom: 8px; box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.ws-slots { display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px; align-items: center; justify-content: center; }
.ws-empty { opacity: .7; font-size: 13px; }
.ws-slot, .ws-item { position: relative; display: flex; flex-direction: column; align-items: center; width: 74px; padding: 6px 2px 4px; border-radius: 10px; cursor: pointer; font: inherit; border: 1px solid rgba(255,255,255,.2); }
.ws-slot { background: rgba(255,255,255,.1); color: #fff; animation: ws-pop .3s both; }
@keyframes ws-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.1); } 100% { transform: none; } }
.ws-item { background: #fff; color: #4a3a2a; border-color: rgba(120,90,60,.25); }
.ws-slot .ic, .ws-item .ic { font-size: 24px; line-height: 1.1; }
.ws-slot small, .ws-item small { font-size: 11px; text-align: center; line-height: 1.2; max-width: 72px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: keep-all; min-height: 2.4em; }   /* c388: 10px 한 줄 말줄임 → 11px 두 줄 */
.ws-slot b, .ws-item b { position: absolute; right: 4px; top: 2px; font-size: 11px; }
.ws-item.t2 { box-shadow: inset 0 -3px 0 #4a9ad8; } .ws-item.t3 { box-shadow: inset 0 -3px 0 #e0a020; background: #fffaf0; }
.ws-item:hover { transform: translateY(-1px); border-color: #e0952a; }
.ws-res { text-align: center; margin: 8px 0; font-size: 15px; min-height: 22px; }
.ws-res .ic { font-size: 22px; }
.ws-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ws-go input { width: 54px; padding: 4px; border-radius: 6px; border: none; }
.ws-go small { width: 100%; text-align: center; opacity: .7; font-size: 11px; }
.ws-inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.ws-book { display: flex; flex-direction: column; gap: 5px; max-height: 420px; overflow-y: auto; }
.ws-rc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(120,90,60,.2); font-size: 12px; }
.ws-rc.can { border-color: #4caf50; }
.ws-rc.sel { background: #fff8e6; border-color: #e09a20; box-shadow: 0 0 0 1px #e09a20 inset; }   /* c376 */
.ws-chk { display: flex; align-items: center; }
.ws-chk input { width: 18px; height: 18px; accent-color: #e07a20; cursor: pointer; }
.ws-fav { border: 0; background: none; font-size: 16px; line-height: 1; padding: 2px; cursor: pointer; color: #b8a080; }
.ws-fav.on { color: inherit; }
.ws-batch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; padding: 6px 10px; border-radius: 10px; background: #fff4dc; border: 1px dashed #e0a020; font-size: 12px; }
.ws-batch small { color: #8a6a40; flex-basis: 100%; }
.ws-rc.secret { background: linear-gradient(90deg, #fff6e0, #fff); border-color: #e0a020; }
.ws-rc .ws-in { flex: 1; min-width: 180px; }
.ws-rc .ws-in .lack { color: #b04040; opacity: .75; }
.ws-rc .ws-arrow { color: #b0541a; font-weight: 800; }
.ws-rc .ws-out { min-width: 120px; }
.ws-done { font-size: 64px; margin: 6px auto 10px; width: 110px; height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(#fff6d0, #ffb02a44 60%, transparent 70%); animation: ws-pop .7s both; }
.ws-done.great { box-shadow: 0 0 30px #ffd84a; }
.ws-done.secret { background: radial-gradient(#fff, #c08aff66 60%, transparent 70%); box-shadow: 0 0 40px #c08aff; }

/* ===== 튜토리얼 (딤 + 홀 마스크) ===== */
.tut { position: fixed; inset: 0; z-index: 500; }
.tut-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8,6,20,.74); transition: all .35s cubic-bezier(.4,0,.2,1); pointer-events: none; }
.tut-hole::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #ffd84a; box-shadow: 0 0 18px #ffb02a; animation: tut-pulse 1.4s infinite; }
.tut-hole.none::after { display: none; }
@keyframes tut-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.03); } }
.tut-bubble { position: fixed; background: linear-gradient(180deg, #fffaf0, #f6ead6); color: #4a3220; border-radius: 14px; padding: 14px 16px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 2px solid #e0a040; }
.tut-bubble.pop { animation: ws-pop .3s both; }
.tut-bubble.up::before, .tut-bubble.down::after { content: ''; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.tut-bubble.up::before { top: -20px; border-bottom-color: #e0a040; }
.tut-bubble.down::after { bottom: -20px; border-top-color: #e0a040; }
.tut-step { font-size: 11px; color: #b08050; }
.tut-title { display: block; font-size: 16px; margin: 2px 0 6px; color: #8a4a10; }
.tut-text { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
.tut-btns { display: flex; justify-content: space-between; align-items: center; }
.tut-skip { background: none; border: none; color: #a08060; font-size: 12px; cursor: pointer; text-decoration: underline; }

/* ===== 해금 / 알림 / 편의 ===== */
.fac.locked { filter: grayscale(.85); opacity: .7; }
.fac.locked small { color: #b05020; font-weight: 700; }
.unlock-pop .ul { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 12px; margin: 6px 0; border-radius: 12px; background: linear-gradient(90deg, #fff4d0, #fff); border: 1px solid #e0b040; animation: ws-pop .5s both; }
.unlock-pop .ul-ic { font-size: 30px; }
.unlock-pop .ul b { display: block; font-size: 16px; color: #8a4a10; }
.unlock-pop .ul small { color: #7a6a5a; }
.bell { position: relative; }
.bell .badge, .menu button .badge.evo { position: absolute; top: -4px; right: -4px; background: #e0302a; color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 5px; min-width: 16px; line-height: 14px; }
.menu button { position: relative; }
.menu button .badge.evo { background: #2c9a3a; }
.badge.hidden { display: none; }
.notif-list { display: flex; flex-direction: column; gap: 4px; }
.notif { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 1px solid rgba(120,90,60,.15); font-size: 13px; }
.notif small { color: #9a8a7a; white-space: nowrap; }
.hunt-row { display: flex; gap: 8px; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.btn.auto-hunt { font-size: 13px; }
.btn.auto-hunt.on { background: linear-gradient(180deg, #4fd36a, #2c9a3a); color: #fff; border-color: #2c8a3a; box-shadow: 0 0 12px rgba(79,211,106,.6); }
.gitem { position: relative; }
.gitem .gfav { position: absolute; right: 6px; top: 4px; font-size: 16px; color: #e0a020; cursor: pointer; padding: 2px; }
.gitem.fav { box-shadow: 0 0 0 2px #e0a020 inset; }
.quick-sell { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.tr-q.target { color: #ffe680; }
#bt-speed b { margin-left: 2px; }

/* ===== 보스 입장 컷신 ===== */
.boss-intro { position: absolute; inset: 0; z-index: 40; background: radial-gradient(ellipse at 50% 45%, #2a0a0a 0%, #000 75%); overflow: hidden; cursor: pointer; animation: fadein .2s; }
.boss-intro.out { animation: csout .28s forwards; }
.bi-tape { position: absolute; left: -10%; width: 120%; height: 34px; background: repeating-linear-gradient(45deg, #ffcc00 0 22px, #111 22px 44px); display: flex; align-items: center; overflow: hidden; transform: rotate(-3deg); box-shadow: 0 0 20px rgba(255,200,0,.4); }
.bi-tape span { white-space: nowrap; font-weight: 900; letter-spacing: 3px; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000; font-size: 15px; background: rgba(0,0,0,.55); padding: 2px 0; animation: bi-scroll 6s linear infinite; }
.bi-tape.top { top: 9%; } .bi-tape.bot { bottom: 9%; transform: rotate(-3deg); }
.bi-tape.bot span { animation-direction: reverse; }
@keyframes bi-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bi-glow { position: absolute; left: 50%; top: 46%; width: 60vmin; height: 60vmin; transform: translate(-50%, -50%) scale(.4); border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 65%); opacity: .25; transition: transform .5s, opacity .5s; }
.bi-img { position: absolute; left: 50%; top: 46%; width: min(60vmin, 420px); height: min(60vmin, 420px); transform: translate(-50%, -50%) scale(.85); transition: transform .45s cubic-bezier(.2,1.6,.4,1); }
.bi-img img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) drop-shadow(0 0 14px var(--c)) drop-shadow(0 0 40px var(--c)); animation: bi-breath 1s ease-in-out infinite; }
@keyframes bi-breath { 50% { transform: scale(1.03); } }
.boss-intro.reveal .bi-img { transform: translate(-50%, -50%) scale(1.06); }
.boss-intro.reveal .bi-img img { filter: drop-shadow(0 0 24px var(--c)) drop-shadow(0 10px 30px rgba(0,0,0,.8)); animation: none; }
.boss-intro.reveal .bi-glow { transform: translate(-50%, -50%) scale(1.4); opacity: .6; }
.boss-intro.reveal::after { content: ''; position: absolute; inset: 0; background: #fff; animation: bi-flash .45s forwards; pointer-events: none; }
@keyframes bi-flash { from { opacity: .95; } to { opacity: 0; } }
.bi-name { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; color: #fff; opacity: 0; transform: scale(2.2); transition: opacity .2s, transform .35s cubic-bezier(.2,1.4,.4,1); }
.boss-intro.name .bi-name { opacity: 1; transform: scale(1); }
.bi-name small { display: block; letter-spacing: 6px; font-size: 14px; color: var(--c); text-shadow: 0 0 10px var(--c); }
.bi-name b { display: block; font-size: clamp(34px, 7vw, 62px); font-weight: 900; letter-spacing: 4px; text-shadow: 0 0 20px var(--c), 0 4px 0 #000, 0 0 40px #000; }
.bi-name i { font-style: normal; font-size: 14px; opacity: .85; }
.bi-skip { position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.5); }
.cut-skip { position: absolute; right: 14px; bottom: 12px; z-index: 5; font-size: 12px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; pointer-events: none; }

/* ===== 그늘골 암시장 ===== */
.town-card.black { background: linear-gradient(180deg, rgba(24,18,40,.92), rgba(12,10,24,.94)); color: #e8e2ff; border-color: #6a4ad0; }
.town-card.black h2 { color: #d8c8ff; }
.town-card.black p { color: #b8b0d8; }
.cash-top.bm { background: linear-gradient(90deg, #241a3a, #3a2a5a); color: #efe8ff; border: 1px solid #6a4ad0; }
.cash-top.bm small { color: #c8bce8; }
.ss-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ss-filter .chip { border: 1px solid #c8bce8; background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.ss-filter .chip.on { background: #4a2a8a; color: #fff; border-color: #4a2a8a; }
.ss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ss-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ddd5f2; border-radius: 12px; padding: 8px 10px; }
.ss-item .ss-img { width: 52px; height: 52px; display: grid; place-items: center; background: radial-gradient(circle, #efe8ff, #f8f6ff); border-radius: 10px; }
.ss-item .ss-img img { max-width: 48px; max-height: 48px; }
.ss-item .ss-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-item .ss-info small { color: #777; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.ss-item .el-tag { font-size: 10px; padding: 0 6px; border-radius: 6px; background: #eee; }

/* ===== 환생 오라 ===== */
img.rb1 { filter: drop-shadow(0 0 6px rgba(140, 200, 255, .75)) drop-shadow(0 0 14px rgba(120, 170, 255, .35)); }
img.rb3 { filter: drop-shadow(0 0 4px #fff3c0) drop-shadow(0 0 12px rgba(255, 205, 80, .9)) drop-shadow(0 0 26px rgba(255, 170, 40, .55)); animation: rb3-glow 2.4s ease-in-out infinite; }
@keyframes rb3-glow { 50% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #fffbe0) drop-shadow(0 0 18px rgba(255, 215, 100, 1)) drop-shadow(0 0 36px rgba(255, 180, 60, .7)); } }
img.rb3.mutant, img.rb1.mutant { filter: hue-rotate(var(--hue)) drop-shadow(0 0 10px rgba(255, 205, 80, .9)); animation: none; }
.nm .stars-gold, .rb-name { color: #d8a400; text-shadow: 0 0 6px rgba(255, 210, 80, .6); }

/* =====================================================================
   UI 리디자인: 어두운 유리 + 금빛 테두리 (HUD) · 아이콘 = game-icons SVG
   ===================================================================== */
:root { --glass: rgba(14, 16, 30, .78); --glass2: rgba(26, 28, 48, .86); --gold: #e8c27a; --gold2: #f6dfa6; --goldline: rgba(232, 194, 122, .55); }
svg.gi { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.14em; display: inline-block; }
/* 상단 HUD */
.me, .gold, .mute { background: var(--glass); border: 1px solid var(--goldline); color: #f3ead8; box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.me .me-name { color: #fff3dc; }
.me img { background: #2a2c44; border: 1px solid var(--goldline); }
.gold { display: flex; align-items: center; gap: 7px; }
.gold .gi-wrap { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 15px; }
.gi-gold { color: #ffd76a; background: radial-gradient(circle at 35% 30%, #6a4a12, #2a1c06); box-shadow: 0 0 8px rgba(255, 200, 80, .35); }
.gi-dia { color: #8fe0ff; background: radial-gradient(circle at 35% 30%, #12406a, #06182a); box-shadow: 0 0 8px rgba(120, 210, 255, .35); }
.gold b { color: #fff3dc; }
.gold.dia { color: #cdeeff; }
.mute { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; font-size: 19px; color: var(--gold2); }
.mute:hover, .gold.dia:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(232, 194, 122, .4); }
.where { text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.6); letter-spacing: .5px; }
/* 마을 카드 */
.town-card { background: linear-gradient(180deg, rgba(20,22,38,.9), rgba(12,13,24,.92)) !important; border: 1px solid var(--goldline) !important; box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05) !important; backdrop-filter: blur(8px); }
.town-card h2 { color: var(--gold2) !important; text-shadow: 0 0 18px rgba(232,194,122,.35); }
.town-card p { color: #c9c2b0 !important; }
.town-card .neutral-note, .town-card .hostile-note { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #d8d2c4; border-radius: 10px; }
.fac { background: linear-gradient(180deg, #23263f, #171930) !important; border: 1px solid rgba(232,194,122,.28) !important; border-radius: 14px !important; padding: 12px 4px 10px !important; gap: 4px !important; position: relative; overflow: hidden; transition: transform .12s, border-color .15s, box-shadow .15s !important; }
.fac::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(232,194,122,.14), transparent 60%); pointer-events: none; }
.fac:hover:not(.locked):not(.off) { transform: translateY(-2px); border-color: var(--gold) !important; box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 16px rgba(232,194,122,.25); }
.fac .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px !important; color: var(--gold2);
  background: radial-gradient(circle at 35% 30%, #4a3c22, #1c160c 72%); border: 1px solid rgba(232,194,122,.5); box-shadow: 0 0 12px rgba(232,194,122,.18), inset 0 2px 6px rgba(255,255,255,.08); }
.fac b { color: #f6ecd6 !important; }
.fac small { color: #a9a294 !important; }
.fac.locked { filter: grayscale(.9) brightness(.7); }
.fac.locked .ic { color: #aaa; }
.fac.off { opacity: .45; }
/* 시설별 엠블럼 색 */
.fac-grounds .ic, .fac-raid .ic { color: #ffb08a; background: radial-gradient(circle at 35% 30%, #5a2a18, #1e0c06 72%); border-color: rgba(255,140,90,.5); }
.fac-clinic .ic { color: #9affc0; background: radial-gradient(circle at 35% 30%, #184a2a, #061a0e 72%); border-color: rgba(120,230,160,.5); }
.fac-lab .ic, .fac-workshop .ic { color: #d8b0ff; background: radial-gradient(circle at 35% 30%, #3a1e5a, #12081e 72%); border-color: rgba(190,140,255,.5); }
.fac-market .ic, .fac-stoneshop .ic { color: #9fe4ff; background: radial-gradient(circle at 35% 30%, #143a5a, #06141e 72%); border-color: rgba(130,210,255,.5); }
.fac-wboss .ic, .fac-tower .ic { color: #ffd76a; }
/* 하단 메뉴 */
.menu button { background: var(--glass) !important; border: 1px solid var(--goldline) !important; color: #f3ead8; backdrop-filter: blur(6px); gap: 1px; padding: 6px 12px 5px !important; }
.menu button b { color: #f6ecd6; font-size: 14px; }
.menu button small { color: #9a937f; font-size: 10px; }
.menu .mi { font-size: 20px; color: var(--gold2); line-height: 1; }
.menu button:hover { border-color: var(--gold) !important; box-shadow: 0 0 14px rgba(232,194,122,.3); }
/* 패널 프레임 */
.panel { border: 1px solid var(--goldline) !important; box-shadow: 0 24px 70px rgba(0,0,0,.55) !important; overflow: hidden; }
.panel-head { background: linear-gradient(180deg, #23263f, #181a30); border-bottom: 1px solid var(--goldline) !important; }
.panel-head h3 { color: var(--gold2) !important; letter-spacing: .5px; }
.panel-head button { color: #e8dcc0; }
@media (max-width: 760px) {
  .fac .ic { width: 36px; height: 36px; font-size: 19px !important; }
  .menu .mi { font-size: 17px; }
  .mute { width: 32px; height: 32px; font-size: 16px; }
  .gold .gi-wrap { width: 20px; height: 20px; font-size: 12px; }
}
/* 오른쪽: 여기 있는 사람 · 채팅 */
.side .here { background: var(--glass); border: 1px solid var(--goldline); border-radius: 12px; padding: 8px 10px; backdrop-filter: blur(6px); }
.side-title { color: var(--gold2) !important; text-shadow: none !important; }
.chat { background: var(--glass) !important; border: 1px solid var(--goldline); backdrop-filter: blur(6px); }
.chat .tabs button, .chat .tabs.small button { background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.3); color: #d8cfba; }
.chat .tabs button.on { background: linear-gradient(180deg, #e8c27a, #b88a3a); color: #1a1408; border-color: var(--gold); }
.chat input#chat-in { background: rgba(255,255,255,.08); border: 1px solid rgba(232,194,122,.3); color: #f3ead8; }
.chat input#chat-in::placeholder { color: #9a937f; }
.pslot { background: var(--glass) !important; border: 1px solid var(--goldline) !important; color: #f3ead8; backdrop-filter: blur(6px); }
.pslot:hover { border-color: var(--gold) !important; }
.pslot.empty { color: #9a937f !important; }
.pslot .bar { background: rgba(255,255,255,.12); }
.tracker { background: var(--glass) !important; border: 1px solid var(--goldline); backdrop-filter: blur(6px); }
/* 아이템 아이콘 엠블럼 */
.iic { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 30%; vertical-align: middle; margin-right: 3px; flex: none;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--ic) 22%, #2a2440), #100d1a 80%); border: 1px solid color-mix(in srgb, var(--ic) 55%, transparent);
  box-shadow: inset 0 1px 3px rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.35); }
.iic { color: var(--ic); }
.iic svg { width: 74%; height: 74%; fill: currentColor; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ic) 70%, transparent)); }
.iic.g2 { border-color: #c8a0ff; box-shadow: inset 0 1px 3px rgba(255,255,255,.15), 0 0 6px rgba(190,140,255,.45); }
.iic.g3 { border-color: #ffd76a; box-shadow: inset 0 1px 3px rgba(255,255,255,.2), 0 0 8px rgba(255,200,80,.6); }
.rowi .ic .iic, .ci-ic .iic { font-size: 24px; }
.ci-ic .iic { font-size: 30px; }
.tr-q[data-autogo] { cursor: pointer; border-radius: 8px; padding: 2px 4px; margin: 0 -4px; transition: background .15s; }
.tr-q[data-autogo]:hover { background: rgba(232,194,122,.15); }
.tr-go { display: inline-block; margin-left: 6px; font-size: 10px; color: #1a1408; background: linear-gradient(#f6dfa6, #d8a850); border-radius: 999px; padding: 0 7px; font-family: 'Jua', sans-serif; vertical-align: 1px; }

/* ===== UI 검토 수정 ===== */
/* 체크박스가 전역 input{width:100%} 에 늘어나던 문제 */
input[type=checkbox], input[type=radio] { width: auto; margin: 0; padding: 0; flex: none; accent-color: #d8a040; }
.cine-opt { white-space: nowrap; }
/* 빈 목록 문구가 그리드 한 칸에 끼던 문제 */
.hlist > .empty, .rows > .empty, .ss-grid > .empty, .cash-grid > .empty { grid-column: 1 / -1; width: 100%; }
/* 메인 퀘스트 카드 */
.quest.story .qfoot { flex-wrap: wrap; gap: 6px; }
.quest.story .qfoot > span:first-child { margin-right: auto; }
.qfoot .btn { white-space: nowrap; }
/* 추적기 메인 퀘스트 줄: 장 표시 줄바꿈 방지 + 바로가기 칩은 아래 줄 */
.tracker { width: 230px; }
.tr-q.story b { white-space: nowrap; }
.tr-q .tr-go { display: table; margin: 3px 0 1px; }
@media (max-width: 760px) {
  .rowi > span:nth-child(2) { flex: 1 1 calc(100% - 64px); }
  .rowi .cnt { margin-left: auto; }
}
/* 출전 아크링이 뒤따라오는 연출 (이동 · 수색) */
.tr-follow { position: absolute; bottom: 13%; left: calc(50% - 130px - var(--i) * 105px); width: 110px; height: 110px; translate: -50% 0;
  animation: hop .42s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.14s); filter: drop-shadow(0 6px 4px rgba(0,0,0,.25)); }
.tr-follow img, .sp-h img { width: 100%; height: 100%; object-fit: contain; }
.tr-follow img.flip, .sp-h img.flip { transform: scaleX(-1); }
@keyframes hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-14px) rotate(3deg); } }
.search-party { display: flex; align-items: flex-end; gap: 4px; }
.sp-follow { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 2px; }
.sp-h { width: 84px; height: 84px; animation: hop .45s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.15s); filter: drop-shadow(0 5px 4px rgba(0,0,0,.3)); }
@media (max-width: 760px) {
  .tr-follow { width: 72px; height: 72px; left: calc(50% - 90px - var(--i) * 66px); }
  .tr-walker { height: 150px; }
  .sp-h { width: 58px; height: 58px; }
  .searcher { height: 110px; }
}
/* 프로필 카드 */
.pf-top { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #23263f, #171930); border: 1px solid var(--goldline); border-radius: 14px; padding: 12px 14px; color: #f3ead8; }
.pf-face { width: 84px; height: 84px; object-fit: contain; border-radius: 14px; background: radial-gradient(circle, #3a3a5a, #1a1a2a); border: 1px solid var(--goldline); }
.pf-name { font: 24px 'Jua', sans-serif; color: var(--gold2); }
.pf-name small { font-size: 15px; color: #d8cfba; }
.pf-line { font-size: 13px; color: #c9c2b0; margin: 2px 0 6px; }
.pf-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #d8d2c4; }
.pf-stats b { color: #fff3dc; }
.pf-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-h { position: relative; border-radius: 16px; padding: 10px 10px 12px; text-align: center; background: linear-gradient(180deg, #fffaf0, #f4e8d2); border: 1px solid #e6d2ae; box-shadow: 0 6px 16px rgba(60,35,10,.15); overflow: hidden; }
.pf-h.rb3 { border-color: #f0c860; box-shadow: 0 0 0 2px rgba(255,214,100,.5), 0 8px 22px rgba(200,140,20,.35); background: linear-gradient(180deg, #fff6d8, #f6e2b0); }
.pf-img { height: 150px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.9), transparent 70%); }
.pf-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.pf-nm { font: 18px 'Jua', sans-serif; color: var(--brown); margin-top: 4px; }
.pf-nm { color: #6b4423; }
.pf-sub { font-size: 12px; color: #7a6040; margin: 2px 0 4px; }
.pf-tags { font-size: 12px; color: #6b5a40; display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; align-items: center; }
.pf-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; font-size: 11px; color: #7a6a50; margin-top: 6px; }
.pf-st b { display: block; font-size: 14px; color: #3a2a1c; }
.pf-sk { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.pf-sk .sig { color: #2a7ad0; } .pf-sk .ult { color: #c0368a; font-weight: bold; }
.pf-eq { margin-top: 6px; font-size: 12px; color: #6b5a40; }
@media (max-width: 760px) { .pf-team { grid-template-columns: 1fr; } .pf-img { height: 120px; } }
/* 프로필 사진 */
.topbar .me { cursor: pointer; }
.topbar .me:hover { border-color: var(--gold); }
img.av { object-fit: contain !important; object-position: center !important; background: radial-gradient(circle at 50% 40%, #f6ecd6, #c9b48e) !important; }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.av-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 1px solid #e0cfae; border-radius: 12px; background: #fff; cursor: pointer; }
.av-cell img { width: 64px; height: 64px; object-fit: contain; }
.av-cell small { font-size: 11px; color: #6b5a40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.av-cell.on { border-color: #e8a040; box-shadow: 0 0 0 2px rgba(232,160,64,.45); background: #fff8e8; }
.av-cell:hover { border-color: #d8a040; }

/* ===== 기술 학당 (카드형) ===== */
.sk-pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.sk-pick::-webkit-scrollbar { height: 6px; } .sk-pick::-webkit-scrollbar-thumb { background: #c9b48e; border-radius: 3px; }
.sk-hc { position: relative; flex: 0 0 auto; width: 84px; padding: 6px 4px 5px; border-radius: 12px; border: 1.5px solid #e2d3b4; background: #fffaf0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; scroll-snap-align: start; font: inherit; color: inherit; transition: transform .12s, border-color .12s; }
.sk-hc:hover { transform: translateY(-2px); }
.sk-hc.on { border-color: #f08a2a; background: linear-gradient(#fff3e0, #ffe8c8); box-shadow: 0 0 0 2px #f8b46a55; }
.sk-hc img { width: 48px; height: 48px; object-fit: contain; }
.sk-hc b { font-size: 12px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-hc small { font-size: 10px; color: #8a7556; }
.sk-slot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #f08a2a; color: #fff; font: bold 10px/16px sans-serif; font-style: normal; text-align: center; }
.sk-me { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: linear-gradient(90deg, #fff4df, #fffaf2); border: 1px solid #ecdcbc; }
.sk-me img { width: 64px; height: 64px; object-fit: contain; }
.sk-me b { font-size: 17px; }
.sk-slots, .sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.sk-slots { grid-template-columns: repeat(4, 1fr); } .sk-slots .sk-card p { font-size: 11px; }
.sk-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 9px 11px 9px 14px; border-radius: 12px; background: #fffdf8; border: 1px solid #ead9b8; overflow: hidden; }
.sk-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ec); }
.sk-card.mine { background: linear-gradient(135deg, #fffdf8, #fff3e2); }
.sk-card.locked { opacity: .72; filter: saturate(.7); }
.sk-card.empty { align-items: center; justify-content: center; min-height: 92px; border-style: dashed; background: #fbf6ec; color: #a8946f; }
.sk-card.empty::before { display: none; }
.sk-card.empty span { font-weight: bold; } .sk-card.empty small { font-size: 11px; }
.sk-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.sk-top b { font-size: 15px; margin-right: 2px; }
.sk-st { display: flex; flex-wrap: wrap; gap: 4px; }
.sk-st span { font-size: 11px; padding: 1px 7px; border-radius: 8px; background: #f3ead8; color: #6e5a3c; }
.sk-st b { color: #3e2e18; }
.sk-card p { margin: 0; font-size: 12px; line-height: 1.45; color: #5a4a34; }
.sk-foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sk-foot .price { font-weight: bold; color: #c26a10; } .sk-foot .price.no { color: #c0392b; }
.sk-lock { font-size: 12px; color: #8a7556; font-weight: bold; }
.sk-where { font-size: 11px; color: #6e5a3c; }
.sk-sig { margin: 6px 2px 0; font-size: 12px; color: #6e5a3c; }
.sk-tabs { margin-top: 12px; }
@media (max-width: 520px) { .sk-slots { grid-template-columns: 1fr 1fr; } .sk-slots .sk-card p { display: none; } .sk-grid { grid-template-columns: 1fr; } }

/* ===== 돌연변이 강조: 무지개 테두리 + 반짝임 ===== */
@property --mutang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mutcard { position: relative; isolation: isolate; border-color: transparent !important;
  background: linear-gradient(#fffaf3, #fff3fb) padding-box, conic-gradient(from var(--mutang), #ff5ac8, #ffb02a, #ffe14a, #5aff8a, #3ad0ff, #7a5aff, #ff5ac8) border-box !important;
  border-width: 2px; border-style: solid; animation: mutspin 4s linear infinite; box-shadow: 0 0 10px rgba(200, 120, 255, .35); }
.pslot.mutcard { background: linear-gradient(rgba(30, 20, 40, .85), rgba(40, 20, 50, .85)) padding-box, conic-gradient(from var(--mutang), #ff5ac8, #ffb02a, #ffe14a, #5aff8a, #3ad0ff, #7a5aff, #ff5ac8) border-box !important; }
.mutcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2;
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2.5px) 12% 18% / 100% 100% no-repeat,
    radial-gradient(circle, #fff 0 1.2px, transparent 2px) 86% 30% / 100% 100% no-repeat,
    radial-gradient(circle, #ffe9ff 0 1.6px, transparent 2.8px) 70% 80% / 100% 100% no-repeat,
    radial-gradient(circle, #e9fbff 0 1.2px, transparent 2px) 22% 72% / 100% 100% no-repeat;
  animation: muttwinkle 2.2s ease-in-out infinite; }
@keyframes mutspin { to { --mutang: 360deg; } }
@keyframes muttwinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.mut { position: relative; overflow: hidden; background: linear-gradient(90deg, #ff5ac8, #7a5aff, #3ad0ff, #5aff8a, #ff5ac8); background-size: 300% 100%; animation: mutflow 3s linear infinite; font-weight: bold; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
@keyframes mutflow { to { background-position: 300% 0; } }
/* :where → 다른 연출(컷신·보스 등장·상태이상) 애니메이션이 있으면 그쪽이 우선 */
:where(img.mutant) { animation: mutglow 2.4s ease-in-out infinite; }
@keyframes mutglow {
  0%, 100% { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 5px rgba(255, 110, 230, .85)); }
  33% { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 8px rgba(110, 200, 255, .9)); }
  66% { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 8px rgba(255, 230, 110, .9)); } }
img.rb3.mutant:not(.cs-img), img.rb1.mutant:not(.cs-img) { animation: mutglow 2.4s ease-in-out infinite; }
.sk-mut { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: 12px; }
.dex.mutcard > div:first-of-type { font-weight: bold; }
img.mut-sil { opacity: .35; }
.bar.mut i { background: linear-gradient(90deg, #ff5ac8, #7a5aff, #3ad0ff); }
@media (prefers-reduced-motion: reduce) { .mutcard, .mutcard::after, .mut, :where(img.mutant) { animation: none; } }
.hcard.mutcard.sel, .dex.mutcard.sel { box-shadow: 0 0 0 3px #f08a2a, 0 0 14px rgba(240, 138, 42, .6); }

/* ===== 그림 아이템 아이콘 ===== */
.iic.art { overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--ic) 30%, #2a2238), #17121f 75%); }
.iic.art img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.iic.art.medal { border-radius: 50%; background: radial-gradient(circle, #fff6d8, #e9b94a 62%, #8a5a12 64%, #f6d47a 72%, #8a5a12 100%); }
.iic.art.medal img { width: 76%; height: 76%; border-radius: 50%; background: radial-gradient(circle, #fffaf0, #f3e2b8); }
/* 각성(풀환생) 그림: 오라가 그림에 들어 있으니 금빛 그림자 대신 은은한 숨쉬기 */
img.rb3.aw { filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); animation: aw-breathe 3.2s ease-in-out infinite; }
@keyframes aw-breathe { 50% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 2px 6px rgba(0,0,0,.35)) brightness(1.1) saturate(1.12); } }
img.rb3.aw.mutant { filter: hue-rotate(var(--hue)) saturate(1.2); }

/* ================= 성장률 1~3위 마법진 ================= */
.mcw { position: relative; display: inline-flex; justify-content: center; align-items: flex-end; isolation: isolate; }
.mcw > img { position: relative; z-index: 1; }
.mcircle { position: absolute; left: 50%; bottom: -60%; width: 125%; aspect-ratio: 1; transform: translateX(-50%) perspective(500px) rotateX(64deg); z-index: 0; pointer-events: none;
  --mc: #f2a516; --mc2: #fff4c2; filter: drop-shadow(0 0 3px var(--mc)) drop-shadow(0 0 9px var(--mc)); }
.mcircle.r2 { --mc: #4d9cff; --mc2: #eaf4ff; }
.mcircle.r3 { --mc: #e0712e; --mc2: #ffe2c8; }
.mcircle svg { width: 100%; height: 100%; overflow: visible; }
.mcircle .mc-disc { fill: var(--mc); opacity: .16; }
.mcircle .mc-base, .mcircle .mc-hi { fill: none; stroke-linejoin: round; }
.mcircle .mc-base { stroke: var(--mc); stroke-width: 5; }
.mcircle .mc-hi { stroke: var(--mc2); stroke-width: 1.6; }
.mcircle .mc-base circle[r="5"], .mcircle .mc-hi circle[r="5"] { fill: var(--mc2); }
.mcircle .mc-t { fill: var(--mc2); stroke: var(--mc); stroke-width: 3px; paint-order: stroke; font-size: 17px; font-weight: 900; letter-spacing: 2px; }
.mcircle .mc-a { transform-origin: 100px 100px; animation: mc-spin 16s linear infinite; }
.mcircle .mc-b { transform-origin: 100px 100px; animation: mc-spin 10s linear infinite reverse; }
.mcircle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 18px 4px var(--mc), inset 0 0 22px var(--mc); opacity: .55; animation: mc-pulse 2.4s ease-in-out infinite; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@keyframes mc-pulse { 50% { opacity: .15; } }
.hcard .mcw { margin-top: 2px; margin-bottom: 8px; }
.hcard .badges .grank { display: none; }
.hcard .grank-c { position: absolute; right: 4px; top: 4px; z-index: 2; }
.hcard.ranked { border-color: #e8c27a; box-shadow: 0 0 0 1px rgba(232,194,122,.5), 0 0 14px rgba(255,215,106,.35); }
.hcard.ranked.r2 { border-color: #a9c8e8; box-shadow: 0 0 12px rgba(169,212,255,.4); }
.hcard.ranked.r3 { border-color: #d9a27a; box-shadow: 0 0 12px rgba(229,154,91,.35); }
.hdetail .mcw.big { flex-shrink: 0; align-self: center; margin-bottom: 40px; }
.hdetail .mcw.big .mcircle { width: 115%; bottom: -55%; }
.unit .u-img .mcircle { width: 150%; bottom: -72%; }
.unit .u-info, .unit .u-name, .hcard .nm, .hcard .lv { position: relative; z-index: 2; }
.unit.boss .u-img .mcircle { width: 110%; }
.mcw.sm { width: 40px; } .mcw.sm img { width: 36px; height: 36px; }
.grank { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 5px; border-radius: 8px; background: linear-gradient(180deg, #fff1b8, #e8c27a); color: #5a3d00; white-space: nowrap; }
.grank.r2 { background: linear-gradient(180deg, #f1f7ff, #a9c8e8); color: #23405e; }
.grank.r3 { background: linear-gradient(180deg, #ffe4cc, #d9a27a); color: #5a2e0c; }
.grank-line { margin: 4px 0; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn.tiny { padding: 1px 7px; font-size: 11px; }
.gtop-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; text-align: left; }
.gtop-row .mcircle { bottom: -20%; }

/* ================= 일괄 처리 ================= */
.bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff7e6; border: 1px dashed #d8b26a; border-radius: 10px; padding: 6px 8px; margin: 6px 0; font-size: 13px; }
.bulk > span { flex: 1; min-width: 180px; }
.bulk-tip { margin: 4px 0 6px; }
.bulk-thumbs { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-top: 8px; max-height: 150px; overflow-y: auto; }
.bulk-thumbs .bt { position: relative; border-radius: 8px; background: rgba(0,0,0,.05); }
.bulk-thumbs .bt img { width: 34px; height: 34px; object-fit: contain; }
.bulk-thumbs .bt.prec { outline: 2px solid #e5484d; }
.bulk-thumbs .mutdot { position: absolute; right: -2px; top: -4px; font-style: normal; font-size: 11px; }
.prec-row { display: flex; align-items: center; gap: 6px; text-align: left; margin: 3px 0; }
.prec-row img { width: 30px; height: 30px; object-fit: contain; }

/* ================= 환생 사냥터 / 캐릭터 환생 / 물약 ================= */
.gitem .rbg { position: absolute; right: 30px; top: 4px; font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 8px; background: linear-gradient(90deg, #6a3df0, #c04aff); color: #fff; }
.xbuff { margin-left: 4px; font-size: 11px; font-weight: 700; color: #7fffb0; background: rgba(20,80,50,.55); border-radius: 8px; padding: 0 5px; }
.crb { font-size: 12px; color: #c08a00; font-weight: 800; }
.crb-box { margin-top: 10px; background: linear-gradient(135deg, #fffaf0, #f4eaff); border: 1px solid #d6c2f0; border-radius: 12px; padding: 8px 12px; }
.crb-now { font-size: 14px; margin: 4px 0; }
.crb-buff { font-size: 13px; color: #1f7a4a; font-weight: 700; }
.crb-box .btn { margin-top: 4px; }

/* ================= 던전 ================= */
.dg-list { display: flex; flex-direction: column; gap: 10px; }
.dg { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 10px 12px; color: #f2ead8; background-size: cover; background-position: center; border: 1px solid rgba(232,194,122,.45); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.dg.t2 { border-color: rgba(169,212,255,.6); } .dg.t3 { border-color: rgba(255,140,220,.65); box-shadow: 0 0 18px rgba(200,90,255,.3); }
.dg.locked { filter: grayscale(.6) brightness(.85); }
.dg-boss img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.dg-info { flex: 1; min-width: 0; }
.dg-nm { font-size: 17px; color: #ffe7b0; }
.dg-tier { color: #ffd76a; font-size: 12px; letter-spacing: 1px; }
.dg-desc { font-size: 12.5px; opacity: .85; margin: 2px 0 4px; }
.dg-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
.dg-meta b { color: #ffd2a6; }
.dg-rw { opacity: .8; margin-top: 3px; }
.dg-go { display: flex; flex-direction: column; align-items: center; gap: 4px; }
@media (max-width: 560px) { .dg { flex-wrap: wrap; } .dg-boss img { width: 60px; height: 60px; } .dg-go { flex-direction: row; width: 100%; justify-content: space-between; } }

/* ================= 거래소 개편 ================= */
.mk-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; }
.mk-bar select, .mk-bar .fsearch { padding: 4px 8px; border-radius: 10px; border: 1px solid #d8c39b; font-family: inherit; }
.mk-bar .fsearch { flex: 1; min-width: 120px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .12s, box-shadow .12s; }
.mk-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.mk-img { position: relative; height: 118px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, #fff 0%, #f2ead8 70%); }
.mk-img.el-bg-불 { background: radial-gradient(circle at 50% 60%, #fff3e6, #ffd1b0); } .mk-img.el-bg-물 { background: radial-gradient(circle at 50% 60%, #eef7ff, #bcdcff); }
.mk-img.el-bg-풀 { background: radial-gradient(circle at 50% 60%, #f0fff0, #bfe8b8); } .mk-img.el-bg-땅 { background: radial-gradient(circle at 50% 60%, #fbf4e8, #e2c9a0); }
.mk-img.el-bg-바람 { background: radial-gradient(circle at 50% 60%, #effffb, #bdeee2); } .mk-img.el-bg-빛 { background: radial-gradient(circle at 50% 60%, #fffef0, #fff0a8); }
.mk-img.el-bg-어둠 { background: radial-gradient(circle at 50% 60%, #f3eefc, #cbbbe8); } .mk-img.el-bg-전기 { background: radial-gradient(circle at 50% 60%, #fffbe6, #ffe680); }
.mk-img.el-bg-얼음 { background: radial-gradient(circle at 50% 60%, #f2fcff, #b8ecff); }
.mk-img img { width: 96px; height: 96px; object-fit: contain; filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.mk-img img.stone { width: 70px; height: 70px; }
.mk-iic .iic { width: 74px; height: 74px; font-size: 40px; }
.mk-iic .iic img, .mk-iic .iic svg { width: 100%; height: 100%; }
.mk-cnt { position: absolute; right: 8px; bottom: 6px; font-weight: 800; background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 0 7px; font-size: 13px; }
.mk-tags { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mk-tag { font-size: 10.5px; font-weight: 800; border-radius: 8px; padding: 1px 6px; background: rgba(255,255,255,.9); border: 1px solid #ddd; }
.mk-tag.mut { background: linear-gradient(90deg, #ff6ad5, #ffd36a, #6affc8, #6ab8ff); color: #2a0a3a; border: none; animation: mk-shine 3s linear infinite; background-size: 300% 100%; }
@keyframes mk-shine { to { background-position: 300% 0; } }
.mk-tag.rank { padding: 0; border: none; background: none; }
.mk-tag.rar { color: #b07a00; }
.mk-tag.stone { color: #6a5a3a; } .mk-tag.eq { color: #2c5aa0; }
.mk-nm { font-weight: 800; padding: 6px 8px 0; font-size: 14px; line-height: 1.25; }
.mk-sub { padding: 0 8px; font-size: 12px; color: #6a5a48; }
.mk-gr { padding: 2px 8px; font-size: 12px; }
.mk-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 2px 8px; font-size: 10.5px; color: #7a6a58; text-align: center; }
.mk-st b { display: block; font-size: 12px; color: #3a2a18; }
.mk-eq { padding: 0 8px; font-size: 11px; color: #2c5aa0; }
.mk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px 2px; }
.mk-price { font-weight: 900; font-size: 16px; color: #a0620a; }
.mk-price.c-dia { color: #2f7fd8; }
.mk-seller { padding: 0 8px 6px; font-size: 11px; color: #9a8a76; }
.mk-sell { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: start; }
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.mk-tile { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font-family: inherit; position: relative; }
.mk-tile.on { border-color: #e0a030; box-shadow: 0 0 0 2px rgba(224,160,48,.35); background: #fffaf0; }
.mk-tile img { width: 52px; height: 52px; object-fit: contain; }
.mk-tile .mk-iic .iic { width: 48px; height: 48px; font-size: 26px; }
.mk-tile b { font-size: 11.5px; line-height: 1.2; text-align: center; }
.mk-tile small { font-size: 10.5px; color: #7a6a58; }
.mk-tile .mcircle { bottom: -10%; }
.mk-form { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; }
.mk-form label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mk-form input[type=number] { flex: 1; padding: 5px 8px; border-radius: 8px; border: 1px solid #d8c39b; font-family: inherit; }
.mk-form .mk-card:hover { transform: none; }
.mk-cur { display: flex; gap: 10px; font-size: 13px; }
.mk-ref { color: #7a6a58; }
.mk-total { color: #b4520c; font-size: 13px; }
.mk-ph { border: 2px dashed #d8c39b; border-radius: 14px; padding: 30px 10px; text-align: center; color: #9a8a76; font-size: 13px; }
@media (max-width: 560px) { .mk-sell { grid-template-columns: 1fr; } .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } .mk-img { height: 96px; } .mk-img img { width: 78px; height: 78px; } }
.ask .mk-card { max-width: 200px; margin: 0 auto; }

/* 전투: 배속 · 자동 버튼 나란히 */
.bt-ctrls { position: absolute; right: 10px; top: 6px; display: flex; gap: 6px; align-items: center; z-index: 3; }
.bt-ctrls .bt-auto { position: static; margin: 0; }
@media (max-width: 760px) { .bt-ctrls { top: 34px; right: 6px; gap: 4px; } .bt-ctrls .bt-auto { font-size: 12px; padding: 2px 8px; } }

/* 아크링 성장률 랭킹 (소셜) */
.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hr-card { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font-family: inherit; }
.hr-card:hover { border-color: #e0a030; }
.hr-card.mine { border-color: #e0a030; background: #fffaf0; }
.hr-card .mcw { margin-bottom: 10px; }
.hr-card img { width: 64px; height: 64px; object-fit: contain; }
.hr-card b { font-size: 13px; }
.hr-card small { font-size: 11px; color: #7a6a58; }
.hr-top { font-size: 12px; margin-top: 2px; }
.gtop-row.mine { background: #fff4d6; border-radius: 8px; }

.hr-top3 { display: flex; flex-direction: column; gap: 1px; width: 100%; margin-top: 3px; font-size: 11.5px; text-align: left; padding: 0 4px; }
.hr-top3 > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-top3 i { font-style: normal; font-weight: 800; color: #a0620a; }
.hr-top3 .me-t { background: #fff0c8; border-radius: 6px; }
.hr-my { font-size: 11px; font-weight: 800; color: #b06a00; }
.hr-sum { font-size: 13px; margin: 4px 0; }
.hr-opt { margin: 2px 0 4px; }
.hr-grid { margin-bottom: 8px; }

/* 결투 인트로 */
.duel-intro { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 4%; background: radial-gradient(circle at 50% 50%, rgba(40,10,10,.75), rgba(0,0,0,.92)); overflow: hidden; cursor: pointer; }
.duel-intro.out { opacity: 0; transition: opacity .28s; }
.duel-intro .di-side { flex: 0 1 38%; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center; transition: transform .45s cubic-bezier(.2,1.4,.4,1), opacity .3s; opacity: 0; }
.duel-intro .di-side.l { transform: translateX(-60vw); } .duel-intro .di-side.r { transform: translateX(60vw); }
.duel-intro.hit .di-side, .duel-intro .di-side { animation: di-in .5s cubic-bezier(.2,1.3,.4,1) forwards; }
.duel-intro .di-side.r { animation-delay: .1s; }
@keyframes di-in { to { transform: none; opacity: 1; } }
.duel-intro .di-faces { display: flex; gap: 6px; }
.duel-intro .di-faces img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--fc); box-shadow: 0 0 24px var(--fc); background: #222; }
.duel-intro .di-faces img.av { object-fit: contain; }
.duel-intro .di-names { font-size: 22px; text-shadow: 0 2px 6px #000; } .duel-intro .di-names small { font-size: 14px; opacity: .8; }
.duel-intro .di-fac { font-size: 13px; padding: 2px 10px; border-radius: 10px; background: var(--fc); }
.duel-intro .di-team { display: flex; gap: 2px; } .duel-intro .di-team img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 4px #000); }
.duel-intro .di-side.r .di-team img { transform: scaleX(-1); }
.duel-intro .di-vs { font-size: 84px; font-weight: 900; color: #ffd76a; text-shadow: 0 0 20px #ff5a2a, 0 4px 0 #8a2a00; transform: scale(3); opacity: 0; }
.duel-intro.hit .di-vs { animation: di-vs .35s ease-out forwards; }
@keyframes di-vs { to { transform: scale(1); opacity: 1; } }
.duel-intro .di-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.duel-intro.hit .di-flash { animation: di-fl .4s ease-out; }
@keyframes di-fl { 0% { opacity: .8; } 100% { opacity: 0; } }
.duel-intro .di-cap { position: absolute; top: 10%; left: 0; right: 0; text-align: center; font-size: 26px; color: #ffcf9a; letter-spacing: 4px; text-shadow: 0 2px 8px #000; }
@media (max-width: 600px) { .duel-intro .di-faces img { width: 70px; height: 70px; } .duel-intro .di-names { font-size: 15px; } .duel-intro .di-vs { font-size: 48px; } .duel-intro .di-team img { width: 34px; height: 34px; } }

.dg.t4 { border-color: rgba(255,80,80,.8); box-shadow: 0 0 22px rgba(255,40,80,.45), inset 0 0 30px rgba(120,0,40,.4); }
.dg.t4 .dg-tier { color: #ff6a8a; }
.dg-rb { color: #ffd76a; font-weight: 800; }

/* 거래소 상세 필터 */
.mkf { background: #fffaf0; border: 1px solid #e6d3a8; border-radius: 12px; padding: 6px 8px; margin: -4px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.mkf.closed { display: none; }
.mkf-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.mkf-row > span:first-child { width: 52px; flex-shrink: 0; font-weight: 800; color: #7a5a2a; }
.mkf-row .fchip { padding: 2px 8px; font-size: 12px; }
.mkf-row input[type=number] { width: 72px; padding: 3px 6px; border-radius: 8px; border: 1px solid #d8c39b; font-family: inherit; }
.mkf-row select { padding: 3px 6px; border-radius: 8px; border: 1px solid #d8c39b; font-family: inherit; }
.mkf-sp { margin-left: 10px; font-weight: 800; color: #7a5a2a; }
.mkf-quick .fchip { background: #fff3d6; }
.mk-count { font-size: 12px; color: #7a6a58; margin: 0 0 6px; }
@media (max-width: 560px) { .mkf-row > span:first-child { width: 100%; } }

/* 특성 */
.trait { display: inline-block; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 8px; background: #eef4ff; color: #2c4a7a; border: 1px solid #b9cdf0; white-space: nowrap; cursor: help; }
.trait.hid { background: linear-gradient(90deg, #f3e8ff, #ffe8f6); color: #6a2a9a; border-color: #c9a2ef; box-shadow: 0 0 6px rgba(170,90,255,.35); }
.trait.uni { background: linear-gradient(90deg, #fff4cc, #ffe2a0); color: #7a4a00; border-color: #e0b04a; box-shadow: 0 0 6px rgba(255,190,60,.4); }
.hcard .trt { margin-top: 2px; } .hcard .trt .trait { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.trait-line { font-size: 13px; margin: 3px 0; }
.trait-d { color: #6a5a48; }
.mk-tr { padding: 0 8px; }
.di-dex { background: #fffaf0; border-left: 3px solid #e0b04a; padding: 6px 10px; margin: 6px 0; font-size: 13px; line-height: 1.5; color: #4a3a28; border-radius: 6px; }
.di-traits > div { margin: 2px 0; font-size: 12.5px; }

/* 신수 각성 오라 */
img.asc1 { filter: drop-shadow(0 0 4px #9ff) drop-shadow(0 0 12px #ffd76a); }
img.asc2 { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 14px #7fd8ff) drop-shadow(0 0 26px #ffcf4a); animation: asc-breathe 2.6s ease-in-out infinite; }
img.asc3 { animation: asc-rainbow 3.2s linear infinite; }
@keyframes asc-breathe { 50% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 8px #fff) drop-shadow(0 0 22px #7fd8ff) drop-shadow(0 0 36px #ffcf4a); } }
@keyframes asc-rainbow { 0% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ff5ad1) drop-shadow(0 0 34px #ffd76a); } 33% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #5ad1ff) drop-shadow(0 0 34px #9aff7a); }
  66% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ffd75a) drop-shadow(0 0 34px #c47aff); } 100% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 6px #fff) drop-shadow(0 0 18px #ff5ad1) drop-shadow(0 0 34px #ffd76a); } }
.asc-grid { display: flex; flex-direction: column; gap: 10px; }
.asc-line { background: linear-gradient(135deg, #1e1a32, #2a2240); color: #f2ead8; border: 1px solid rgba(232,194,122,.5); border-radius: 14px; padding: 8px 10px; }
.asc-hd { display: flex; align-items: center; gap: 6px; font-size: 16px; } .asc-hd img { width: 40px; height: 40px; object-fit: contain; }
.asc-mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.asc-mat { background: rgba(255,255,255,.06); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.asc-mat.s2 { box-shadow: inset 0 0 0 1px rgba(127,216,255,.5); } .asc-mat.s3 { box-shadow: inset 0 0 0 1px rgba(255,120,220,.6); }
.asc-st { font-size: 20px; font-weight: 900; color: #ffd76a; line-height: 1; }
.asc-mat small { color: #cfc4ae; }
.bar.pity { height: 6px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; } .bar.pity i { display: block; height: 100%; background: linear-gradient(90deg, #ffd76a, #ff5ad1); }
.asc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px dashed rgba(255,255,255,.15); font-size: 13px; }
.asc-h img { width: 44px; height: 44px; object-fit: contain; } .asc-h small { color: #cfc4ae; flex: 1; }
.asc-opts { text-align: left; display: flex; flex-direction: column; gap: 6px; margin: 8px 0; font-size: 13px; }
.asc-opts label.off { opacity: .45; }
.asc-rate { font-size: 18px; margin: 6px 0; } .asc-rate b { color: #d0302a; font-size: 24px; }
.warn-t { color: #c0302a; font-weight: 700; }
.trial-st { display: flex; gap: 6px; margin: 6px 0; }
.raid-intro.trial .trial-boss { flex: 0 0 min(200px, 38%); display: flex; justify-content: center; }
.raid-intro.trial .trial-boss img { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 560px) { .asc-mats { grid-template-columns: 1fr; } }

/* 다이아 충전 */
.chg-box { background: #f3f8ff; border: 2px solid #b9d3f3; border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.chg-box.off { color: #789; text-align: center; font-size: 13px; }
.chg-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.chg-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 2px solid #8fb6e8; border-radius: 10px; background: #fff; cursor: pointer; font-family: inherit; }
.chg-pack:hover { background: #e8f2ff; }
.chg-pack b { color: #2a6ab0; font-size: 15px; } .chg-pack em { font-style: normal; font-size: 11px; color: #e8742a; } .chg-pack span { font-size: 12px; color: #555; }
.chg-bank { margin: 8px 0 2px; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chg-note { color: #678; font-size: 11.5px; }
.chg-orders { margin-top: 6px; display: grid; gap: 4px; }
.chg-o { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; background: #fff; border-radius: 8px; padding: 4px 8px; border: 1px solid #d5e3f5; }
.chg-o span { margin-left: auto; font-weight: bold; } .chg-o.approved span { color: #2c9a3a; } .chg-o.rejected span { color: #c0392b; } .chg-o.cancelled { opacity: .6; }
.chg-o small { width: 100%; color: #888; }

.chg-links { margin-top: 4px; font-size: 12px; } .chg-links a, .chg-prob { color: #2a6ab0; }
.chg-prob { font-size: 12px; margin-left: 6px; font-family: 'Gowun Dodum', sans-serif; }
.login-foot { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 12px; }
.login-foot a { color: #fff; text-shadow: 0 1px 2px #000; opacity: .85; margin: 0 6px; }

/* ===== 공용 필터 (flt) ===== */
.flt { background: #fff8ea; border: 1px solid #ead9b8; border-radius: 12px; padding: 6px 8px; margin-bottom: 8px; }
.flt-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.flt-top .fsearch { flex: 1; min-width: 140px; }
.flt-sort { padding: 5px 6px; border-radius: 8px; border: 1px solid #d8c39b; font-family: inherit; background: #fff; }
.flt-n { font-size: 12px; color: #7a5a2a; white-space: nowrap; }
.flt-n b { font-size: 15px; color: var(--brown); margin-right: 1px; }
.flt-act { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.flt-on { border: 0; background: #e8a33a; color: #fff; border-radius: 12px; padding: 2px 9px; font-size: 12px; cursor: pointer; font-family: inherit; font-weight: bold; }
.flt-on:hover { background: #c9821c; }
.flt-clear { border: 0; background: none; color: #a0703a; font-size: 12px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.flt-panel { display: grid; gap: 6px; margin-top: 6px; }
.flt-panel.closed { display: none; }
.flt-sec { background: #fff; border: 1px solid #efdfbf; border-radius: 10px; padding: 5px 8px; display: grid; gap: 3px; }
.flt-h { font-size: 12px; font-weight: 800; color: #9a6a2a; }
.bag-top { margin-bottom: 8px; }

/* ===== 아크링 창 ===== */
.htabs button small { opacity: .75; margin-left: 2px; }
.hdetail { position: relative; flex-wrap: wrap; padding: 10px 12px; }
.hdetail img.big { width: 140px; height: 140px; }
.hdetail .mcw.big { margin-bottom: 30px; }
.hd-fold { position: absolute; right: 8px; top: 8px; border: 1px solid var(--line); background: #fff8ea; border-radius: 10px; font-size: 11px; padding: 2px 8px; cursor: pointer; font-family: inherit; color: #8a6a4a; }
.hd-mini { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 4px 10px; margin-bottom: 8px; }
.hd-mini img.mini { width: 40px; height: 40px; object-fit: contain; }
.hd-mini .bar { flex: 1; max-width: 160px; }
.hd-mini .btn { margin-left: auto; }
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0; }
.stat4 > span { background: #faf3e4; border-radius: 8px; padding: 3px 6px; font-size: 11px; color: #8a6a4a; display: flex; flex-direction: column; }
.stat4 b { font-size: 16px; color: var(--brown); }
.stat4 .g { color: #3f9f45; }
.hd-line { font-size: 13px; margin: 3px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hd-acts { width: 100%; display: grid; gap: 5px; border-top: 1px dashed var(--line); padding-top: 8px; }
.hd-grp { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.hd-grp > span:first-child { width: 38px; font-size: 12px; font-weight: 800; color: #9a6a2a; flex-shrink: 0; }
.btn.red-t { color: #c0392b; }
.hlist-wrap { border-top: 2px solid var(--line); padding-top: 8px; }
.st-mode { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.st-mode small { color: #8a6a4a; flex-basis: 100%; }
.hcard.pick.sel { outline: 3px solid #3f9f45; }
.hcard.pick.sel::after { content: '✔'; position: absolute; left: 4px; top: 2px; background: #3f9f45; color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 12px; line-height: 18px; }
@media (max-width: 560px) {
  .hdetail { flex-direction: column; align-items: stretch; }
  .hdetail .mcw.big { align-self: center; margin-bottom: 20px; }
  .hdetail img.big { width: 110px; height: 110px; }
  .stat4 b { font-size: 14px; }
}

/* ===== 가방 아이템 타일 ===== */
.itiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin-bottom: 6px; }
.itile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px 6px; cursor: pointer; font-family: inherit; text-align: center; }
.itile:hover { border-color: #e8a33a; background: #fffaf0; }
.itile .ic, .itile .iic { font-size: 28px; }
.itile img { width: 40px; height: 40px; object-fit: contain; }
.itile b { font-size: 12px; line-height: 1.2; color: var(--ink, #3a2a18); word-break: keep-all; }
.itile small { font-size: 10px; color: #8a6a4a; }
.itile i { position: absolute; right: 6px; top: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: #7a5a2a; }
.itile.none { opacity: .45; }
.it-pop { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.it-pop .ic { font-size: 40px; }
.it-pop img { width: 56px; height: 56px; }
.it-pop p { margin: 4px 0; font-size: 13px; }
@media (max-width: 560px) {
  .presets { gap: 4px; padding: 4px 6px; }
  .presets .pl { width: 100%; }
  .presets .pset button.pload { padding: 4px 8px !important; min-width: 0 !important; font-size: 12px; }
}
.presets .pset.empty { padding: 0; margin: 0; text-align: left; font-size: inherit; background: #fff; grid-column: auto; width: auto; }
.bd-card { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 8px 0; text-align: left; }
.bd-card img.pop { width: 90px; height: 90px; }
.bd-price { font-size: 15px; margin: 4px 0; } .bd-price b { color: #b5781a; font-size: 20px; }
/* ===== 길드 ===== */
.chat-log .ch-guild .tag, .chat-log .ch-guild { color: #9fe39a; }
.g-intro { background: #f2f9ec; border: 1px solid #c7e3b5; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.g-create { display: flex; gap: 6px; margin-bottom: 8px; } .g-create input { flex: 1; }
.g-list { display: grid; gap: 6px; }
.g-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; }
.g-card.mine { border: 2px solid #e8a33a; background: #fffaf0; }
.g-emb { font-size: 26px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eee; flex-shrink: 0; }
.g-emb.f-evo { background: #dff2df; } .g-emb.f-mix { background: #dfe9f7; }
.g-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.g-info small { color: #8a6a4a; } .g-notice { color: #6a5a40 !important; }
.g-rank { font-weight: 800; color: #b5781a; }
.g-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.g-stat > span { background: #faf3e4; border-radius: 10px; padding: 6px 8px; font-size: 12px; color: #8a6a4a; display: flex; flex-direction: column; gap: 2px; }
.g-stat b { font-size: 17px; color: var(--brown); }
.g-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; margin: 6px 0; }
.g-mem { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px 8px; font-size: 13px; }
.g-mem img { width: 26px; height: 34px; object-fit: contain; }
.g-mem small { color: #8a6a4a; } .g-mem .g-c { margin-left: auto; font-weight: 800; color: #b5781a; }
.g-mem .dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; flex-shrink: 0; } .g-mem .dot.on { background: #3fbf4f; }
.g-shop .itile .btn { margin-top: 3px; }
@media (max-width: 560px) { .g-stat { grid-template-columns: 1fr; } }
.g-nm { display: flex; align-items: center; gap: 6px; } .g-nm b { font-size: 16px; }
.g-create .btn { flex: 0 0 auto; width: auto; }
.g-mem b { white-space: nowrap; } .g-mem small { white-space: nowrap; }
.q-gift { color: #c0582a; font-size: 12px; }
.battle { overflow: hidden; }

/* ⭐ 아크링 즐겨찾기 */
.fav-btn { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px 0 0; color: #c9b48a; vertical-align: -2px; }
.fav-btn.on { color: #f5b301; text-shadow: 0 0 6px rgba(245,179,1,.5); }
.fav-btn:hover { transform: scale(1.15); }
.hcard .favb { font-size: 13px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
/* 🔒 잠금 (아크링·아이템·돌) */
.lock-btn { border: 0; background: none; cursor: pointer; font-size: 17px; line-height: 1; padding: 0 4px 0 0; vertical-align: -2px; opacity: .45; filter: grayscale(1); }
.lock-btn.on { opacity: 1; filter: none; }
.lock-btn:hover { transform: scale(1.15); opacity: 1; }
.hcard .lockb, .itile .lockb { font-size: 12px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.itile { position: relative; }
.itile .lockb { position: absolute; top: 3px; left: 4px; }
.itile.locked { box-shadow: inset 0 0 0 2px rgba(201,150,40,.55); }
.sellrow.locked { opacity: .6; cursor: default; }
.sellrow .lock-note { color: #a07a2a; white-space: nowrap; }
.lock-sbtn { opacity: .5; filter: grayscale(1); }
.lock-sbtn.on { opacity: 1; filter: none; }
/* 확인 창 버튼: 글자가 세로로 쪼개지지 않게 (버튼이 많으면 줄바꿈) */
.ask .row .btn { white-space: nowrap; flex: 0 0 auto; }
.ask { max-width: min(520px, 94vw); }

/* 기술 상성 힌트 · 상성표 */
.sk-eff { font-size: 10px; margin-left: 4px; padding: 0 4px; border-radius: 6px; white-space: nowrap; }
.sk-eff.up { color: #fff; background: #e0562a; }
.sk-eff.down { color: #fff; background: #7a8494; }
.sk-eff.mix { color: #6a4a00; background: #ffe08a; }
.el-chart { border-collapse: collapse; margin: 8px auto; font-size: 12px; }
.el-chart th, .el-chart td { border: 1px solid #e0d2b4; padding: 3px 5px; text-align: center; min-width: 26px; }
.el-chart td.up { background: #ffe1d4; color: #c0391b; font-weight: 700; }
.el-chart td.down { background: #e8ecf2; color: #6a7484; }

/* "지금 할 일" — 처음 하는 사람의 길잡이 */
.nextbar { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px; max-width: min(560px, 60vw);
  background: linear-gradient(180deg, #fff6df, #ffe9b8); color: #4a2e10; border: 2px solid #e0a040; border-radius: 999px; padding: 5px 6px 5px 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); cursor: pointer; animation: nb-in .4s ease-out; }
.nextbar.hidden { display: none; }
.nextbar .nb-ic { font-size: 20px; }
.nextbar .nb-t { font-size: 13px; line-height: 1.25; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.nextbar .nb-t small { display: block; font-size: 10px; color: #a07030; }
.nextbar .nb-t i { font-style: normal; font-weight: 700; color: #c0601a; margin-left: 3px; }
.nextbar .btn { flex: none; white-space: nowrap; }
.nextbar:hover { filter: brightness(1.03); }
@keyframes nb-in { from { opacity: 0; transform: translate(-50%, -8px); } }
.center { top: 108px; }   /* 위에 "지금 할 일" 자리 */
@media (max-width: 760px) { .nextbar { top: 54px; max-width: 94vw; } .center { top: 104px !important; } }

/* 잠긴 시설: 작은 칩으로 모아서 */
.locked-more { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; font-size: 12px; color: #b8a888; }
.locked-more > span { width: 100%; font-size: 11px; opacity: .8; }
.lk-chip { border: 1px dashed rgba(255,220,160,.35); background: rgba(255,255,255,.05); color: #d8c8a8; border-radius: 999px; padding: 3px 9px; font: inherit; font-size: 12px; cursor: pointer; }
.lk-chip small { opacity: .7; margin-left: 2px; }
/* 보상 창의 아크링 돌 그림 크기 고정 (돌 그림이 창을 꽉 채우던 것) */
.ask .hatch-many img, .ask .hatch-many .stone { width: 72px !important; height: 72px !important; object-fit: contain; }
.ask .hatch-many { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ask .hatch-many span { display: flex; flex-direction: column; align-items: center; }

/* 서버 소식 띠 (마을) · 채팅 [소식] */
.news-tick { margin-top: 10px; display: flex; gap: 8px; align-items: center; background: rgba(255,214,120,.1); border: 1px solid rgba(255,214,120,.28); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; color: #ffe8b8; overflow: hidden; }
.news-tick.hidden { display: none; }
.news-tick .nt-h { flex: none; font-weight: 700; color: #ffd27a; }
.news-tick .nt-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: nt-in .4s ease-out; }
/* c338: 소식·팁 글자는 제자리에서 살짝 올라오게 (nb-in 은 가운데 정렬용 -50% 이동이라 글자가 왼쪽으로 튀어 '소식' 라벨 위에 겹쳤음) */
@keyframes nt-in { from { opacity: 0; transform: translateY(6px); } }
.ch-news { color: #ffd27a; }
.ch-news .tag { color: #ffb84a; }
/* 사냥터 도감 진행 */
.dex-prog { font-size: 12.5px; color: #8a6a3a; margin: 2px 0 6px; }
.dex-prog.done { color: #3a8a4a; }
.dex-prog small { color: #a08a6a; }
/* 별명 */
.nick-btn { border: 0; background: none; cursor: pointer; font-size: 13px; opacity: .6; padding: 0 3px; }
.nick-btn:hover { opacity: 1; }
.sp-name { font-size: 11px; color: #9a8a6a; font-weight: normal; margin-left: 2px; }
/* 레벨업 능력치 */
.rw.lvup div { font-size: 13px; }
.cine-cap small, .ask b { white-space: pre-line; }
/* 왼쪽 아래 퀘스트 박스에 마을 아래쪽(잠긴 기능 칩)이 가리지 않게 여유 */
.center { padding-bottom: 64px; }
@media (max-width: 760px) { .center { padding-bottom: 8px; } }

.nextbar.fold { gap: 4px; padding: 4px 10px; opacity: .8; }
.nextbar.fold:hover { opacity: 1; }
.nextbar.fold .nb-ic { font-size: 15px; }
.nextbar .nb-x { margin-left: 12px; border-left: 1px solid rgba(0,0,0,.12); padding: 2px 6px; border-radius: 6px; font-size: 12px; opacity: .55; cursor: pointer; }
.nextbar .nb-x:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* 날씨 · 주말 이벤트 · 버프 칩 */
.top-fun { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; max-width: 34vw; justify-content: flex-end; cursor: pointer; }
.top-fun .tf { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 2px 7px; border-radius: 10px; background: rgba(0,0,0,.35); color: #fff; white-space: nowrap; }
.top-fun .tf i { font-style: normal; font-weight: 700; }
.top-fun .tf.ev { background: linear-gradient(90deg, #c2410c, #db2777); animation: tf-glow 2s ease-in-out infinite; }
.top-fun .tf.b { background: rgba(20,80,50,.6); color: #b6ffd0; }
@keyframes tf-glow { 50% { filter: brightness(1.25); } }
@media (max-width: 1000px) { .top-fun .tf.w i, .top-fun .tf.ev i { display: none; } .top-fun { max-width: none; } }

/* 💗 친밀도 · 성격 대사 */
.aff { position: relative; display: inline-block; min-width: 64px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12px; overflow: hidden; vertical-align: middle; }
.aff i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(236,72,153,.35); z-index: -1; }
.aff.hi { color: #ffb3d9; font-weight: 700; }
.rw .say { display: inline-block; margin-left: 4px; padding: 1px 9px; border-radius: 12px; background: #fff; border: 1.5px solid #e0a040; color: #6a3a08; font-style: italic; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.aura-t { color: #b8790a; }
/* ✨ 꾸미기 오라 (능력치 X) */
.aura { position: absolute; left: 50%; bottom: 2%; width: 92%; height: 70%; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(6px); opacity: .85; animation: aura-pulse 2.4s ease-in-out infinite; }
.u-img > .aura ~ img, .mcw > .aura ~ img { position: relative; z-index: 1; }
.aura-fire { background: radial-gradient(ellipse at 50% 80%, rgba(255,120,30,.9), rgba(255,60,0,.35) 50%, transparent 72%); }
.aura-frost { background: radial-gradient(ellipse at 50% 80%, rgba(170,230,255,.9), rgba(80,170,255,.35) 50%, transparent 72%); }
.aura-gold { background: radial-gradient(ellipse at 50% 80%, rgba(255,225,90,.95), rgba(255,180,0,.4) 50%, transparent 72%); }
.aura-sakura { background: radial-gradient(ellipse at 50% 80%, rgba(255,170,210,.9), rgba(255,120,180,.35) 50%, transparent 72%); }
.aura-shadow { background: radial-gradient(ellipse at 50% 80%, rgba(90,40,140,.95), rgba(30,0,60,.5) 50%, transparent 72%); }
.aura-rainbow { background: conic-gradient(from 0deg, #ff5b5b, #ffb34d, #ffe75a, #6bff8a, #5bc8ff, #9b6bff, #ff5bd1, #ff5b5b); filter: blur(10px); opacity: .6; animation: aura-spin 4s linear infinite; }
@keyframes aura-pulse { 50% { opacity: .5; transform: translateX(-50%) scale(1.08); } }
@keyframes aura-spin { to { transform: translateX(-50%) rotate(360deg); } }
em.ttl { font-style: normal; font-size: .78em; color: #ffd36b; background: rgba(120,70,0,.45); border-radius: 6px; padding: 0 5px; margin-right: 2px; }
/* 🧭 원정 창 */
.camp-row { gap: 8px; }
.camp-row > span:nth-of-type(1) { flex: 1; min-width: 0; }
.camp-row.done { opacity: .55; }
.camp-row.empty-slot { justify-content: space-between; border: 1px dashed rgba(255,255,255,.25); }
.camp-bar { height: 5px; margin-top: 4px; }
.board-row small.dim { opacity: .7; }
.awayb { background: #1d4ed8; color: #fff; border-radius: 6px; padding: 0 3px; font-size: 11px; }
.rowi.me-t { background: rgba(255,210,80,.12); }
#menu button { position: relative; }
.upd-bar { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 200; background: linear-gradient(90deg, #2563eb, #7c3aed); color: #fff; border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.4); cursor: pointer; animation: tf-glow 2s ease-in-out infinite; }
.upd-bar small { opacity: .8; }
.dia-trend { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: rgba(60,120,255,.12); font-size: 14px; }
.dia-trend .up { color: #ff6a6a; font-weight: 700; } .dia-trend .down { color: #5aa0ff; font-weight: 700; }
.asc-line.closed { cursor: pointer; opacity: .8; } .asc-line.closed:hover { opacity: 1; }
.asc-hd[data-ascclose] { cursor: pointer; }
.asc-h.ready { background: rgba(255,90,90,.08); border-radius: 8px; }
.asc-h .miss-t { color: #ffb08a; }
.asc-more { margin: 4px auto 0; display: block; }
.mk-avg { font-size: 11px; color: #8a6a3a; text-align: center; margin-top: -2px; }
.pre-line { white-space: pre-line; }
.tab-badge { font-style: normal; background: #e5484d; color: #fff; border-radius: 8px; padding: 0 5px; font-size: 11px; margin-left: 2px; }
.board-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.board-top .small-note { flex: 1; margin: 0; }
.board-row.mine { background: rgba(255,210,80,.12); border-radius: 8px; }
.board-row.user b { color: #2563eb; }
.bpost { display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: min(360px, 80vw); }
.bpost label { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: 14px; }
.bpost input, .bpost select { flex: 1; max-width: 220px; padding: 4px 6px; }
.bd-ic { flex: 0 0 40px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.bd-ic > * { max-width: 40px; max-height: 40px; width: 40px; height: 40px; }

/* 지금 할 일 바: 위쪽 바 바로 아래 · 펼쳐져 있으면 가운데 칸을 내림 (가리지 않게) */
.nextbar { top: 74px; width: max-content; }   /* max-content: left 를 가운데로 옮기면 오른쪽 남은 폭만큼만 넓어져 세로로 찌그러지던 것 */
@media (max-width: 760px) { .nextbar { top: auto; bottom: 118px; } body.has-next .center { padding-bottom: 130px; } }   /* 폰: 위쪽은 출전 아크링 줄이 있어서 가리므로 아래(메뉴·추적기 위)로 */
@media (min-width: 761px) { body.has-next .center { top: 140px; } }
.mix-sugg { background: #fff7e0; border: 1.5px dashed #e0a040; border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; text-align: left; font-size: 13px; }
.mix-sugg .ms-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mix-sugg .ms-row img { width: 26px; height: 26px; object-fit: contain; }
.mix-sugg .ms-row .btn { margin-left: auto; }
/* 결과 아크링 뒤 후광 */
.cine-halo { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0; animation: halo-in .8s ease-out .15s forwards;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent) 0%, color-mix(in srgb, var(--c2) 25%, transparent) 38%, transparent 68%); }
.cine-halo::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; opacity: .35;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 70%, transparent) 0deg 6deg, transparent 6deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); animation: halo-spin 14s linear infinite; }
.cine-halo.strong::before { opacity: .6; animation-duration: 8s; }
@keyframes halo-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes halo-spin { to { transform: rotate(360deg); } }

/* 좁은 폰: 닉네임·레벨이 '결…'로 잘리던 문제 — 소리 버튼은 설정으로, 재화 칸은 더 촘촘히 */
@media (max-width: 480px) {
  .topbar { gap: 4px; }
  .topbar > .mute:not(.bell) { display: none; }
  .gold { padding: 4px 6px; font-size: 13px; }
  .gold .gi-wrap { margin-right: 1px; }
  .top-fun { gap: 2px; }
  .top-fun .tf { padding: 2px 4px; }
  .me { min-width: 118px; }
}
/* 터치 기기에서는 Enter/Space 키 안내 숨김 */
@media (hover: none) and (pointer: coarse) { small.kh { display: none; } }
.sk-st .sk-tag { background: #fff1c9; color: #8a5a00; border-radius: 6px; padding: 0 5px; font-weight: 700; } .sk-st .sk-tag.red { background: #ffe0dc; color: #a0281c; }
/* 신수 각성 연출: 지금 모습이 점점 빛에 휩싸임 */
.cine-h.asc-old img { animation: ascold 4.2s ease-in forwards; }
@keyframes ascold { 0% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 6px 18px rgba(0,0,0,.6)); } 70% { filter: hue-rotate(var(--hue, 0deg)) brightness(1.6) drop-shadow(0 0 24px #fff6c8); } 100% { filter: hue-rotate(var(--hue, 0deg)) brightness(3) drop-shadow(0 0 40px #ffffff); } }
.cs-name .cs-asc { font-family: "Noto Serif KR", "Batang", serif; font-weight: 900; color: #fff; text-shadow: 0 0 12px var(--c), 0 0 24px var(--c); padding: 0 4px; }
/* 다른 기기 접속으로 끊김 */
.replaced { position: fixed; inset: 0; z-index: 9999; background: rgba(10,12,20,.82); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.replaced .card { background: #fff8ec; border: 2px solid var(--brown2); border-radius: 18px; padding: 22px 20px; max-width: 340px; text-align: center; display: grid; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.replaced .ic { font-size: 40px; } .replaced b { font-size: 19px; color: var(--brown); } .replaced p { margin: 0; color: #6b5a48; line-height: 1.5; } .replaced small { color: #9a8a78; }
/* 폰 거래소 올리기: 고른 물건·가격 입력을 목록 위로, 목록은 따로 스크롤 */
@media (max-width: 560px) {
  .mk-sell .mk-form { order: -1; position: static; }
  .mk-sell .mk-tiles { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }
  .mk-sell .mk-form .mk-card .mk-img { height: 84px; }
}
/* 부화 자동 정리 */
.hatch-auto { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #f3ead8; border: 1px dashed #d8c39b; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; font-size: 13px; }
.hatch-auto select { padding: 4px 6px; border-radius: 8px; border: 1px solid #d8c39b; font-family: inherit; background: #fff; }
.hatch-auto small { flex-basis: 100%; color: #8a7a66; }
/* 폰: 두 번 탭하면 확대되던 것 막기 */
html, body, button, a, input, select, .unit, .panel { touch-action: manipulation; }
.menu button .badge.evo { font-size: 10px; padding: 1px 5px; white-space: nowrap; }
/* 마을 시설: 모험 / 마을 시설 / 거래·소셜 탭으로 나눠 보기 (PC·폰 공통) */
.fac-tabs { display: flex; gap: 8px; margin-top: 12px; }
.fac-tabs button { position: relative; flex: 1; max-width: 220px; padding: 9px 6px; border-radius: 12px; border: 2px solid var(--brown2); background: #fffaf0; color: var(--brown); font-family: 'Jua', sans-serif; font-size: 15px; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.fac-tabs button:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(120,70,0,.18); }
.fac-tabs button.on { background: linear-gradient(#ffcf6a, #f0a53a); color: #4a2a00; border-color: #c07a1a; }
.fac-tabs button .tdot { position: absolute; top: -5px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: #e0302a; border: 2px solid #fff; animation: pulse 1.4s ease-in-out infinite; }
.facs[data-cat] > .fac { display: none; }
.facs[data-cat="go"] > .fac[data-cat="go"], .facs[data-cat="fac"] > .fac[data-cat="fac"], .facs[data-cat="soc"] > .fac[data-cat="soc"] { display: flex; }
.fac { position: relative; }
.fac-new { position: absolute; top: 5px; right: 5px; z-index: 2; font-style: normal; font-size: 10px; background: #e0302a; color: #fff; border-radius: 999px; padding: 1px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.3); animation: pulse 1.4s ease-in-out infinite; }
@media (max-width: 600px) {
  .fac-tabs { gap: 6px; margin-top: 10px; }
  .fac-tabs button { max-width: none; padding: 8px 4px; font-size: 14px; }
  .facs { grid-template-columns: repeat(2, 1fr); }
}
/* 졌을 때 강해지는 법 */
.lose-tips { display: grid; gap: 6px; text-align: left; }
.lose-tips > b { font-size: 18px; text-align: center; color: var(--brown); }
.lose-tips > small { text-align: center; color: #8a7a66; margin-bottom: 4px; }
.lt-row { display: grid; grid-template-columns: 34px 1fr 14px; gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid #e3cfa6; background: #fffaf0; cursor: pointer; font-family: inherit; }
.lt-row:hover { background: #fff1d6; }
.lt-row .lt-ic { font-size: 22px; text-align: center; }
.lt-row > span > b { display: block; color: var(--brown); font-size: 14px; }
.lt-row small b { color: var(--brown); font-weight: 800; }   /* c388: 설명 속 강조(연금 공방·기술 학당)가 줄바꿈되던 것 */
.lt-row small { display: block; color: #7a6a56; font-size: 12px; line-height: 1.4; }
.lt-row i { color: #c08a3a; font-style: normal; }
.lt-off { font-size: 12px; color: #8a7a66; display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 4px; }
/* 원정 → 진영 도감 단계 (폰 최적화 카드) */
.fd-list { display: grid; gap: 8px; }
.fd-card { border: 1px solid #e3cfa6; border-radius: 12px; padding: 10px 12px; background: #fffaf0; display: grid; gap: 6px; }
.fd-card.cur { border: 2px solid #e0a43a; background: #fff6df; }
.fd-card.done { opacity: .6; }
.fd-head { display: flex; justify-content: space-between; align-items: baseline; }
.fd-head b { color: var(--brown); font-size: 15px; } .fd-head span { font-size: 13px; color: #8a7a66; }
.fd-card .bar { height: 7px; border-radius: 99px; background: #eadcbf; overflow: hidden; } .fd-card .bar i { background: linear-gradient(90deg, #6cc04a, #3a9a2a); }
.fd-rw { display: flex; flex-wrap: wrap; gap: 6px; } .fd-rw span { font-size: 12px; background: #f3e6c8; border-radius: 99px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 3px; }
.fd-rw .iic, .fd-rw svg, .fd-rw img { width: 16px; height: 16px; }
/* 어디서 얻나 링크 · 팝업 */
.wlink { text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; color: #2a6ab0; }
.wlink:hover { color: #c0601a; }
.lack .wlink { color: #c0392b; }
#wpop { position: fixed; inset: 0; z-index: 9000; background: rgba(10,12,20,.55); display: grid; place-items: center; padding: 16px; }
#wpop .wp-card { background: #fffaf0; border: 2px solid var(--brown2); border-radius: 16px; width: min(440px, 100%); max-height: 80vh; overflow: auto; box-shadow: 0 16px 50px rgba(0,0,0,.5); }
#wpop .wp-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #ecdcbc; position: sticky; top: 0; background: #fffaf0; }
#wpop .wp-head b { color: var(--brown); font-size: 16px; } #wpop .wp-x { border: 0; background: none; font-size: 18px; cursor: pointer; }
#wpop .wp-body { padding: 10px 14px 14px; display: grid; gap: 8px; }
.wg-list { display: grid; gap: 5px; }
.wg-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #eadcbf; font-size: 13px; }
.wg-row small { color: #8a7a66; } .wg-st { font-size: 12px; white-space: nowrap; }
.wg-row.ok { border-color: #9ad08a; } .wg-row.neu { border-color: #b8a8e0; } .wg-row.hos { border-color: #e0a0a0; opacity: .8; } .wg-row.lock { opacity: .75; }
@media (max-width: 420px) { .wg-row { grid-template-columns: 1fr auto; } .wg-st { grid-column: 1 / -1; } }

/* 아크링 자랑 카드 (채팅) */
.chat-log .brag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chat-log .brag-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px 3px 3px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(242,193,78,.18), rgba(242,193,78,.05)); border: 1px solid rgba(242,193,78,.55); color: #ffe7a8; font: inherit; cursor: pointer; text-align: left; }
.chat-log .brag-chip img { width: 30px; height: 30px; object-fit: contain; }
.chat-log .brag-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-log .brag-chip i { font-style: normal; font-size: 11px; color: #f2c14e; flex: none; }
.brag-view { display: grid; gap: 8px; justify-items: center; }
.brag-view > small { color: var(--dim, #9aa); }
.brag-sk { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.brag-sk span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
/* 원정 패널 탭: 받을 보상 수 */
.tabs button .ct-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: #e0302a; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
/* 프로필 사진: 특별한 모습 */
.av-cell { position: relative; }
.av-cell.sp { background: linear-gradient(#fffaf0, #fff1d6); }
.av-cell .av-tag { position: absolute; top: 3px; right: 3px; font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 999px; background: #7a3cff; color: #fff; max-width: calc(100% - 6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 중립 사냥터 */
.fdot.f-neutral { background: #9a6aff; }
.gitem.f-neutral { border-color: #9a6aff !important; box-shadow: inset 0 0 0 1px rgba(154,106,255,.35); }
/* ===== 연구소 가독성 개편: 상태 세그먼트 · 진화 카드 · 믹스 레시피 보드 ===== */
.seg { display: flex; gap: 6px; margin: 8px 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; padding: 7px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fffaf0; color: var(--brown); font-family: 'Jua', sans-serif; font-size: 13px; white-space: nowrap; cursor: pointer; }
.seg button b { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: #efe2c8; color: var(--brown); font-size: 12px; }
.seg button.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.seg button.on b { background: #fff; }
.seg button.ready b { background: #d8f2d0; color: #2e7d32; } .seg button.craft b { background: #ffe7c2; color: #b5620a; }
.seg button.half b { background: #ffe7c2; color: #b5620a; }
.evo-rules { margin: 4px 0 2px; } .evo-rules > summary { cursor: pointer; color: #8a6a44; font-size: 13px; padding: 4px 2px; }
.evo-cards { display: grid; gap: 8px; }
.evo-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); }
.evo-card.ready { border-color: #6cc46a; background: linear-gradient(90deg, #f1fbef, #fff 60%); }
.evo-card.craft { border-color: #f0b25a; background: linear-gradient(90deg, #fff6e6, #fff 60%); }
.evo-card.wait { opacity: .92; }
.ec-imgs { display: flex; align-items: center; gap: 2px; } .ec-imgs img.mini { width: 44px; height: 44px; }
.ec-arrow { color: #c79a5a; font-size: 11px; }
.ec-main { min-width: 0; display: grid; gap: 4px; }
.ec-name { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-to { color: #8a6a44; font-size: 12px; }
.ec-reqs { display: flex; flex-wrap: wrap; gap: 4px; }
.rq { position: relative; display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 4px; border-radius: 8px; font-size: 12px; line-height: 1.3; }
.rq.ok { background: #e8f6e5; color: #2e7d32; } .rq.no { background: #fdecea; color: #c0392b; }
.rq.bound { background: #efe6ff; color: #6a3cc8; }
.rq .wlink { color: inherit; text-decoration: underline dotted; }
.rq .rqbar { position: absolute; left: 6px; right: 6px; bottom: 1px; height: 2px; border-radius: 2px; background: rgba(0,0,0,.08); overflow: hidden; }
.rq .rqbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; }
.ec-act { display: grid; justify-items: center; gap: 3px; } .ec-rate { font-size: 13px; color: #8a6a44; font-family: 'Jua', sans-serif; }
.ec-act .btn { min-width: 64px; padding: 6px 10px; line-height: 1.15; }
.mix-board { background: #fffaf0; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 8px 4px; margin-bottom: 8px; }
.mr-list { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.mr-row { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid #eadbbd; }
.mr-row.ready { border-color: #6cc46a; } .mr-row.half { border-color: #f0c27a; }
.mr-h, .mr-res { display: flex; align-items: center; gap: 3px; min-width: 0; flex: 1 1 0; }
.mr-res { flex: 1.1 1 0; }
.mr-h img.mini, .mr-res img.mini { width: 36px; height: 36px; flex: none; }
.mr-h small, .mr-res small { font-size: 11px; line-height: 1.25; min-width: 0; overflow: hidden; }
.mr-h.no small em { font-style: normal; color: #c0392b; font-size: 10.5px; } .mr-h.no .mr-stone { color: #2e7d32 !important; }
.mr-h.no img { opacity: .45; filter: grayscale(.6); }
.mr-op { color: #b08850; font-weight: bold; flex: none; }
.mr-row .btn.tiny { flex: none; }
.mixbox.compact { padding: 6px; } .mixbox.compact .mixslot { height: 64px; width: 110px; font-size: 11px; }
@media (max-width: 600px) {
  .evo-card { grid-template-columns: auto 1fr; } .ec-act { grid-column: 1 / -1; grid-auto-flow: column; justify-content: end; align-items: center; gap: 8px; }
  .ec-imgs img.mini { width: 38px; height: 38px; }
  .mr-h small, .mr-res small { font-size: 10.5px; }
}
@media (max-width: 600px) {
  .seg { flex-wrap: wrap; overflow: visible; }
  .seg button { flex: 1 1 calc(50% - 6px); padding: 6px 6px; font-size: 12.5px; }
  .mr-h small, .mr-res small { word-break: keep-all; }
}
.mr-h.no img.mini { border: 1.5px dashed #d0a878; border-radius: 10px; }
.mr-h small .wlink { white-space: nowrap; }
/* 보관함 빠른 보기 칩 · 카드 모서리 표시 (진화 / 믹스 재료) */
.qchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { flex: none; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fffaf0; color: var(--brown); font-family: 'Jua', sans-serif; font-size: 13px; cursor: pointer; white-space: nowrap; }
.qchip b { font-size: 11.5px; color: #8a6a44; margin-left: 1px; }
.qchip.on { background: var(--brown); color: #fff; border-color: var(--brown); } .qchip.on b { color: #ffe0a8; }
.qchip.q-ready:not(.on) { border-color: #6cc46a; } .qchip.q-mix:not(.on) { border-color: #7aa6f0; }
.hcard .cbadges { position: absolute; right: 3px; top: 30px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; z-index: 2; }
.cb-evo { font-size: 10px; padding: 1px 5px; border-radius: 6px; background: #3f9f45; color: #fff; font-family: 'Jua', sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cb-mix { font-size: 11px; padding: 0 3px; border-radius: 6px; background: #e3eeff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
/* 폰: 가방 아이템을 한 줄에 4개 아이콘 타일로 */
@media (max-width: 600px) {
  .itiles { grid-template-columns: repeat(4, 1fr) !important; gap: 6px !important; }
  .itile { padding: 6px 2px 4px !important; min-height: 0 !important; }
  .itile b { font-size: 10.5px !important; line-height: 1.2; word-break: keep-all; }
  .itile small { font-size: 9.5px !important; }
}
/* 진화: 같은 종 묶음 */
.ec-many { display: inline-block; padding: 0 7px; border-radius: 999px; background: #7a4a20; color: #fff; font-size: 11.5px; font-family: 'Jua', sans-serif; }
.ec-act .btn small { font-size: 10px; opacity: .85; }
.eg-pop { text-align: left; } .eg-list { display: grid; gap: 6px; margin-top: 8px; max-height: 55vh; overflow-y: auto; }
.eg-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.eg-row.ready { border-color: #6cc46a; } .eg-row.craft { border-color: #f0b25a; } .eg-row.wait { opacity: .7; }
.eg-row img.mini { width: 40px; height: 40px; flex: none; }
.eg-info { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 13px; } .eg-info small { font-size: 11px; color: #8a6a44; }
.eg-info small.ok { color: #2e7d32; } .eg-info small.no { color: #c0392b; }
.eg-row { text-align: left; } .eg-row.wait { opacity: 1; background: #faf6ee; }
.eg-info { display: flex; flex-direction: column; align-items: flex-start; } .eg-l1 { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink); }
/* 재연결 중 띠 (폰 백그라운드 복귀) */
#net-banner { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: 9999; padding: 6px 14px; border-radius: 999px; background: rgba(20,22,36,.9); color: #ffe9b8; font-family: 'Jua', sans-serif; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.35); display: flex; align-items: center; gap: 8px; pointer-events: none; }
#net-banner .spin { width: 12px; height: 12px; border: 2px solid rgba(255,233,184,.35); border-top-color: #ffe9b8; border-radius: 50%; animation: netspin .8s linear infinite; }
@keyframes netspin { to { transform: rotate(360deg); } }
/* 우편함 */
.mailbtn { position: relative; }
.mailbtn .mail-n { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0302a; color: #fff; font-style: normal; font-size: 10.5px; line-height: 16px; text-align: center; }
.mail-list { display: grid; gap: 8px; }
.mail-row { position: relative; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1.5px solid #f0c27a; display: grid; gap: 6px; }
.mail-row.done { border-color: var(--line); opacity: .65; }
.mail-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .mail-h small { color: #8a6a44; }
.mail-row p { margin: 0; font-size: 13px; color: #5a4630; }
.mail-rw { display: flex; flex-wrap: wrap; gap: 4px; } .mrw { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 8px; background: #fff6e2; font-size: 12.5px; }
.mrw img { width: 18px; height: 18px; }
.mail-row .btn { justify-self: end; }
/* ☰ 메뉴: PC는 숨김(우편함·소리 버튼 따로), 폰은 ☰ 하나로 모음 */
.menubtn { display: none !important; position: relative; }
.menubtn .mail-n { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0302a; color: #fff; font-style: normal; font-size: 10.5px; line-height: 16px; text-align: center; }
@media (max-width: 600px) {
  .topbar > .mute.mailbtn, .topbar > #btn-mute { display: none; }
  .topbar > .menubtn { display: inline-grid !important; width: 32px; height: 32px; font-size: 17px; flex: none; }
}
#top-drawer { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 50px); right: 8px; z-index: 60; display: grid; grid-template-columns: repeat(3, 72px); gap: 6px; padding: 10px; border-radius: 16px;
  background: rgba(14,16,30,.92); border: 1px solid rgba(232,194,122,.55); box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(8px); animation: drIn .15s ease-out; }
@keyframes drIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
#top-drawer button { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 12px; background: rgba(255,255,255,.06); color: #f3ead8; font-family: 'Jua', sans-serif; cursor: pointer; }
#top-drawer button:active { background: rgba(232,194,122,.25); }
#top-drawer .di { position: relative; font-size: 24px; line-height: 1; }
#top-drawer .di .mail-n { position: absolute; top: -6px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0302a; color: #fff; font-style: normal; font-size: 10.5px; line-height: 16px; }
#top-drawer small { font-size: 11.5px; }
/* 완전체 모드: 이름 앞 '진 · ' */
.mode-pre { color: #e8c27a; font-weight: 900; text-shadow: 0 0 6px rgba(232,194,122,.6); }
.mode-tag { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; margin-right: 4px; border-radius: 6px; background: linear-gradient(135deg, #2a9a4a, #e8c27a); color: #fff; font-family: 'Noto Serif KR', serif; font-weight: 900; font-size: 13px; box-shadow: 0 0 8px rgba(232,194,122,.7); vertical-align: middle; }
.mode-tag.sm { min-width: 15px; height: 15px; font-size: 10px; margin: 0 0 0 3px; }
img.mode1 { filter: drop-shadow(0 0 6px rgba(120,230,140,.85)) drop-shadow(0 0 14px rgba(232,194,122,.6)); }
.mode-pop { display: grid; gap: 6px; justify-items: center; text-align: center; } .mode-pop > small { color: #8a6a44; }
.mode-rows { display: grid; gap: 4px; width: 100%; text-align: left; margin-top: 4px; }
.mode-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 10px; font-size: 13px; }
.mode-row.ok { background: #e8f6e5; color: #2e7d32; } .mode-row.no { background: #fdecea; color: #c0392b; }
.mode-row > span { flex: 1; } .mode-row small { color: inherit; opacity: .85; }
.mode-row > span { white-space: nowrap; } .mode-row small { text-align: right; }

/* ⚔ 결투장 */
.ar-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.ar-mode { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; border: 2px solid rgba(0,0,0,.12); background: rgba(255,255,255,.6); cursor: pointer; font: inherit; }
.ar-mode.on { border-color: #c0392b; background: #fff3ef; box-shadow: 0 2px 8px rgba(192,57,43,.2); }
.ar-mode small { font-size: 12px; opacity: .8; }
.ar-mode i { position: absolute; top: 4px; right: 6px; font-size: 11px; font-style: normal; opacity: .65; }
.ar-me { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; }
.ar-coin { margin-left: auto; font-weight: 700; color: #a0700f; }
.ar-foe { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 8px; margin: 6px 0; border-radius: 10px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); }
.ar-foe-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ar-foe-r .up { color: #2c7a32; } .ar-foe-r .down { color: #c0392b; }
.ar-team { display: flex; gap: 4px; }
.ar-h { display: flex; flex-direction: column; align-items: center; }
.ar-h img { width: 40px; height: 40px; object-fit: contain; }
.ar-h small { font-size: 10px; }
.ar-log { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 4px 0; border-radius: 8px; background: rgba(255,255,255,.55); font-size: 13px; }
.ar-log.ok span { color: #2c7a32; } .ar-log.no span { color: #c0392b; }
.ar-log small { opacity: .7; } .ar-log .btn { margin-left: auto; }
.ar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.ar-pick .mini-card { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 8px; border: 2px solid transparent; background: rgba(255,255,255,.6); cursor: pointer; font-size: 12px; }
.ar-pick .mini-card.sel { border-color: #c0392b; background: #fff3ef; }
.ar-pick img { width: 44px; height: 44px; object-fit: contain; }
.ar-rank { list-style: none; padding: 0; margin: 0; }
.ar-rank li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 13px; }
.ar-rank li > span { width: 26px; text-align: right; font-weight: 700; }
.ar-rank li i { margin-left: auto; font-style: normal; opacity: .8; }
.ar-rank li.ar-mine { background: #fff3ef; border-radius: 6px; font-weight: 700; }
.ar-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ar-item { display: flex; flex-direction: column; gap: 3px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); }
.ar-item .ic { font-size: 26px; } .ar-item small { font-size: 11px; opacity: .75; line-height: 1.3; max-height: 3.9em; overflow: hidden; }
.ar-item i { font-size: 11px; font-style: normal; opacity: .7; }
.ar-item.off { opacity: .5; }
/* 🚩 거점전 */
.op-card { padding: 10px; margin: 8px 0; border-radius: 12px; background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.08); }
.op-card.mine { border: 2px solid #d4a017; background: #fffbea; }
.op-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.op-own { margin-left: auto; font-weight: 700; font-size: 13px; }
.op-ch { color: #c0392b; font-size: 13px; margin: 2px 0; } .op-sh { color: #2c7a32; font-size: 13px; margin: 2px 0; }
.op-hp { display: block; width: 40px; height: 4px; background: rgba(0,0,0,.15); border-radius: 2px; overflow: hidden; }
.op-hp b { display: block; height: 100%; background: #e5484d; }
.ar-myteam { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #fff3ef; border: 1px dashed #c0392b; margin-bottom: 6px; }
.ar-myteam .btn { margin-left: auto; }
.ar-pick .mini-card { position: relative; }
.ar-no { position: absolute; top: 2px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #c0392b; color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; font-weight: 700; }

.ar-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ar-tabs button { white-space: nowrap; padding: 4px 2px; }
@media (max-width: 520px) {
  .ar-tabs { gap: 3px; }
  .ar-tabs button { font-size: 12.5px; padding: 4px 1px; }
  .ar-foe { grid-template-columns: 1fr auto; }
  .ar-foe .ar-team { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .ar-foe-r { grid-row: 1; grid-column: 2; }
  .ar-shop { grid-template-columns: repeat(2, 1fr); }
}
/* 👑 수문장 정보 (사냥터 화면) */
.gate-hint { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; padding: 6px 10px; border-radius: 10px; background: rgba(120, 60, 20, .08); border: 1px dashed rgba(160, 90, 30, .35); font-size: 13px; line-height: 1.45; text-align: left; }
.gate-hint .hench-img, .gate-hint img { width: 40px; height: 40px; flex: none; }
.gate-hint small { color: #8a5a20; }
.boss-intro .bi-name .bi-weak { display: block; margin-top: 4px; color: #ffe08a; font-style: normal; }
/* 🔁 돌 교환소 */
.xch-entry { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.xch-entry small { color: #7a6040; }
.xch-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.xch-chips .chip img, .xch-chips .chip .hench-img { width: 22px; height: 22px; vertical-align: middle; }
.xch-target { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(90, 140, 60, .08); }
.xch-target img { width: 48px; height: 48px; object-fit: contain; }
.rowi small.warn, .cartbar small.warn { color: #c0541a; }
#xch-sel { width: 100%; margin: 4px 0 6px; }
.xch-top small b { font-size: inherit; color: inherit; }
/* 게임 안 숫자·글자 입력 (prompt 대체) */
.num-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; }
.num-pick .num-in { width: 80px; text-align: center; font-size: 16px; padding: 6px; border-radius: 8px; border: 1px solid var(--brown2, #b08a5a); }
.ask-body .txt-in { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; font-size: 16px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--brown2, #b08a5a); }
.ar-h .ar-stg { font-style: normal; font-size: 9px; padding: 0 3px; border-radius: 4px; background: rgba(0,0,0,.08); }
.ar-h .ar-stg.s4 { background: #f3d36b; color: #5a3a00; }
.ar-h .ar-els .el { font-size: 9px; padding: 0 3px; }
/* 💡 마을 팁 (소식 아래) */
.tip-tick { margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; background: rgba(140,200,255,.08); border: 1px solid rgba(140,200,255,.25); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; color: #dcefff; cursor: pointer; line-height: 1.45; }
.tip-tick.hidden { display: none; }
.tip-tick .tt-h { flex: none; font-weight: 700; color: #9fd3ff; }
.tip-tick .tt-t { animation: nt-in .4s ease-out; }

/* c173: 창고 아크링 배지 */
.hcard .stob, #tr-pick .stob { font-size: 11px; margin-right: 2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
/* c173b: 전체 / 배낭 / 창고 탭 */
.src-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; grid-column: 1 / -1; width: 100%; flex-basis: 100%; }
.src-tabs .fchip small { opacity: .7; margin-left: 2px; }
/* c174: 유저 우편 */
.mail-tabs { margin-bottom: 8px; }
.mail-tabs .mail-n { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #e5484d; color: #fff; font-size: 11px; }
.mail-row.from-user { border-left: 3px solid #4a90d9; }
.mail-from { font-size: 12px; opacity: .75; margin: 2px 0 4px; }
.mail-act { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.mail-send { display: flex; flex-direction: column; gap: 8px; }
.mail-send label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.mail-send input, .mail-send textarea { width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(0,0,0,.18); font: inherit; }
.mail-send textarea { resize: vertical; min-height: 70px; }
.mail-send .mrw .minus { cursor: pointer; margin-left: 4px; color: #c33; }
.mail-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.mrw img.stone, .mrw .stone { width: 18px; height: 18px; vertical-align: middle; }
/* c174: 사냥터 화면 정리 — 출현 아크링 가로 스크롤 · 수문장 박스 · 하단 이동 버튼 */
.ground-card .appear { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 4px 4px 8px; margin: 8px 0;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
.ground-card .appear::-webkit-scrollbar { height: 6px; }
.ground-card .appear::-webkit-scrollbar-thumb { background: rgba(120, 80, 40, .3); border-radius: 3px; }
.ground-card .appear .ap { position: relative; flex: 0 0 auto; width: 82px; scroll-snap-align: start; padding: 4px 2px 3px; border-radius: 12px; background: rgba(255, 255, 255, .55); border: 1.5px solid rgba(160, 110, 60, .18); }
.ground-card .appear .ap small { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ground-card .appear .ap img { width: 64px; height: 64px; }
.ground-card .appear .ap.st4 { background: linear-gradient(180deg, #fff3cf, #ffe7a8); border-color: #e0a92e; }
.ground-card .appear .ap.st3 { background: linear-gradient(180deg, #f1ecff, #e2d8ff); border-color: #a58be0; }
.ground-card .appear .ap .ap-st { position: absolute; top: 3px; left: 4px; font-style: normal; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; }
.ground-card .appear .ap.unknown { display: flex; align-items: center; justify-content: center; }
.ground-card .appear .ap.unknown span { width: 52px; height: 52px; font-size: 28px; }
.gate-box { margin: 10px auto 4px; padding: 8px 10px; border-radius: 14px; background: rgba(120, 60, 20, .06); border: 1px solid rgba(160, 90, 30, .2); max-width: 520px; }
.gate-box .gate-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.gate-box .gate-btns .btn { flex: 1 1 180px; }
.gate-box .gate-hint { margin: 8px 0 0; background: transparent; border: 0; padding: 0 2px; }
.ground-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.ground-nav .btn { width: 100%; padding-left: 6px; padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gitem.gnow { border-color: #3a8f5c; background: #f0fff4; box-shadow: 0 0 0 2px rgba(58,143,92,.25); }
.gitem .recb.gnow { background: #3a8f5c; }
@media (max-width: 560px) {
  .ground-card .appear .ap { width: 68px; }
  .ground-card .appear .ap img { width: 50px; height: 50px; }
  .ground-nav { gap: 6px; } .ground-nav .btn { font-size: 13px; }
}
.ground-card .hunt-row { flex-wrap: nowrap; align-items: stretch; max-width: 520px; margin: 8px auto 0; }
.ground-card .hunt-row .btn.big { margin: 0; flex: 1 1 auto; min-width: 0; }
.ground-card .hunt-row .auto-hunt { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.2; min-width: 92px; }
.ground-card .ground-nav { max-width: 520px; margin-left: auto; margin-right: auto; }
.ground-card .small-note { margin: 2px 0 4px; }
/* c174c: 모바일 다듬기 */
.mail-send { gap: 10px; }
.mail-send label { margin: 0; }
.mail-send input, .mail-send textarea { margin: 0; font-size: 16px; }   /* iOS 입력 시 화면 확대 방지 (16px 미만이면 자동 줌) */
.mail-send .q-sec { margin: 4px 0 0; }
.mail-send .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mail-act .btn { min-height: 34px; }
.gitem .recb { right: 30px; }   /* ☆ 즐겨찾기와 겹치지 않게 */
.src-tabs { flex-wrap: nowrap; overflow-x: auto; }
.src-tabs .fchip { flex: 0 0 auto; }
@media (max-width: 560px) {
  .mail-tabs button { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  .gate-box .gate-btns .btn { flex-basis: 100%; }
  .ground-card .appear { margin: 6px -4px; }
}
/* c175: 📘 해금 가이드 */
.gd-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 2px; }
.gd-ic { font-size: 54px; line-height: 1; animation: gdPop .5s cubic-bezier(.2,1.6,.4,1); filter: drop-shadow(0 4px 8px rgba(0,0,0,.18)); }
@keyframes gdPop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gd-new { font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #f08a24, #e5484d); padding: 2px 10px; border-radius: 10px; letter-spacing: .5px; }
.gd-name { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 24px; color: var(--brown, #6b4a2a); }
.gd-what { margin: 2px 0; font-size: 14px; line-height: 1.55; color: #5a4630; }
.gd-gains { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; align-items: center; }
.gd-gains small { width: 100%; font-size: 11px; color: #8a6a44; }
.gd-gains span { padding: 3px 9px; border-radius: 10px; background: #fff6e2; border: 1px solid #f0c27a; font-size: 13px; }
.gd-rw { margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: #eefbf1; border: 1px dashed #3a8f5c; font-size: 13px; color: #24633e; }
.gd-rws { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.gd-rwi { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #fff6e2; border: 1.5px solid #f0c27a; animation: gdPop .45s cubic-bezier(.2,1.6,.4,1) both; }
.gd-rwi:nth-child(2) { animation-delay: .08s; } .gd-rwi:nth-child(3) { animation-delay: .16s; }
.gd-rwi img, .gd-rwi .ic { width: 26px; height: 26px; }
.gd-list { display: flex; flex-direction: column; gap: 6px; }
.gd-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line, #e3d3b8); text-align: left; cursor: pointer; font: inherit; }
.gd-row.new { border-color: #3a8f5c; background: #f0fff4; }
.gd-row.locked { opacity: .5; cursor: default; }
.gd-ric { font-size: 26px; width: 34px; text-align: center; flex: none; }
.gd-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gd-rt small { font-size: 12px; color: #8a6a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-row i { font-style: normal; font-size: 12px; color: #8a6a44; flex: none; }
.gd-row.new i { color: #fff; background: #3a8f5c; padding: 3px 8px; border-radius: 8px; }
.guidebtn { position: relative; }
.tut-btns .tut-off { background: none; border: 0; color: #c0a888; font-size: 11px; text-decoration: underline; cursor: pointer; margin-right: auto; }
@media (max-width: 560px) { .gd-ic { font-size: 44px; } .gd-name { font-size: 21px; } .gd-what { font-size: 13px; } }
/* c177: 🔁 돌 교환소 개편 — 한눈에 (5 → 1), 타일 눌러서 넣기, 아래 고정 결과 바 */
.xch { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
.xch-hero { padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #eef6ff, #f4efff); border: 1.5px solid #b9c8f0; text-align: center; }
.xch-hero p { margin: 4px 0 0; font-size: 13.5px; color: #44506a; }
.xch-hero p small { color: #7a86a0; }
.xch-flow { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: 'Jua', sans-serif; font-size: 18px; color: #3d4a6b; }
.xch-flow img, .xch-flow .hench-img { width: 40px; height: 40px; object-fit: contain; }
.xch-five { display: inline-flex; }
.xch-five i { width: 16px; height: 16px; border-radius: 50%; margin-left: -4px; background: radial-gradient(circle at 35% 30%, #d9cfbf, #9a8a72); border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.xch-arrow { color: #6a7ec8; font-size: 20px; }
.xch-q { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: #dfe5f5; align-items: center; justify-content: center; font-style: normal; }
.xch-rule { margin-top: 6px; font-size: 12px; color: #6a7590; text-align: left; }
.xch-rule summary { cursor: pointer; text-align: center; color: #5c6fb0; }
.xch-step { display: flex; align-items: center; gap: 8px; font-family: 'Jua', sans-serif; font-size: 16px; color: var(--brown, #6b4a2a); margin-top: 4px; flex-wrap: wrap; }
.xch-step small { font-family: inherit; font-size: 12px; color: #a08060; }
.xch-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--accent, #f08a24); color: #fff; align-items: center; justify-content: center; font-size: 13px; }
.xch-tools { margin-left: auto; display: flex; gap: 6px; }
.xch-tools .btn small { opacity: .85; }
.xch-target { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 2px solid #8fc46a; flex-wrap: wrap; margin: 0; }
.xch-target.none { border-style: dashed; border-color: #d8c8a8; }
.xch-target > img, .xch-target > .hench-img { width: 56px; height: 56px; object-fit: contain; }
.xch-target .xt-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 140px; }
.xch-target .xt-info b { font-size: 17px; }
.xch-target .xt-info small { color: #7a6040; font-size: 12.5px; }
.xch-target #xch-sel { width: auto; flex: 0 1 200px; margin: 0; padding: 6px 8px; border-radius: 10px; border: 1.5px solid #e3d3b8; background: #fffaf2; font: inherit; font-size: 13px; }
.xch-chips { margin: 0; }
.xch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.xch-tile { min-width: 0; } .xch-tile small { text-align: center; line-height: 1.3; }
.xch-tile { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px 6px; border-radius: 12px; background: #fff; border: 2px solid #ece0c8; cursor: pointer; user-select: none; transition: transform .08s, border-color .15s; }
.xch-tile:active { transform: scale(.96); }
.xch-tile.on { border-color: var(--accent, #f08a24); background: #fff6e8; }
.xch-tile.full { opacity: .9; }
.xch-tile.xparty { background: #faf6ee; }
.xch-tile.xparty em { color: #c0602a; font-style: normal; }
.xch-tile img, .xch-tile .hench-img { width: 46px; height: 46px; object-fit: contain; }
.xch-tile .xt-nm { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xch-tile small { font-size: 11px; color: #8a6a44; }
.xch-tile .xt-cnt { position: absolute; top: 4px; right: 5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--accent, #f08a24); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.xch-tile .xt-minus { position: absolute; top: 4px; left: 5px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #e9ddc6; color: #6b4a2a; font-size: 16px; line-height: 1; cursor: pointer; }
.xch-tile .xt-all { margin-top: 3px; border: 0; background: none; color: #b07020; font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0; }
.xch-bar { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 12px; border-radius: 14px; background: #fffdf8; border: 2px solid var(--accent, #f08a24); box-shadow: 0 -4px 14px rgba(120, 80, 30, .12); }
.xch-bar .xb-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.xch-bar .xb-prog { height: 8px; border-radius: 4px; background: #efe3cc; overflow: hidden; }
.xch-bar .xb-prog i { display: block; height: 100%; background: linear-gradient(90deg, #f6b24a, #f08a24); transition: width .2s; }
.xch-bar small { font-size: 12px; color: #7a6040; }
.xch-bar .xb-out { display: flex; align-items: center; gap: 3px; font-family: 'Jua', sans-serif; font-size: 18px; color: #3a7a3a; }
.xch-bar .xb-out img, .xch-bar .xb-out .hench-img { width: 34px; height: 34px; object-fit: contain; }
.xch-bar .xb-out small { font-family: system-ui, sans-serif; font-size: 11px; color: #8a6a44; margin-left: 2px; }
.xch-bar .btn { flex: none; }
.xch-confirm { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.xch-confirm span { display: inline-flex; flex-direction: column; align-items: center; font-size: 12px; }
.xch-confirm img, .xch-confirm .hench-img { width: 34px; height: 34px; object-fit: contain; }
.xch-confirm em { font-style: normal; font-size: 20px; color: #6a7ec8; }
@media (max-width: 560px) {
  .xch-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .xch-target #xch-sel { flex-basis: 100%; }
  .xch-tools { margin-left: 0; width: 100%; }
  .xch-tools .btn { flex: 1; }
  .xch-bar { gap: 8px; padding: 8px 10px; }
}
/* c177: 📘 가이드 아이콘(SVG 색 원) · 가이드북 진행도 · PC 2열 */
.gd-icw { --c: #f08a24; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 45%, transparent), inset 0 -2px 0 rgba(0,0,0,.12); flex: none; }
.gd-icw svg { width: 60%; height: 60%; }
.gd-icw.big { width: 72px; height: 72px; }
.gd-icw.lockd { --c: #b8a888; font-size: 16px; }
.gd-ic { font-size: 0; }
.gd-c-skills { --c: #5b8def; } .gd-c-storage { --c: #8a6a44; } .gd-c-lock { --c: #d4a017; } .gd-c-mail { --c: #e5604d; }
.gd-c-workshop { --c: #9b59b6; } .gd-c-tower { --c: #4a6fa5; } .gd-c-xch { --c: #2fa58a; } .gd-c-market { --c: #e08a1e; }
.gd-c-raid { --c: #d9432f; } .gd-c-arena { --c: #c9a227; } .gd-c-duel { --c: #3a8f5c; } .gd-c-black { --c: #5a4a6a; }
.gd-c-wboss { --c: #7a3fb0; } .gd-c-dungeon { --c: #6b5b45; } .gd-c-dark { --c: #333a4a; } .gd-c-divine { --c: #1f9bb0; }
.gd-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: #fff6e2; border: 1.5px solid #f0c27a; }
.gd-head > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gd-head b { font-size: 15px; } .gd-head small { font-size: 12px; color: #8a6a44; }
.gd-prog { position: relative; width: 110px; height: 18px; border-radius: 9px; background: #efe3cc; overflow: hidden; flex: none; }
.gd-prog i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #6cc38a, #3a8f5c); }
.gd-prog span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 18px; color: #3a3020; font-weight: 700; }
.gd-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (min-width: 700px) { .gd-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.gd-row { min-width: 0; }
.gd-row i { flex: none; white-space: nowrap; }
.gd-rt .gd-rwl { color: #2f7a4a; font-weight: 600; }
@media (max-width: 560px) { .gd-prog { width: 70px; } .gd-head { gap: 8px; } }
/* c177: 전체/배낭/창고 — 아래 종류 탭과 구분되는 작은 세그먼트 */
.src-tabs { display: inline-flex; gap: 0; padding: 2px; border-radius: 10px; background: #efe3cc; margin: 2px 0 6px; flex-wrap: nowrap; width: auto; }
.src-tabs .fchip { border: 0; background: transparent; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; color: #7a6040; box-shadow: none; }
.src-tabs .fchip.on { background: #fff; color: #4a3520; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* c177: 창고 탭 정리 */
.st-mode.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 12px; background: #efe3cc; margin: 6px 0 4px; }
.st-mode.seg2 button { border: 0; background: transparent; border-radius: 9px; padding: 8px 6px; font: inherit; font-size: 13.5px; color: #7a6040; cursor: pointer; }
.st-mode.seg2 button.on { background: #fff; color: #4a3520; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 700; }
.st-mode.seg2 button b { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: rgba(0,0,0,.08); font-size: 12px; }
.st-note { margin: 2px 2px 6px; font-size: 12.5px; color: #7a6040; line-height: 1.5; }
.st-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; text-align: center; border-radius: 14px; border: 2px dashed #e3d3b8; background: #fffaf2; }
.st-empty b { font-size: 16px; } .st-empty small { color: #8a6a44; max-width: 360px; line-height: 1.5; }
.st-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 5; }
.st-bar .st-cnt { min-width: 76px; }
.st-bar .st-acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.st-bar .btn small { opacity: .8; font-size: 11px; }
.st-bar.has { border-color: var(--accent, #f08a24); }
@media (max-width: 560px) { .st-bar .st-acts { width: 100%; margin-left: 0; } .st-bar .st-acts .btn { flex: 1; } }
/* c177: 우편 보내기 정리 */
.ms-quick { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin-top: -4px; padding-bottom: 2px; }
.ms-quick .chip { flex: none; font-size: 12.5px; }
.ms-att { padding: 10px 12px; border-radius: 12px; background: #fffaf2; border: 1.5px dashed #e3cfa8; display: flex; flex-direction: column; gap: 8px; }
.ms-att-h { font-family: 'Jua', sans-serif; font-size: 15px; color: #6b4a2a; }
.ms-att-h small { font-family: system-ui, sans-serif; font-size: 12px; color: #a08060; margin-left: 4px; }
.ms-att .ms-gold { flex-direction: row !important; align-items: center; gap: 8px !important; }
.ms-att .ms-gold input { flex: 1; }
.ms-att .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ms-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fffdf8; border: 2px solid var(--accent, #f08a24); box-shadow: 0 -4px 12px rgba(120,80,30,.1); }
.ms-foot span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.ms-foot small { font-size: 11.5px; color: #8a6a44; }
.ms-foot em { font-style: normal; }
.ms-foot .btn { flex: none; min-width: 120px; }
.ms-rule { font-size: 12px; color: #8a6a44; } .ms-rule summary { cursor: pointer; }
/* c178b: 🎁 핵심 보상 미리보기 (마영전식 — 등급 테두리 아이콘 + 확률) */
.rwp { margin-top: 8px; padding: 8px 10px 10px; border-radius: 12px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(160, 110, 60, .2); text-align: left; }
.rwp.dark { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .12); margin: 6px 0 2px; }
.rwp-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.rwp-h b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 14px; color: #6b4a2a; white-space: nowrap; flex-shrink: 0; }
.rwp-h small { font-size: 11px; color: #a08060; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwp.dark .rwp-h b { color: #ffe08a; } .rwp.dark .rwp-h small { color: #c8b898; }
.rwp-row { display: flex; gap: 6px; flex-wrap: wrap; }
.rws { --g: #9aa0a6; position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.rws-ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: linear-gradient(160deg, #3a3f4a, #23262d); box-shadow: inset 0 0 0 2px var(--g), inset 0 0 12px color-mix(in srgb, var(--g) 45%, transparent); font-size: 24px; }
.rws-ic .iic, .rws-ic img, .rws-ic svg { width: 34px !important; height: 34px !important; }
.rws > i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 5px; border-radius: 6px; background: var(--g); color: #fff; line-height: 15px; margin-top: -8px; position: relative; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.rws.g-common { --g: #9aa0a6; } .rws.g-uncommon { --g: #4caf50; } .rws.g-rare { --g: #3d8bfd; } .rws.g-epic { --g: #a55eea; } .rws.g-legend { --g: #ff9f1a; }
.rws.g-legend .rws-ic, .rws.star .rws-ic { animation: rwGlow 2.2s ease-in-out infinite; }
@keyframes rwGlow { 50% { box-shadow: inset 0 0 0 2px var(--g), inset 0 0 18px var(--g), 0 0 10px var(--g); } }
.rws.star .rws-ic { width: 54px; height: 54px; }
.rws.star .rws-ic .iic, .rws.star .rws-ic img { width: 42px !important; height: 42px !important; }
.rws-star { position: absolute; top: -6px; left: -4px; font-size: 9.5px; padding: 1px 4px; border-radius: 5px; background: #d9432f; color: #fff; z-index: 1; }
.rws:hover .rws-ic { transform: translateY(-2px); transition: transform .12s; }
.rws.big .rws-ic { width: 76px; height: 76px; } .rws.big .rws-ic .iic, .rws.big .rws-ic img { width: 58px !important; height: 58px !important; }
.rwi-pop { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rwi-grade { font-size: 12px; font-weight: 700; color: var(--g); } .rwi-pop.g-common { --g: #7a8088; } .rwi-pop.g-uncommon { --g: #3a9a3e; } .rwi-pop.g-rare { --g: #2f74e0; } .rwi-pop.g-epic { --g: #8e44d6; } .rwi-pop.g-legend { --g: #e08400; }
.rwi-nm { font-size: 19px; } .rwi-pop p { margin: 2px 0; font-size: 13.5px; }
.bait-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0; } .bait-line > small { width: 100%; color: #8a6a44; }
.bait-line span { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; } .bait-line img { width: 40px; height: 40px; object-fit: contain; }
@media (max-width: 560px) { .rws-ic { width: 42px; height: 42px; } .rws.star .rws-ic { width: 48px; height: 48px; } .rwp-row { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .rws .rws-ic { animation: none !important; } }

/* c179: 거래소 큰 분류(장비/재료 분리) · 하위 분류 줄 · 매물 없는 분류는 흐리게 */
.mk-bar .fchip.zero:not(.on), .mk-subcat .fchip.zero:not(.on) { opacity: .45; }
.mk-bar .fchip small, .mk-subcat .fchip small { opacity: .75; margin-left: 2px; }
.mk-subcat { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 10px; padding: 6px 8px; border-radius: 10px; background: #fff6e2; border: 1px dashed #e2c98f; }
.mk-subcat .fchip { padding: 2px 9px; font-size: 12px; }
@media (max-width: 560px) { .mk-bar { gap: 4px; } .mk-bar .fchip { padding: 3px 8px; font-size: 12px; } }

/* c179b: 진영 선택 — 성장 곡선 (결사 초반 강세 / 성역 후반 고점) */
.f-grow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #faf5ea; }
.f-arc { flex: none; width: 64px; height: 34px; overflow: visible; }
.f-arc path { fill: none; stroke-width: 3; stroke-linecap: round; }
.f-arc path.o { stroke: #cdbf9f; stroke-width: 1.6; stroke-dasharray: 3 3; }
.faction.f-mix .f-arc path.m { stroke: var(--mix); } .faction.f-evo .f-arc path.m { stroke: var(--evo); }
.f-arc text { font-size: 7px; fill: #9a8a6a; }
.f-grow > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.f-grow em { font-style: normal; font-weight: 800; font-size: 13px; }
.faction.f-mix .f-grow em { color: var(--mix); } .faction.f-evo .f-grow em { color: var(--evo); }
.f-grow i { font-style: normal; font-size: 11.5px; color: #6b5a40; }
@media (max-width: 560px) { .f-grow { flex-direction: column; align-items: flex-start; gap: 2px; } .f-arc { width: 100%; height: 28px; } .f-grow i { display: none; } .f-grow em { font-size: 12px; } }

/* c180: ▶ 기능 영상 (가이드 카드 · 가이드북) */
.gd-vid { width: 100%; margin: 8px 0 4px; border-radius: 12px; overflow: hidden; background: #1c140c; aspect-ratio: 16 / 9; box-shadow: 0 4px 16px rgba(60, 35, 10, .25); }
.gd-vid-wait { display: flex; align-items: center; justify-content: center; text-align: center; color: #f4e6d0; font-weight: 700; font-size: 16px; }
.gd-vid-wait small { display: block; font-weight: 400; font-size: 12px; color: #c8b59a; margin-top: 6px; }
.gd-vid video { width: 100%; height: 100%; display: block; object-fit: contain; background: #1c140c; }
.gd-vcard { width: 100%; }
.ask:has(.gd-vcard) { max-width: min(680px, 94vw); width: min(680px, 94vw); }
.ask:has(.gd-card .gd-vid) { max-width: min(600px, 94vw); }
.gd-vbtn { margin-top: 8px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1.5px dashed #e0a24a; background: #fff7e8; color: #a0600f; font: inherit; font-weight: 700; cursor: pointer; }
.gd-vbtn small { font-weight: 400; opacity: .7; margin-left: 4px; }
.gd-vbtn:hover { background: #ffefd2; }
.gd-play { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #2c2216; color: #ffd27a; font-size: 11px; padding-left: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; transition: transform .12s; }
.gd-play:hover { transform: scale(1.12); background: #e8902a; color: #fff; }
.gd-row.locked { opacity: 1; cursor: pointer; } .gd-row.locked .gd-ric, .gd-row.locked .gd-rt, .gd-row.locked > i { opacity: .5; }
.gd-tip { margin: 0 0 8px; font-size: 12px; color: #8a6a44; line-height: 1.6; } .gd-tip .gd-play { width: 18px; height: 18px; font-size: 8px; box-shadow: none; cursor: default; vertical-align: -4px; margin-right: 2px; }

/* c182: 📊 속성 상성표 그림 (가이드북 · 전투) */
.ask:has(.elc) { width: auto; max-width: min(1100px, 96vw); padding: 12px; top: 50%; }
.elc-img { display: block; width: auto; max-width: 100%; max-height: calc(100vh - 150px); height: auto; margin: 0 auto; border-radius: 12px; cursor: zoom-in; box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.elc small { display: block; margin-top: 6px; }
.gd-chart { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1.5px solid #c9a46a; background: linear-gradient(110deg, #2a2140, #1b2436); color: #fff3dc; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 3px 12px rgba(40, 25, 60, .25); }
.gd-chart img { width: 112px; height: 70px; object-fit: cover; border-radius: 9px; flex: none; }
.gd-chart span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .gd-chart b { font-size: 16px; color: #ffd58a; } .gd-chart small { font-size: 12px; color: #cdbfa8; }
.gd-chart i { font-style: normal; font-size: 13px; color: #ffd58a; flex: none; }
.gd-chart:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .gd-chart img { width: 84px; height: 52px; } .gd-chart small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

.elc-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.elc-tabs .fchip { font-size: 14px; padding: 5px 14px; }
.elc-img { max-height: calc(100vh - 190px); }

/* c186: 🎨 돌연변이 색 도감 */
.mut-dots { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 3px; }
.mut-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #c9b48c; background: transparent; }
.mut-dots i.on { border-color: transparent; background: radial-gradient(circle at 35% 35%, #fff 0 15%, #ff5a5a 40%, #c0262b 100%); filter: hue-rotate(var(--hue)) saturate(1.3); box-shadow: 0 0 4px rgba(255,255,255,.6); }
.mut-dots small { margin-left: 3px; font-size: 10px; color: #8a6a44; }
.mc-pop > b { display: block; font-size: 18px; } .mc-pop > small { display: block; margin: 2px 0 8px; }
.mc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mc-cell { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 12px; background: #f3ead9; border: 1.5px dashed #d8c39b; }
.mc-cell.on { background: #fff; border: 1.5px solid #e8b84a; box-shadow: 0 2px 8px rgba(200,150,40,.25); }
.mc-cell img { width: 72px; height: 72px; object-fit: contain; } .mc-cell small { font-size: 12px; color: #6b5a40; }
@media (max-width: 560px) { .mc-cell img { width: 54px; height: 54px; } }

/* ===== c192: 🧪 연구소 기증 · 먹이기 · 돌연변이 시험 · 연구 상점 ===== */
.ld-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 6px 0 4px; }
.ld-pts { display: flex; flex-direction: column; font-size: 15px; }
.ld-pts b { font-size: 20px; color: #2f8a3a; }
.ld-pts small { color: #8a7a66; font-size: 12px; }
.ld-seg button { white-space: nowrap; }
.ld-target { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.ld-target select { max-width: 100%; padding: 6px 8px; border-radius: 10px; border: 1.5px solid #d8c6a4; background: #fffaf0; font: inherit; }
.ld-tc .hench-img, .ld-tc img { width: 40px; height: 40px; }
.ld-tools { display: flex; gap: 6px; margin: 4px 0; }
.ld-list { padding-bottom: 64px; }
.ld-c { position: relative; cursor: pointer; }
.ld-c .hcard { pointer-events: none; }
.ld-c.on .hcard { outline: 3px solid #3fae4c; outline-offset: -3px; background: #effbe9; }
.ld-c.on::after { content: '✓'; position: absolute; top: 4px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #3fae4c; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.ld-v { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); background: rgba(30, 60, 30, .85); color: #eaffd8; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; white-space: nowrap; }
.ld-prec { position: absolute; top: 4px; left: 6px; color: #e08a00; font-weight: 800; }
.ld-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-top: 8px;
  background: rgba(255, 250, 238, .97); border: 1.5px solid #e2cfa8; border-radius: 14px; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); z-index: 3; }
.ld-sum { color: #2f8a3a; font-size: 17px; }
.ld-mut { margin: 8px 0; }
.ld-mt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #f6efff, #fff6ea); border: 1.5px solid #d9c4f2; text-align: center; }
.ld-mt .hench-img, .ld-mt img { width: 96px; height: 96px; object-fit: contain; }
.ld-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ld-good { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 8px; border-radius: 14px; background: #fffaf0; border: 1.5px solid #e6d5b2; }
.ld-good small { color: #7a6a56; font-size: 11.5px; line-height: 1.35; min-height: 2.7em; }
.ld-good .iic { width: 46px; height: 46px; }
.ld-good.dim { opacity: .6; }
.ld-price { font-weight: 800; color: #6a3fb0; font-size: 13px; }
/* c194: 묶음 매물 개당 가격 */
.mk-price .mk-per { display: block; font-size: 11px; font-weight: 600; color: #8a7a66; line-height: 1.1; }
/* c196: 가이드북 테마 분류 */
.gd-c-hgrow { --c: #3d7fd9; } .gd-c-ascend { --c: #c0392b; } .gd-c-crebirth { --c: #e0a020; }
.gd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.gd-cats .fchip { position: relative; }
.gd-catn { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 2px; border-radius: 8px; background: #3a8f5c; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.gd-sec { margin-bottom: 12px; }
.gd-sech { font-weight: 700; font-size: 13px; color: #8a6a44; margin: 2px 2px 6px; padding-bottom: 4px; border-bottom: 1px dashed #e3d3b8; }
/* c197: 창고 일괄 버튼 — 폰에서 4개가 한 줄에 끼면서 글자가 세로로 쪼개지던 것 → 2×2, 줄바꿈 없이 */
@media (max-width: 560px) {
  .st-bar .st-acts { display: grid; grid-template-columns: 1fr 1fr; }
  .st-bar .st-acts .btn { white-space: nowrap; padding: 10px 6px; font-size: 14px; }
  .st-bar .st-acts .btn small { font-size: 11px; opacity: .85; }
}
/* c197: 📱 폰용 세로 기능 영상 */
.gd-vid.tall { aspect-ratio: 720 / 1560; width: auto; height: min(62vh, 520px); max-width: 100%; margin-left: auto; margin-right: auto; }
/* c197: 폰 레이드 제단 — 보스 그림이 왼쪽 반을 차지해서 설명이 좁은 세로 줄로 밀리던 것 → 위아래로 */
@media (max-width: 560px) {
  .raid-intro { flex-direction: column; align-items: stretch; gap: 6px; }
  .raid-intro > img { width: 150px; max-width: 46%; align-self: center; }
  .raid-intro.trial .trial-boss { flex: none; width: 150px; align-self: center; }
}
/* c197: 폰 공방 — 재료·레시피 목록이 작은 고정 상자라 아래가 텅 비어 보이던 것 → 창 높이만큼 */
@media (max-width: 560px) {
  .ws-inv { max-height: none; overflow: visible; }
  .ws-book { max-height: none; overflow: visible; }
}

/* c203: 폰 레이드(아군 7명 이상): 한 줄 4칸 × 2줄로 줄여서 명령 창을 덮지 않게 */
@media (max-width: 760px) {
  .bt-row.ally.many { gap: 3px; }
  .bt-row.ally.many .unit { width: calc(25vw - 6px); max-width: 92px; }
  .bt-row.ally.many .unit .u-img { height: 46px; }
  .bt-row.ally.many .unit .u-img img { width: 46px; height: 46px; }
  .bt-row.ally.many .u-info { padding: 1px 3px; font-size: 9px; }
  .bt-row.ally.many .u-info b { font-size: 10.5px; }
  .bt-row.ally.many .u-info small:not(.hpt), .bt-row.ally.many .u-info .owner { font-size: 9px; }
}

/* c207: 거래소 페이지 */
.mk-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 12px 0 4px; }
.mk-pages .pg { min-width: 32px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid #d8c2a0; background: #fffaf0; color: #6b4f2f; font-weight: bold; cursor: pointer; }
.mk-pages .pg.on { background: #f08a24; border-color: #d06e10; color: #fff; }
.mk-pages .pg:disabled { opacity: .35; cursor: default; }
.mk-pages small { width: 100%; text-align: center; color: #8a7458; margin-top: 2px; }

/* c209: 🥚 알까기 판 */
.egg-board { top: 40%; }
.cine-grid.n-x { --sz: 180px; }
.egg-board .egg-cell { cursor: pointer; display: flex; align-items: center; justify-content: center; }
.egg-board .egg-shell { display: block; width: 78%; height: 78%; font-style: normal; animation: egg-idle 2.4s ease-in-out infinite; animation-delay: var(--d2); }
.egg-board .egg-shell .iic { width: 100% !important; height: 100% !important; display: block; }
.egg-board .egg-shell img, .egg-board .egg-shell svg { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.egg-board .egg-cell.t1 .egg-shell { filter: drop-shadow(0 0 6px rgba(160,216,255,.7)); }
.egg-board .egg-cell.t2 .egg-shell { filter: drop-shadow(0 0 10px #ffd76a) drop-shadow(0 0 22px rgba(255,190,60,.7)); }
.egg-board .egg-cell.t3 .egg-shell { animation: egg-idle 2.4s ease-in-out infinite, egg-rainbow 1.6s linear infinite; }
.egg-board .egg-cell.wob .egg-shell { animation: egg-wob .24s ease-in-out; }
.egg-board .egg-cell.open { cursor: default; animation: egg-pop .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes egg-idle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-5deg); } 94% { transform: rotate(5deg); } 97% { transform: rotate(-2deg); } }
@keyframes egg-wob { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(var(--amp)) scale(1.06); } 75% { transform: rotate(calc(var(--amp) * -1)) scale(1.06); } }
@keyframes egg-rainbow { 0%, 100% { filter: drop-shadow(0 0 12px #ff5a5a) drop-shadow(0 0 24px #ffb02a); } 33% { filter: drop-shadow(0 0 12px #5aff8a) drop-shadow(0 0 24px #5ab8ff); } 66% { filter: drop-shadow(0 0 12px #b05aff) drop-shadow(0 0 24px #ff5aa0); } }
@keyframes egg-pop { 0% { transform: scale(.4); filter: brightness(3); } 100% { transform: scale(1); filter: none; } }
.egg-bar { position: absolute; left: 50%; top: 8vh; transform: translateX(-50%); z-index: 6; display: flex; gap: 12px; align-items: center; color: #fff; font: 15px 'Jua', sans-serif; }
.egg-bar .egg-cnt { background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 999px; }
.egg-board .egg-cell.t3.wob .egg-shell { animation: egg-wob .24s ease-in-out, egg-rainbow 1.6s linear infinite; }
.egg-bar { white-space: nowrap; }
@media (max-width: 600px) {
  .egg-board { gap: 6px; top: 44%; max-height: 60vh; }
  .egg-board.n-l { --sz: 62px; } .egg-board.n-m { --sz: 76px; } .egg-board.n-s { --sz: 110px; } .egg-board.n-x { --sz: 150px; }
  .egg-bar { top: 3vh; font-size: 13px; gap: 8px; }
  .egg-bar .btn { padding: 6px 12px; }
}

/* c210: 💬 거래소 가격 제안 */
.mk-acts { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.mk-acts .btn.mk-offering { background: #2f6b4f; color: #eafff2; border-color: #5fc08f; }
.mk-offn { color: #ffe680; margin-left: 2px; }
.mo-cur, .mo-pc { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.mo-in { width: 140px; font-size: 18px; text-align: right; }
.mo-unit { font-weight: 700; }
.mo-note { margin: 6px 0; font-size: 14px; }
.mo-note .good { color: #4caf50; } .mo-note .bad { color: #e05050; }
.mo-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; max-height: 40vh; overflow-y: auto; text-align: left; }
.mo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.06); flex-wrap: wrap; }
.mo-row .mo-p { font-weight: 700; }
.mo-row .btn + .btn { margin-left: 4px; }
/* c211: 💬 직접 구매 제안 (프로필) */
.pf-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-wrap .pf-h { flex: 1; }
.pf-buy { align-self: stretch; }
.pf-offers { margin-top: 12px; }
.mo-row .mini { width: 44px; height: 44px; object-fit: contain; }

/* c212~c213: 🔥 신수 레이드 난이도 · ♾ 무한 부활 · 🎯 허수아비 · 📦 상자 · 지옥불 오라 */
.aura-hellfire { background: radial-gradient(ellipse at 50% 85%, rgba(255,60,20,.95), rgba(150,0,30,.55) 45%, rgba(40,0,10,.25) 62%, transparent 74%); animation: aura-hell 1.2s ease-in-out infinite alternate; }
@keyframes aura-hell { from { filter: brightness(1) blur(1px); transform: scale(1); } to { filter: brightness(1.35) blur(2px); transform: scale(1.06); } }
.rd-pick { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.rd-pick .rd { border: 1px solid rgba(0,0,0,.15); background: #f6f1e6; border-radius: 10px; padding: 6px 12px; font: 14px 'Jua', sans-serif; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.rd-pick .rd small { font-size: 11px; opacity: .7; }
.rd-pick .rd.on { background: #3b2a12; color: #ffe39a; border-color: #ffcb52; box-shadow: 0 0 10px rgba(255,190,60,.5); }
.rd-pick .rd.rd-1.on { background: #6b1f0a; color: #ffd28a; border-color: #ff8a3a; }
.rd-pick .rd.rd-2.on { background: #24060c; color: #ff6a6a; border-color: #c4122a; box-shadow: 0 0 14px rgba(220,30,50,.65); }
.rd-info { font-size: 13px; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(255,140,40,.12); border: 1px solid rgba(255,140,40,.35); }
.rd-info.rd-2 { background: rgba(160,10,30,.12); border-color: rgba(200,20,40,.45); }
.rd-info .hell { color: #c4122a; }
.en-tiers, .en-rank { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.en-tiers th, .en-tiers td, .en-rank td { padding: 3px 6px; border-bottom: 1px solid rgba(0,0,0,.08); text-align: left; }
.en-tiers tr.t4 td:first-child, .en-tiers tr.t5 td:first-child { color: #c47a00; }
.en-rank tr.en-me td { background: rgba(255,214,90,.3); font-weight: 700; }
.en-rank td { color: #4a3420; font-size: 14px; } .en-rank td.en-dmg { text-align: right; font-weight: 700; }
.box-res { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.box-res span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.05); font-size: 12px; min-width: 76px; }
.box-res span .iic { width: 44px !important; height: 44px !important; }
.box-res span.ultra { background: linear-gradient(135deg, #fff2b0, #ffd0f0, #c8f0ff); box-shadow: 0 0 14px rgba(255,200,80,.8); animation: egg-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
/* c220: 레이드 기믹 표시 */
.stt.taunt { background: #5a3a12; color: #ffd27a; }
.stt.mark { background: #3a1060; color: #ffe14a; animation: mark-blink .8s ease-in-out infinite alternate; }
@keyframes mark-blink { from { box-shadow: 0 0 0 rgba(255,225,74,0); } to { box-shadow: 0 0 8px rgba(255,225,74,.9); } }
.bar.shield { height: 6px; margin-top: 2px; background: rgba(80,140,255,.2); }
.bar.shield i { display: block; height: 100%; background: linear-gradient(90deg, #6fd0ff, #3a7bff); border-radius: inherit; }
.rd-gim { font-size: 13px; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(90,40,160,.08); border: 1px dashed rgba(90,40,160,.4); }
.rd-gim { font-size: 13px; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(90,40,160,.08); border: 1px dashed rgba(90,40,160,.4); }
/* c222: 황금 사냥터 · 허수아비 아이콘 */
.gold-tag { position: absolute; top: 4px; left: 6px; font-size: 11px; font-weight: 700; color: #5a3a00; background: linear-gradient(#ffe79a, #f0b93a); border-radius: 999px; padding: 1px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.dummy-ic { width: 96px; height: 96px; flex: none; border-radius: 50%; background: radial-gradient(circle, #c0392b 0 12%, #fff 12% 26%, #c0392b 26% 40%, #fff 40% 54%, #c0392b 54% 68%, #f4e8d0 68%); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
img.gold-boss { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.1); }

/* c223: 황금 사냥터 자리 쟁탈 — 자리 표시 (마름모 칸) · 도전 창 */
.seat-meter { display: inline-flex; align-items: center; gap: 7px; margin-top: 3px; padding: 3px 9px 3px 8px; border-radius: 7px;
  background: linear-gradient(180deg, #2a2438, #191522); border: 1px solid rgba(232,194,122,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 3px rgba(0,0,0,.25); color: #e8c27a; line-height: 1; }
.seat-meter .sm-lbl { font-size: 10px; letter-spacing: 2px; color: rgba(232,194,122,.75); }
.seat-meter .sm-pips { display: inline-flex; gap: 5px; }
.seat-meter .sm-pips i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid rgba(232,194,122,.7); background: transparent; }
.seat-meter .sm-pips i.on { background: linear-gradient(135deg, #fff1c2, #e3a93a 60%, #a8721c); border-color: #f6dfa6; box-shadow: 0 0 6px rgba(246,200,90,.55); }
.seat-meter .sm-n { font-family: 'Jua', sans-serif; font-size: 13px; color: #f6dfa6; }
.seat-meter .sm-n small { font-size: 10px; color: rgba(232,194,122,.65); margin-left: 1px; }
.seat-meter .sm-full { font-size: 10px; letter-spacing: 1px; padding: 2px 5px; border-radius: 4px; background: #7a1f24; color: #ffd9c2; border: 1px solid #c0464c; }
.seat-meter.full { border-color: #c0464c; }
.seat-note { border-left: 3px solid #c99a3e; padding-left: 8px; }
.seat-note b { color: #8a5a10; }
.seat-head { text-align: center; padding: 6px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.seat-head .sh-plate .seat-meter { transform: scale(1.35); margin: 8px 0 10px; }
.seat-head p { margin: 4px 0; font-size: 13px; color: #6b5a40; }
.seat-cool { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 8px; background: #2a2438; color: #e8c27a; font-size: 13px; }
.seat-cool b { color: #fff1c2; font-family: 'Jua', sans-serif; margin-left: 4px; }
.seat-list { display: flex; flex-direction: column; gap: 6px; }
.seat-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.seat-row img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #f4ead8; }
.seat-row .sr-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seat-row .sr-who b { font-size: 15px; color: var(--brown); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-row .sr-who small { color: #8a6a4a; font-size: 12px; }
.seat-row.off { opacity: .72; }
.seat-row .ss { font-size: 11px; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.seat-row .ss.open { background: #e9f6e9; color: #2e7d32; }
.seat-row .ss.prot { background: #ece8f6; color: #4b3d8a; }
.seat-row .ss.busy { background: #fdeaea; color: #b2343a; }
.seat-row .ss.hunt { background: #fff4e0; color: #9a6410; }
.seat-lost { text-align: center; }
.seat-lost small { display: block; letter-spacing: 3px; color: #a07a3a; font-size: 11px; }
.seat-lost b { display: block; font-size: 17px; margin: 4px 0; }
.seat-lost p { margin: 4px 0 0; font-size: 13px; color: #6b5a40; }

/* c231: 🎟 레이드 추가 입장권 권유 */
.tk-pop { text-align: center; }
.tk-pop .tk-ic { display: block; font-size: 34px; margin-bottom: 4px; }
.tk-pop b { display: block; font-size: 15px; }
.tk-pop p { margin: 6px 0 4px; font-size: 13px; color: #6b5a40; }
.tk-pop p b { display: inline; font-size: inherit; color: #b0462a; }
.tk-pop small { color: #8a6a4a; }

/* c240: 🎰 복권방 · 복권 오라 */
.aura-clover { background: radial-gradient(ellipse at 50% 82%, rgba(140,255,160,.9), rgba(40,190,90,.45) 42%, transparent 70%); filter: blur(3px); animation: aura-pulse 2s ease-in-out infinite; }
.aura-jackpot { background: radial-gradient(ellipse at 50% 82%, rgba(255,232,120,1), rgba(255,175,0,.55) 42%, transparent 70%); filter: blur(3px); animation: aura-pulse 1.6s ease-in-out infinite; }
@keyframes lt-jp { from { opacity: .7; } to { opacity: 1; } }
@keyframes aura-rise { 0% { transform: translateY(18%); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-22%); opacity: 0; } }
@keyframes lt-coins { from { transform: translateY(-10%); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(70%); opacity: 0; } }
.lt-top small { display: block; opacity: .75; margin-top: 2px; }
.lt-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.lt-buy .btn { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; font-size: 16px; }
.lt-buy .btn small { font-size: 11px; opacity: .8; }
.lt-res { min-height: 92px; border-radius: 12px; padding: 10px; background: linear-gradient(135deg, #2b1d44, #452b12); color: #ffeec2; margin-bottom: 10px; }
.lt-empty { text-align: center; padding: 26px 0; opacity: .8; }
.lt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.lt-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 92px; padding: 6px; border-radius: 10px; background: #fff8e6; color: #3b2a12; text-align: center; font-size: 13px; }
.lt-card small { font-size: 11px; opacity: .75; line-height: 1.2; }
.lt-card.miss { background: #efe9dd; color: #8a7f6c; }
.lt-card.win.r1, .lt-card.win.r2 { background: linear-gradient(135deg, #fff1a8, #ffcd4a); box-shadow: 0 0 16px rgba(255,200,60,.9); animation: lt-glow 1s ease-in-out infinite alternate; }
.lt-card.win.r3 { background: linear-gradient(135deg, #e5ffe9, #b7f3c4); box-shadow: 0 0 10px rgba(80,220,120,.7); }
.lt-foil { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(45deg, #c9c3b6 0 6px, #b5ae9f 6px 12px); animation: lt-scratch .55s ease-out forwards; animation-delay: var(--d, 0s); }
.lt-foil::after { content: '긁는 중…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6e675a; font-size: 12px; }
@keyframes lt-scratch { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes lt-glow { from { transform: scale(1); } to { transform: scale(1.05); } }
.lt-sum p { margin: 6px 0; font-size: 14px; }
.lt-big { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.lt-big .lt-card { min-width: 110px; }
.lt-tbl summary { cursor: pointer; font-weight: 700; margin-bottom: 6px; }
.lt-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lt-tbl td { padding: 4px 6px; border-bottom: 1px solid rgba(0,0,0,.08); }
.lt-tbl td:last-child { text-align: right; white-space: nowrap; }
.lt-tbl .iic { width: 22px; height: 22px; vertical-align: middle; }
.lt-r1 td:first-child, .lt-r2 td:first-child { color: #c27a00; }
.lt-exs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lt-ex { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.04); text-align: center; font-size: 13px; }
.lt-ex small { opacity: .75; }
/* c241: 🎓 수수료 · 🔥 속성 공명 */
.fee-note { color: #b26a00; }
.crb-warn { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: rgba(255,140,40,.14); border: 1px solid rgba(255,140,40,.45); font-size: 13px; text-align: left; }
.crb-gain { margin: 8px 0; padding: 6px 10px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,90,40,.16), rgba(255,200,60,.16)); font-size: 14px; }
/* c241: 🏋 훈련소 */
.tr-list { display: flex; flex-direction: column; gap: 6px; }
.tr-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.04); }
.tr-row > div { flex: 1; min-width: 0; }
.tr-row.done { background: rgba(80,200,120,.14); }
.tr-row .mini { width: 44px; height: 44px; object-fit: contain; }
.tr-bar { height: 6px; border-radius: 4px; background: rgba(0,0,0,.1); overflow: hidden; margin: 3px 0; }
.tr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb24d, #ff7a2f); }
.tr-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.tr-pick { display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 10px; border: 2px solid transparent; background: rgba(0,0,0,.04); cursor: pointer; font: inherit; }
.tr-pick.on { border-color: #ff9a3a; background: rgba(255,154,58,.14); }
.tr-pick .mini { width: 48px; height: 48px; object-fit: contain; }
.tr-pick small { font-size: 11px; line-height: 1.2; text-align: center; }
.tr-qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.tr-qs .btn { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; }
.tr-qs .btn small { font-size: 10.5px; opacity: .85; }
/* c241: ⚒ 장비 강화 — 아이콘 테두리 · 배지 · 전투/아크링 빛 · 강화 연출 */
.iic.eqp { position: relative; }
.iic.eqp1 { box-shadow: 0 0 0 2px #c9d1dc inset, 0 0 4px rgba(200,210,225,.8); }
.iic.eqp2 { box-shadow: 0 0 0 2px #5cb8ff inset, 0 0 8px rgba(80,170,255,.9); animation: eqp-tw 2.2s ease-in-out infinite; }
.iic.eqp3 { box-shadow: 0 0 0 2px #b77bff inset, 0 0 10px rgba(170,100,255,.95); animation: eqp-pulse 1.4s ease-in-out infinite; }
.iic.eqp4 { box-shadow: 0 0 0 2px #ffd34a inset, 0 0 14px rgba(255,200,60,1); animation: eqp-pulse 1s ease-in-out infinite; }
.iic.eqp4::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,230,120,.9) 80%, transparent 90%); animation: eqp-spin 1.8s linear infinite; pointer-events: none; mix-blend-mode: screen; }
.eqp-b { position: absolute; right: -3px; bottom: -3px; font: 700 9px/1 sans-serif; padding: 1px 3px; border-radius: 6px; background: #2b2b38; color: #fff; z-index: 2; }
.eqp3 .eqp-b { background: #6b2fd6; } .eqp4 .eqp-b { background: linear-gradient(135deg, #ffb300, #ff6a00); color: #fff; }
@keyframes eqp-tw { 50% { filter: brightness(1.25); } }
@keyframes eqp-pulse { 50% { filter: brightness(1.45) saturate(1.2); } }
.eqp-t1 { color: #8a96a8; } .eqp-t2 { color: #2f8fe0; } .eqp-t3 { color: #8a3cf0; } .eqp-t4 { color: #e09a00; text-shadow: 0 0 6px rgba(255,200,60,.8); }
.eqp-max { color: #e09a00; font-weight: 700; }
.btn.gold, .btn.btn-gold { background: linear-gradient(135deg, #ffd25a, #ff9d2a); color: #3b2200; }
.eqglow { position: absolute; left: 50%; bottom: 0; width: 86%; height: 26%; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(5px); }
.eqglow3 { background: radial-gradient(ellipse, rgba(170,100,255,.85), transparent 70%); animation: eqp-pulse 1.6s ease-in-out infinite; }
.eqglow4 { background: radial-gradient(ellipse, rgba(255,210,70,.95), transparent 70%); animation: eqp-pulse 1.1s ease-in-out infinite; }
.eqglow4::after { content: ''; position: absolute; inset: -120% 4% 40%; background: radial-gradient(circle at 12% 78%, #fff6cf 0 1.6px, transparent 2.6px), radial-gradient(circle at 30% 40%, #fff6cf 0 1.6px, transparent 2.6px), radial-gradient(circle at 52% 86%, #fff6cf 0 1.6px, transparent 2.6px), radial-gradient(circle at 70% 30%, #fff6cf 0 1.6px, transparent 2.6px), radial-gradient(circle at 88% 70%, #fff6cf 0 1.6px, transparent 2.6px), radial-gradient(circle at 42% 12%, #fff6cf 0 1.6px, transparent 2.6px); filter: drop-shadow(0 0 3px #ffcc40); animation: aura-rise 2s ease-in-out infinite; }
.enh-pop { display: flex; gap: 10px; align-items: center; text-align: left; }
.enh-pop .iic { width: 54px; height: 54px; }
.enh-mile { margin: 6px 0 0; padding: 4px 8px; border-radius: 8px; background: rgba(255,200,60,.16); font-size: 13px; }
@keyframes eqp-spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* c241: 🎰 복권방 다듬기 — 아이콘 크기 · 결과 요약 · 1·2등 축하 */
.lt-card .iic { width: 46px; height: 46px; margin-bottom: 2px; }
.lt-big .lt-card .iic { width: 54px; height: 54px; }
.lt-ex .iic { width: 52px; height: 52px; }
.lt-tbl .iic { width: 26px; height: 26px; }
.lt-sum .iic { width: 24px; height: 24px; vertical-align: middle; }
.lt-head { font-size: 13px; margin: -2px 2px 8px; opacity: .9; }
.lt-head b { color: #ffd65a; }
.lt-card.win.r1 b, .lt-card.win.r2 b { color: #8a4b00; }
.lt-ex { transition: transform .15s; }
.lt-ex:hover { transform: translateY(-2px); }

/* c242: ⚒ 강화 연출 (세련 버전) — 링 충전 → 섬광/파편 · 단계 색 --c(주) --c2(밝은) --c3(어두운) */
.enh-fx { --c: #b9c7da; --c2: #ffffff; --c3: #5d6b80; position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 45%, rgba(30,30,48,.72), rgba(6,6,12,.9)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: pointer; animation: ef-in .25s ease-out; transition: opacity .2s; }
.enh-fx.out { opacity: 0; }
.enh-fx.t2 { --c: #4fa8ff; --c2: #d4ebff; --c3: #1b4f8f; }
.enh-fx.t3 { --c: #a46bff; --c2: #eadcff; --c3: #4a2394; }
.enh-fx.t4 { --c: #ffc23d; --c2: #fff6d2; --c3: #9a5a00; }
.enh-fx.fail { --c: #8d8f9c; --c2: #d8d9e0; --c3: #45464f; }
@keyframes ef-in { from { opacity: 0; } }
.ef-stage { position: relative; width: 200px; height: 180px; display: flex; align-items: center; justify-content: center; }
.ef-stage > i, .ef-ring { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.ef-halo { width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%); opacity: .35; animation: ef-halo .8s ease-in forwards; }
@keyframes ef-halo { to { opacity: .8; transform: scale(1.15); } }
.enh-fx.ok .ef-halo { animation: ef-halo .8s ease-in forwards, ef-breathe 1.6s ease-in-out .9s infinite alternate; }
@keyframes ef-breathe { from { opacity: .8; transform: scale(1.15); } to { opacity: .55; transform: scale(1.3); } }
.enh-fx.fail .ef-halo { animation: ef-halo .8s ease-in forwards, ef-dim .5s ease-out .8s forwards; }
@keyframes ef-dim { to { opacity: .12; transform: scale(.9); } }
.ef-ring { width: 172px; height: 172px; margin: -86px 0 0 -86px; transform: rotate(-90deg); overflow: visible; }
.ef-ring circle { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 3; }
.ef-ring .ef-ring-p { stroke: var(--c2); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; filter: drop-shadow(0 0 6px var(--c)); animation: ef-charge .78s cubic-bezier(.5,0,.8,.6) forwards; }
@keyframes ef-charge { to { stroke-dashoffset: 0; } }
.enh-fx.ok .ef-ring { animation: ef-ring-out .5s ease-out .8s forwards; }
@keyframes ef-ring-out { to { transform: rotate(-90deg) scale(1.6); opacity: 0; } }
.enh-fx.fail .ef-ring { animation: ef-ring-fail .45s ease-in .8s forwards; }
@keyframes ef-ring-fail { 0% { opacity: 1; } 30% { opacity: .9; transform: rotate(-90deg) scale(1.04); } 100% { opacity: 0; transform: rotate(-90deg) scale(.88); } }
.ef-item { position: relative; z-index: 2; border-radius: 22px; overflow: hidden; animation: ef-tremble .78s ease-in; }
.ef-item .iic { width: 104px; height: 104px; display: block; }
@keyframes ef-tremble { 0%, 60% { transform: none; } 70% { transform: translate(-1px, 1px); } 80% { transform: translate(1px, -1px); } 90% { transform: translate(-1px, 0); } }
.enh-fx.ok .ef-item { animation: ef-tremble .78s ease-in, ef-pop .7s cubic-bezier(.2,1.5,.4,1) .8s both; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c2) 70%, transparent); }
@keyframes ef-pop { 0% { transform: scale(1); filter: brightness(1); } 25% { transform: scale(1.22); filter: brightness(2.4) saturate(1.3); } 100% { transform: scale(1.08); filter: brightness(1.12); box-shadow: 0 0 0 2px var(--c2), 0 0 28px var(--c), 0 0 60px color-mix(in srgb, var(--c) 50%, transparent); } }
.ef-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); }
.enh-fx.ok .ef-shine { animation: ef-shine .7s ease-in-out .95s forwards; }
@keyframes ef-shine { to { transform: translateX(120%); } }
.ef-flash { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c2) 35%, transparent 70%); opacity: 0; z-index: 3; }
.enh-fx.ok .ef-flash { animation: ef-flash .55s ease-out .8s forwards; }
@keyframes ef-flash { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(7); } }
.ef-spark { width: 3px; height: 16px; margin: -8px 0 0 -1.5px; border-radius: 3px; background: linear-gradient(to top, transparent, var(--c2) 40%, #fff); box-shadow: 0 0 6px var(--c); opacity: 0; transform: rotate(var(--a)); z-index: 3; animation: ef-spark .6s cubic-bezier(.1,.7,.3,1) calc(.8s + var(--d)) forwards; }
@keyframes ef-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scaleY(1.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) scaleY(.4); } }
.ef-pillar { width: 90px; height: 420px; margin: -330px 0 0 -45px; background: linear-gradient(to top, transparent, color-mix(in srgb, var(--c) 45%, transparent) 55%, transparent); filter: blur(10px); opacity: 0; transform-origin: 50% 80%; animation: ef-pillar 1.1s ease-out .85s forwards; }
@keyframes ef-pillar { 0% { opacity: 0; transform: scaleX(.2); } 35% { opacity: 1; transform: scaleX(1); } 100% { opacity: .5; transform: scaleX(.75); } }
.ef-vig { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 30px rgba(255,190,50,.55); opacity: 0; animation: ef-vig 1.4s ease-out .8s forwards; }
@keyframes ef-vig { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: .35; } }
.ef-text { text-align: center; opacity: 0; animation: ef-text .5s cubic-bezier(.2,1.3,.4,1) .88s forwards; }
@keyframes ef-text { from { opacity: 0; transform: translateY(10px) scale(1.25); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ef-plus { font: 62px/1 'Jua', sans-serif; letter-spacing: .02em; background: linear-gradient(180deg, #fff 0%, var(--c2) 42%, var(--c) 58%, var(--c3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)) drop-shadow(0 0 14px color-mix(in srgb, var(--c) 70%, transparent)); }
.ef-label { margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .32em; color: var(--c2); opacity: .9; }
.enh-fx.t4 .ef-plus { font-size: 76px; }
.enh-fx.fail .ef-plus { filter: drop-shadow(0 2px 0 rgba(0,0,0,.45)); opacity: .75; }
.enh-fx.fail .ef-label { color: #ff9b8f; letter-spacing: .2em; }
.enh-fx.fail .ef-item { animation: ef-tremble .78s ease-in, ef-shake .45s ease-in-out .8s both; }
.enh-fx.fail .ef-item .iic { animation: ef-grey .4s ease-out .8s forwards; }
@keyframes ef-grey { to { filter: grayscale(.85) brightness(.7); } }
@keyframes ef-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px) rotate(-3deg); } 45% { transform: translateX(6px) rotate(2deg); } 70% { transform: translateX(-3px); } }
.ef-crack { width: 110px; height: 110px; margin: -55px 0 0 -55px; z-index: 3; opacity: 0; background: linear-gradient(62deg, transparent 47%, rgba(255,255,255,.85) 48.5%, transparent 50%), linear-gradient(-28deg, transparent 54%, rgba(255,255,255,.6) 55%, transparent 56.5%); clip-path: polygon(30% 0, 70% 0, 100% 40%, 80% 100%, 20% 100%, 0 50%); animation: ef-crack .9s ease-out .82s forwards; }
@keyframes ef-crack { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.ef-smoke { width: 70px; height: 70px; margin: -10px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(170,170,185,.55), transparent 70%); filter: blur(6px); opacity: 0; animation: ef-smoke 1.3s ease-out .85s forwards; }
.ef-smoke.s2 { margin-left: -5px; animation-delay: .95s; }
@keyframes ef-smoke { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.6); } }

/* c242: 🎉 복권 1·2등 연출 (세련 버전) — 후광 · 폭발 링 · 반짝임 · 동전(그림) · 유리 카드 */
.lt-jp { --c: #ffc94d; --c2: #fff4cf; --c3: #a8620a; position: fixed; inset: 0; z-index: 9999; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 46%, rgba(70,44,6,.7), rgba(5,4,2,.9) 70%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: pointer; animation: ef-in .3s ease-out; transition: opacity .25s; }
.lt-jp.out { opacity: 0; }
.lt-jp.r2 { --c: #6fe39a; --c2: #e4ffec; --c3: #1d7a45; background: radial-gradient(circle at 50% 46%, rgba(8,58,30,.7), rgba(2,6,4,.9) 70%); }
.lt-jp > i, .jp-halo { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.jp-halo { width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 30%, transparent) 0 4deg, transparent 4deg 15deg), radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 60%); -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); opacity: 0; animation: jp-halo-in .8s ease-out .1s forwards, eqp-spin 40s linear infinite; }
@keyframes jp-halo-in { to { opacity: .8; } }
.jp-ring { width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 2px solid var(--c2); box-shadow: 0 0 18px var(--c), inset 0 0 18px var(--c); opacity: 0; animation: jp-ring 1s cubic-bezier(.1,.6,.3,1) .1s forwards; }
.jp-ring.w2 { border-width: 1px; animation-delay: .32s; }
@keyframes jp-ring { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(4.2); } }
.jp-glint { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--c2); box-shadow: 0 0 8px var(--c), 0 0 2px #fff; opacity: 0; animation: jp-glint 1.1s cubic-bezier(.1,.7,.3,1) var(--d) forwards; }
@keyframes jp-glint { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-40px) rotate(45deg) scale(var(--z)); } 70% { opacity: .9; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(45deg) scale(calc(var(--z) * .3)); } }
.jp-coin { position: absolute; top: -60px; width: calc(38px * var(--z)); height: auto; opacity: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgba(255,200,60,.5)); animation: jp-fall var(--t) cubic-bezier(.4,.1,.7,1) var(--d) infinite, jp-flip 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes jp-fall { 0% { opacity: 0; translate: 0 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; translate: var(--x) 112vh; } }
@keyframes jp-flip { 0%, 100% { transform: perspective(200px) rotateY(-45deg) rotate(-12deg); } 50% { transform: perspective(200px) rotateY(45deg) rotate(12deg); } }
.jp-dust { position: absolute; top: -20px; width: calc(6px * var(--z)); height: calc(6px * var(--z)); border-radius: 50%; background: var(--c2); box-shadow: 0 0 10px var(--c), 0 0 3px #fff; opacity: 0; animation: jp-fall var(--t) ease-in var(--d) infinite; pointer-events: none; }
.jp-card { position: relative; z-index: 2; width: min(300px, 84vw); padding: 22px 24px 16px; border-radius: 22px; text-align: center; background: linear-gradient(165deg, color-mix(in srgb, var(--c3) 32%, #14100a), #0d0a06 70%); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c2) 35%, transparent), 0 24px 60px rgba(0,0,0,.6), 0 0 70px color-mix(in srgb, var(--c) 30%, transparent); animation: jp-card .7s cubic-bezier(.2,1.25,.35,1) .15s both; }
.lt-jp.r2 .jp-card { background: linear-gradient(165deg, color-mix(in srgb, var(--c3) 35%, #07120b), #050c07 70%); }
@keyframes jp-card { from { opacity: 0; transform: translateY(24px) scale(.86); } to { opacity: 1; transform: none; } }
.jp-tag { display: inline-block; padding: 3px 12px 3px 15px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); font: 700 10px/1.4 sans-serif; letter-spacing: .38em; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.jp-rank { margin-top: 8px; font: 34px/1.1 'Jua', sans-serif; background: linear-gradient(180deg, #fff, var(--c2) 40%, var(--c) 62%, var(--c3)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.5)); }
.jp-item { position: relative; width: 116px; height: 116px; margin: 14px auto 10px; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c2) 60%, transparent), 0 0 34px color-mix(in srgb, var(--c) 55%, transparent); animation: jp-float 2.4s ease-in-out .9s infinite alternate; }
.jp-item .iic { width: 116px; height: 116px; display: block; }
@keyframes jp-float { to { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--c2), 0 0 46px color-mix(in srgb, var(--c) 75%, transparent); } }
.jp-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.65) 50%, transparent 62%); transform: translateX(-130%); animation: jp-shine 2.8s ease-in-out .9s infinite; }
@keyframes jp-shine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.jp-name { font: 19px 'Jua', sans-serif; color: var(--c2); }
.jp-hint { margin-top: 10px; font-size: 11px; color: #fff; opacity: .38; }
@media (prefers-reduced-motion: reduce) { .jp-halo, .jp-coin, .jp-dust, .jp-item, .jp-shine, .ef-halo { animation: none !important; } }

/* c245: 🍀💰 복권 오라 — 아크링 테두리 광채 + 발밑 링(뒤) + 앞으로 떠오르는 반짝이(잭팟: 금빛·동전 / 클로버: 잎) */
.aura-jackpot { --ac: rgba(255,226,120,.95); --ag: rgba(255,190,40,.9); }
.aura-clover { --ac: rgba(170,255,185,.95); --ag: rgba(60,220,110,.85); }
.aura-jackpot::before, .aura-clover::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 26%; border-radius: 50%; border: 2px solid var(--ac); box-shadow: 0 0 12px var(--ag), inset 0 0 12px var(--ag); animation: af-ring 2s ease-in-out infinite; }
@keyframes af-ring { 50% { opacity: .5; transform: scale(1.08); } }
.aura-jackpot ~ img:not(.mutant) { filter: drop-shadow(0 0 2px #fff3b0) drop-shadow(0 0 7px rgba(255,190,40,.95)); animation: af-rim 1.8s ease-in-out infinite; }
.aura-jackpot ~ img.mutant { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 2px #fff3b0) drop-shadow(0 0 7px rgba(255,190,40,.95)); }
.aura-clover ~ img:not(.mutant) { filter: drop-shadow(0 0 2px #e4ffe4) drop-shadow(0 0 7px rgba(60,220,110,.9)); animation: af-rim 2.2s ease-in-out infinite; }
.aura-clover ~ img.mutant { filter: hue-rotate(var(--hue)) saturate(1.3) drop-shadow(0 0 2px #e4ffe4) drop-shadow(0 0 7px rgba(60,220,110,.9)); }
@keyframes af-rim { 50% { filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 1px #fff) drop-shadow(0 0 12px var(--rim, rgba(255,200,60,1))); } }
.aura-clover ~ img { --rim: rgba(80,240,130,1); }
.aura-f { position: absolute; left: 0; right: 0; top: -8%; bottom: 0; pointer-events: none; z-index: 2; }
.aura-f i { position: absolute; left: var(--x); bottom: 8%; width: 7px; height: 7px; opacity: 0; animation: af-up var(--t) ease-out var(--d) infinite; }
.aura-f-jackpot i { background: #fff7d0; box-shadow: 0 0 7px #ffbf2e, 0 0 3px #fff; }
.aura-f-clover i { width: 9px; height: 9px; border-radius: 0 80% 0 80%; background: linear-gradient(135deg, #e0ffd8, #2fbf5e); box-shadow: 0 0 6px rgba(90,255,140,.9); }
@keyframes af-up { 0% { opacity: 0; bottom: 6%; transform: rotate(45deg) scale(.5); } 20% { opacity: 1; } 75% { opacity: .9; } 100% { opacity: 0; bottom: 90%; transform: rotate(calc(45deg + var(--r))) scale(1); } }
.af-coin { position: absolute; left: var(--x); bottom: 6%; width: 22%; max-width: 30px; opacity: 0; filter: drop-shadow(0 0 5px rgba(255,200,60,.9)); animation: af-coin 2.7s ease-out var(--d) infinite; }
@keyframes af-coin { 0% { opacity: 0; bottom: 4%; transform: perspective(120px) rotateY(-40deg) scale(.6); } 18% { opacity: 1; } 50% { transform: perspective(120px) rotateY(40deg) scale(.95); } 85% { opacity: 1; } 100% { opacity: 0; bottom: 80%; transform: perspective(120px) rotateY(-40deg) scale(.85); } }
@media (prefers-reduced-motion: reduce) { .aura-f i, .af-coin, .aura-jackpot ~ img, .aura-clover ~ img { animation: none !important; } }

/* c246: ⚔ 전투력 */
.cp { display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 8px; font: 700 11px/1.6 sans-serif; color: #7a3d00; background: linear-gradient(135deg, #fff1c9, #ffd98a); border: 1px solid rgba(200,130,20,.35); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cpl { margin: 1px 0 2px; }
.cp-big { display: inline-flex; align-items: baseline; gap: 6px; margin: 4px 0 2px; padding: 2px 10px; border-radius: 10px; font-size: 12px; color: #7a3d00; background: linear-gradient(135deg, #fff4d6, #ffd98a); border: 1px solid rgba(200,130,20,.35); }
.cp-big b { font: 18px/1.2 'Jua', sans-serif; color: #b35a00; font-variant-numeric: tabular-nums; }
.presets .pl .cp { margin-top: 2px; }
/* c247: 모바일 정리 — 접힌 아크링 줄 · 배지 줄바꿈 방지 */
.grade, .cp, .g-up { white-space: nowrap; }
.hd-mini { flex-wrap: wrap; row-gap: 4px; }
.hd-mini > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.hd-mini > small { white-space: nowrap; }
@media (max-width: 560px) { .hd-mini .bar { order: 9; flex-basis: 100%; max-width: none; } .hd-mini .btn { order: 8; } }
.nw { white-space: nowrap; }
.mk-cp { padding: 2px 8px 0; }
.pf-cp { margin: 2px 0; }
.pf-tcp b { color: #b35a00; }
/* c249: 🔮 동종 합성 */
.fz-empty { text-align: center; padding: 18px 10px; background: rgba(120,90,200,.06); border: 1px dashed rgba(120,90,200,.35); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.fz-near { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.fz-near span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; }
.fz-near img.mini { width: 26px; height: 26px; }
.fz-box { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0; border-radius: 14px; background: linear-gradient(135deg, #f6f0ff, #fff7ea); border: 1.5px solid rgba(140,100,220,.35); }
.fz-t img.pop { width: 84px; height: 84px; object-fit: contain; }
.fz-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.fz-row b { font-variant-numeric: tabular-nums; }
.fz-max { color: var(--red); }
.fz-odds { font-size: 11px; opacity: .75; }
.fz-arrow { font: 26px 'Jua', sans-serif; color: #8a5ad6; }
.fz-mats { display: grid; grid-template-columns: repeat(2, 38px); gap: 4px; justify-items: center; }
.fz-mats small { grid-column: 1 / -1; font-size: 11px; opacity: .8; }
.fz-slot { width: 38px; height: 38px; border-radius: 10px; border: 1.5px dashed rgba(140,100,220,.45); display: flex; align-items: center; justify-content: center; color: #b9a6e0; font-weight: 700; background: #fff; }
.fz-slot.on { border-style: solid; border-color: #8a5ad6; box-shadow: 0 0 6px rgba(140,90,214,.45); }
.fz-slot img.mini { width: 32px; height: 32px; object-fit: contain; }
@media (max-width: 560px) { .fz-box { grid-template-columns: auto 1fr; } .fz-arrow { display: none; } .fz-mats { grid-column: 1 / -1; grid-template-columns: repeat(4, 38px) auto; justify-content: center; align-items: center; } .fz-mats small { grid-column: auto; } }
.fz-fx { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(circle at 50% 45%, rgba(48,28,80,.8), rgba(8,6,16,.92)); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); cursor: pointer; animation: ef-in .25s; transition: opacity .2s; --c: #b48cff; --c2: #efe4ff; }
.fz-fx.out { opacity: 0; }
.fz-fx.up.top { --c: #ffc23d; --c2: #fff6d2; }
.fz-fx.down { --c: #8d8f9c; --c2: #d8d9e0; }
.fz-fx-st { position: relative; width: 220px; height: 220px; }
.fz-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; display: flex; align-items: center; justify-content: center; animation: fz-core 1.3s ease-in both; }
.fz-core img.pop { width: 120px; height: 120px; object-fit: contain; filter: hue-rotate(var(--hue, 0deg)) drop-shadow(0 0 10px var(--c)); }
@keyframes fz-core { 0% { transform: scale(.9); } 80% { transform: scale(.95); filter: brightness(1.2); } 92% { transform: scale(1.15); filter: brightness(2.2); } 100% { transform: scale(1); filter: brightness(1); } }
.fz-orb { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); animation: fz-orb 1.2s cubic-bezier(.6,0,.9,.5) both; }
.fz-orb img.mini { width: 34px; height: 34px; object-fit: contain; filter: grayscale(.3) brightness(1.1); }
.fz-orb.o0 { --x: -95px; --y: -70px; } .fz-orb.o1 { --x: 95px; --y: -70px; } .fz-orb.o2 { --x: -95px; --y: 75px; } .fz-orb.o3 { --x: 95px; --y: 75px; }
@keyframes fz-orb { 0% { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(0, 0) scale(.2); opacity: 0; } }
.fz-ring { position: absolute; left: 50%; top: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 2px solid var(--c2); box-shadow: 0 0 16px var(--c); opacity: 0; animation: jp-ring .9s cubic-bezier(.1,.6,.3,1) 1.2s forwards; }
.fz-flash { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--c2) 35%, transparent 70%); opacity: 0; animation: ef-flash .55s ease-out 1.2s forwards; }
.fz-res { text-align: center; opacity: 0; animation: ef-text .5s cubic-bezier(.2,1.3,.4,1) 1.35s forwards; color: #fff; }
.fz-g { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
.fz-g .grade { font-size: 16px; padding: 2px 10px; }
.fz-p { margin-top: 6px; font: 30px/1.1 'Jua', sans-serif; color: var(--c2); }
.fz-p b { background: linear-gradient(180deg, #fff, var(--c2) 45%, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fz-l { margin-top: 6px; font-size: 13px; letter-spacing: .08em; color: var(--c2); opacity: .9; }
.fz-lore { opacity: .85; color: #6b4fa8; margin-bottom: 0; }
.fz-box.rc { grid-template-columns: auto auto 1fr; }
.fz-mats.rc { grid-template-columns: repeat(3, 38px); }
.fz-fx.rc .fz-core { animation: fz-core-rc 1.3s ease-in both; }
@keyframes fz-core-rc { 0%, 80% { opacity: 0; transform: scale(.4); } 92% { opacity: 1; transform: scale(1.15); filter: brightness(2.2); } 100% { opacity: 1; transform: scale(1); } }
.fz-fx.rc .fz-orb.o0 { --x: 0px; --y: -105px; } .fz-fx.rc .fz-orb.o1 { --x: -95px; --y: 60px; } .fz-fx.rc .fz-orb.o2 { --x: 95px; --y: 60px; }
@media (max-width: 560px) { .fz-box.rc { grid-template-columns: auto 1fr; } .fz-mats.rc { grid-column: auto; grid-template-columns: repeat(3, 38px); } }
/* c250: SVG 아이콘 (이모지 대신) */
i.bi { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 4px; font-style: normal; }
i.bi svg.gi { width: 100%; height: 100%; }
.bl { display: inline-flex; align-items: center; justify-content: center; }
.ld-seg button i.bi { opacity: .85; }
.ld-seg button.on i.bi { opacity: 1; }
img.ic-coin { width: 1.2em; height: 1.2em; vertical-align: -0.25em; object-fit: contain; filter: drop-shadow(0 0 2px rgba(255,200,60,.6)); }
.lt-empty i.bi { width: 1.4em; height: 1.4em; color: #ffd77a; }
.btn.tiny i.bi { width: 1em; height: 1em; margin-right: 2px; }
.gd-c-train { --c: #c0703a; } .gd-c-lottery { --c: #d9a21b; } .gd-c-fuse { --c: #8a5ad6; } .gd-c-enhance { --c: #7a7f8c; }
.fz-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; cursor: pointer; } .fz-chip:hover { border-color: #8a5ad6; } .fz-chip img.mini { width: 26px; height: 26px; }
/* c250: 🧬 돌연변이 색 유지 — 컷신(필살기)에서 각성 아크링(3환생 각성 그림 · 신수 각성)의 숨쉬기 애니메이션이 컷신 애니메이션과 필터를 덮어
   필살기 끝 무렵 원래 색으로 돌아가 보이던 것. 위 keyframes 에도 hue-rotate(var(--hue)) 를 넣어 상태이상·각성 연출 중에도 색 유지 */
#battle .cs-img.mutant { filter: hue-rotate(var(--hue)) saturate(1.2) drop-shadow(0 0 30px var(--c)); animation: csimg 1.7s ease-out; }
#battle .cs-img.mutant.flip { animation-name: csimgf; }

.tr-picks { max-height: 252px; padding-bottom: 4px; -webkit-mask: linear-gradient(to bottom, #000 88%, transparent); mask: linear-gradient(to bottom, #000 88%, transparent); }

/* c252: 💬 대화 연출 — 스탠딩 일러스트 + 대화창 */
.talk { position: fixed; inset: 0; z-index: 9990; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to top, rgba(8,6,14,.94), rgba(8,6,14,.78) 50%, rgba(8,6,14,.62)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; cursor: pointer; user-select: none; }
.talk.in { opacity: 1; } .talk.out { opacity: 0; }
.tk-stage { position: absolute; left: 0; right: 0; bottom: 0; top: 0; pointer-events: none; }
.tk-side { position: absolute; bottom: 0; width: 46%; height: 88%; display: flex; align-items: flex-end; }
.tk-side.l { left: 2%; justify-content: flex-start; } .tk-side.r { right: 2%; justify-content: flex-end; }
.tk-p { max-height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; filter: brightness(.45) saturate(.6) drop-shadow(0 0 0 transparent); transform: translateY(14px) scale(.96); transition: filter .25s, transform .25s, opacity .25s; }
.tk-side.l .tk-p { transform-origin: bottom left; left: 0; } .tk-side.r .tk-p { transform-origin: bottom right; right: 0; }
.tk-p { position: absolute; bottom: 0; opacity: 1; } .tk-p.gone { opacity: 0; }
.tk-p.on { filter: brightness(1) saturate(1) drop-shadow(0 6px 24px rgba(0,0,0,.55)); transform: none; }
.tk-p.tk-me { max-height: 72%; }
.tk-box { --nc: #9aa0b0; position: relative; z-index: 2; margin: 0 auto 22px; width: min(860px, 94vw); min-height: 118px; padding: 26px 26px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(28,22,40,.94), rgba(16,12,24,.96)); border: 1.5px solid color-mix(in srgb, var(--nc) 70%, transparent); box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); color: #f4ecdf; }
.tk-box.narr { font-style: italic; color: #e8dcc8; border-color: rgba(255,255,255,.18); }
.tk-name { position: absolute; top: -16px; left: 22px; display: flex; align-items: baseline; gap: 8px; padding: 4px 16px; border-radius: 10px; background: var(--nc); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.tk-name b { font: 18px 'Jua', sans-serif; letter-spacing: .02em; }
.tk-name small { font-size: 11px; opacity: .85; }
.tk-text { font-size: 17px; line-height: 1.6; min-height: 54px; white-space: pre-wrap; word-break: keep-all; }
.tk-next { position: absolute; right: 18px; bottom: 8px; font-size: 12px; color: var(--nc); animation: tk-bob 1s ease-in-out infinite; }
@keyframes tk-bob { 50% { transform: translateY(3px); } }
.tk-skip { position: absolute; top: 14px; right: 14px; z-index: 3; padding: 6px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.4); color: #fff; font-size: 13px; cursor: pointer; }
/* c254: 이벤트 CG — 화면을 덮고 대화창은 그 위 */
.tk-cgw { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #05070c; }
.talk.has-cg .tk-cgw { display: flex; } .talk.has-cg .tk-stage { display: none; }
.tk-cg { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .8s, transform 6s ease-out; }
.tk-cg.on { opacity: 1; transform: scale(1); }
@media (max-width: 700px) { .tk-cgw { bottom: auto; height: 62%; } .tk-cg { object-fit: cover; object-position: 50% 50%; mask-image: linear-gradient(180deg, #000 80%, transparent); } }
.tk-title { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 18px; border-radius: 99px; background: rgba(0,0,0,.45); color: #ffe7b8; font: 15px 'Jua', sans-serif; letter-spacing: .06em; white-space: nowrap; }
@media (max-width: 700px) {
  /* 폰: 말하는 사람 한 명만 가운데에 (말이 바뀌면 이전 사람은 사라지고 다음 사람이 떠오름) */
  .tk-side { width: 86%; height: 70%; bottom: 120px; } .tk-side.l, .tk-side.r { left: 7%; right: auto; justify-content: center; }
  .tk-side.l .tk-p, .tk-side.r .tk-p { left: 50%; right: auto; transform-origin: bottom center; transform: translate(-50%, 18px) scale(.97); }
  .tk-p:not(.on) { opacity: 0; }
  .tk-p.on { transform: translate(-50%, 0); }
  .tk-box { margin-bottom: 14px; min-height: 108px; padding: 24px 16px 16px; } .tk-text { font-size: 15px; }
  .tk-name b { font-size: 16px; }
  .tk-title { top: 58px; font-size: 14px; max-width: 90vw; overflow: hidden; text-overflow: ellipsis; }
}
.gd-c-mode { --c: #3aa86a; }
/* c252: 🐉 신수 도감 — 각성 단계 */
.dx-asc { margin: 8px 0 12px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(255,215,120,.12), rgba(120,170,255,.08)); border: 1px solid rgba(200,160,80,.3); }
.dx-asc-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .dx-asc-h b { font: 16px 'Jua', sans-serif; } .dx-asc-h small { margin-left: auto; opacity: .75; }
.dx-asc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dx-asc-row .dex { margin: 0; } .dx-asc-row .dex.dx-a3.own { box-shadow: 0 0 0 2px #ffcf4a, 0 0 12px rgba(255,200,60,.6); }
@media (max-width: 560px) { .dx-asc-row { grid-template-columns: repeat(2, 1fr); } }

/* c258: 메인 스토리 장별 보상 · 다음 큰 보상 */
.quest.story .q-bonus { margin: 8px 0 2px; padding: 7px 10px; border-radius: 9px; background: #fff3dc; border: 1px solid #f0d49a; font-size: 13px; color: #6b4a14; }
.quest.story .q-bonus.big { background: linear-gradient(90deg, #fff1c4, #ffe0f0); border-color: #e8b84a; }
.quest.story .q-bonus b { color: #a5531a; }
.quest.story .q-next { margin: 2px 0 6px; font-size: 12px; color: #8a6a4a; }

/* c260: ✨ 이펙트 줄이기 (배터리 절약) — 계속 도는 애니메이션은 한 번만, 흐림 효과 끔, 오라 입자 숨김 */
body.lowfx *, body.lowfx *::before, body.lowfx *::after { animation-iteration-count: 1 !important; }
body.lowfx * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.lowfx .aura-f, body.lowfx .af-coin, body.lowfx .jp-coin, body.lowfx .jp-dust { display: none !important; }
/* 꼭 필요한 안내 움직임은 유지: 공격 대상 표시 · 필살기 버튼 · 튜토리얼 · 연결 중 표시 */
body.lowfx .unit.targetable .u-info, body.lowfx .cmd-grid .btn.ult, body.lowfx .tut-hole::after, body.lowfx #net-banner .spin, body.lowfx .dots::after { animation-iteration-count: infinite !important; }

/* c264: 아크링 상세 팝업 (목록 위에 떠서, 닫으면 목록 그대로) */
.hd-sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(20, 14, 8, .5); animation: fadein .18s; }
.hd-sheet-in { position: relative; width: min(720px, 100%); max-height: calc(100% - 16px); overflow: auto; border-radius: 16px; background: var(--cream); box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 34px 10px 6px; }
.hd-sheet-in .hdetail { margin-bottom: 4px; }
.hd-sheet-in .hd-fold { display: none; }
.hd-x { position: absolute; top: 6px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; }
@media (max-width: 700px) { .hd-sheet { align-items: flex-end; padding: 0; } .hd-sheet-in { width: 100%; max-height: 88%; border-radius: 18px 18px 0 0; animation: hd-up .22s ease-out; } }
@keyframes hd-up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }

/* c265: ⚙ 설정 창 — 묶음별 목록 + 스위치 */
.st { max-width: 560px; margin: 0 auto; padding: 2px 2px 10px; }
.st-sec { margin: 14px 4px 6px; font: 14px 'Jua', sans-serif; color: #8a5a2a; letter-spacing: .02em; }
.st-sec:first-child { margin-top: 2px; }
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; margin: 0; border: 1px solid var(--line); border-bottom-width: 0; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.st-sec + .st-row { border-radius: 12px 12px 0 0; }
.st-row:has(+ .st-sec), .st-row:has(+ .st-wd), .st-row:last-child { border-bottom-width: 1px; border-radius: 0 0 12px 12px; }
.st-sec + .st-row:has(+ .st-sec), .st-sec + .st-row:has(+ .st-wd) { border-radius: 12px; }
.st-row:hover { background: #fffaf0; }
.st-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-row b { font-size: 15px; font-weight: 600; }
.st-row small { font-size: 12px; color: #8a7560; line-height: 1.35; }
.st-sw { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 99px; background: #d6ccbf; transition: background .2s; }
.st-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.st-sw.on { background: #f08a24; } .st-sw.on::after { transform: translateX(18px); }
.st-go { flex-shrink: 0; font-style: normal; font-size: 22px; color: #c0a080; line-height: 1; }
.st-wd { display: block; margin: 14px auto 0; padding: 6px 12px; border: 0; background: none; color: #b0563a; font-size: 13px; text-decoration: underline; cursor: pointer; opacity: .8; }

/* c266: 아이폰 홈 화면 추가 안내 — 눌러야 할 공유 버튼을 화살표로 */
.a2hs { position: fixed; inset: 0; z-index: 9999; background: rgba(10,8,6,.72); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; animation: fadein .2s; }
.a2hs-card { width: min(360px, 100%); background: #fffaf0; border-radius: 18px; padding: 18px 18px 14px; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.a2hs-card img { width: 64px; border-radius: 14px; }
.a2hs-card > b { display: block; margin: 8px 0 10px; font: 18px 'Jua', sans-serif; }
.a2hs-card ol { list-style: none; margin: 0; padding: 0; text-align: left; }
.a2hs-card li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid #efe2cc; font-size: 14px; line-height: 1.4; }
.a2hs-ic { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e9f1ff; color: #2b6fd6; font-size: 17px; font-weight: 700; }
.a2hs-card small { display: block; margin-top: 8px; font-size: 11.5px; color: #8a7560; }
.a2hs-arrow { position: fixed; left: 50%; transform: translateX(-50%); font-size: 54px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); animation: a2hs-bob 1s ease-in-out infinite; }
.a2hs.bottom .a2hs-arrow { bottom: 6px; }
.a2hs.top .a2hs-arrow { top: 4px; left: auto; right: 18px; transform: none; }
@keyframes a2hs-bob { 50% { translate: 0 8px; } }
.a2hs.top .a2hs-arrow { animation-name: a2hs-bob-up; } @keyframes a2hs-bob-up { 50% { translate: 0 -8px; } }
body.lowfx .a2hs-arrow { animation-iteration-count: infinite !important; }

/* c267: 채팅 탭 = 보기 필터 (지역 = 전체) + 안 읽은 배지 + 위로 올려 읽는 중 「새 메시지 ↓」 */
#chat-log[data-f="whisper"] > :not(.ch-whisper):not(.ch-whisper-to),
#chat-log[data-f="room"] > :not(.ch-room),
#chat-log[data-f="guild"] > :not(.ch-guild) { display: none; }
#chat-log[data-f="whisper"]:not(:has(> .ch-whisper, > .ch-whisper-to))::before { content: '아직 귓말이 없어요 · 이름을 누르면 귓말을 보낼 수 있어요'; display: block; padding: 10px 4px; color: rgba(255,255,255,.55); font-size: 12px; }
#chat-log[data-f="guild"]:not(:has(> .ch-guild))::before { content: '길드 채팅이 없어요'; display: block; padding: 10px 4px; color: rgba(255,255,255,.55); font-size: 12px; }
#chat-log[data-f="room"]:not(:has(> .ch-room))::before { content: '방 채팅이 없어요'; display: block; padding: 10px 4px; color: rgba(255,255,255,.55); font-size: 12px; }
.chat { position: relative; }
.chat .tabs button { position: relative; }
.ch-n { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #e5484d; color: #fff; font: 700 10px/16px sans-serif; font-style: normal; text-align: center; }
.chat-new { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); padding: 4px 12px; border: 0; border-radius: 99px; background: #f08a24; color: #fff; font-size: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.4); cursor: pointer; z-index: 2; }

/* c273: 새로고침 전 채팅 복원 */
#chat-log .old { opacity: .55; }
#chat-log .chat-sep { text-align: center; font-size: 11px; opacity: .6; margin: 4px 0; }

/* c286: 상점 판매 수량 버튼 묶음 */
.sell-q { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.sell-q .btn.small { padding: 4px 8px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.small-note.warn { color: #c0541a; }
/* c288: 약속석 진척도 · 얻는 곳 */
.rq.bound-alt { background: #efe6ff; color: #5b3d9a; border: 1px solid #c9b3f2; }
.rq.bound-alt .wlink { color: #5b3d9a; font-weight: bold; }
.wb-sec { margin-top: 10px; padding: 8px; border-radius: 10px; background: #f6f0ff; border: 1px solid #d9c8f5; }
.wb-sec > b { color: #5b3d9a; }
.wb-sec .wg-row small { line-height: 1.35; }
/* c290: 믹스 재료 — 돌이 있으면 부화해서 쓸 수 있음 */
.mr-row.hatch { border-color: #9fd18f; background: #f6fff1; }
.mr-h.egg small b { color: #2e7d32; font-size: 10.5px; }
.mr-h.egg .btn.tiny { margin-top: 2px; padding: 2px 6px; }
.st-credit { font-size: 10.5px; color: #9a8466; text-align: center; margin: 10px 0 2px; line-height: 1.4; }

/* c303: 자동 사냥 결과창 안내 */
.auto-next .auto-hint { display: block; font-size: 11.5px; opacity: .75; margin-top: 4px; }

/* c304: 🎬 마을 이동 — 떠나는 마을 풍경이 흐르다가 도착 마을 풍경으로 스르르 바뀜 · 장면 배경 교차 전환 */
.travel .tr-bg { position: absolute; inset: 0; background-size: cover; background-position: 50% 50%; }
.travel .tr-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.25)); }
#scene .scene-fade { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; transition: opacity 1.1s ease; pointer-events: none; z-index: 0; }
#scene .scene-fade.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .travel .tr-bg { animation: none; } #scene .scene-fade { transition-duration: .3s; } }
.travel .tr-road { height: 22%; border-top: 0;
  background: linear-gradient(rgba(70,48,24,0), rgba(70,48,24,.55) 35%, rgba(50,34,18,.75)),
              repeating-linear-gradient(90deg, rgba(255,230,180,.10) 0 80px, rgba(0,0,0,.06) 80px 160px); }

/* c305: 🎬 이동 — 진행 방향으로 풍경이 밀려나며 도착지 풍경이 들어옴 (페이드 대신) · 맵 테마 바닥 */
/* c305: 🎬 이동 — 걷는 방향으로 풍경이 계속 흐르고, 앞쪽에서부터 도착지 풍경이 부드러운 경계로 번져 옴 (슬라이드쇼처럼 두 장이 붙어 보이지 않게)
   시작 = 지금 화면 그대로(가운데) · 끝 = 도착 마을 화면 그대로(가운데) → 들어갈 때·나올 때 튀지 않음 */
.travel .tr-from { animation: trFromE 7s linear forwards; }
.travel .tr-to { animation: trToE 4.6s cubic-bezier(.2,.4,.4,1) forwards;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 60%); mask-image: linear-gradient(to left, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0; mask-position: 0% 0; transition: -webkit-mask-position 3.4s ease-in-out, mask-position 3.4s ease-in-out; }
.travel.tr-mid .tr-to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.travel.west .tr-from { animation-name: trFromW; }
.travel.west .tr-to { animation-name: trToW; -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 60%); mask-image: linear-gradient(to right, #000 40%, transparent 60%); -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.travel.west.tr-mid .tr-to { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
@keyframes trFromE { from { background-position: 50% 50%; } to { background-position: 100% 50%; } }
@keyframes trFromW { from { background-position: 50% 50%; } to { background-position: 0% 50%; } }
@keyframes trToE { from { background-position: 0% 50%; } to { background-position: 50% 50%; } }
@keyframes trToW { from { background-position: 100% 50%; } to { background-position: 50% 50%; } }
.travel.tr-out { opacity: 0; transition: opacity .5s ease; }
.travel.west .tr-walker, .travel.west .tr-follow { scale: -1 1; }
/* c306: 파티 전체(주인공+아크링)를 화면 가운데에 · 아크링은 항상 진행 방향 뒤쪽에서 따라옴 (서쪽으로 갈 땐 오른쪽 뒤) */
.travel { --fs: 105px; --g0: 130px; --off: calc(var(--n, 0) * var(--fs) / 2); }
.travel .tr-walker { left: calc(50% + var(--off)); }
.travel .tr-follow { left: calc(50% + var(--off) - var(--g0) - var(--i) * var(--fs)); }
.travel.west .tr-walker { left: calc(50% - var(--off)); }
.travel.west .tr-follow { left: calc(50% - var(--off) + var(--g0) + var(--i) * var(--fs)); }
@media (max-width: 760px) { .travel { --fs: 66px; --g0: 90px; } }
.travel .tr-road { display: none; }
.deco { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; }
.deco::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,8,12,.7), rgba(6,8,12,.25) 45%, transparent); }
.deco-far, .deco-near { position: absolute; left: 0; right: 0; background-repeat: repeat-x; background-size: auto 100%; background-position: 0 100%; animation: decoScroll var(--dur, 10s) linear infinite; }
.deco-far { bottom: 6%; height: 66%; --dur: 30s; filter: brightness(0); opacity: .32; }
.deco-near { bottom: -2%; height: 74%; --dur: 11s; filter: brightness(0); opacity: .86; }
.deco[data-theme=snow] .deco-far, .deco[data-theme=snow] .deco-near { filter: brightness(0) invert(.12) sepia(.3) hue-rotate(170deg); }
.deco[data-theme=volcano] .deco-near { filter: brightness(0) drop-shadow(0 -1px 3px rgba(255,110,40,.55)); }
@keyframes decoScroll { from { background-position-x: 0; } to { background-position-x: calc(-1 * var(--tw, 800px)); } }
.travel.west .deco-far, .travel.west .deco-near { animation-direction: reverse; }
.travel .tr-deco-to { opacity: 0; transition: opacity 2.4s ease 0.6s; }
.travel.tr-mid .tr-deco-to { opacity: 1; }
.travel.tr-mid .tr-deco-from { opacity: 0; transition: opacity 2.4s ease 0.6s; }
.travel .tr-walker, .travel .tr-follow { z-index: 2; }
.travel .tr-info { z-index: 3; }
/* 수색: 어둡게 덮던 것 대신 가장자리만 살짝 어둡게 + 사냥터 바닥 위를 천천히 걸어감 */
.searching { background: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,.12), rgba(0,0,0,.55)); justify-content: flex-start; }
.searching .search-txt { margin-top: 18vh; position: relative; z-index: 3; }
.searching .search-party { position: absolute; left: 50%; bottom: 11%; transform: translateX(-50%); z-index: 2; }
.searching .sr-deco .deco-far { --dur: 60s; }
.searching .sr-deco .deco-near { --dur: 22s; }
.searching.found { background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.25), rgba(0,0,0,.35)); }
/* 장면 배경: 사냥터로 들어가면 이전 풍경이 왼쪽으로, 나오면 오른쪽으로 밀려나며 사라짐 */
#scene .scene-fade { transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.55,0,.3,1); }
#scene .scene-fade.go-l.out { transform: translateX(-28%); }
#scene .scene-fade.go-r.out { transform: translateX(28%); }
@media (prefers-reduced-motion: reduce) { .deco-far, .deco-near { animation: none; } #scene .scene-fade { transition-duration: .3s; } }

/* c309: ⚡ 필살기 모으는 중 */
.stt.charge { background: #4a2a7a; color: #ffe27a; animation: chargePulse .8s ease-in-out infinite alternate; }
@keyframes chargePulse { from { box-shadow: 0 0 0 rgba(255,226,122,0); } to { box-shadow: 0 0 8px rgba(255,226,122,.9); } }

/* c311: 🔮 최종 육성 예상 */
.hdetail .pjbox { margin: 6px 0 4px; padding: 7px 10px; border-radius: 10px; background: linear-gradient(135deg, #f6efff, #fff6e6); border: 1px solid #e2d2f5; font-size: 13px; }
.hdetail .pjbox .pj-head { font-size: 11px; color: #8a6ab0; letter-spacing: .5px; margin-bottom: 2px; }
.hdetail .pjbox .pj-msg b { color: #6a3fb0; font-size: 15px; }
.hdetail .pjbox.top { background: linear-gradient(135deg, #fff4cc, #ffe7f0); border-color: #f0c860; }
.hdetail .pjbox.top .pj-msg b { color: #b07a00; }
.hdetail .pjbox.hi .pj-msg b { color: #c0471a; }
.hdetail .pjbox.done { background: linear-gradient(135deg, #eefaf0, #f3f7ff); border-color: #bfe3c6; }
.hdetail .pjbox .pj-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 5px; }
.hdetail .pjbox .pj-chip { background: #fff; border: 1px solid #e6dcf3; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; color: #5a4a70; }
.hdetail .pjbox .pj-chip.mode { border-color: #f0c860; background: #fffbea; }
.hdetail .pjbox .pj-to { margin-left: auto; font-size: 12px; color: #6a5a80; }
.hdetail .pjbox .pj-to b { color: #6a3fb0; }

/* c319: 🚫 빼기 필터 */
.flt-x { border-color: #f0c4b8; background: #fff8f5; }
.flt-x .flt-h small { font-weight: normal; color: #a08070; margin-left: 4px; font-size: 11px; }
.fchip.x.on { background: #d9583a; border-color: #b8432a; }
.flt-x .fxq { flex: 1; min-width: 160px; border: 1px solid #e3cfb0; border-radius: 8px; padding: 3px 8px; font: inherit; font-size: 12px; }

/* c323: 🧭 점검 (AI 가이드) */
.advbtn { position: relative; }
.advbtn .mail-n { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #e0302a; color: #fff; font-style: normal; font-size: 10.5px; line-height: 16px; text-align: center; }
@media (max-width: 600px) { .topbar > .advbtn { width: 32px; height: 32px; font-size: 16px; flex: none; } }
.adv { display: grid; gap: 10px; }
.adv-head { display: grid; gap: 2px; } .adv-head b { font-size: 16px; } .adv-head small { color: #8a7a5c; }
.adv-diag { background: #fff8e8; border: 1px solid #ecd9ad; border-radius: 12px; padding: 8px 10px; display: grid; gap: 4px; font-size: 13px; }
.adv-sec { font-weight: 900; color: #a2671c; font-size: 13px; margin-top: 2px; }
.adv-top { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; counter-reset: adv; }
.adv-top li { counter-increment: adv; display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: #fff; border: 1.5px solid #e8a33a; border-radius: 12px; padding: 8px 10px; }
.adv-top li::before { content: counter(adv); grid-row: 1 / 3; width: 24px; height: 24px; border-radius: 50%; background: #e8a33a; color: #fff; font-weight: 900; display: grid; place-items: center; }
.adv-top li b { font-size: 14px; } .adv-top li small { grid-column: 2; color: #6d6150; font-size: 12px; }
.adv-top li .btn { grid-column: 3; grid-row: 1 / 3; }
.adv-list { display: grid; gap: 6px; }
.adv-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; background: #fffdf7; border: 1px solid #efe2c4; border-radius: 10px; padding: 6px 8px; }
.adv-ic { font-size: 17px; text-align: center; } .adv-t { display: grid; } .adv-t b { font-size: 13px; } .adv-t small { color: #7a6d58; font-size: 11.5px; }
.adv-ok { margin: 0; padding: 10px; border-radius: 10px; background: #eef9ee; color: #2f6b34; }
/* c324: 🧭 점검 — 거래소 · 돌 구분 */
.adv-sub { font-size: 12px; font-weight: 800; color: #6d5a3a; margin: 2px 0 -2px; }
.adv-note { margin: 0; font-size: 12.5px; color: #6d6150; background: #fbf6ea; border-radius: 10px; padding: 7px 10px; }
.adv-cheap { color: #1f8a3a; } .adv-dear { color: #c0392b; font-style: normal; }
.adv-stones { display: grid; gap: 6px; }
.adv-sg { border-radius: 10px; padding: 7px 9px; border: 1px solid #ecdcb8; background: #fffdf7; display: grid; gap: 4px; }
.adv-sg.adv-evo { border-color: #9fd3a8; background: #f2fbf3; } .adv-sg.adv-rare { border-color: #d8b6f0; background: #faf4ff; }
.adv-sg.adv-mix { border-color: #a9cdf0; background: #f3f8ff; } .adv-sg.adv-spare { border-color: #e2d6bd; }
.adv-sgh { display: flex; align-items: center; gap: 8px; } .adv-sgh small { color: #7a6d58; flex: 1; }
.adv-chips { display: flex; flex-wrap: wrap; gap: 4px; } .adv-chips span { font-size: 11.5px; background: #fff; border: 1px solid #e6d8b8; border-radius: 10px; padding: 1px 7px; }
.adv-why { color: #8a7a5c; font-size: 11px; }

/* ================= c326: 👁 사흉 잔영 — 그림자 필터 (원본 그림 그대로 + 어둡게 · 테두리 빛 · 잔상 2겹) ================= */
img.zan { --zc: 170, 90, 255; animation: zanDrift 3.2s ease-in-out infinite; opacity: .93; }
img.zan-hundun { --zc: 176, 92, 255; }
img.zan-qiongqi { --zc: 60, 230, 210; }
img.zan-taowu { --zc: 255, 50, 60; }
img.zan-taotie { --zc: 214, 170, 70; }
@keyframes zanDrift {
  0%, 100% { filter: brightness(.5) saturate(.55) contrast(1.25) drop-shadow(0 0 3px rgba(var(--zc), .95)) drop-shadow(0 0 14px rgba(var(--zc), .55)) drop-shadow(-9px 2px 0 rgba(var(--zc), .22)) drop-shadow(9px -2px 0 rgba(var(--zc), .14)); transform: translate(0, 0); }
  50% { filter: brightness(.45) saturate(.5) contrast(1.3) drop-shadow(0 0 4px rgba(var(--zc), 1)) drop-shadow(0 0 20px rgba(var(--zc), .7)) drop-shadow(-14px -3px 0 rgba(var(--zc), .16)) drop-shadow(13px 3px 0 rgba(var(--zc), .2)); transform: translate(0, -4px); }
}
.u-img img.zan.flip { transform: scaleX(-1); }
/* 페이지 전환: 흩어졌다 모이기 */
img.zan.zan-out { animation: zanOut .9s ease-in forwards; }
img.zan.zan-in { animation: zanIn 1.1s ease-out; }
@keyframes zanOut { to { opacity: 0; filter: brightness(.2) blur(10px) drop-shadow(0 0 30px rgba(var(--zc), 1)); transform: scale(1.25) translateY(-10px); } }
@keyframes zanIn { from { opacity: 0; filter: brightness(2) blur(14px) drop-shadow(0 0 40px rgba(var(--zc), 1)); transform: scale(.6); } }
/* 레이드 제단: 사흉 잔영 탭 */
.abyss-hero { background: radial-gradient(ellipse at 50% 60%, #2a0d3a 0%, #0b0610 70%); border-radius: 12px; padding: 10px 6px; margin: 6px 0; overflow: hidden; }
.abyss-row { display: flex; align-items: center; justify-content: center; gap: 2px; }
.abyss-pg { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; color: #eee; font-size: 12px; position: relative; }
.abyss-pg img { width: 100%; max-width: 92px; aspect-ratio: 1; object-fit: contain; }
.abyss-pg b { margin-top: 2px; }
.abyss-pg small { opacity: .75; }
.abyss-pg .ab-n { position: absolute; top: 0; left: 4px; font-weight: 700; color: #c9a; font-size: 11px; }
.ab-arrow { color: #a77; font-style: normal; font-size: 18px; }
.abyss-drop td, .abyss-drop th { text-align: center; }
.abyss-drop td:first-child { text-align: left; }
/* c326: 💬 사흉 잔영 파티 채팅 (전투 중 · 폰에서 한 번 눌러 보내는 빠른 말) */
.bt-chat { position: relative; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 2px 10px; font-size: 15px; cursor: pointer; font-family: inherit; }
.bt-chat i { position: absolute; top: -6px; right: -6px; background: #e33; color: #fff; font-style: normal; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; text-align: center; }
.bt-chatbox { position: absolute; z-index: 30; right: 8px; top: 44px; width: min(360px, calc(100% - 16px)); background: rgba(12,8,20,.94); border: 1px solid rgba(180,120,255,.45); border-radius: 12px; padding: 8px; color: #eee; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.btc-list { max-height: 120px; overflow-y: auto; font-size: 13px; line-height: 1.45; margin-bottom: 6px; }
.btc-list .btc-mine b { color: #9fe; } .btc-list b { color: #fc8; } .btc-list .sys { color: #aaa; font-size: 12px; }
.btc-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.btc-quick button { flex: 1 1 calc(50% - 5px); min-height: 34px; font-size: 13px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 4px 6px; cursor: pointer; }
.btc-quick button:active { background: rgba(180,120,255,.35); }
.btc-in { display: flex; gap: 5px; }
.btc-in input { flex: 1; min-width: 0; font-size: 16px; padding: 6px 8px; border-radius: 8px; border: 1px solid #555; background: #111; color: #fff; }
.unit .btc-bub { position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%); background: #fff; color: #222; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 10px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.4); animation: btcPop .25s ease-out; pointer-events: none; }
.unit .btc-bub::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
@keyframes btcPop { from { transform: translate(-50%, -80%) scale(.7); opacity: 0; } }
@media (max-width: 600px) { .bt-chatbox { left: 8px; right: 8px; width: auto; top: 40px; } .btc-list { max-height: 90px; } }

/* c327: 성향 배지 (아크링 상세) */
.prof-b { display: inline-block; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .92em; white-space: nowrap; }

/* c327: 📕 스킬북 미리보기 · 교체 */
.skc { border: 1px solid color-mix(in srgb, var(--ec) 55%, transparent); border-left: 4px solid var(--ec); border-radius: 8px; padding: 6px 8px; margin: 4px 0; background: rgba(0,0,0,.18); text-align: left; }
.skc-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.skc-st { font-size: .88em; opacity: .9; margin-top: 2px; }
.skc p { margin: 4px 0 0; font-size: .86em; opacity: .85; white-space: normal; }
.sk-aoe { color: #ff7a9a; } .sk-aoe.ally { color: #6fe3b0; }
.skb-pop { text-align: left; max-width: 460px; }
.skb-h { font-size: 1.05em; margin-bottom: 4px; }
.skb-mine { display: flex; flex-direction: column; gap: 4px; }
.skb-opt { display: flex; gap: 6px; align-items: flex-start; cursor: pointer; border-radius: 8px; padding: 2px; }
.skb-opt input { margin-top: 10px; }
.skb-opt .skc { flex: 1; min-width: 0; }
.skb-opt.on .skc { outline: 2px solid #ffcf5a; background: rgba(255, 207, 90, .12); }
.small-note.warn { color: #ff9a7a; }
.dex-prof { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; } .dex-prof > span { opacity: .8; margin-right: 4px; }
.bt-giveup.on { background: rgba(255, 90, 90, .35); border-color: #ff7a7a; }
#bt-giveup-n { font-style: normal; font-size: 10px; margin-left: 2px; }

/* c327: 기믹 상태 칩 · 가운데 띠 · 로그 강조 */
.bt-gim { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 94%; pointer-events: none; }
.bt-gim span { background: rgba(20, 10, 30, .78); border: 1px solid rgba(200, 160, 255, .45); color: #f3e8ff; border-radius: 10px; padding: 1px 8px; font-size: 12px; white-space: nowrap; }
.bt-gim span.warn { border-color: #ff7a5a; color: #ffd2c2; animation: gimPulse 1s ease-in-out infinite; }
@keyframes gimPulse { 50% { background: rgba(120, 20, 10, .85); } }
.gim-banner { position: absolute; left: 50%; top: 34%; transform: translateX(-50%); z-index: 30; max-width: 88%; text-align: center; padding: 8px 16px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(40,0,20,.0), rgba(40,0,30,.88) 12%, rgba(40,0,30,.88) 88%, rgba(40,0,20,0)); color: #ffe7f0; font-weight: 700; font-size: 15px;
  text-shadow: 0 0 6px #ff3a6a; pointer-events: none; animation: gimBan 2.6s ease-out forwards; }
@keyframes gimBan { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
#bt-log div.gim { color: #ffb3d1; font-weight: 600; }
@media (max-width: 600px) { .bt-gim { top: 36px; } .bt-gim span { font-size: 11px; padding: 0 6px; } .gim-banner { font-size: 13px; } }

/* c327: 👍 기술 학당 용도별 추천 */
.sk-rec { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.sk-rec span, .sk-rec-note span { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 9px; line-height: 18px; white-space: nowrap; }
.rec-h { background: #e7f6e4; color: #2f7a24; border: 1px solid #9fd48f; }
.rec-r { background: #f3e6ff; color: #6b2fa0; border: 1px solid #c79bf0; }
.rec-p { background: #ffe9e3; color: #b0341a; border: 1px solid #f0a690; }
.sk-card.rec { box-shadow: 0 0 0 2px rgba(255, 196, 60, .55); }
/* c329: 💝 후원형 */
.chg-intro { font-size: 13px; color: #445; margin: 4px 0 6px; line-height: 1.5; }
.chg-intro small { color: #789; }
.chg-steps { margin: 4px 0 8px 18px; padding: 0; font-size: 12.5px; color: #445; line-height: 1.6; }
.chg-bank a.btn { text-decoration: none; }
.chg-pack span { font-size: 12px; }
.cash-item small.ci-src { flex: 0; color: #3d7a4a; font-size: 10.5px; background: #eef8ef; border-radius: 6px; padding: 2px 6px; }
/* c347: 📈 거래소 검색 — 최근 거래 기록 */
.mk-hist { margin: 6px 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 214, 120, .14); border: 1px solid rgba(200, 150, 60, .35); }
.mk-hist > small { color: #8a6a3a; }
.mk-hrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px dashed rgba(200, 150, 60, .25); }
.mk-hrow:first-of-type { border-top: 0; }
.mk-hrow .hench, .mk-hrow img { width: 34px; height: 34px; flex: none; }
.mk-hrow > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-hrow .mk-hp { white-space: nowrap; text-align: right; }
.mk-hrow .mk-hp b { color: #b8741a; }
@media (max-width: 600px) { .mk-hrow { flex-wrap: wrap; } .mk-hrow .mk-hp { width: 100%; text-align: left; padding-left: 42px; } }
/* c350: 👁 사흉 잔영 도전 기록실 · 추천 아크링 */
.ab-rec .abr { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: rgba(40, 20, 60, .08); border: 1px solid rgba(120, 60, 160, .25); }
.ab-rec h4 { margin: 8px 0 6px; font-size: 15px; } .ab-rec h4 small { font-weight: 400; color: #7a6a8a; font-size: 12px; }
.abr-run { padding: 6px 8px; margin: 4px 0; border-radius: 10px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(120, 60, 160, .15); }
.abr-run.won { border-color: #e0a020; background: rgba(255, 220, 120, .25); }
.abr-run .abr-h { font-size: 13px; }
.abr-ms { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.abr-m { display: flex; align-items: center; gap: 6px; } .abr-m > small { color: #6a5a7a; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abr-h1 { position: relative; display: inline-flex; flex-direction: column; align-items: center; width: 44px; }
.abr-h1 img, .abr-h1 .hench { width: 40px; height: 40px; } .abr-h1 i { font-style: normal; font-size: 10px; color: #6a5a7a; } .abr-h1 em { position: absolute; right: -2px; top: -2px; font-style: normal; font-size: 11px; }
.abr-rec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abr-col h4 { margin: 2px 0 4px; font-size: 14px; }
.abr-c { display: flex; gap: 6px; padding: 6px; margin-bottom: 4px; border-radius: 10px; background: rgba(255, 255, 255, .6); }
.abr-c img, .abr-c .hench { width: 46px; height: 46px; flex: none; } .abr-c > div { min-width: 0; } .abr-c p { margin: 2px 0; font-size: 12px; line-height: 1.35; } .abr-c .abr-r { color: #c08a10; } .abr-src { color: #8a7a9a; font-size: 11px; }
@media (max-width: 700px) { .abr-rec { grid-template-columns: 1fr; } }
.abr-g { margin-bottom: 6px; } .abr-gt { display: block; font-weight: 700; color: #5a4a6a; margin: 4px 0 2px; } .abr-gt i { font-style: normal; font-weight: 400; color: #9a8aaa; font-size: 11px; }
.abr-jin { color: #b06ad0; margin-left: 2px; }
/* c352: 사흉 추천표 — 등급 × 포지션 한눈에 */
.abt-wrap { overflow-x: auto; margin-top: 6px; }
.abt { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; min-width: 600px; }
.abt thead th { padding: 8px 6px; border-radius: 10px; font-size: 16px; color: #fff; text-align: center; }
.abt thead th small { display: block; font-size: 11px; font-weight: 400; opacity: .9; }
.abt thead th:first-child { background: none; width: 76px; }
.abt th.abt-dealer { background: linear-gradient(135deg, #d9534f, #b0302c); }
.abt th.abt-tank { background: linear-gradient(135deg, #4a7bd0, #2c55a0); }
.abt th.abt-healer { background: linear-gradient(135deg, #3fae6a, #23804a); }
.abt tbody th { text-align: left; padding: 6px 8px; border-radius: 10px; font-size: 15px; background: rgba(255,255,255,.7); color: #4a3a5a; }
.abt tbody th small { display: block; font-size: 10px; font-weight: 400; color: #8a7a9a; }
.abt-r-myth th { box-shadow: inset 4px 0 0 #c86ae0; } .abt-r-legend th { box-shadow: inset 4px 0 0 #e0a020; }
.abt-r-jin th { box-shadow: inset 4px 0 0 #9a6ad0; } .abt-r-divine th { box-shadow: inset 4px 0 0 #2aa59a; }
.abt td { vertical-align: top; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid rgba(120,60,160,.15); }
.abt td.abt-none { text-align: center; vertical-align: middle; color: #b0a4bc; font-size: 18px; background: rgba(255,255,255,.35); }
.abt-top { display: flex; gap: 6px; align-items: flex-start; }
.abt-top img, .abt-top .hench { width: 52px; height: 52px; flex: none; }
.abt-top > div { min-width: 0; } .abt-top b { font-size: 14px; display: block; }
.abt-key { display: inline-block; white-space: nowrap; margin: 3px 0 2px; padding: 2px 8px; border-radius: 999px; background: #3a2a4a; color: #ffd866; font-weight: 700; font-size: 12px; }
.abt-sub { display: block; font-size: 11px; color: #7a6a8a; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abt-el { display: block; font-size: 11px; color: #8a7a9a; } .abt-el.up { color: #2f8a4e; font-weight: 700; } .abt-el.dn { color: #c0504a; }
.abt-more { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(120,60,160,.2); }
.abt-more span { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: #5a4a6a; background: rgba(120,60,160,.08); border-radius: 999px; padding: 1px 6px 1px 1px; }
.abt-more img, .abt-more .hench { width: 22px; height: 22px; }
.mk-sq { width: 100%; box-sizing: border-box; margin: 4px 0 6px; }   /* c362: 올리기 검색 */
/* c363: 도감 검색 */
.dex-sq { width:100%; box-sizing:border-box; margin:4px 0 6px; }
/* c364: 던전 런 이어하기 */
.dg-run { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 12px; margin:0 0 8px; border-radius:12px; background:linear-gradient(90deg,#2a1d48,#1c2a44); color:#fff; border:1px solid #6b5bd6; }
.dg-run b { font-size:1.05em; }
.dg-run .btn { margin-left:auto; }
.dg-run .btn + .btn { margin-left:0; }
.dg-run .dg-run-n { flex-basis:100%; opacity:.75; }
/* c366: 도감 미발견 힌트 · 희귀도 필터 · 믹스 결과 실루엣 */
.dex .dex-feel { color:#7a6a9a; }
.dex.dex-rare .dex-q, .mix-sil .dex-q { width:56px; height:56px; margin:4px auto; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:30px; font-weight:800; color:#fff; background:radial-gradient(circle at 35% 30%, #7a6ad8, #2a1d48); box-shadow:0 0 12px rgba(150,120,255,.45); }
.dex.dex-rare.r3 .dex-q, .mix-sil.r3 .dex-q { background:radial-gradient(circle at 35% 30%, #ffb347, #8a4b00); box-shadow:0 0 12px rgba(255,170,60,.5); }
.dex.dex-rare.r5 .dex-q { background:radial-gradient(circle at 35% 30%, #6ae0d0, #0b4b52); }
.mix-sil { display:flex; align-items:center; gap:8px; margin:0 0 6px; }
.mix-sil img { width:56px; height:56px; filter: brightness(0) opacity(.3) !important; animation:none !important; }
.mix-sil small { color:#7a6a9a; }
.mix-psil { display:flex; flex-direction:column; align-items:center; gap:4px; }
.mix-psil img { width:96px; height:96px; filter: brightness(0) opacity(.28) !important; animation:none !important; }
.mix-psil small { color:#7a6a9a; text-align:center; line-height:1.3; }


/* c366: 📙 고대 비전서 */
.stt.anc-focus { background: #5a4200; color: #ffe27a; box-shadow: 0 0 6px #ffcc3388; animation: mark-blink .7s ease-in-out infinite alternate; }
.stt.anc-brand { background: #5a0f22; color: #ff9ab0; }
.stt.anc-fort { background: #12365a; color: #bfe4ff; box-shadow: 0 0 6px #7ac8ff88; }
.stt.anc-fortby { background: #12365a; color: #bfe4ff; }
.anc-t { color: #f3c64e; text-shadow: 0 0 6px #e8b84a88; }
.skc.anc { border-color: #e8b84a; box-shadow: 0 0 0 1px #e8b84a55, 0 0 14px #e8b84a33 inset; background-image: linear-gradient(135deg, #e8b84a14, transparent 60%); }
.btn.anc-btn { border-color: #e8b84a; color: #f3d27a; box-shadow: 0 0 8px #e8b84a44; }
.dmg.pow { color: #ffe27a; -webkit-text-stroke: 2px #8a4a00; font-size: 52px; text-shadow: 0 0 12px #ffcc33, 0 3px 0 rgba(0,0,0,.4); animation: dmg-pow 1.1s forwards; }
@keyframes dmg-pow { 0% { transform: translateX(-50%) scale(2.2); opacity: 0; } 12% { transform: translateX(-50%) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-50%) translateY(-40px) scale(1); opacity: 0; } }
@media (max-width: 700px) { .dmg.pow { font-size: 34px; } }

/* c367: 📜 1장 엔딩 시네마틱 */
.cine.chapter-end .cine-bg { background: #000; }
.cine-shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease; }
.cine-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z0)) translate(var(--x0), var(--y0)); transition: transform var(--dur) cubic-bezier(.25,.6,.35,1); }
.cine-shot.in { opacity: 1; }
.cine-shot.in img { transform: scale(var(--z1)) translate(var(--x1), var(--y1)); }
.cine-shot.slow { transition: opacity 2.2s ease; }
.cine-shot.out { opacity: 0; transition: opacity .9s ease; }
.cine-shot::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75)); pointer-events: none; }
.cine.chapter-end .cine-cap.ce { bottom: 9%; top: auto; text-align: center; }
.ce-line { display: inline-block; word-break: keep-all; max-width: 92vw; font-family: 'Jua', sans-serif; font-size: clamp(18px, 2.6vw, 30px); color: #f4ead8; text-shadow: 0 2px 10px #000, 0 0 2px #000; padding: 8px 20px; background: linear-gradient(90deg, transparent, rgba(0,0,0,.55), transparent); animation: ce-in .9s ease both; }
.cine-cap.dim .ce-line { color: #c9c0b4; }
.cine-cap.quote .ce-line { color: #ffe9a0; letter-spacing: 1px; }
.cine-cap.red .ce-line { color: #ff8a8a; text-shadow: 0 0 14px #a00010, 0 2px 8px #000; }
@keyframes ce-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.ce-back { position: absolute; inset: 0; opacity: 0; transition: opacity 1s, background 1.2s; background: radial-gradient(ellipse at 50% 45%, #2a1440 0%, #0c0614 55%, #000 100%); }
.ce-back.in { opacity: 1; }
.ce-back.red { background: radial-gradient(ellipse at 50% 45%, #4a1206 0%, #140508 55%, #000 100%); }
.ce-back.out { opacity: 0; }
.ce-beast { position: absolute; transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: opacity .6s, transform .7s, left .9s cubic-bezier(.3,.7,.3,1), top .9s cubic-bezier(.3,.7,.3,1), width .9s cubic-bezier(.3,.7,.3,1), height .9s cubic-bezier(.3,.7,.3,1); filter: brightness(.8) saturate(1.1) drop-shadow(0 0 22px var(--c)); }
.ce-beast img { width: 100%; height: 100%; object-fit: contain; animation: ce-float 3.2s ease-in-out var(--d, 0s) infinite alternate; }
.ce-beast.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ce-beast.final { filter: brightness(1) saturate(1.25) drop-shadow(0 0 40px var(--c)) drop-shadow(0 0 80px #ff3000); }
.ce-beast.shatter { opacity: 0; transform: translate(-50%, -50%) scale(1.3); filter: brightness(3) blur(8px) drop-shadow(0 0 30px var(--c)); transition: opacity .5s, transform .5s, filter .5s; }
@keyframes ce-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.cine.chapter-end .cine-cap.title { top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.ce-title { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: ce-in 1.4s ease both; }
.ce-title small { font-size: clamp(13px, 1.6vw, 18px); color: #b9a98a; letter-spacing: 6px; }
.ce-title b { font-family: 'Jua', sans-serif; font-size: clamp(30px, 5vw, 60px); color: #ffe7a8; text-shadow: 0 0 24px #c08020, 0 3px 0 #3a2000; }
.ce-title i { font-style: normal; font-size: clamp(15px, 2vw, 22px); color: #ff9a9a; text-shadow: 0 0 12px #800010; animation: ce-in 1.4s .8s ease both; }

/* c368: 🎬 영상 컷신 */
.cine.movie .cine-bg { background: #000; }
.cine-movie { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; transition: opacity .8s; }
.cine-movie.fade { opacity: 0; }
.cine-mskip { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 6; color: #ddd; font-size: 13px; background: rgba(0,0,0,.45); padding: 5px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.cine.movie .cine-cap.title { top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; }
/* c376: 한 번에 하기 버튼 줄 */
.pot-all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.pot-all small { color: #8a6a40; font-size: 11px; }
/* c378: 기증 목록 맨 아래 카드가 아래 고정 줄(선택 n마리 → 기증하기)에 가려지던 것 */
.ld-list { padding-bottom: 96px; }
.mk-form .mk-sugg { align-self: flex-start; margin: -2px 0 4px; }
/* c378: 연구소 기증 머리 줄 압축 — 포인트를 한 줄로, 안내문은 두 줄까지만 */
.ld-pts { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.ld-pts b { font-size: 18px; }
.ld-help { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0; }
.ld-help:hover, .ld-help:active { -webkit-line-clamp: unset; }
/* c379: 🔎 아크링 고르기 창 (먹이기·합성 대상 드롭다운 대신) */
.ld-pickbtn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1.5px solid #e0a020; background: #fffaf0; cursor: pointer; max-width: 100%; text-align: left; }
.ld-pickbtn img { width: 40px; height: 40px; object-fit: contain; }
.ld-pickbtn span { display: flex; flex-direction: column; min-width: 0; }
.ld-pickbtn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-pickbtn small { color: #8a6a40; font-size: 11px; }
.ld-pickbtn i { font-style: normal; font-size: 12px; color: #c07010; margin-left: 4px; white-space: nowrap; }
.hpick-ov { position: fixed; inset: 0; z-index: 58; background: rgba(10,14,24,.6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.hpick { width: min(720px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: #fff8ec; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.4); overflow: hidden; }
.hpick-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #2a2540; color: #fff; }
.hpick-x { border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; }
.hpick-note { padding: 6px 14px 0; color: #8a6a40; }
.hpick-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 12px; }
.hpick-top .fsearch { flex: 1; min-width: 140px; }
.hpick-n { color: #8a6a40; font-size: 12px; }
.hpick-grid { overflow-y: auto; padding: 4px 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.hpick-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid rgba(120,90,60,.25); background: #fff; cursor: pointer; }
.hpick-c.on { border-color: #e07a20; box-shadow: 0 0 0 2px #e07a20 inset; background: #fff1dc; }
.hpick-c img { width: 56px; height: 56px; object-fit: contain; }
.hpick-c b { font-size: 12px; text-align: center; line-height: 1.2; }
.hpick-c small { font-size: 11px; color: #8a6a40; }
.hp-slot { font-style: normal; display: inline-block; min-width: 14px; padding: 0 3px; margin-right: 2px; border-radius: 6px; background: #e07a20; color: #fff; font-size: 10px; }
/* c379: 🐉 신수 탭 — 고르기 줄 + 고른 신수의 길 */
.dv-pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; }
.dv-chip { flex: 1 0 104px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 14px; border: 1.5px solid rgba(120,90,60,.25); background: #fffaf0; cursor: pointer; position: relative; }
.dv-chip img { width: 56px; height: 56px; object-fit: contain; }
.dv-chip b { font-size: 13px; }
.dv-chip.on { border-color: #e07a20; box-shadow: 0 0 0 2px #e07a20 inset; background: #fff1dc; }
.dv-b { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: #efe4d2; color: #7a5a30; }
.dv-b.go { background: #e8462e; color: #fff; }
.dv-b.own { background: #dff0e0; color: #2f7a3a; }
.dv-detail { border-radius: 16px; background: linear-gradient(180deg, #2a2540, #1d1a2e); color: #f3ead8; padding: 12px; }
.dv-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dv-hd img { width: 84px; height: 84px; object-fit: contain; }
.dv-hd b { font-size: 20px; }
.dv-hd small { display: block; color: #c9bba0; margin-top: 4px; }
.dv-path { display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; }
.dv-arr { font-style: normal; align-self: center; color: #8a7a9a; font-size: 18px; }
.dv-step { flex: 1 1 150px; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.dv-step.ready { border-color: #ffb040; box-shadow: 0 0 10px rgba(255,170,60,.35); }
.dv-step.has { border-color: #6fd08a; }
.dv-step small { color: #c9bba0; font-size: 11px; }
.dv-step small b { color: #fff; }
.dv-tag { font-size: 18px; font-weight: 800; color: #ffd36a; }
.dv-step.s2 .dv-tag { color: #9fd0ff; } .dv-step.s3 .dv-tag { color: #ff9fd8; }
.dv-step .btn { margin-top: auto; }
.dv-mine { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dv-mine .asc-h { background: rgba(255,255,255,.05); border-radius: 10px; }
.dv-rules { margin-top: 8px; }
@media (max-width: 560px) { .dv-arr { display: none; } .dv-step { flex-basis: 45%; } .dv-chip { flex-basis: 84px; } }
/* c379: 🛡 장비 고르기 창 */
.eqpick { width: min(640px, 100%); }
.eq-cur { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 14px 0; font-size: 13px; }
.eq-cur .iic, .eq-cur img { width: 26px; height: 26px; }
.eq-list { overflow-y: auto; padding: 4px 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.eq-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid rgba(120,90,60,.22); background: #fff; text-align: left; cursor: pointer; width: 100%; }
.eq-row:hover { border-color: #e0a020; }
.eq-row.best { border-color: #4caf50; background: #f3fbf1; }
.eq-row.cur { border-color: #e07a20; background: #fff1dc; }
.eq-ic { flex: 0 0 44px; display: flex; justify-content: center; }
.eq-ic .iic { width: 44px; height: 44px; }
.eq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eq-main b { font-size: 14px; }
.eq-desc { color: #6a5a44; font-size: 12px; }
.eq-why { display: flex; flex-wrap: wrap; gap: 4px; }
.eq-why i { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #e9f5e6; color: #2f7a3a; }
.eq-why i.no { background: #f6e6e2; color: #a04030; }
.eq-tag { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 8px; margin-right: 5px; vertical-align: 1px; }
.eq-tag.best { background: #4caf50; color: #fff; } .eq-tag.cur { background: #e07a20; color: #fff; }
.eq-n { color: #8a6a40; font-size: 12px; white-space: nowrap; }
/* c379: 🛡 장비·기술 창 (왼쪽 캐릭터 / 오른쪽 가방) */
.hpick.gw { width: min(1080px, 100%); max-height: min(92vh, 860px); }
.gw-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 0; flex: 1; }
.gw-l { overflow-y: auto; padding: 12px 14px 16px; border-right: 1px solid rgba(120,90,60,.18); min-width: 0; }
.gw-r { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 10px 12px 12px; background: #f7eedf; }
.gw-hero { display: flex; gap: 12px; align-items: center; }
.gw-hero .mcw.big { width: 132px; height: 132px; flex: none; margin: 0 0 10px; }
.gw-hero .mcw.big > img, .gw-hero .mcw.big > .himg, .gw-hero .mcw.big img.big { width: 132px !important; height: 132px !important; object-fit: contain; }
.gw-hero .mcw.big .mcircle { width: 115%; bottom: -12%; }
.gw-id { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gw-id > b { font-size: 18px; }
.gw-id > small { color: #7a5a30; }
.gw-st { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.gw-st span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border-radius: 10px; background: #f3e7d3; font-size: 11px; color: #7a5a30; }
.gw-st b { font-size: 16px; color: #3a2a18; }
.gw-st span.up { background: #e3f3e1; } .gw-st span.up b { color: #2f7a3a; }
.gw-st span small { font-size: 10px; color: #2f7a3a; }
.gw-slots { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.gw-slot { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(120,90,60,.22); cursor: pointer; }
.gw-slot.on { border-color: #e07a20; box-shadow: 0 0 0 2px rgba(224,122,32,.25); }
.gw-sl { writing-mode: vertical-rl; font-size: 11px; color: #8a6a40; letter-spacing: 2px; }
.gw-ic { width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #2a2540; overflow: hidden; position: relative; }
.gw-ic > * { max-width: 46px; max-height: 46px; }
.gw-empty { font-style: normal; color: #9a8fb8; font-size: 22px; }
.gw-sm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-sm b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-sm small { font-size: 12px; color: #8a6a40; }
.gw-sb { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.gw-aura { display: block; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.gw-aura.aura-fire, .gw-aura.aura-frost, .gw-aura.aura-gold, .gw-aura.aura-sakura, .gw-aura.aura-shadow, .gw-aura.aura-rainbow, .gw-aura.aura-clover, .gw-aura.aura-jackpot { position: relative; inset: auto; transform: none; }
.gw-aura.aura-fire { background: radial-gradient(circle, #ffcf6a 0 25%, #ff6a2a 55%, transparent 72%); }
.gw-aura.aura-frost { background: radial-gradient(circle, #e8fbff 0 25%, #7fd0ff 55%, transparent 72%); }
.gw-aura.aura-gold { background: radial-gradient(circle, #fff3b0 0 25%, #ffc83a 55%, transparent 72%); }
.gw-aura.aura-sakura { background: radial-gradient(circle, #ffe6f0 0 25%, #ff9cc5 55%, transparent 72%); }
.gw-aura.aura-shadow { background: radial-gradient(circle, #8a70c0 0 25%, #3a2860 55%, transparent 72%); }
.gw-aura.aura-rainbow { background: conic-gradient(#ff6a6a, #ffd36a, #7ee08a, #6ac8ff, #b48aff, #ff6a6a); -webkit-mask: radial-gradient(circle, transparent 30%, #000 32% 66%, transparent 70%); mask: radial-gradient(circle, transparent 30%, #000 32% 66%, transparent 70%); }
.gw-aura.aura-clover { background: radial-gradient(circle, #e8ffe0 0 25%, #5ac85a 55%, transparent 72%); }
.gw-aura.aura-jackpot { background: radial-gradient(circle, #fff6c0 0 25%, #e8b020 55%, transparent 72%); }
.gw-sec { margin: 14px 0 6px; font-weight: 700; color: #4a3520; }
.gw-sec small { font-weight: 400; color: #8a6a40; margin-left: 4px; }
.gw-fx { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-fxc { display: flex; flex-direction: column; padding: 5px 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(120,90,60,.2); min-width: 96px; }
.gw-fxc small { font-size: 11px; color: #8a6a40; }
.gw-fxc b { font-size: 17px; color: #c0501a; }
.gw-fxc.d b { color: #2a6ab0; } .gw-fxc.s b { color: #2f7a3a; } .gw-fxc.c b { color: #b07a10; }
.gw-sks { display: flex; flex-direction: column; gap: 4px; }
.gw-sk { border-radius: 10px; background: #fff; border: 1px solid rgba(120,90,60,.18); }
.gw-sk summary { display: flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer; list-style: none; }
.gw-sk summary::-webkit-details-marker { display: none; }
.gw-sk summary::after { content: '▾'; margin-left: 4px; color: #b09a7a; }
.gw-sk[open] summary::after { content: '▴'; }
.gw-sk summary b { font-size: 14px; }
.gw-skp { margin-left: auto; font-size: 12px; color: #7a5a30; white-space: nowrap; }
.gw-sk .skc { margin: 0 8px 8px; }
.gw-skt { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 8px; color: #fff; background: #8a7a6a; }
.gw-skt.ult { background: #b03ac0; } .gw-skt.sig { background: #e07a20; } .gw-skt.anc { background: #c09020; }
.gw-tabs { margin-bottom: 6px; }
.gw-sub { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.gw-grid { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; align-content: start; padding: 2px; }
.gw-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 3px 5px; border-radius: 12px; border: 1.5px solid rgba(120,90,60,.22); background: #fff; cursor: pointer; }
.gw-t > :first-child { width: 48px; height: 48px; }
.gw-t img, .gw-t svg { max-width: 48px; max-height: 48px; }
.gw-t small { font-size: 11px; line-height: 1.2; text-align: center; color: #4a3520; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gw-t.best { border-color: #5aa860; }
.gw-t.on { border-color: #e07a20; box-shadow: 0 0 0 2px #e07a20 inset; background: #fff1dc; }
.gw-tb, .gw-tn, .gw-tp { position: absolute; font-style: normal; font-size: 10px; border-radius: 8px; padding: 0 5px; line-height: 16px; }
.gw-tb { top: 3px; left: 3px; background: #e3f3e1; }
.gw-tn { top: 3px; right: 3px; background: #2a2540; color: #fff; }
.gw-tp { top: 40px; right: 6px; background: #e07a20; color: #fff; }
.gw-cmp { flex: none; margin-top: 8px; padding: 10px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(224,122,32,.45); max-height: 46%; overflow-y: auto; }
.gw-ch { display: flex; gap: 10px; align-items: flex-start; }
.gw-ch > :first-child { width: 44px; height: 44px; flex: none; }
.gw-ch > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gw-ch small { color: #7a5a30; font-size: 12px; }
.gw-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.gw-tbl th { font-size: 11px; color: #8a6a40; font-weight: 400; text-align: right; padding: 0 6px; }
.gw-tbl td { padding: 4px 6px; border-top: 1px solid #f0e4d0; text-align: right; white-space: nowrap; }
.gw-tbl td:first-child { text-align: left; }
.gw-tbl td:nth-child(3) { color: #b09a7a; text-align: center; }
.gw-tbl tr.up b, .gw-tbl tr.up .gw-d { color: #2f8a3a; }
.gw-tbl tr.dn b, .gw-tbl tr.dn .gw-d { color: #c83a2a; }
.gw-d { font-weight: 700; font-size: 12px; }
.gw-cb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gw-cb .btn.primary { flex: 1; }
.warn-t { color: #b06010; font-size: 11px; }
/* 아크링 상세: 장비·오라·기술 요약 카드 (누르면 장비·기술 창) */
.hd-gear { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0; padding: 6px 10px; border-radius: 14px; border: 1.5px solid rgba(120,90,60,.25); background: #fffaf0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.hd-gear:hover { border-color: #e07a20; }
.hd-gear.better { border-color: #5aa860; }
.hg-ic { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #2a2540; overflow: hidden; }
.hg-ic > * { max-width: 36px; max-height: 36px; }
.hg-m { display: flex; flex-direction: column; min-width: 0; }
.hg-m b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-m small { font-size: 11px; color: #8a6a40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-m:first-of-type { flex: 1.4; }
.hg-2 { flex: 1; padding-left: 10px; border-left: 1px solid #eadcc4; }
.hg-go { margin-left: auto; white-space: nowrap; font-size: 13px; font-weight: 700; color: #c06010; }
.hg-go i { font-style: normal; margin-right: 4px; }
@media (max-width: 760px) {
  .hpick.gw { max-height: 94vh; }
  .gw-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
  .gw-l { border-right: 0; border-bottom: 1px solid rgba(120,90,60,.18); overflow: visible; }
  .gw-r { min-height: 0; }
  .gw-grid { flex: none; overflow: visible; min-height: 0; }
  .gw-hero .mcw.big, .gw-hero .mcw.big > img, .gw-hero .mcw.big img.big { width: 100px !important; height: 100px !important; }
  .gw-cmp { max-height: none; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -6px 18px rgba(60,40,20,.18); }
  .gw-cmp .eq-why, .gw-ch small { font-size: 11px; }
  .hd-gear { flex-wrap: wrap; }
  .hg-2 { display: none; }
  .hg-go { width: 100%; text-align: right; }
}

.gw-nm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gw-nm b { font-size: 18px; }
.gw-skw > summary { cursor: pointer; list-style: none; }
.gw-skw > summary::-webkit-details-marker { display: none; }
.gw-skw > summary::after { content: ' ▾'; color: #b09a7a; }
.gw-skw[open] > summary::after { content: ' ▴'; }
/* c379: 아크링 카드 — 🔒⭐✨변이 칩이 🥇순위 배지 밑으로 겹치던 것 · 마법진이 이름(진 · )을 덮던 것 */
.hcard .badges { justify-content: flex-start; gap: 2px; flex-wrap: wrap; }
.hcard .badges .grank-c { position: static; margin-left: auto; }
.hcard .badges .grank-c .grank { display: inline-flex; }
.hcard .badges > * { flex: none; }
.hcard .nm, .hcard .lv, .hcard .cpl, .hcard .gr, .hcard .trt { position: relative; z-index: 1; }
.hcard .mode-pre { color: #b07a1a; text-shadow: none; }
.hcard .badges .mut.mini { padding: 0 3px; font-size: 11px; }
/* c381: 🤝 교환창 */
.trade-card { width: min(980px, 96vw); height: min(92vh, 780px); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; padding: 0 !important; }
.trc-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #2a2540; color: #fff; flex: none; }
.trc-h b { font-size: 17px; } .trc-h span { color: #ffd28a; }
.trc-x { border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; }
.trc-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 10px 12px; flex: none; background: #f7eedf; border-bottom: 1px solid rgba(120,90,60,.2); }
.trc-side { min-width: 0; }
.trade-who { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; font-family: inherit; font-size: 14px; }
.trc-ok { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #3fae4c; color: #fff; }
.trc-wait { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #efe4d2; color: #8a6a40; }
.trade-offer { min-height: 92px; max-height: 190px; overflow-y: auto; display: block; background: #fff; border: 2px dashed var(--line); border-radius: 12px; padding: 6px; }
.trc-side.mine .trade-offer { border-color: #e0a060; }
.trc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.trc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 10px; background: #f6ecdc; font-size: 12px; }
.trc-chip .iic { width: 24px; height: 24px; } .trc-chip i { font-style: normal; color: #c06010; font-weight: 700; }
.trc-chip.money { padding: 3px 10px; font-weight: 700; color: #7a4a10; background: #fff3cf; }
.trc-hs { display: flex; flex-wrap: wrap; gap: 6px; }
.trc-h1 { width: 96px; display: flex; flex-direction: column; align-items: center; padding: 4px; border-radius: 10px; background: #fffaf0; border: 1px solid rgba(120,90,60,.2); }
.trc-h1 img { width: 52px; height: 52px; object-fit: contain; } .trc-h1 b { font-size: 12px; } .trc-h1 small { font-size: 10px; color: #8a6a40; }
.trc-empty { color: #a08a6a; font-size: 12px; text-align: center; margin: 22px 0; }
.trade-arrow { align-self: center; font-size: 26px; color: var(--accent2); }
.trc-pick { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 12px 0; }
.trc-tabs { flex: none; margin-bottom: 6px; }
.trc-pane { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.trc-pane.hidden { display: none; }
.trc-tool { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; position: sticky; top: 0; background: var(--cream, #fff8ec); z-index: 1; padding-bottom: 4px; }
.trc-tool .fsearch { flex: 1 1 160px; min-width: 120px; }
.trade-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: none; overflow: visible; padding-bottom: 8px; }
.trade-pick .hpick-c { position: relative; }
.trade-pick .hpick-c img { width: 52px; height: 52px; }
.trc-st { position: absolute; left: 4px; top: 3px; font-style: normal; font-size: 12px; }
.tr-eq-pick { display: block; max-height: none; overflow: visible; margin: 0; }
.trc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; padding-bottom: 8px; }
.trc-it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1.5px solid rgba(120,90,60,.2); }
.trc-it.on { border-color: #e07a20; background: #fff1dc; }
.trc-ic { width: 40px; height: 40px; flex: none; } .trc-ic .iic { width: 40px; height: 40px; }
.trc-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trc-nm b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .trc-nm small { font-size: 11px; color: #8a6a40; }
.trc-qty { display: flex; gap: 3px; flex: none; }
.trade-money { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.trade-money label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.trade-money input { width: 160px; }
.trc-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.trc-foot { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(120,90,60,.2); background: #fff8ec; }
.trc-note { flex: 1; color: #8a6a40; }
.trc-foot .btn.big { min-width: 160px; }
@media (max-width: 640px) {
  .trade-card { width: 100vw; height: 94vh; max-height: 94vh; border-radius: 14px; }
  .trc-foot { flex-wrap: wrap; padding: 8px; }
  .trc-foot .trc-note { flex: 1 0 100%; }
  .trc-foot .btn.big { font-size: 16px; padding: 10px; }
  .trc-board { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .trc-board .trade-arrow { display: none; }
  .trade-offer { max-height: 130px; min-height: 70px; }
  .trc-h1 { width: 74px; } .trc-h1 img { width: 40px; height: 40px; } .trc-h1 small:last-child { display: none; }
  .trade-who b { font-size: 12px; }
  .trc-items { grid-template-columns: 1fr; }
  .trade-pick { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .trc-note { font-size: 11px; }
  .trc-foot .btn.big { min-width: 0; flex: 1; }
}
/* c381: 📜 사흉 잔영 도전 기록 카드 */
.ab-rec .abr { background: linear-gradient(180deg, #2a2240, #1d1830); border-color: rgba(180,140,255,.3); color: #efe6ff; }
.ab-rec h4 { color: #ffe1a8; } .ab-rec h4 small { color: #b8a8d8; }
.ab-rec .abr-run { padding: 10px 12px; margin: 8px 0; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.ab-rec .abr-run.won { background: linear-gradient(90deg, rgba(255,200,90,.16), rgba(255,255,255,.04)); border-color: rgba(255,200,90,.55); }
.abr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.abr-medal { font-size: 26px; min-width: 34px; text-align: center; font-weight: 800; color: #d8c8f0; }
.abr-pgs { display: flex; gap: 3px; }
.abr-pgs img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; background: #0e0b18; filter: grayscale(1) brightness(.45); border: 1px solid rgba(255,255,255,.15); }
.abr-pgs img.on { filter: none; border-color: #ffb050; box-shadow: 0 0 6px rgba(255,150,60,.5); }
.abr-res { display: flex; flex-direction: column; min-width: 90px; }
.abr-res b { font-size: 16px; color: #ffd36a; } .abr-run:not(.won) .abr-res b { color: #e8dcff; }
.abr-res small, .abr-stat small { font-size: 11px; color: #b8a8d8; }
.abr-stat { display: flex; flex-direction: column; align-items: center; padding: 2px 12px; border-left: 1px solid rgba(255,255,255,.12); }
.abr-stat b { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
.ab-rec .abr-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-top: 8px; }
.ab-rec .abr-m { display: flex; flex-direction: column; gap: 4px; align-items: stretch; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.22); }
.abr-mh { display: flex; justify-content: space-between; align-items: baseline; }
.abr-mh b { font-size: 13px; color: #fff; } .abr-mh small { color: #ffd36a; font-weight: 700; }
.ab-rec .abr-h1 { width: auto; flex-direction: row; align-items: center; gap: 6px; }
.ab-rec .abr-h1 img { width: 36px; height: 36px; flex: none; object-fit: contain; }
.abr-hm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.abr-hm b { font-size: 12px; color: #efe6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .abr-hm small { font-size: 11px; color: #b8a8d8; font-variant-numeric: tabular-nums; }
.abr-mvp { font-style: normal; font-size: 10px; padding: 0 5px; border-radius: 6px; background: #ffd36a; color: #3a2400; }
.abr-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 2px; }
.abr-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a4a, #ffd36a); }
@media (max-width: 640px) { .abr-top { gap: 8px; } .abr-pgs img { width: 28px; height: 28px; } .abr-stat { padding: 2px 8px; } .ab-rec .abr-ms { grid-template-columns: 1fr 1fr; } }
.abr-top .abr-stat { margin-left: auto; }
/* c381: 🗺 마을 이동 카드 */
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.tv-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 200px; padding: 14px; border-radius: 16px; border: 2px solid rgba(120,90,60,.3); cursor: pointer; text-align: left; color: #fff; font: inherit; overflow: hidden;
  background-color: #2a2540; background-size: cover; background-position: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .12s, border-color .12s; }
.tv-card:hover { transform: translateY(-2px); border-color: #ffb050; }
.tv-card.hostile { border-color: rgba(220,80,60,.6); }
.tv-top { display: flex; align-items: center; gap: 8px; }
.tv-top b { font-size: 22px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.tv-tag { font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #3fae4c; }
.tv-tag.n { background: #7a6a9a; } .tv-tag.h { background: #d0442e; }
.tv-desc { color: #e8dccb; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.tv-route { margin-top: auto; display: flex; align-items: flex-end; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.45); }
.tv-mons { flex: 1; display: flex; gap: 6px; }
.tv-mon { position: relative; display: flex; flex-direction: column; align-items: center; width: 64px; }
.tv-mon img { width: 52px; height: 52px; object-fit: contain; filter: brightness(0) drop-shadow(0 0 2px rgba(255,255,255,.5)); opacity: .75; }
.tv-mon.ok img { filter: none; opacity: 1; }
.tv-mon b { position: absolute; top: 12px; font-size: 20px; color: #ffd36a; text-shadow: 0 0 4px #000; }
.tv-mon small { font-size: 11px; color: #e8dccb; white-space: nowrap; }
.tv-info { display: flex; flex-direction: column; align-items: flex-end; }
.tv-info small { font-size: 11px; color: #cbbfa8; } .tv-info b { font-size: 18px; color: #ffd36a; }
.tv-go { position: absolute; right: 12px; top: 12px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 12px; background: #e07a20; color: #fff; }
@media (max-width: 640px) { .tv-grid { grid-template-columns: 1fr; } .tv-card { min-height: 170px; } }
/* c381: 퀘스트 보상 칩 · 진행 막대 */
.q-rw { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.q-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 10px; background: #fff3dc; border: 1px solid #f0d6a8; font-size: 12px; color: #6a4a20; }
.q-chip .iic, .q-chip img, .q-chip .bi svg { width: 22px; height: 22px; } .q-chip .bi { display: inline-flex; color: #e0a020; }
.q-chip b { font-weight: 700; } .q-chip i { font-style: normal; color: #c06010; font-weight: 700; }
.q-bonus { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.q-bar { display: block; height: 6px; margin-top: 4px; border-radius: 4px; background: #efe2cc; overflow: hidden; max-width: 420px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e07a20, #ffc04a); }
.quest.q-done { border-color: #5aa860; } .q-ok { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #3fae4c; color: #fff; }
/* c381: 🗺 사냥터 카드 */
.glist.gcards { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.gitem.gcard { min-height: 150px; padding: 10px 12px; gap: 4px; justify-content: flex-start; color: #fff; background-color: #2a2540; background-size: cover; background-position: center; border: 2px solid rgba(255,255,255,.15); box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .12s, border-color .12s; overflow: hidden; }
.gitem.gcard:hover { transform: translateY(-2px); border-color: #ffb050; }
.gitem.gcard.rec { border-color: #ffb050; background-color: #2a2540; }
.gitem.gcard.gnow { border-color: #5ad87a; background-color: #2a2540; box-shadow: 0 0 0 2px rgba(90,216,122,.35); }
.gitem.gcard.fav { box-shadow: 0 0 0 2px #e0a020 inset; }
.gitem.gcard.f-neutral { border-color: rgba(154,106,255,.6) !important; }
.gc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; width: 100%; padding-right: 22px; }
.gc-lv { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: rgba(0,0,0,.55); color: #ffe1a8; }
.gc-tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: rgba(0,0,0,.5); color: #fff; white-space: nowrap; }
.gc-tag.now { background: #3a8f5c; } .gc-tag.rec { background: #e07a20; } .gc-tag.rb { background: linear-gradient(90deg, #6a3df0, #c04aff); }
.gc-tag.gc-gold { background: linear-gradient(#ffe79a, #f0b93a); color: #5a3a00; } .gc-tag.permit { background: rgba(240,200,120,.85); color: #4a3000; }
.gc-tag.f-evo { background: var(--evo); } .gc-tag.f-mix { background: var(--mix); } .gc-tag.f-neutral { background: #9a6aff; }
.gitem.gcard .gfav { position: absolute; right: 8px; top: 8px; font-size: 18px; color: #ffd36a; text-shadow: 0 1px 3px #000; }
.gitem.gcard .gc-name { font-size: 20px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.gc-mons { margin-top: auto; display: flex; gap: 2px; padding: 4px 6px; border-radius: 10px; background: rgba(0,0,0,.4); }
.gc-mon { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.gc-mon img { width: 34px; height: 34px; object-fit: contain; }
.gc-mon:not(.ok) img { filter: brightness(0) drop-shadow(0 0 1px rgba(255,255,255,.6)); opacity: .7; }
.gc-mon b { position: absolute; font-size: 14px; color: #ffd36a; text-shadow: 0 0 3px #000; }
.gitem.gcard.locked { opacity: 1; filter: none; }
.gitem.gcard.locked::after { content: ''; position: absolute; inset: 0; background: rgba(10,8,18,.55); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); }
.gc-lock { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 26px; text-shadow: 0 2px 6px #000; }
.gc-lock small { font-size: 12px; color: #e8dccb; padding: 2px 10px; border-radius: 10px; background: rgba(0,0,0,.6); }
.gitem.gcard .seat-meter { background: rgba(0,0,0,.5); color: #fff; }
@media (max-width: 640px) { .glist.gcards { grid-template-columns: 1fr 1fr; gap: 6px; } .gitem.gcard { min-height: 128px; padding: 8px; } .gitem.gcard .gc-name { font-size: 16px; } .gc-mon, .gc-mon img { width: 26px; height: 26px; } .gc-tag { font-size: 10px; } }
.gitem.gcard .gc-top, .gitem.gcard .gc-name { position: relative; z-index: 2; }
.gitem.gcard.locked .gc-name { color: #cfc6dc; }
.gc-lock { inset: auto 6px 50px 6px; flex-direction: row; font-size: 15px; gap: 6px; }
.gc-lock small { font-size: 11.5px; }
/* c382: ⚔ 결투장 */
.ar-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; color: #fff; background: radial-gradient(circle at 12% 30%, rgba(255,140,60,.35), transparent 45%), linear-gradient(120deg, #3a1d2e, #1d1a34 60%, #1a2a40); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); margin-bottom: 8px; }
.ar-emb { font-size: 46px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.ar-hinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-hinfo > b { font-size: 22px; display: flex; align-items: baseline; gap: 10px; }
.ar-rt { font-size: 30px; color: #ffd36a; font-variant-numeric: tabular-nums; } .ar-rt i { font-style: normal; font-size: 13px; color: #e8c88a; margin-left: 2px; }
.ar-hinfo small { color: #c9bfd8; } .ar-hinfo small b { color: #fff; }
.ar-hside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ar-hero .ar-coin { display: flex; align-items: baseline; gap: 4px; font-size: 18px; } .ar-hero .ar-coin small { font-size: 11px; color: #c9bfd8; }
.ar-left { display: flex; align-items: center; gap: 3px; } .ar-left i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); } .ar-left i.on { background: #ff7a3a; box-shadow: 0 0 6px #ff7a3a; } .ar-left small { margin-left: 6px; font-size: 11px; color: #c9bfd8; }
.ar-help { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; }
.ar-hero .ar-help { right: auto; left: 8px; top: auto; bottom: 8px; width: 22px; height: 22px; font-size: 11px; }
.ar-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.ar-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid rgba(120,90,60,.25); background: #fffaf0; cursor: pointer; text-align: left; font: inherit; }
.ar-mode b { font-size: 16px; } .ar-mode small { font-size: 11px; color: #8a6a40; } .ar-mode span { font-size: 13px; font-weight: 700; color: #6a4a20; }
.ar-mode i { position: absolute; right: 8px; top: 8px; font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 8px; background: #efe4d2; color: #7a5a30; }
.ar-mode.on { border-color: #e07a20; background: #fff1dc; box-shadow: 0 0 0 2px rgba(224,122,32,.25); }
.ar-desc { margin: 4px 2px 6px; }
.ar-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e8462e; vertical-align: middle; }
.ar-myteam { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff3dc; border: 1.5px dashed #e0a060; margin-bottom: 8px; }
.ar-myteam > small { font-weight: 700; color: #7a4a10; white-space: nowrap; }
.ar-foe { display: grid; grid-template-columns: minmax(150px, 1.1fr) auto minmax(0, 1.6fr) auto; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(120,90,60,.2); box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.ar-foe.hard { border-left: 5px solid #e8462e; } .ar-foe.easy { border-left: 5px solid #3fae4c; }
.ar-foe-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ar-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #efe4d2; border: 2px solid #e8c88a; flex: none; }
.ar-foe-l > div { display: flex; flex-direction: column; min-width: 0; } .ar-foe-l b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ar-foe-l small { font-size: 11.5px; color: #8a6a40; }
.ar-vs { font-weight: 900; font-size: 16px; color: #e8462e; font-style: italic; }
.ar-foe .ar-team, .ar-myteam .ar-team { display: flex; gap: 6px; }
.ar-foe .ar-h, .ar-myteam .ar-h { display: flex; flex-direction: column; align-items: center; width: 62px; }
.ar-foe .ar-h img, .ar-myteam .ar-h img { width: 50px; height: 50px; object-fit: contain; }
.ar-foe-r { display: flex; align-items: center; gap: 10px; }
.ar-pt { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; } .ar-pt .up { color: #2f8a3a; } .ar-pt .down { color: #c83a2a; }
.ar-foe-r .btn { min-width: 84px; }
.ar-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin: 6px 0 10px; }
.ar-pd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #fff, #f3e7d3); border: 1.5px solid rgba(120,90,60,.2); }
.ar-pd.r1 { padding-top: 18px; background: linear-gradient(180deg, #fff6d6, #f5d98a); border-color: #e0b040; } .ar-pd.r2 { background: linear-gradient(180deg, #fafafa, #dfe3ea); } .ar-pd.r3 { background: linear-gradient(180deg, #fff3ea, #ecc7a8); }
.ar-pdm { font-size: 30px; } .ar-pd b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ar-pd small { font-size: 11px; color: #6a5a40; } .ar-pd i { display: none; }
@media (max-width: 640px) {
  .ar-hero { flex-wrap: wrap; gap: 8px; padding: 12px; } .ar-emb { font-size: 36px; } .ar-rt { font-size: 24px; } .ar-hinfo > b { font-size: 18px; }
  .ar-hside { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
  .ar-mode { padding: 6px 8px; } .ar-mode b { font-size: 14px; } .ar-mode i { position: static; margin-top: 2px; }
  .ar-foe { grid-template-columns: 1fr auto; gap: 6px 8px; } .ar-vs { display: none; } .ar-foe .ar-team { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .ar-foe-r { flex-direction: column; align-items: flex-end; gap: 4px; } .ar-foe .ar-h { width: 56px; } .ar-foe .ar-h img { width: 44px; height: 44px; }
  .ar-myteam { flex-wrap: wrap; }
}
/* c382: 🧭 점검 — 역할 탭 */
.adv-tabs { margin-bottom: 8px; }
.adv-role-h { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(120deg, #2a2540, #3a2a50); color: #fff; margin-bottom: 6px; }
.adv-role-h b { font-size: 18px; } .adv-role-h small { color: #c9bfd8; }
.adv-sec small { font-weight: 400; color: #8a6a40; margin-left: 4px; font-size: 12px; }
.adv-h { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 6px 0; border-radius: 14px; background: #fff; border: 1.5px solid rgba(120,90,60,.2); }
.adv-hi img { width: 58px; height: 58px; object-fit: contain; }
.adv-hm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adv-hm > b { font-size: 15px; } .adv-hm > small { color: #8a6a40; font-size: 12px; }
.adv-hb { display: flex; flex-direction: column; gap: 4px; flex: none; }
.adv-best { position: absolute; left: -4px; top: -6px; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 8px; background: #e07a20; color: #fff; }
.adv-tips { display: flex; flex-wrap: wrap; gap: 4px; }
.adv-tip { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 10px; background: #f6ecdc; color: #5a4020; }
.adv-tip.sk { background: #e8f0ff; color: #2a4a80; } .adv-tip small { color: #6a7aa0; }
.adv-empty { padding: 14px; text-align: center; color: #8a6a40; }
.adv-want { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.adv-w { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid rgba(120,90,60,.2); text-align: center; }
.adv-w img { width: 56px; height: 56px; object-fit: contain; } .adv-w small { font-size: 11px; color: #8a6a40; }
@media (max-width: 640px) { .adv-h { align-items: flex-start; } .adv-hi img { width: 46px; height: 46px; } .adv-hb { flex-direction: row; position: absolute; right: 8px; top: 8px; } .adv-hm > b { padding-right: 150px; } }
/* c382: 공용 무대 배너 (탑 · 월드 보스 · 거점전 …) */
.hz { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 150px; padding: 18px 20px; border-radius: 18px; color: #fff; background-color: #1d1a30; background-size: cover; background-position: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); margin-bottom: 10px; }
.hz-l { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 280px; }
.hz-ic { font-size: 48px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.hz h3 { margin: 0 0 4px; font-size: 26px; color: #ffe1a8; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.hz p { margin: 0; color: #e6dcf0; font-size: 13.5px; line-height: 1.5; } .hz p b { color: #ffd36a; }
.hz-stats { display: flex; gap: 8px; }
.hz-stats span { display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.hz-stats small { font-size: 11px; color: #c9bfd8; } .hz-stats b { font-size: 22px; font-variant-numeric: tabular-nums; } .hz-stats .hot b { color: #ffb050; }
.hz-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hz-acts .btn.big { flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; font-size: 18px; }
.hz-acts .btn small { font-size: 11px; opacity: .85; }
.hz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 8px 0; }
.hz-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(120,90,60,.18); }
.hz-card > span { font-size: 22px; } .hz-card b { font-size: 14px; } .hz-card small { font-size: 12px; color: #7a5a30; line-height: 1.45; }
.hz-note { margin-top: 4px; }
/* 월드 보스 */
.wb2 { position: relative; display: flex; align-items: center; gap: 12px; min-height: 230px; padding: 18px 20px; border-radius: 18px; color: #fff; background-color: #10132a; background-size: cover; background-position: center; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.3); margin-bottom: 8px; }
.wb2-l { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wb2-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .wb2-t h3 { margin: 0; font-size: 24px; color: #ffe1a8; text-shadow: 0 2px 6px #000; }
.wb-st { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; }
.wb-st.on { background: #e8462e; animation: wbpulse 1.4s infinite; } .wb-st.off { background: rgba(255,255,255,.18); } .wb-st.done { background: #3fae4c; }
@keyframes wbpulse { 50% { box-shadow: 0 0 0 6px rgba(232,70,46,.25); } }
.wb2-hp .bar { height: 16px; border-radius: 9px; background: rgba(255,255,255,.12); max-width: 520px; } .wb2-hp span { font-size: 12px; color: #c9bfd8; } .wb2-hp span b { color: #fff; font-size: 15px; margin-right: 6px; }
.wb2-msg { margin: 0; color: #e6dcf0; } .wb2-next { color: #ffd36a; font-size: 18px; }
.wb2-go { align-self: flex-start; display: flex; flex-direction: column; align-items: center; padding: 10px 28px; font-size: 18px; } .wb2-go small { font-size: 11px; opacity: .85; }
.wb2-me { display: flex; gap: 8px; } .wb2-me span { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.45); } .wb2-me small { font-size: 11px; color: #c9bfd8; } .wb2-me b { font-size: 18px; }
.wb2-img { position: relative; z-index: 0; width: min(260px, 38%); max-height: 240px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.6)); }
.wb2-top { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wb2-top li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #fff; overflow: hidden; }
.wb2-top li > * { position: relative; z-index: 1; } .wb2-top li i { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; background: linear-gradient(90deg, rgba(232,70,46,.18), rgba(232,70,46,.05)); }
.wb2-top li small { margin-left: auto; font-weight: 700; } .wb2-top li.wb2-mine { box-shadow: 0 0 0 2px #e07a20 inset; }
@media (max-width: 640px) { .hz { padding: 14px; } .hz-ic { font-size: 38px; } .hz h3 { font-size: 21px; } .hz-stats { width: 100%; } .hz-stats span { flex: 1; min-width: 0; padding: 6px; } .hz-stats b { font-size: 18px; } .wb2 { flex-direction: column-reverse; align-items: stretch; } .wb2-img { width: 60%; align-self: center; max-height: 160px; } }
/* c382: 📬 우편 */
.mail-row { position: relative; padding-left: 58px !important; border-radius: 14px !important; }
.mail-row.new { border-left: 4px solid #e07a20 !important; background: #fffaf0; }
.mail-ic { position: absolute; left: 12px; top: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ffe9c2; border: 1.5px solid #f0c880; font-size: 18px; }
.mail-row.done .mail-ic { background: #efe8dc; border-color: #ddd2c0; filter: grayscale(.5); }
.mail-rw .mrw { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; border-radius: 10px; background: #fff3dc; border: 1px solid #f0d6a8; }
.mail-rw .mrw .iic, .mail-rw .mrw img { width: 22px; height: 22px; }
/* c382: 🧭 원정 칸 */
.ex-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.ex-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f6ecdc); border: 1.5px solid rgba(120,90,60,.22); text-align: center; }
.ex-slot img { width: 72px; height: 72px; object-fit: contain; } .ex-slot b { font-size: 15px; } .ex-slot small { font-size: 11.5px; color: #8a6a40; }
.ex-slot .camp-bar { width: 100%; margin: 4px 0 2px; } .ex-slot .cnt { font-weight: 700; color: #7a5a30; }
.ex-slot.done { border-color: #3fae4c; background: linear-gradient(180deg, #f2fff2, #e2f5e0); box-shadow: 0 0 0 2px rgba(63,174,76,.2); }
.ex-slot.empty { border-style: dashed; background: rgba(255,250,240,.6); justify-content: center; min-height: 150px; }
.ex-plus { font-size: 34px; color: #d0b890; line-height: 1; }
/* c382: 🔔 알림 */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid rgba(120,90,60,.18); }
.notif .n-ic { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #f6ecdc; font-size: 17px; }
.notif > span:not(.n-ic) { flex: 1; min-width: 0; font-size: 13.5px; } .notif small { color: #a08a6a; white-space: nowrap; }
.notif-day { margin: 8px 2px 2px; font-size: 12px; font-weight: 700; color: #8a6a40; }
/* c382: 👥 방 */
.rm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.rm-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f6ecdc); border: 1.5px solid rgba(120,90,60,.22); text-align: center; }
.rm-opt > span { font-size: 34px; } .rm-opt b { font-size: 16px; } .rm-opt small { color: #8a6a40; font-size: 12px; }
.rm-opt .btn { min-width: 140px; } .rm-in { display: flex; gap: 6px; width: 100%; } .rm-in input { flex: 1; min-width: 0; text-align: center; letter-spacing: 3px; font-weight: 700; }
@media (max-width: 640px) { .rm-two { grid-template-columns: 1fr; } }
/* c382: 🚩 거점전 */
.op-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.op-steps > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 44px; border-radius: 14px; background: #fff; border: 1px solid rgba(120,90,60,.2); }
.op-steps i { position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; color: #fff; background: #c0501a; }
.op-steps b { font-size: 14px; } .op-steps small { font-size: 11.5px; color: #7a5a30; }
.op-card { border-radius: 16px !important; padding: 12px !important; background: #fff !important; border: 1.5px solid rgba(120,90,60,.22) !important; margin-bottom: 8px; }
.op-card.mine { border-color: #e0a020 !important; background: linear-gradient(180deg, #fffaf0, #fff3d6) !important; }
.op-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .op-top b { font-size: 16px; } .op-own { margin-left: auto; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 10px; background: #2a2540; color: #ffe1a8; }
.op-card .ar-team { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .op-card .ar-h { display: flex; flex-direction: column; align-items: center; width: 58px; } .op-card .ar-h img { width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 640px) { .op-steps { grid-template-columns: 1fr; } }
/* c382: 👤 프로필 배너 */
.pf-top.pf-hero { min-height: 150px; padding: 18px 20px; border-radius: 18px; background-size: cover; background-position: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pf-hero .pf-face { width: 110px; height: 110px; border-radius: 50%; border: 3px solid #e8c27a; box-shadow: 0 0 0 4px rgba(232,194,122,.25), 0 6px 14px rgba(0,0,0,.5); object-fit: cover; }
.pf-hero .pf-name { font-size: 26px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.pf-hero .pf-stats { margin-top: 6px; gap: 6px; }
.pf-hero .pf-stats > span { padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); }
.pf-hero .pf-stats > span b { color: #ffd36a; }
@media (max-width: 640px) { .pf-top.pf-hero { flex-direction: column; text-align: center; } .pf-hero .pf-stats { justify-content: center; } .pf-hero .pf-face { width: 90px; height: 90px; } }
/* c382: 📋 퀘스트 · 메인 스토리 카드 */
.quest { border-radius: 14px; border-width: 1.5px; padding: 10px 14px; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.quest.story { position: relative; padding: 14px 16px; border: 2px solid #e8a050; background: radial-gradient(circle at 100% 0, rgba(255,200,120,.35), transparent 40%), linear-gradient(180deg, #fffaf0, #fff3df); }
.quest.story .qt { font-size: 18px; color: #6a3a10; }
.quest.story .qtext { padding: 8px 12px; border-left: 3px solid #e8a050; background: rgba(255,255,255,.6); border-radius: 0 10px 10px 0; }
.quest .qt { font-size: 15px; }
/* c382: 🧭 원정 칸 폰 */
@media (max-width: 640px) { .ex-slots { grid-template-columns: repeat(3, 1fr); gap: 5px; } .ex-slot { padding: 6px 4px; } .ex-slot img { width: 48px; height: 48px; } .ex-slot b { font-size: 12px; } .ex-slot small { font-size: 10px; } .ex-slot.empty { min-height: 100px; } .ex-slot.empty small { display: none; } .ex-slot .btn { font-size: 11px; padding: 3px 6px; } }
.pf-hero .fbadge { white-space: nowrap; }
/* c382: 🏯 던전 카드 더 또렷하게 */
.dg { position: relative; min-height: 120px; padding: 12px 14px; border-width: 1.5px; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .12s, border-color .12s, box-shadow .12s; overflow: hidden; }
.dg:hover { transform: translateY(-2px); border-color: rgba(255,190,100,.6); box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.dg-boss img { width: 104px; height: 104px; transition: transform .2s; } .dg:hover .dg-boss img { transform: scale(1.06); }
.dg-nm { font-size: 19px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.dg-meta > * { padding: 1px 8px; border-radius: 8px; background: rgba(0,0,0,.3); }
.adv-w { position: relative; } .adv-wt { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 8px; background: #2a2540; color: #ffe1a8; }
.adv-wb { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.adv-good { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 2px; }
.adv-good i { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 8px; background: #e8f4e8; color: #2f6a3a; white-space: nowrap; }
.adv-tip.eq { background: #fff0d8; color: #8a4a10; }
/* c385: 🐉 레이드 제단 — 보스 무대 (배경 그림 · 보스 크게 오른쪽 · 글은 어두운 판 위) */
.raid-intro.rstage { position: relative; flex-direction: row-reverse; align-items: stretch; gap: 10px; padding: 16px 18px; border-radius: 18px; color: #efe6ff; background-color: #14111f; background-size: cover; background-position: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); overflow: hidden; margin-bottom: 10px; }
.raid-intro.rstage > img { width: 300px; max-width: 42%; align-self: flex-end; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.7)); }
.raid-intro.rstage > div { flex: 1; min-width: 0; }
.raid-intro.rstage h3 { color: #ffd36a; font-size: 30px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.raid-intro.rstage p { color: #e6dcf0; }
.raid-intro.rstage .small-note, .raid-intro.rstage li { color: #d6cce6; }
.raid-intro.rstage .small-note b, .raid-intro.rstage li b { color: #ffe1a8; }
.raid-intro.rstage ul.small-note { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.raid-intro.rstage ul.small-note li { padding: 4px 10px; border-radius: 10px; background: rgba(0,0,0,.4); border-left: 3px solid rgba(255,180,90,.6); }
.raid-intro.rstage .rd-info, .raid-intro.rstage .rd-gim { background: rgba(0,0,0,.45); color: #efe6ff; border-color: rgba(255,255,255,.15); }
.raid-pick .rp { border-radius: 14px; transition: transform .12s; } .raid-pick .rp:hover { transform: translateY(-2px); }
.raid-pick .rp.on { box-shadow: 0 0 0 2px rgba(217,83,79,.35); }
@media (max-width: 640px) { .raid-intro.rstage { flex-direction: column; } .raid-intro.rstage > img { max-width: 70%; width: 220px; align-self: center; } .raid-intro.rstage h3 { font-size: 24px; } }
/* c385: 레이드 제단 메뉴 */
.rnav { margin-bottom: 12px; }
.rnav-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rnav-m { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 1px; min-height: 104px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); color: #fff; background-size: cover; background-position: center; cursor: pointer; text-align: left; font: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s, filter .15s; filter: saturate(.75) brightness(.9); overflow: hidden; }
.rnav-m::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; transition: background .15s; }
.rnav-m:hover { transform: translateY(-2px); filter: none; }
.rnav-m.on { filter: none; box-shadow: 0 0 0 2px #e8b35a, 0 8px 20px rgba(0,0,0,.35); } .rnav-m.on::after { background: linear-gradient(90deg, #f0c060, #e07a20); }
.rnav-ic { position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; color: #f3dca8; opacity: .9; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); } .rnav-ic svg { width: 100%; height: 100%; }
.rnav-m b { font-size: 16px; font-weight: 700; letter-spacing: .2px; text-shadow: 0 1px 4px rgba(0,0,0,.8); } .rnav-m small { font-size: 11.5px; color: #d6cce4; text-shadow: 0 1px 3px #000; }
.rnav-sub { display: flex; gap: 0; margin-top: 8px; padding: 3px; border-radius: 12px; background: #efe4d2; width: fit-content; max-width: 100%; overflow-x: auto; }
.rnav-s { display: inline-flex; flex-direction: column; align-items: center; padding: 6px 16px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font: inherit; font-size: 13.5px; color: #6a4a20; white-space: nowrap; }
.rnav-s small { font-size: 10.5px; color: #9a7a50; } .rnav-s.on { background: #fff; color: #3a2410; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (max-width: 640px) { .rnav-main { grid-template-columns: 1fr 1fr; gap: 6px; } .rnav-m { min-height: 78px; padding: 9px; } .rnav-ic { width: 20px; height: 20px; left: 9px; top: 8px; } .rnav-m b { font-size: 14px; } .rnav-m small { font-size: 10.5px; } .rnav-s { padding: 5px 10px; font-size: 12.5px; } }

/* c386: 무한의 탑 — 컨셉 층 · 보상 노드 · 순위 */
.twa { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; margin-bottom: 10px; border-radius: 12px; background: #221c36; color: #e9e2f7; }
.twa > svg { width: 16px; height: 16px; color: #ffb050; } .twa > b { font-size: 13px; margin-right: 4px; }
.twa > span { padding: 3px 10px; border-radius: 999px; background: rgba(255,176,80,.16); border: 1px solid rgba(255,176,80,.4); color: #ffd9a0; font-size: 12.5px; font-weight: 600; }
.twa > small { margin-left: auto; color: #a99cc4; font-size: 11px; }
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 12px; align-items: start; }
.tw-main, .tw-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tw-nav { display: flex; align-items: center; justify-content: space-between; } .tw-nav > b { font-size: 15px; } .tw-nav span { display: flex; gap: 6px; }
.twf { position: relative; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(120,90,60,.18); box-shadow: 0 2px 8px rgba(60,40,20,.06); }
.twf.now { border-color: #e0a040; box-shadow: 0 0 0 2px rgba(224,160,64,.25), 0 4px 14px rgba(60,40,20,.1); }
.twf.gate { background: linear-gradient(135deg, #2a1f3d, #1a1528); color: #efe6ff; border-color: #6a4fa0; }
.twf-h { display: flex; align-items: center; gap: 12px; }
.twf-n { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 4px 6px; border-radius: 12px; background: #f6efe3; color: #6a4a20; line-height: 1.1; }
.twf.gate .twf-n { background: rgba(255,255,255,.08); color: #ffd36a; }
.twf-n b { font-size: 24px; font-variant-numeric: tabular-nums; } .twf-n small { font-size: 10.5px; opacity: .8; }
.twf-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .twf-t b { font-size: 16px; } .twf-t small { font-size: 12px; color: #8a6a40; } .twf.gate .twf-t small { color: #c9bfe0; }
.twf-foes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.twf-foe { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 12px; background: #f8f4ec; min-width: 0; }
.twf.gate .twf-foe { background: rgba(255,255,255,.06); }
.twf-foe.boss { background: radial-gradient(circle at 50% 40%, rgba(255,180,80,.35), rgba(255,180,80,0) 70%), rgba(255,255,255,.06); }
.twf-img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.twf-foe.boss .twf-img { width: 78px; height: 78px; }
.twf-foe > span { display: flex; gap: 3px; align-items: center; } .twf-foe > span i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #3a2c55; color: #ffd9a0; }
.twf-foe.heal > span i { background: #2f7a4a; color: #e6ffef; } .twf-foe.boss > span i { background: #b5541c; color: #fff; }
.twf-foe small { font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twf-gim { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: rgba(255,140,60,.15); color: #ffcf9a; font-size: 12.5px; margin-bottom: 6px; } .twf-gim svg { width: 15px; height: 15px; flex: none; }
.twf-tips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.twf-tips span { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef3ff; color: #3a5aa0; border: 1px solid #cfdcf8; }
.twf.gate .twf-tips span { background: rgba(140,170,255,.14); color: #c6d6ff; border-color: rgba(140,170,255,.35); }
.twf-rw { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px dashed rgba(120,90,60,.22); }
.twf.gate .twf-rw { border-color: rgba(255,255,255,.15); }
.twf-rw > small { font-size: 11px; color: #9a7a50; } .twf.gate .twf-rw > small { color: #b8acd2; }
.twf-rw em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: #e0a040; color: #fff; } .twf-rw em.fc { background: #7a52c8; }
.twis { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.twi { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 999px; background: rgba(120,90,60,.08); font-size: 12px; }
.twf.gate .twi { background: rgba(255,255,255,.09); }
.twi > svg { width: 16px; height: 16px; } .twi.twg > svg { color: #d99a1c; } .twi.twd > svg { color: #4aa8e8; } .twi.ttl > svg { color: #c07ae0; }
.twi .iic { width: 22px; height: 22px; } .twi b { font-weight: 700; font-variant-numeric: tabular-nums; }
.twis.sm .twi { font-size: 11px; padding: 1px 6px 1px 2px; } .twis.sm .twi .iic { width: 18px; height: 18px; } .twis.sm .twi > svg { width: 13px; height: 13px; }
.twl, .twr { padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(120,90,60,.18); }
.twl-h { display: flex; flex-direction: column; margin: 2px 0 6px; } .twl-h b { font-size: 14px; } .twl-h small { font-size: 11px; color: #9a7a50; }
.twl-h.fc { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(120,90,60,.15); }
.twl-n { position: relative; display: grid; grid-template-columns: 42px 18px minmax(0, 1fr); align-items: center; gap: 6px; padding: 5px 0; }
.twl-n:not(.fc)::before { content: ''; position: absolute; left: 50px; top: 0; bottom: 0; width: 2px; background: #eadfcc; }
.twl-f { font-weight: 800; font-size: 15px; text-align: right; color: #6a4a20; font-variant-numeric: tabular-nums; } .twl-f small { font-size: 10px; font-weight: 600; margin-left: 1px; }
.twl-dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #d8c8ae; display: grid; place-items: center; }
.twl-n.done .twl-dot { background: #e0a040; border-color: #e0a040; color: #fff; } .twl-n.done .twl-dot svg { width: 10px; height: 10px; }
.twl-n.done .twis { opacity: .45; } .twl-n.done .twl-f { color: #b8a080; }
.twl-n.next .twl-dot { border-color: #e0a040; box-shadow: 0 0 0 4px rgba(224,160,64,.25); } .twl-n.next .twl-f { color: #d0801a; }
.twl-n.fc .twl-dot { border-color: #9a7ad8; } .twl-n.rec .twl-f { color: #7a52c8; }
.twr-r { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; font-size: 13px; }
.twr-r b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .twr-r > span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; color: #6a4a20; }
.twr-r.twr-mine { background: #fff1d2; box-shadow: inset 0 0 0 1.5px #f0b83a; } .twr-r.twr-mine b { color: #5a3a10; }
.twr-k { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eee5d6; font-size: 11.5px; font-weight: 800; color: #6a4a20; }
.twr-k.r1 { background: #f0b83a; color: #fff; } .twr-k.r2 { background: #b8c2d0; color: #fff; } .twr-k.r3 { background: #d09060; color: #fff; }
.hz-ic > svg { width: 48px; height: 48px; color: #ffd36a; }
@media (max-width: 760px) { .tw-grid { grid-template-columns: 1fr; } .twa > small { margin-left: 0; width: 100%; } .twf-img { width: 54px; height: 54px; } .twf-foe.boss .twf-img { width: 64px; height: 64px; } }
.enh-ham { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(90,140,90,.12); font-size: 13px; } .enh-ham .iic { width: 28px; height: 28px; flex: none; }
.rd-ham { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(224,160,64,.14); border: 1px solid rgba(224,160,64,.35); } .rd-ham .iic { width: 28px; height: 28px; flex: none; }
/* c386: 업데이트 소식 카드 (data/patchnote.json · 버전마다 한 번) */
.news-ov { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8,6,16,.55); backdrop-filter: blur(2px); animation: newsIn .25s ease; }
.news-card { width: min(420px, 100%); border-radius: 18px; overflow: hidden; background: #fffaf2; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.news-img { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 150px; padding: 14px 18px; background-size: cover; background-position: center; color: #fff; }
.news-img.plain { height: auto; background: linear-gradient(135deg, #2a1f3d, #1a1528); }
.news-img small { font-size: 12px; color: #ffd36a; letter-spacing: .06em; } .news-img b { font-size: 22px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.news-lines { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; }
.news-l { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(120,90,60,.16); background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.news-l:hover { border-color: #e0a040; }
.news-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #2a1f3d; color: #ffd36a; flex: none; } .news-ic svg { width: 18px; height: 18px; }
.news-l > span:nth-child(2) { flex: 1; min-width: 0; } .news-l i { font-style: normal; color: #b8a080; font-size: 18px; }
.news-ok { display: block; width: calc(100% - 28px); margin: 10px 14px 14px; }
@keyframes newsIn { from { opacity: 0; } to { opacity: 1; } }
/* c386: ✦ 이모지 → 통일 아이콘 (emo.js) — 의미별 한 가지 색 · 얇은 외곽 그림자로 밝은/어두운 바탕 모두 또렷하게 */
.emo { display: inline-block; width: 1.12em; height: 1.12em; vertical-align: -.2em; color: var(--ec, currentColor); filter: drop-shadow(0 0 .6px rgba(30,18,8,.85)) drop-shadow(0 1px 1px rgba(0,0,0,.25)); line-height: 1; flex: none; }
.emo svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.mute .emo { width: 22px; height: 22px; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.hz-ic .emo { width: 52px; height: 52px; }
.btn .emo { margin-right: .15em; }
.tw-reset { display: inline-block; margin-top: 4px; font-size: 12px; color: #ffcf8a; }
/* c386b: 🎨 UI 일러스트 아이콘 + 호버 모션 — 짧게 한 번 (0.6~0.8s) · 감속 후 살짝 넘어갔다 제자리 · 마우스 떼면 부드럽게 원위치 */
svg.gi-art { overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transform-origin: 50% 55%; transition: transform .25s ease, filter .25s ease; }
:where(button, a, .btn, [data-act], [data-t], [data-go], [data-rd], [data-rp], [class*="card"], [class*="nav"], .mute, .tbtn, .tcard):hover svg.gi-art,
:where(button, a, .btn, [data-act], [data-t], [data-go], [class*="card"], [class*="nav"], .mute):focus-visible svg.gi-art {
  transform: scale(1.08) translateY(-1px); filter: drop-shadow(0 5px 6px rgba(0,0,0,.35)) brightness(1.08); animation: giPop .6s cubic-bezier(.2,.9,.3,1.25);
}
:where(button, a, .btn, [data-act], [class*="card"], [class*="nav"], .mute):active svg.gi-art { transform: scale(.94); transition-duration: .08s; }
@keyframes giPop { 0% { transform: scale(1); } 45% { transform: scale(1.14) translateY(-3px); } 100% { transform: scale(1.08) translateY(-1px); } }
/* 도는 것: 나침반 · 톱니 · 소용돌이 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, [data-go], [data-t]):hover svg.gi-adv,
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, [data-go], [data-t]):hover svg.gi-travel,
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-settings,
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-fuse,
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-recycle,
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-lottery { animation: giSpin .8s cubic-bezier(.15,.75,.25,1.15); }
@keyframes giSpin { 0% { transform: rotate(0) scale(1); } 70% { transform: rotate(380deg) scale(1.1); } 85% { transform: rotate(352deg) scale(1.08); } 100% { transform: rotate(360deg) scale(1.08) translateY(-1px); } }
/* 흔들리는 것: 종 · 등불 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-bell { transform-origin: 50% 8%; animation: giRing .7s ease-out; }
@keyframes giRing { 0% { transform: rotate(0); } 15% { transform: rotate(16deg) scale(1.08); } 35% { transform: rotate(-13deg) scale(1.08); } 55% { transform: rotate(8deg) scale(1.08); } 75% { transform: rotate(-4deg) scale(1.08); } 100% { transform: rotate(0) scale(1.08) translateY(-1px); } }
/* 통통 튀는 것: 우편 · 가방 · 상자 · 알 · 상점 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, [data-go], [data-t]):hover :is(svg.gi-mail, svg.gi-bag, svg.gi-storage, svg.gi-hatch, svg.gi-shop, svg.gi-backshop, svg.gi-henches) { animation: giHop .65s cubic-bezier(.3,1.4,.4,1); }
@keyframes giHop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-6px) scale(1.06, .96); } 55% { transform: translateY(0) scale(1.08, .92); } 75% { transform: translateY(-2px) scale(1.04); } 100% { transform: translateY(-1px) scale(1.08); } }
/* 들리며 기우는 것: 책 · 두루마리 · 지도 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, [data-go], [data-t]):hover :is(svg.gi-guide, svg.gi-dex, svg.gi-quests, svg.gi-skills, svg.gi-lab) { animation: giTilt .6s cubic-bezier(.2,.9,.3,1.2); transform: rotate(-6deg) scale(1.08) translateY(-2px); }
@keyframes giTilt { 0% { transform: rotate(0) scale(1); } 60% { transform: rotate(-9deg) scale(1.12) translateY(-4px); } 100% { transform: rotate(-6deg) scale(1.08) translateY(-2px); } }
/* 반짝이는 것: 골드 · 다이아 · 보석 · 트로피 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, .gold):hover :is(svg.gi-gold, svg.gi-dia, svg.gi-gems, svg.gi-trophy, svg.gi-stoneshop) { animation: giShine .7s ease-out; }
@keyframes giShine { 0% { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)) brightness(1); transform: scale(1); } 40% { filter: drop-shadow(0 0 8px rgba(255,230,150,.9)) brightness(1.35); transform: scale(1.12) rotate(-4deg); } 100% { filter: drop-shadow(0 5px 6px rgba(0,0,0,.35)) brightness(1.08); transform: scale(1.08) translateY(-1px); } }
/* 전투 쪽: 레이드 · 월보 · 사흉 · 사냥 · 던전 · 탑 */
:where(button, a, .btn, [class*="card"], [class*="nav"], .mute, [data-go], [data-t]):hover :is(svg.gi-raid, svg.gi-wboss, svg.gi-dark, svg.gi-hunt, svg.gi-dungeon, svg.gi-tower) { animation: giFlare .7s ease-out; filter: drop-shadow(0 0 6px rgba(255,110,60,.55)) drop-shadow(0 4px 5px rgba(0,0,0,.35)); }
@keyframes giFlare { 0% { filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transform: scale(1); } 35% { filter: drop-shadow(0 0 12px rgba(255,90,40,.95)) brightness(1.2); transform: scale(1.14); } 100% { filter: drop-shadow(0 0 6px rgba(255,110,60,.55)) drop-shadow(0 4px 5px rgba(0,0,0,.35)); transform: scale(1.08) translateY(-1px); } }
@media (hover: none) { :where(button, a, .btn, [class*="card"], [class*="nav"], .mute):hover svg.gi-art { animation: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { svg.gi-art { animation: none !important; transition: none; } }
.hud-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; } .hud-ic svg.gi { width: 26px; height: 26px; }
.mute.bell svg.gi-art, .mute svg.gi-art { width: 26px; height: 26px; }
/* c386b: 일러스트 아이콘 자리 — 단색 아이콘용 동그라미 대신 그림을 크게 (은은한 빛 받침) */
.fac .ic:has(svg.gi-art) { width: 64px; height: 64px; background: radial-gradient(circle at 50% 55%, rgba(255,205,120,.22), rgba(255,205,120,0) 68%) !important; border-color: transparent !important; box-shadow: none !important; }
.fac .ic svg.gi-art { width: 60px; height: 60px; }
.menu .mi svg.gi-art { width: 30px; height: 30px; }
.gold .gi-wrap:has(svg.gi-art) { background: none; box-shadow: none; width: 30px; height: 30px; } .gold .gi-wrap svg.gi-art { width: 30px; height: 30px; }
@media (max-width: 760px) { .fac .ic:has(svg.gi-art) { width: 52px; height: 52px; } .fac .ic svg.gi-art { width: 48px; height: 48px; } .menu .mi svg.gi-art { width: 26px; height: 26px; } .gold .gi-wrap svg.gi-art, .gold .gi-wrap:has(svg.gi-art) { width: 24px; height: 24px; } }

/* c387: 회복소 — 회복의 샘 */
.cl-ok { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px 8px; text-align: center; }
.cl-spring { position: relative; width: 168px; height: 168px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #e9fff3 0%, #c4f2d8 45%, rgba(196,242,216,0) 70%); overflow: hidden; }
.cl-ring { position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(64,190,120,.55); animation: clRing 3s ease-out infinite; }
.cl-ring.r2 { animation-delay: 1s; } .cl-ring.r3 { animation-delay: 2s; }
@keyframes clRing { 0% { transform: scale(.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.cl-heart { position: relative; z-index: 1; width: 72px; height: 72px; filter: drop-shadow(0 4px 10px rgba(255,90,120,.45)); animation: clBeat 1.6s ease-in-out infinite; }
.cl-heart path { fill: #ff6f8e; } .cl-heart .cl-plus { fill: #fff; }
@keyframes clBeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.1); } 30% { transform: scale(.98); } 45% { transform: scale(1.06); } }
.cl-bub { position: absolute; bottom: 10%; left: var(--x); width: 8px; height: 8px; border-radius: 50%; background: rgba(90,210,140,.75); box-shadow: 0 0 6px rgba(90,210,140,.9); animation: clBub 3.3s ease-in var(--d) infinite; opacity: 0; }
@keyframes clBub { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-120px) scale(1); opacity: 0; } }
.cl-t { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 19px; color: #2c7a4a; margin-top: 4px; }
.cl-ok > small { color: #8a7a6a; font-size: 12.5px; }
.cl-party { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.cl-h { width: 96px; padding: 8px 6px; border-radius: 12px; background: #fff; border: 1px solid #e8dcc4; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cl-h span { font-size: 12px; color: #5a3a1a; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-hp { display: block; width: 100%; height: 5px; border-radius: 3px; background: #e6eee8; overflow: hidden; }
.cl-hp > i { display: block; height: 100%; background: linear-gradient(90deg, #4fcf84, #2fae6a); }
@media (prefers-reduced-motion: reduce) { .cl-ring, .cl-heart, .cl-bub { animation: none; } }
.cl-h > img { width: 60px !important; height: 60px !important; object-fit: contain; margin: 0 !important; }

/* c387: 빈 원정 칸 — 떠날 길 그림 (칸마다 다른 부분) */
.ex-slot.empty { position: relative; overflow: hidden; border: 1.5px solid rgba(160,120,70,.35); background: #e8dcc0 url(../assets/ui/exptrail.webp) var(--bx, 50%) 50% / auto 100% no-repeat; color: #fff; }
.ex-slot.empty::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,25,.05) 0%, rgba(20,30,25,.35) 55%, rgba(20,24,30,.7) 100%); transition: background .2s; }
.ex-slot.empty > * { position: relative; }
.ex-slot.empty b { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); } .ex-slot.empty small { color: #f2ead8; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.ex-slot.empty .ex-plus { width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; color: #fff; border-radius: 50%; background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(2px); margin-bottom: 2px; }

/* c387: 마을 이동 — 아래 빈 곳에 길 풍경 */
.tv-road { margin-top: 12px; min-height: 200px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid rgba(160,120,70,.3);
  background: linear-gradient(180deg, rgba(20,16,30,0) 40%, rgba(20,16,30,.75) 100%), #d8ccb0 url(../assets/ui/travelroad.webp) center / cover no-repeat; }
.tv-road span { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; color: #fff; }
.tv-road b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 17px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.tv-road small { font-size: 12.5px; color: #f0e8d8; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
@media (max-width: 640px) { .tv-road { min-height: 150px; } }
/* c387: 🗓 오늘의 숙제 */
.td-hero { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #23263f, #2e2a4a); color: #f3ead8; margin-bottom: 10px; }
.td-ring { --p: 0; flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, #262a45 78%, transparent 80% 100%), conic-gradient(#f0b83a calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.td-ring b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 20px; color: #ffd98a; line-height: 1; } .td-ring small { font-size: 10.5px; color: #c8c0d8; }
.td-hi { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .td-hi b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 19px; } .td-hi small { font-size: 12px; color: #c8c0d8; }
.td-sec { margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(120,90,60,.16); overflow: hidden; }
.td-sh { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; background: #faf3e6; cursor: pointer; font: inherit; color: #5a3a1a; text-align: left; }
.td-sh.static { cursor: default; } .td-sh b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 15px; }
.td-gi { width: 26px; height: 26px; display: grid; place-items: center; } .td-gi svg { width: 26px; height: 26px; }
.td-cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5484d; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.td-cnt.ok { background: #3fae4c; }
.td-car { margin-left: auto; font-size: 11.5px; color: #a08060; }
.td-sec.fold .td-rows { display: none; }
.td-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 74px 72px; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid rgba(120,90,60,.1); }
.td-t { display: flex; flex-direction: column; min-width: 0; } .td-t b { font-size: 13.5px; color: #3a2a18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .td-t small { font-size: 11.5px; color: #9a7a5a; }
.td-pips { display: flex; gap: 4px; } .td-pips i { width: 12px; height: 12px; border-radius: 50%; background: #eee5d6; box-shadow: inset 0 0 0 1px rgba(120,90,60,.2); } .td-pips i.on { background: linear-gradient(#ffd25a, #f0a030); box-shadow: none; }
.td-num { font-weight: 800; font-size: 12.5px; color: #6a4a20; font-variant-numeric: tabular-nums; }
.td-bar { width: 80px; height: 8px; border-radius: 4px; background: #eee5d6; overflow: hidden; } .td-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffd25a, #f0a030); }
.td-st i { font-style: normal; font-size: 12px; font-weight: 700; } .td-left { color: #c0601a; } .td-ok { color: #2f8a3c; }
.td-row.done { opacity: .55; } .td-row.done .td-t b { text-decoration: line-through; text-decoration-color: rgba(58,42,24,.35); }
.td-note { text-align: center; }
@media (max-width: 640px) { .td-row { grid-template-columns: minmax(0, 1fr) auto 52px 62px; gap: 6px; padding: 7px 8px; } .td-row .btn.tiny { padding: 4px 6px; font-size: 11px; } .td-pips i { width: 9px; height: 9px; } .td-bar { width: 50px; } .td-st i { font-size: 11px; } .td-hero { padding: 10px 12px; gap: 12px; } .td-ring { width: 62px; height: 62px; } .td-hi b { font-size: 17px; } }

/* c388: 진영 상점 — 긴 설명은 3줄까지, 눌러서 펼침 · 포인트 부족 표시 */
.cash-item small.ci-desc { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; flex: 0 1 auto; }
.cash-item small.ci-desc.open { -webkit-line-clamp: unset; display: block; }
.cash-item { justify-content: space-between; }
.cash-item small.ci-need { flex: 0; font-size: 11px; color: #b0541a; }
/* c388: 🐉 신수 강림 영상 (시도 연출 위에서 재생) · 실패 시 옛 모습이 빛을 잃음 */
.cine-movie.div-mov { z-index: 1; transition: opacity .25s; }
.cine-h.div-fail img { filter: grayscale(.85) brightness(.55); transition: filter 1s; animation: none; }

/* c388: 각성 아이템 흡수 — 떠올라 돌다가 빛으로 풀리며 아래(신수)로 빨려 듦 */
.div-item { position: absolute; width: 150px; height: 150px; transform: translate(-50%, -50%); z-index: 2; animation: divItemIn .7s cubic-bezier(.2,1.4,.4,1) both; }
.div-item img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px var(--c)) drop-shadow(0 0 40px var(--c)); animation: divItemSpin 2.4s ease-in-out infinite; }
.div-item.absorb { animation: divItemAbsorb .8s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes divItemIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes divItemSpin { 0%, 100% { transform: rotateY(0deg) translateY(0); } 50% { transform: rotateY(180deg) translateY(-6px); } }
@keyframes divItemAbsorb { 0% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); opacity: 1; } 60% { filter: brightness(2.6); opacity: 1; } 100% { transform: translate(-50%, 160%) scale(.15); filter: brightness(4); opacity: 0; } }
.cine-h.div-take img { animation: divTake .9s ease-out; }
@keyframes divTake { 0% { filter: brightness(2.4) drop-shadow(0 0 30px #fff); } 100% { filter: brightness(1); } }

/* c388: 개방 실패 — 흐릿한 형체가 맺혔다가 부서짐 */
.cine-h.div-ghost img { opacity: 0; filter: grayscale(.6) brightness(1.6) blur(1px) drop-shadow(0 0 30px #fff); animation: divGhost .9s ease-out forwards; }
@keyframes divGhost { 0% { opacity: 0; transform: scale(.85); } 30% { opacity: .55; } 45% { opacity: .2; } 60% { opacity: .6; } 100% { opacity: .5; transform: scale(1); } }
.cine-h.div-ghost.div-break img { animation: divBreak .5s ease-in forwards; }
@keyframes divBreak { 0% { opacity: .6; transform: scale(1); filter: brightness(2.5) blur(0); } 100% { opacity: 0; transform: scale(1.25); filter: brightness(4) blur(14px); } }

/* c388: 🐉 신수 결과 화면 (가챠식) */
.div-res { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2vw; padding: 4vh 6vw; overflow: hidden; }
.div-res .dr-bg { position: absolute; inset: -4%; background: #050810 center/cover; filter: blur(14px) brightness(.42) saturate(1.25); transform: scale(1.12); transition: transform 2.4s cubic-bezier(.2,.8,.2,1); }
.div-res.on .dr-bg { transform: scale(1.02); }
.div-res::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 32% 52%, transparent 30%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.div-res .dr-rays { position: absolute; left: 32%; top: 50%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c) 30%, transparent) 0deg 4deg, transparent 4deg 18deg); mask: radial-gradient(circle, #000 0%, transparent 42%); -webkit-mask: radial-gradient(circle, #000 0%, transparent 42%); opacity: 0; animation: drSpin 40s linear infinite; transition: opacity 1.2s .2s; }
.div-res.on .dr-rays { opacity: .8; }
@keyframes drSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.div-res .dr-art { position: relative; z-index: 1; justify-self: center; width: min(66vh, 46vw); aspect-ratio: 1; opacity: 0; transform: scale(1.18); filter: brightness(3); transition: opacity .5s, transform 1.1s cubic-bezier(.2,1.2,.3,1), filter 1.2s; }
.div-res.on .dr-art { opacity: 1; transform: scale(1); filter: brightness(1); }
.div-res .dr-art::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, #f4fbff) 0%, color-mix(in srgb, var(--c) 40%, #dff6ff) 52%, color-mix(in srgb, var(--c) 60%, transparent) 62%, transparent 72%); filter: blur(4px); opacity: .92; }
.div-res .dr-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 3px #fff8) drop-shadow(0 6px 18px rgba(0,0,0,.5)); animation: drFloat 4s ease-in-out infinite; }
@keyframes drFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2%); } }
.div-res .dr-shine { position: absolute; inset: 12%; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.div-res .dr-shine::after { content: ''; position: absolute; inset: -30%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.5) 50%, transparent 58%); transform: translateX(-120%); animation: drShine 1.1s 1.5s ease-in-out forwards; }
@keyframes drShine { to { transform: translateX(120%); } }
.div-res .dr-txt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4vh; }
.div-res .dr-name { height: min(17vh, 12vw); opacity: 0; transform: translateX(40px); transition: opacity .6s .5s, transform .8s .5s cubic-bezier(.2,1,.3,1); }
.div-res .dr-sub { display: flex; align-items: center; gap: 1.2vw; }
.div-res .dr-sub img:first-child { height: min(8vh, 6vw); opacity: 0; transition: opacity .6s .8s; }
.div-res .dr-seal { height: min(9vh, 7vw); opacity: 0; transform: scale(2.4) rotate(-14deg); transition: opacity .15s 1.1s, transform .25s 1.1s cubic-bezier(.5,0,.9,.5); }
.div-res.on .dr-name { opacity: 1; transform: none; } .div-res.on .dr-sub img:first-child { opacity: 1; } .div-res.on .dr-seal { opacity: 1; transform: scale(1) rotate(-6deg); }
.div-res .dr-ko { font-family: 'Jua', sans-serif; font-size: clamp(18px, 3vh, 26px); color: #f4ead6; opacity: 0; transition: opacity .6s 1.3s; display: flex; align-items: center; gap: 8px; }
.div-res .dr-msg { max-width: 34vw; font-size: clamp(14px, 2.1vh, 17px); line-height: 1.6; color: #e6dccb; background: rgba(8,10,20,.55); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 12px; padding: 10px 14px; opacity: 0; transition: opacity .6s 1.5s; }
.div-res .dr-ok { margin-top: 1.2vh; min-width: 200px; font-size: 18px; padding: 10px 0; opacity: 0; transition: opacity .5s 1.7s; }
.div-res.on .dr-ko, .div-res.on .dr-msg, .div-res.on .dr-ok { opacity: 1; }
.div-res.fail { display: flex; justify-content: center; }
.div-res.fail .dr-bg { filter: blur(10px) brightness(.35) saturate(.4); }
.div-res .dr-fail { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 34px; border-radius: 16px; background: rgba(10,12,22,.7); border: 1px solid rgba(160,170,190,.3); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s; }
.div-res.on .dr-fail { opacity: 1; transform: none; }
.div-res .dr-fail b { font-family: 'Jua', sans-serif; font-size: 26px; color: #c8cfdc; letter-spacing: .06em; }
.div-res .dr-fail small { color: #a8afbd; text-align: center; }
@media (max-width: 760px), (orientation: portrait) {
  .div-res { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; padding: 3vh 5vw; }
  .div-res .dr-art { width: min(52vh, 80vw); } .div-res .dr-rays { left: 50%; top: 34%; }
  .div-res .dr-txt { align-items: center; text-align: center; } .div-res .dr-name { height: 12vh; } .div-res .dr-msg { max-width: 88vw; }
}

/* c388: 신수 영상 위에 문구·기운이 보이도록 */
.cine.movie .cine-cap { z-index: 3; }

.cine.divine.movie .cine-bg { background: #000; }   /* 영상 불러오는 사이 마을 화면이 비치지 않게 */

.cine-cap .dv-dots { font-size: 54px; letter-spacing: 22px; color: #fff; text-shadow: 0 0 14px #fff, 0 0 30px var(--c, #8ef); }

.cine.dv-punch .cine-stage { animation: dvPunch .35s ease-out; }
@keyframes dvPunch { 0% { transform: scale(1.06); filter: brightness(1.8); } 100% { transform: none; filter: none; } }

/* c388: 로그인 화면 — PC / 모바일 앱 설치 (PWA: 크롬·엣지는 바로 설치 창 → 바탕화면/홈 화면 아이콘 · 별도 창으로 실행) */
.lg-inst { display: flex; gap: 8px; width: min(420px, 92vw); flex: none; }
.lg-ib { flex: 1 1 0; min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; text-align: left;
  color: #f4ead6; background: rgba(20,22,40,.66); border: 1px solid rgba(232,176,74,.45); backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
.lg-ib:hover { background: rgba(40,34,30,.8); transform: translateY(-1px); }
.lg-ib.here { border-color: #e8b04a; box-shadow: 0 0 0 1px rgba(232,176,74,.35), 0 6px 18px rgba(0,0,0,.35); }
.lg-ib svg { width: 26px; height: 26px; color: #ffd98a; flex: none; }
.lg-ib b { display: block; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 15px; color: #ffd98a; }
.lg-ib small { display: block; font-size: 11.5px; color: #d8ccb8; }
.lg-inst.done .lg-ib { display: none; }
@media (max-height: 720px) { .lg-ib { padding: 6px 10px; } .lg-ib small { display: none; } }
/* c388: 신수 영상 전환 덮개 (시작 빛 열기 · 끝 섬광/암전) */
.cine .div-flash { position: absolute; inset: 0; z-index: 60; pointer-events: none; background: var(--fc, #fff); opacity: 0; animation: dvFlash 600ms ease-out forwards; }
@keyframes dvFlash { 0% { opacity: 0; } 16% { opacity: var(--fp, 1); } 35% { opacity: var(--fp, 1); } 100% { opacity: 0; } }
/* c390: 폰 세로 화면에선 신수 영상을 화면 가득 (가로 영상이 작은 띠처럼 보이던 것) */
@media (orientation: portrait) { .cine-movie.div-mov { object-fit: cover; } }
/* c390: 폰 작은 글씨 키움 (8~10px → 10~11px) — 마을 시설 설명 · 전투 Lv/HP · 결투장 단계/속성 칩 */
@media (max-width: 760px) {
  .fac small { font-size: 11px; }
  .u-info > small:not(.hpt) { font-size: 10px; }
  .u-info .hpt { font-size: 11px; }
  .ar-h .ar-stg, .ar-h .ar-els .el { font-size: 10px; }
}
/* c390: 폰 세로 전투 — 위아래 빈 공간이 커서 3:3 일반 전투 아크링 그림을 조금 크게 (72 → 92px, 레이드 다인원·보스 제외) */
@media (max-width: 760px) and (orientation: portrait) {
  .bt-row:not(.many) .unit:not(.boss) .u-img { height: 92px; }
  .bt-row:not(.many) .unit:not(.boss) .u-img img { width: 92px; height: 92px; }
}
@media (max-width: 760px) {
  .gr small { font-size: 10px; }
  small.g { font-size: 10px; }
}
/* c390: 좁은 폰 상단 줄 — 칸이 넘치면 ☰ 버튼이 화면 밖으로 밀리던 것: 닉네임 칸이 먼저 줄어들고 ☰·재화는 고정 */
@media (max-width: 480px) {
  .topbar { overflow: hidden; }
  .topbar .me { min-width: 92px; flex: 1 1 auto; }
  .topbar > .gold, .topbar > .advbtn, .topbar > .menubtn { flex: none; }
}
/* c390: 로그인 화면 정돈 — 로그인/회원가입 탭 · 자동 로그인 · 소셜 자리 · 바로가기 (색은 게임 톤 그대로) */
.lg-auto { display: flex !important; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: 14px; color: #6b4a2a; cursor: pointer; user-select: none; }
.lg-auto input { appearance: none; -webkit-appearance: none; width: 20px !important; height: 20px; margin: 0 !important; padding: 0 !important; border-radius: 6px; border: 2px solid #d8b878; background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.lg-auto input:checked { background: #e8742a; border-color: #e8742a; }
.lg-auto input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.lg-or { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; color: #a8896a; font-size: 12.5px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: #e6d3b0; }
.lg-sns { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 12px; margin-top: 7px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; }
.lg-sns b { font-family: Arial, sans-serif; font-size: 17px; }
.lg-sns.g { background: #fff; color: #3c3c3c; border-color: #e2d3b8; } .lg-sns.g b { color: #4285f4; }
.lg-sns.n { background: #03c75a; color: #fff; }
.lg-sns.k { background: #fee500; color: #191600; }
.lg-links { display: flex; gap: 6px; width: min(420px, 92vw); }
.lg-links a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 12px; background: rgba(20,22,40,.55); border: 1px solid rgba(232,176,74,.4); color: #f3ead8; text-decoration: none; font-size: 12.5px; backdrop-filter: blur(4px); transition: background .15s; }
.lg-links a:hover { background: rgba(20,22,40,.75); }
.lg-links svg { width: 20px; height: 20px; color: #ffd98a; }
@media (max-height: 800px) { .lg-pts { display: none; } }
#scr-login .login-foot { position: static; margin-top: -4px; }
.lg-links a { flex-direction: row; justify-content: center; gap: 5px; padding: 8px 2px; font-size: 13px; }
.lg-links svg { width: 17px; height: 17px; }
/* c391b: 아크링 친구들은 늘 보이게 — 화면이 낮으면 숨기지 않고 작게 */
@media (max-height: 900px) and (max-width: 760px) { .lg-pts { display: none; } .lg-stage { height: 86px; } .lg-h.h2, .lg-h.h3 { height: 84px; } .lg-h.h1, .lg-h.h4 { height: 60px; } }
@media (max-height: 720px) { .lg-stage { display: flex !important; height: 66px; margin: -6px 0 -6px; } .lg-h.h2, .lg-h.h3 { height: 64px; } .lg-h.h1, .lg-h.h4 { height: 46px; } }
