/* Lumora Online: navy glass panels with gold accents */
:root { --panel: rgba(18, 30, 60, .93); --panel2: rgba(30, 46, 88, .95); --edge: #3c5a96; --ink: #e8eefc; --muted: #9fb0d4; --gold: #f6c845; --font: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b1424; color: var(--ink); font: 13px/1.35 var(--font); user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
#game { position: fixed; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; background: #0b1424; font-size: 22px; font-weight: 800; }

/* HUD panels */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
.card { position: absolute; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.me { left: 10px; top: 10px; width: 330px; display: flex; gap: 8px; padding: 7px; background: rgba(246,248,255,.97); color: #1c2a44; border-color: #c8d4ec; }
#portrait { width: 72px; height: 66px; border-radius: 8px; background: linear-gradient(180deg, #cfe4ff, #8eb8ec); border: 2px solid #9ab4dc; image-rendering: pixelated; }
.me-body { flex: 1; display: grid; gap: 3px; }
.me-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.job { font-size: 11px; color: #fff; background: #3a6ad0; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.bar { position: relative; height: 13px; background: #2a3550; border: 1px solid #1b2a4a; border-radius: 3px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width .15s; }
.bar span { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 700; line-height: 12px; color: #fff; text-shadow: 0 1px 1px #000; }
.bar.hp i { background: linear-gradient(180deg, #7ae07a, #2fa838); } .bar.sp i { background: linear-gradient(180deg, #7ab8ff, #2f6fe0); }
.bar.xp { height: 9px; } .bar.xp span { font-size: 8px; line-height: 8px; } .bar.xp i { background: linear-gradient(180deg, #ffe27a, #e0a020); } .bar.xp.job i { background: linear-gradient(180deg, #c8a0ff, #7a4ae0); }
.bar.foe i { background: linear-gradient(180deg, #ff8a7a, #d8323a); }
.lvrow { display: grid; grid-template-columns: 68px 1fr; align-items: center; font-size: 11px; font-weight: 600; color: #5a6c8c; }
.chips { position: absolute; left: 10px; top: 104px; display: flex; gap: 6px; }
.chip { background: var(--panel); border: 1px solid var(--edge); border-radius: 99px; padding: 3px 10px; font-weight: 700; }
.chip.zeny i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a0, #e0a020); margin-right: 5px; vertical-align: -1px; }
.chip.alert { background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-color: #b07a10; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.buffs { position: absolute; left: 10px; top: 134px; display: flex; gap: 4px; }
.buff { position: relative; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 6px; overflow: hidden; }
.buff canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.buff small { position: absolute; left: 0; right: 0; bottom: -1px; text-align: center; font-size: 9px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.quests { left: 10px; top: 170px; width: 300px; padding: 8px 10px; }
.qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 15px; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--gold); color: #3a2400; font-size: 11px; margin-left: 4px; }
.mini-btn { background: var(--panel2); border: 1px solid var(--edge); border-radius: 8px; padding: 2px 10px; font-weight: 700; }
.qitem { background: rgba(255,255,255,.05); border-left: 3px solid var(--gold); border-radius: 6px; padding: 5px 8px; margin-bottom: 5px; cursor: pointer; }
.qitem.board { border-left-color: #4ab0ff; } .qitem.dim { opacity: .65; font-size: 12px; }
.qdesc { color: #c8d6f4; font-size: 12px; }
.qtag { display: inline-block; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 5px; margin-right: 5px; color: #fff; }
.qtag.story { background: #c8902a; } .qtag.board { background: #2f6fe0; }
.topmenu { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px 8px; background: linear-gradient(180deg, rgba(18,30,60,.88), rgba(18,30,60,.6)); border: 1px solid rgba(60,90,150,.8); border-radius: 12px; }
.topmenu button { background: none; border: 0; display: grid; justify-items: center; gap: 1px; padding: 2px 6px; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.topmenu svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); transition: transform .12s; }
.topmenu button:hover svg { transform: translateY(-2px) scale(1.08); }
.minimap { right: 10px; top: 10px; width: 214px; padding: 0 5px 5px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 3px; } .mhead span { color: var(--muted); font-size: 11px; }
#mini { display: block; width: 200px; height: 160px; border-radius: 6px; border: 1px solid #0b1424; }
.target { left: 50%; top: 70px; transform: translateX(-50%); width: 270px; padding: 6px 10px; border-color: #8a3a4a; }
.chat { left: 10px; bottom: 10px; width: 410px; padding: 6px; }
.chat-tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.chat-tabs button { background: rgba(255,255,255,.07); border: 1px solid var(--edge); border-radius: 6px; padding: 2px 12px; font-size: 12px; font-weight: 700; color: #c8d6f4; }
.chat-tabs button.on { background: #2f6fe0; color: #fff; border-color: #6a9aff; }
.chat-log { height: 128px; overflow-y: auto; padding: 0 4px; font-size: 12px; scrollbar-width: thin; }
.chat-log div { margin: 1px 0; }
.chat-log .sys { color: #ffe08a; } .chat-log .loot { color: #b8ffb0; } .chat-log .warn { color: #ff9a9a; } .chat-log .say b { color: #8ac8ff; } .chat-log .me b { color: #fff; }
.chat-log.f-say .sys, .chat-log.f-say .loot, .chat-log.f-say .warn, .chat-log.f-sys .say, .chat-log.f-sys .me { display: none; }
#chatIn { width: 100%; margin-top: 4px; border: 1px solid var(--edge); border-radius: 8px; padding: 6px 9px; background: rgba(8,14,30,.9); color: #fff; font: inherit; }
.hotbar-wrap { left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px; }
.hotbar { display: flex; gap: 3px; }
.hk { position: relative; width: 48px; height: 48px; border: 1px solid var(--edge); border-radius: 6px; background: rgba(8,14,30,.75); padding: 0; display: grid; place-items: center; overflow: hidden; }
.hk canvas { image-rendering: pixelated; }
.hk kbd { position: absolute; left: 3px; top: 1px; font: 800 9px var(--font); color: #9fb0d4; }
.hk .n { position: absolute; right: 3px; bottom: 1px; font-weight: 800; font-size: 11px; text-shadow: 0 1px 2px #000; }
.hk .cd { position: absolute; inset: 0; background: conic-gradient(rgba(5,10,25,.72) var(--p, 0%), transparent 0); }
.hk.off canvas { opacity: .4; } .hk:hover { border-color: var(--gold); }
.toast { position: absolute; left: 50%; top: 118px; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--edge); border-radius: 99px; padding: 6px 16px; font-weight: 700; z-index: 99; }
.toast.in { position: static; transform: none; margin-top: 8px; text-align: center; border-radius: 8px; }
.banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 42px; font-weight: 900; color: #fff3c0; pointer-events: none; text-shadow: -3px -3px 0 #6a3a00, 3px -3px 0 #6a3a00, -3px 3px 0 #6a3a00, 3px 3px 0 #6a3a00, 0 0 24px #ffb000; white-space: nowrap; }
.banner.zone { top: 22%; font-size: 34px; color: #fff; text-shadow: -3px -3px 0 #1c3a8a, 3px -3px 0 #1c3a8a, -3px 3px 0 #1c3a8a, 3px 3px 0 #1c3a8a, 0 0 18px #4a8aff; }

/* windows */
.win { position: absolute; background: var(--panel); border: 2px solid var(--edge); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.55); max-height: calc(var(--hud-h, 100vh) - 30px); display: flex; flex-direction: column; }
.win.static { position: static; }
.win-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: linear-gradient(180deg, #2c4a8a, #1c3166); border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--edge); font-weight: 800; cursor: move; }
.win-head button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); font-weight: 900; }
.win-body { padding: 10px 12px; overflow-y: auto; }
.win h3 { margin: 8px 0 5px; color: var(--gold); font-size: 13px; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.btn { background: linear-gradient(180deg, #2f4a86, #1f3366); border: 1px solid #4a6ab0; border-radius: 8px; padding: 6px 13px; font-weight: 700; color: #fff; }
.btn:hover { border-color: #8ab0ff; } .btn:disabled { opacity: .4; cursor: default; }
.btn.gold { background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-color: #b07a10; }
.btn.small { padding: 3px 10px; font-size: 12px; } .btn.big { font-size: 17px; padding: 11px 26px; border-radius: 10px; } .btn.wide { width: 100%; margin-top: 8px; }
.note { color: var(--muted); font-size: 12px; } .gold { color: var(--gold); font-weight: 800; }
.say { font-size: 14px; line-height: 1.5; white-space: pre-line; margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-content: start; } .kv span { color: var(--muted); }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.srow { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 6px; align-items: center; background: var(--panel2); border: 1px solid var(--edge); border-radius: 8px; padding: 3px 6px; margin-bottom: 4px; }
.srow .sv { font-weight: 800; font-size: 14px; } .srow .bonus { color: #8aff9a; font-size: 11px; }
.plus { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #b07a10; background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; font-weight: 900; padding: 0; }
.plus:disabled { opacity: .35; cursor: default; }
.pts { margin-top: 4px; color: var(--muted); } .pts b { color: var(--gold); font-size: 15px; }
.inv-grid { display: grid; grid-template-columns: repeat(6, 46px); gap: 4px; margin-top: 6px; }
.slot { position: relative; width: 46px; height: 46px; border: 1px solid var(--edge); border-radius: 6px; background: rgba(8,14,30,.75); padding: 0; display: grid; place-items: center; }
.slot canvas { image-rendering: pixelated; } .slot.empty { opacity: .5; } .slot.sel { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(246,200,69,.45); } .slot.on { border-color: #f0a030; }
.slot .n { position: absolute; right: 3px; bottom: 1px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; } .slot .r { position: absolute; left: 3px; top: 1px; color: #ffcf3a; font-size: 11px; font-weight: 900; text-shadow: 0 1px 2px #000; }
.slot.big { width: 46px; height: 46px; }
.detail { margin-top: 8px; background: var(--panel2); border: 1px solid var(--edge); border-radius: 10px; padding: 8px 10px; } .detail h4 { margin: 0 0 3px; color: var(--gold); }
.eqwrap { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.doll { width: 128px; height: 128px; image-rendering: pixelated; background: radial-gradient(circle at 50% 45%, #3c5a96, #14203e); border-radius: 10px; border: 1px solid var(--edge); }
.eqslot { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.skill { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--edge); border-radius: 10px; padding: 5px; margin-bottom: 5px; }
.skill canvas { image-rendering: pixelated; border-radius: 6px; } .skill.locked { opacity: .45; } .lock { font-size: 11px; color: var(--muted); }
.quest { background: var(--panel2); border: 1px solid var(--edge); border-left: 3px solid var(--gold); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; }
.quest .prog { font-weight: 800; color: #8ac8ff; margin: 3px 0; }
.shop { display: grid; gap: 4px; margin-bottom: 6px; }
.shop-row { display: grid; grid-template-columns: 38px 1fr auto auto; gap: 8px; align-items: center; background: var(--panel2); border: 1px solid var(--edge); border-radius: 8px; padding: 3px 8px; }
.shop-row canvas { image-rendering: pixelated; }
.worldmap { display: block; border-radius: 8px; border: 1px solid var(--edge); }
.help { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; } .help kbd { font: 700 12px var(--font); background: rgba(8,14,30,.85); border: 1px solid var(--edge); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.jobcard { background: var(--panel2); border: 1px solid var(--edge); border-radius: 10px; padding: 8px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.jobpic { width: 96px; height: 96px; image-rendering: pixelated; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button { background: rgba(8,14,30,.75); border: 1px solid var(--edge); border-radius: 8px; padding: 5px 11px; font-weight: 700; }
.seg button.on { background: linear-gradient(180deg, #4a8aff, #2f6fe0); border-color: #8ab0ff; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #14203e; box-shadow: 0 0 0 1px #6a8ac0; padding: 0; }
.swatches button.on { box-shadow: 0 0 0 3px var(--gold); }
.dead { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(60,0,20,.4); z-index: 200; text-align: center; }

/* title / character creation */
.title { position: fixed; inset: 0; z-index: 50; }
.logo { position: absolute; left: 28px; top: 18px; font-size: 44px; font-weight: 900; color: #fff; text-shadow: -3px -3px 0 #1c3a8a, 3px -3px 0 #1c3a8a, -3px 3px 0 #1c3a8a, 3px 3px 0 #1c3a8a, 0 6px 14px rgba(0,0,0,.5); letter-spacing: 1px; }
.logo span { color: var(--gold); text-shadow: -3px -3px 0 #7a4a00, 3px -3px 0 #7a4a00, -3px 3px 0 #7a4a00, 3px 3px 0 #7a4a00, 0 6px 14px rgba(0,0,0,.5); }
.logo small { display: block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #dfe8ff; text-shadow: 0 1px 3px #000; margin-top: 4px; }
.cc-stage { position: absolute; left: 0; right: 470px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 30px; }
.cc-pad { display: grid; justify-items: center; }
.cc-pad::after { content: ''; width: 260px; height: 70px; margin-top: -40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: radial-gradient(ellipse, rgba(255,255,255,.18), rgba(255,255,255,0) 70%); z-index: -1; }
#ccSprite { width: 160px; height: 200px; image-rendering: pixelated; filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.cc-plate { margin-top: 6px; background: rgba(10,16,32,.8); border-radius: 99px; padding: 6px 22px; font-size: 20px; font-weight: 800; font-style: italic; }
.cc-sub { margin-top: 6px; background: rgba(10,16,32,.8); border-radius: 99px; padding: 2px 12px; font-size: 12px; font-weight: 700; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); background: rgba(10,16,32,.7); font-size: 18px; }
.cc-panel { position: absolute; right: 14px; top: 14px; bottom: 14px; width: 440px; background: var(--panel); border: 2px solid var(--edge); border-radius: 16px; padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; box-shadow: 0 16px 50px rgba(0,0,0,.5); }
.cc-title { margin: 0 0 12px; font-size: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: rgba(8,14,30,.7); border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 800; font-size: 15px; color: #c8d6f4; }
.tabs button.on { background: linear-gradient(180deg, #2f7ae8, #1f5ac8); color: #fff; }
.tabs i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.18); font-style: normal; font-size: 11px; margin-right: 6px; }
.field { margin-bottom: 12px; } .field label { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-bottom: 5px; }
.cc-stats { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; }
.cc-stats .srow { grid-template-columns: 40px auto 28px auto; }
.cc-derived { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.cc-derived div { background: var(--panel2); border: 1px solid var(--edge); border-radius: 8px; padding: 4px 8px; } .cc-derived span { display: block; color: var(--muted); font-size: 11px; } .cc-derived b { font-size: 15px; }
.cc-bottom { margin-top: auto; padding-top: 12px; }
.cc-bottom input { width: 100%; border: 1px solid var(--edge); border-radius: 10px; background: rgba(8,14,30,.85); color: #fff; padding: 11px 12px; font: inherit; font-size: 16px; }
.cc-bottom input.bad { border-color: #e04a4a; }
.continue { display: flex; gap: 12px; align-items: center; background: var(--panel2); border: 1px solid var(--edge); border-radius: 12px; padding: 10px; }
.continue h2 { margin: 0; } .cc-sprite.small { width: 96px; height: 96px; image-rendering: pixelated; }
.fine { color: var(--muted); font-size: 11px; margin: 12px 0 0; }

/* navigation */
.mhead { gap: 6px; }
.mhead .navi { margin-left: auto; padding: 1px 8px; font-size: 11px; background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-color: #b07a10; }
#mini { cursor: crosshair; }
.qitem { position: relative; padding-right: 44px; }
.qitem .go { position: absolute; right: 6px; top: 5px; border: 1px solid #b07a10; background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-radius: 6px; font-size: 11px; font-weight: 800; padding: 1px 9px; }
.navpill { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--panel); border: 2px solid var(--gold); border-radius: 99px; padding: 4px 6px 4px 14px; font-weight: 800; }
.navpill button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); font-weight: 900; }
.nav-row { grid-template-columns: 1fr auto 4px auto; }

/* ===== light windows (clean cards on soft blue) ===== */
.win { background: #e8eef7; color: #1c2a44; border: 2px solid #9ab4dc; }
.win .win-head { background: linear-gradient(180deg, #4a7ad0, #2f5cb0); border-bottom: 1px solid #2a4a90; }
.win .note { color: #5a6c8c; } .win h3 { color: #2f5cb0; } .win .gold { color: #b07800; }
.win .btn { background: linear-gradient(180deg, #ffffff, #dde8f8); color: #1c2a44; border-color: #9ab4dc; }
.win .btn:hover { border-color: #2f6fe0; }
.win .btn.gold { background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-color: #b07a10; }
.win .btn.blue { background: linear-gradient(180deg, #5a8ae0, #2f5cb0); color: #fff; border-color: #2a4a90; }
.win .shop-row, .win .quest, .win .skill, .win .detail, .win .jobcard, .win .srow, .win .continue { background: #ffffff; border-color: #c8d8ee; color: #1c2a44; }
.win .quest .prog { color: #2f6fe0; } .win .detail h4 { color: #2f5cb0; }
.win .kv span { color: #5a6c8c; } .win .help kbd { background: #fff; border-color: #c8d8ee; color: #1c2a44; }
.win .seg button { background: #fff; border-color: #c8d8ee; color: #1c2a44; } .win .seg button.on { background: linear-gradient(180deg, #4a8aff, #2f6fe0); color: #fff; }
.win .slot { background: #fff; border-color: #c8d8ee; }
canvas.icon { image-rendering: auto !important; }
.hk canvas.icon { image-rendering: auto; }
/* bag */
.bag-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.bag-tabs button { border: 1px solid #c8d8ee; background: #fff; border-radius: 99px; padding: 4px 12px; font-weight: 700; color: #1c2a44; }
.bag-tabs button i { font-style: normal; color: #8a9ab8; margin-left: 5px; font-size: 11px; }
.bag-tabs button.on { background: #2f5cb0; color: #fff; border-color: #2a4a90; } .bag-tabs button.on i { color: #cfe0ff; }
.bag-tools { margin-bottom: 8px; } .wide-btn { flex: 1; font-size: 15px; padding: 8px; }
.bag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 360px; overflow-y: auto; padding: 2px; }
.bag-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 92px; padding: 7px 3px 5px; background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; color: #1c2a44; box-shadow: 0 1px 2px rgba(30,60,120,.08); }
.bag-card:hover { border-color: #6a9ae0; box-shadow: 0 2px 8px rgba(30,80,160,.18); }
.bag-card.sel { border-color: #2f6fe0; box-shadow: 0 0 0 2px #9cc0ff; }
.bag-card.on { background: #fff8e4; border-color: #e8b850; }
.bag-name { font-size: 11px; line-height: 1.15; text-align: center; max-height: 2.3em; overflow: hidden; }
.bag-n { position: absolute; right: 6px; top: 4px; font-size: 11px; font-weight: 800; color: #1c2a44; }
.bag-r { position: absolute; left: 6px; top: 4px; font-size: 11px; font-weight: 900; color: #d08a00; }
.bag-e { position: absolute; left: 5px; bottom: 26px; font-size: 9px; font-weight: 900; color: #fff; background: #e0a020; border-radius: 4px; padding: 0 3px; }
.bag-foot { display: flex; justify-content: space-between; margin-top: 8px; color: #5a6c8c; font-size: 12px; }
/* status */
.st-head { background: #fff; border: 1px solid #c8d8ee; border-radius: 8px; padding: 6px 10px 0; margin-bottom: 8px; font-size: 14px; }
.st-exp { height: 6px; margin: 6px -10px 0; background: #1c2a44; border-radius: 0 0 8px 8px; overflow: hidden; } .st-exp i { display: block; height: 100%; background: linear-gradient(90deg, #ffb020, #ffd768); }
.st-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; }
.st-row { display: grid; grid-template-columns: 46px 30px 1fr 28px 18px; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; }
.st-row.hot { background: #fff4d4; border-color: #f0c860; }
.st-key { color: #2f5cb0; } .st-val { font-weight: 800; font-size: 15px; } .st-bonus { color: #2a9a3a; font-weight: 700; font-size: 12px; } .st-cost { color: #8a9ab8; font-size: 11px; }
.st-plus { width: 26px; height: 24px; border-radius: 6px; border: 1px solid #d8b050; background: linear-gradient(180deg, #fff1b8, #f0c860); color: #5a3a00; font-weight: 900; padding: 0; }
.st-plus:disabled { opacity: .35; cursor: default; }
.st-hint { margin: 6px 0; background: #eaf7ec; border: 1px solid #b8e0c0; border-radius: 8px; padding: 6px 8px; font-size: 12px; } .st-hint i { color: #2a9a3a; font-style: normal; font-weight: 800; margin-right: 6px; } .st-hint.dim { background: #f2f6fc; border-color: #d8e4f4; color: #8a9ab8; }
.st-pts { font-size: 15px; font-weight: 800; margin-top: 6px; } .st-pts b { color: #d08a00; }
.st-attr { background: #fff; border: 1px solid #c8d8ee; border-radius: 8px; padding: 4px 10px; }
.st-attr div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #edf2f9; font-size: 13px; } .st-attr div:last-child { border-bottom: 0; } .st-attr span { color: #4a5c7c; }

/* auto attack toggle */
.hotbar-wrap { display: flex; gap: 6px; align-items: stretch; }
.autobox { display: grid; gap: 3px; }
.auto-btn { display: grid; place-items: center; width: 58px; border-radius: 8px; border: 1px solid #3c5a96; background: rgba(8,14,30,.75); font-weight: 900; font-size: 12px; letter-spacing: 1px; line-height: 1.1; padding: 3px 0; }
.auto-btn b { font-size: 10px; color: #ff8a8a; }
.auto-btn.on { background: linear-gradient(180deg, #5ae06a, #2a9a3a); border-color: #8affa0; box-shadow: 0 0 10px rgba(90,224,106,.6); } .auto-btn.on b { color: #fff; }
.auto-skill { border-radius: 6px; border: 1px solid #3c5a96; background: rgba(8,14,30,.75); font-size: 10px; font-weight: 800; padding: 1px 0; color: #9fb0d4; }
.auto-skill.on { color: #ffd84a; border-color: #b07a10; }
.bag-e { left: 5px; top: 4px; bottom: auto; }
.bag-r { top: 19px; }

/* ===== HUD layout pass ===== */
.chip.lum i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; background: linear-gradient(135deg, #bfe8ff, #4a8aff); transform: rotate(45deg); border-radius: 2px; }
.chip.zeny b, .chip.lum b { font-weight: 800; }
.plus-mini { margin-left: 6px; width: 16px; height: 16px; border-radius: 50%; border: 0; background: #5ae06a; color: #0a2a10; font-weight: 900; font-size: 11px; line-height: 16px; padding: 0; }
.topmenu { max-width: calc(var(--hud-w, 100vw) - 600px); overflow-x: auto; scrollbar-width: none; }
.minimap { width: 220px; padding: 0 5px 5px; }
.mini-wrap { position: relative; }
#mini { width: 208px; height: 166px; }
.mini-zoom { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 3px; }
.mini-zoom button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid #fff; background: #2f5cb0; color: #fff; font-weight: 900; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mini-lv { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; padding: 4px 2px 0; }
.mini-exp { height: 7px; background: #0d1830; border-radius: 4px; overflow: hidden; } .mini-exp i { display: block; height: 100%; background: linear-gradient(90deg, #ffb020, #ffd768); }
.mini-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); padding: 2px 2px 0; }
.feed { right: 10px; top: 274px; width: 220px; padding: 6px 8px; max-height: 210px; overflow: hidden; }
.feed-head { margin-bottom: 4px; font-size: 14px; }
.feed-item { font-size: 11.5px; line-height: 1.3; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.feed-item b { color: #8ac8ff; } .feed-item i { font-style: normal; color: #ffd84a; } .feed-item small { display: block; color: var(--muted); font-size: 10px; }
.feed-item.me b { color: #b8ffb0; } .feed-item.boss i { color: #ff9aff; }
.chat { width: 440px; }
.chat-row { display: grid; grid-template-columns: 34px 1fr 40px; gap: 4px; margin-top: 4px; }
.chat-row #chatIn { margin: 0; }
.chat-row .emote, .chat-row .send { border: 1px solid var(--edge); border-radius: 8px; background: rgba(8,14,30,.9); font-size: 16px; }
.chat-row .send { background: linear-gradient(180deg, #4a8aff, #2f5cb0); }
.hotbar-wrap { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; align-items: stretch; padding: 5px; background: linear-gradient(180deg, rgba(14,22,44,.96), rgba(8,14,30,.96)); border: 2px solid #3c5a96; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.hb-page { display: grid; place-items: center; width: 30px; border-radius: 8px; background: #fff; color: #1c2a44; font-weight: 900; font-size: 15px; }
.hotbar { gap: 2px; background: rgba(0,0,0,.35); border-radius: 8px; padding: 2px; }
.hk { width: 46px; height: 46px; background: rgba(30,40,60,.85); border-color: #2a3a5a; }
.hb-btn { width: 54px; border-radius: 8px; border: 1px solid #3c5a96; background: linear-gradient(180deg, #2f4a86, #1f3366); font-weight: 800; font-size: 12px; }

/* ===== creation scene ===== */
#ccScene { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.title { z-index: 50; background: none; }
.cc-stage { right: 470px; align-items: flex-start; }
.cc-pad { position: absolute; left: 50%; top: calc(var(--feet, 80vh) - 300px); transform: translateX(-50%); }
.cc-pad::after { display: none; }
#ccSprite { width: 320px; height: 320px; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
.cc-plate { margin-top: -14px; font-size: 22px; padding: 6px 26px; background: rgba(20,24,40,.82); }
.arrow { position: absolute; top: calc(var(--feet, 80vh) - 170px); }
#ccPrev { left: calc(50% - 230px); } #ccNext { left: calc(50% + 184px); }
.cc-panel { width: 450px; }
.body-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.body-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; border: 2px solid #3c5a96; background: linear-gradient(180deg, rgba(40,60,110,.6), rgba(14,22,44,.8)); font-size: 15px; }
.body-card.on { border-color: #8ab0ff; background: linear-gradient(180deg, #2f6fe0, #1c3e8a); box-shadow: 0 0 0 2px rgba(138,176,255,.35); }
.body-card .check { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #2f6fe0; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.body-pv { width: 112px; height: 112px; image-rendering: pixelated; }
.hair-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.hair-dots button { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000)); padding: 0; box-shadow: 0 3px 6px rgba(0,0,0,.4); }
.hair-dots button.on { border-color: #fff; box-shadow: 0 0 0 3px #2f6fe0, 0 3px 6px rgba(0,0,0,.4); }
.hair-dots.small { grid-template-columns: repeat(8, 1fr); } .hair-dots.small button { width: 36px; height: 36px; }
.btn.next { border-radius: 99px; padding: 6px 16px; }

.chat-log.f-world .sys, .chat-log.f-world .loot, .chat-log.f-world .warn, .chat-log.f-trade .sys, .chat-log.f-trade .loot, .chat-log.f-trade .warn, .chat-log.f-party .sys, .chat-log.f-party .loot, .chat-log.f-party .warn { display: none; }

/* ===== equipment window (slots around the character) ===== */
.eq-tabs { display: flex; gap: 4px; border-bottom: 2px solid #4a7ad0; margin-bottom: 10px; }
.eq-tabs button { border: 1px solid #9ab4dc; border-bottom: 0; background: #fff; color: #1c2a44; border-radius: 8px 8px 0 0; padding: 6px 18px; font-weight: 700; font-size: 14px; }
.eq-tabs button.on { background: linear-gradient(180deg, #4a7ad0, #2f5cb0); color: #fff; border-color: #2a4a90; }
.eq-layout { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 8px; align-items: stretch; }
.eq-col { display: grid; gap: 6px; align-content: start; }
.eq-slot { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; background: linear-gradient(180deg, #fbfdff, #e2ebf7); border: 1px solid #b8cce6; border-radius: 6px; color: #5a6c8c; font-size: 12px; text-align: left; }
.eq-slot.r { flex-direction: row-reverse; text-align: right; }
.eq-slot.filled { color: #1c2a44; font-weight: 700; } .eq-slot.filled .eq-lbl { color: #2a7a3a; }
.eq-slot:hover { border-color: #2f6fe0; }
.eq-ic { flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 1px solid #c8d8ee; border-radius: 4px; }
.eq-lbl { line-height: 1.15; }
.eq-center { display: grid; justify-items: center; align-content: center; gap: 6px; background: linear-gradient(180deg, #e2e9f4, #c8d4e6); border: 1px solid #b8cce6; border-radius: 8px; padding: 8px; }
.eq-center b { color: #2f5cb0; }
.eq-pv { width: 128px; height: 128px; image-rendering: pixelated; }
.eq-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; margin-top: 10px; background: #fff; border: 1px solid #c8d8ee; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.eq-stats b { color: #2f5cb0; }
.wing-pick { display: flex; flex-wrap: wrap; gap: 4px; }
/* ===== wingmaker + cash shop ===== */
.wing-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; }
.wing-row.owned { background: #f2fbf3; border-color: #b8e0c0; }
.recipe { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.recipe span { font-size: 11px; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.recipe .ok { background: #e2f6e6; color: #2a7a3a; } .recipe .miss { background: #fdeaea; color: #b03a3a; }
.owned-tag { font-weight: 800; color: #2a9a3a; }
.lumens { font-weight: 800; color: #2f5cb0; } .lumens i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; background: linear-gradient(135deg, #bfe8ff, #4a8aff); transform: rotate(45deg); border-radius: 2px; }
.cash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cash-card { display: grid; justify-items: center; gap: 4px; background: #fff; border: 1px solid #c8d8ee; border-radius: 12px; padding: 8px; text-align: center; }
.cash-card.owned { background: #f6f9ff; }
.cash-pv { width: 110px; height: 110px; image-rendering: pixelated; background: radial-gradient(circle at 50% 45%, #eef4ff, #c8d8f0); border-radius: 10px; }

/* ===== Central Marketplace + Lumen Exchange ===== */
.cur { font-weight: 800; white-space: nowrap; color: #8a5a00; } .cur i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a0, #e0a020); vertical-align: -1px; }
.cur.l { color: #2f5cb0; } .cur.l i { border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #bfe8ff, #4a8aff); }
.cur.up { color: #1f9a5a; } .cur.down { color: #c8443a; }
.mk-wallet { display: flex; gap: 12px; padding: 4px 10px; background: #fff; border: 1px solid #c8d8ee; border-radius: 99px; font-size: 13px; }
.win .row.between .eq-tabs { margin-bottom: 0; flex: 1; }
.mk-filters { display: flex; gap: 8px; margin: 10px 0 6px; }
.win input, .win select { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid #9ab4dc; border-radius: 8px; background: #fff; color: #1c2a44; }
.mk-search { flex: 1; } .mk-cats { margin-bottom: 8px; flex-wrap: wrap; }
.mk-list { max-height: 400px; overflow-y: auto; padding-right: 2px; }
.mk-row .note { font-size: 11px; } .mk-price { display: grid; justify-items: end; } .mk-price small { color: #5a6c8c; font-size: 10px; }
.tag { margin-left: 6px; padding: 0 6px; border-radius: 99px; font-size: 10px; font-weight: 800; } .tag.deal { background: #d8f4e2; color: #1f8a4a; } .tag.high { background: #fbe0dc; color: #b8443a; }
.mk-sell { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; }
.mk-bag { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 5px; align-content: start; max-height: 330px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; }
.mk-cell { position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid #c8d8ee; border-radius: 8px; background: #f2f6fc; display: grid; place-items: center; }
.mk-cell.on { border: 2px solid #2f6fe0; background: #dfeaff; } .mk-cell small { position: absolute; right: 2px; bottom: 0; font-size: 10px; font-weight: 800; color: #1c2a44; text-shadow: 0 0 2px #fff; }
.mk-form { display: grid; gap: 6px; align-content: start; } .mk-form label { font-size: 12px; font-weight: 700; color: #5a6c8c; margin-top: 4px; } .mk-form .row { gap: 8px; align-items: center; }
.mk-total, .x-total { font-size: 13px; font-weight: 700; color: #2f5cb0; padding: 6px 8px; background: #fff; border-radius: 8px; border: 1px dashed #9ab4dc; }
.mk-hist { display: grid; gap: 3px; max-height: 200px; overflow-y: auto; margin-bottom: 6px; }
.hrow { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 8px; align-items: center; padding: 4px 8px; background: #fff; border: 1px solid #c8d8ee; border-radius: 7px; font-size: 12px; }
.hrow small { color: #7a8aa8; } .hkind { font-weight: 800; color: #5a6c8c; }
.hrow.buy .hkind { color: #1f9a5a; } .hrow.sell .hkind { color: #c8443a; } .hrow.list .hkind { color: #2f5cb0; }
.x-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; } .x-px { font-size: 24px; } .x-chg { font-weight: 800; } .x-chg.up { color: #1f9a5a; } .x-chg.down { color: #c8443a; }
.x-chart { width: 100%; height: auto; border: 1px solid #c8d8ee; border-radius: 10px; display: block; }
.x-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; margin-top: 10px; }
.x-book { background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; padding: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.x-bh, .x-lvl { display: grid; grid-template-columns: 1fr 1fr; padding: 2px 6px; } .x-bh { color: #7a8aa8; font-size: 11px; } .x-lvl span:last-child, .x-bh span:last-child { text-align: right; }
.x-lvl { cursor: pointer; border-radius: 4px; } .x-lvl:hover { background: #eef3fb; } .x-lvl.ask span:first-child { color: #c8443a; font-weight: 700; } .x-lvl.bid span:first-child { color: #1f9a5a; font-weight: 700; }
.x-mid { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 6px; margin: 3px 0; border-top: 1px solid #e4ebf5; border-bottom: 1px solid #e4ebf5; font-size: 15px; } .x-mid small { color: #7a8aa8; }
.x-form { display: grid; gap: 6px; align-content: start; } .x-form label { font-size: 12px; font-weight: 700; color: #5a6c8c; }
.x-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } .x-sides button { padding: 7px; border-radius: 8px; border: 1px solid #c8d8ee; background: #fff; font-weight: 800; color: #5a6c8c; }
.x-sides .buy.on { background: #1f9a5a; color: #fff; border-color: #1a7a48; } .x-sides .sell.on { background: #d8443a; color: #fff; border-color: #b0362e; }
.x-quick { display: flex; gap: 4px; flex-wrap: wrap; }
.win .btn.x-buy { background: linear-gradient(180deg, #34b874, #1f9a5a); color: #fff; border-color: #1a7a48; } .win .btn.x-sell { background: linear-gradient(180deg, #ee6a5e, #d8443a); color: #fff; border-color: #b0362e; }
/* the top menu sits between the player card and the minimap, so all 14 buttons stay visible */
.topmenu { left: 340px; transform: none; max-width: calc(var(--hud-w, 100vw) - 340px - 236px); padding: 4px 4px; gap: 0; }
.topmenu button { padding: 2px 3px; font-size: 10.5px; min-width: 46px; }
.topmenu svg { width: 30px; height: 30px; }

/* ===== animated Cash Shop wings ===== */
.wfx-pv { image-rendering: pixelated; }
.eq-pv.wfx-pv { width: 100%; height: auto; }
.cash-title { font-size: 16px; background: linear-gradient(90deg, #b8306a, #6a3ae0, #1f8ac0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cash-hero { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: center; margin: 8px 0 12px; padding: 10px; border-radius: 16px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 25% 60%, #4a3a8a, #1a1438 70%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), 0 6px 18px rgba(30,20,80,.35); }
.cash-hero.fx-phoenix { background: radial-gradient(circle at 25% 60%, #8a3a1a, #2a0e08 70%); } .cash-hero.fx-frost { background: radial-gradient(circle at 25% 60%, #3a7aa8, #0e2438 70%); }
.cash-hero.fx-dragon { background: radial-gradient(circle at 25% 60%, #6a1420, #1a0408 70%); } .cash-hero.fx-seraph { background: radial-gradient(circle at 25% 60%, #b8904a, #3a2a18 70%); }
.cash-hero.fx-aurora { background: radial-gradient(circle at 25% 60%, #1a6a6a, #0a1a2a 70%); animation: auroraBg 6s linear infinite; }
@keyframes auroraBg { 50% { filter: hue-rotate(60deg); } }
.cash-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
.hero-pv { width: 300px; height: 200px; }
.hero-info h2 { margin: 4px 0; font-size: 24px; text-shadow: 0 2px 8px rgba(0,0,0,.6); } .hero-info p { margin: 0 0 8px; color: #e8e0ff; font-size: 13px; }
.hero-feats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .hero-feats span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.14); }
.hero-price { display: grid; margin-bottom: 10px; } .hero-price small { color: #c8c0e8; font-size: 11px; } .cash-hero .lumens { color: #bfe8ff; } .lumens.big { font-size: 20px; }
.buy-glow { animation: buyGlow 1.6s ease-in-out infinite; } @keyframes buyGlow { 50% { box-shadow: 0 0 0 4px rgba(255,215,100,.45), 0 0 18px rgba(255,200,80,.8); } }
.ribbon { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; color: #fff; background: #e04a6a; }
.ribbon.new { background: #2f9a5a; } .ribbon.limited { background: linear-gradient(90deg, #e04a6a, #8a3ae0); animation: pulse 1.2s ease-in-out infinite; } .ribbon.hot { background: #e86a1a; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.cash-card.fxc { position: relative; cursor: pointer; overflow: hidden; transition: transform .12s, box-shadow .12s; }
.cash-card.fxc .ribbon { position: absolute; left: 6px; top: 6px; z-index: 1; }
.cash-card.fxc canvas { width: 100%; height: auto; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #3a2a6a, #14102a); }
.cash-card.fx-phoenix canvas { background: radial-gradient(circle at 50% 70%, #6a2a12, #1a0806); } .cash-card.fx-frost canvas { background: radial-gradient(circle at 50% 70%, #2a5a7a, #0a1a2a); }
.cash-card.fx-dragon canvas { background: radial-gradient(circle at 50% 70%, #5a1018, #140306); } .cash-card.fx-seraph canvas { background: radial-gradient(circle at 50% 70%, #8a6a3a, #2a1e10); }
.cash-card.fx-aurora canvas { background: radial-gradient(circle at 50% 70%, #145a5a, #08141e); }
.cash-card.fxc:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(40,30,120,.25); }
.cash-card.fxc.sel { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--a, 0deg), #ff6ab0, #ffd84a, #6affc8, #6a9aff, #ff6ab0) border-box; animation: spinBorder 3s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --a: 360deg; } }
.cash-grid.classic { grid-template-columns: repeat(5, 1fr); } .cash-grid.classic .cash-pv { width: 80px; height: 80px; } .cash-grid.classic b { font-size: 11px; }
.topmenu button[data-win="cashshop"] svg { animation: cashPulse 2s ease-in-out infinite; } @keyframes cashPulse { 50% { filter: drop-shadow(0 0 6px #ffd84a) drop-shadow(0 2px 2px rgba(0,0,0,.5)); transform: scale(1.08); } }
.feed-item.cash i { color: #ff9ad0; }

/* ===== recommended builds ===== */
.rec-box { background: linear-gradient(180deg, #fffaf0, #fff3d8); border: 1px solid #f0c860; border-radius: 10px; padding: 8px 10px; margin: 8px 0; }
.rec-box .row { gap: 6px; align-items: center; } .rec-box .note { margin: 6px 0 0; }
.rec-tag { font-size: 10px; font-weight: 900; color: #fff; background: #e0a020; border-radius: 99px; padding: 2px 8px; letter-spacing: .04em; }
.rec-bars { display: grid; gap: 3px; margin-top: 6px; }
.rec-bar { display: grid; grid-template-columns: 40px 1fr 38px; align-items: center; gap: 6px; font-size: 12px; position: relative; }
.rec-bar i { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f0b030, #e07a20); grid-column: 2; } .rec-bar span { color: #8a6a2a; font-weight: 700; text-align: right; grid-column: 3; }
.rec-bar.next b { color: #e0702a; }
.st-row.rec .st-key::after { content: '★'; color: #e0a020; font-size: 10px; margin-left: 2px; vertical-align: top; }
.st-row.next { background: #fff8e4; } .st-row.next .st-plus:not(:disabled) { box-shadow: 0 0 0 2px #f0b030; animation: pulse 1.4s ease-in-out infinite; }
.skill { position: relative; } .skill.recd { border-color: #f0c860 !important; }
.rec-n { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: #e0a020; color: #fff; font-weight: 900; font-size: 11px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); z-index: 1; }
.rec-role { margin-left: 6px; font-size: 10px; font-weight: 800; color: #b07800; background: #fff3d0; border-radius: 99px; padding: 1px 7px; }
.guide-tabs { margin-bottom: 8px; } .guide-top { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; } .guide-top p { margin: 4px 0; }
.guide-pv { width: 96px; height: 96px; image-rendering: pixelated; background: radial-gradient(circle, #eef4ff, #c8d8f0); border-radius: 12px; }

/* ===== party ===== */
.topmenu button { min-width: 43px; padding: 2px 2px; }
.party-panel { position: absolute; left: 10px; top: 312px; width: 200px; background: rgba(18,30,60,.85); border: 1px solid rgba(60,90,150,.8); border-radius: 12px; padding: 6px; display: grid; gap: 4px; }
.pp-head { display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0 4px 2px; color: #fff; font-size: 13px; }
.pp-bonus { font-size: 11px; font-weight: 900; color: #3a2400; background: linear-gradient(180deg, #ffd768, #e0a22a); border-radius: 99px; padding: 1px 8px; }
.pp-row { display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: center; padding: 2px 4px; border-radius: 8px; background: rgba(255,255,255,.06); }
.pp-row b { display: block; font-size: 12px; color: #7affc8; } .pp-row small { font-size: 10px; color: #9fb0d4; }
.pp-face-wrap { width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: radial-gradient(circle, #3a5a96, #1a2a4a); position: relative; }
.pp-face { position: absolute; width: 60px; height: 60px; left: -15px; top: -8px; image-rendering: pixelated; }
.party-row .pp-face-wrap { width: 38px; height: 38px; } .pp-face.big { width: 76px; height: 76px; left: -19px; top: -10px; }
#win-player .pp-face-wrap { width: 64px; height: 64px; } #win-player .pp-face.big { width: 120px; height: 120px; left: -28px; top: -14px; }
.party-bonus-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: linear-gradient(180deg, #eef8ff, #dcefff); border: 1px solid #9ac8f0; border-radius: 10px; padding: 8px 10px; }
.big-bonus { display: grid; justify-items: center; } .big-bonus b { font-size: 26px; color: #1f8a4a; } .big-bonus small { color: #5a6c8c; font-size: 11px; }
.party-row.leader { background: #fffaf0 !important; }
/* ===== news ===== */
.chip.news { position: relative; cursor: pointer; border: 0; } .chip.news #newsDot { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #ff3a3a; box-shadow: 0 0 0 2px #fff; animation: pulse 1.2s ease-in-out infinite; }
.news-server { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; font-size: 13px; } .news-server small { margin-left: auto; color: #7a8aa8; }
.news-server .dot { width: 10px; height: 10px; border-radius: 50%; } .news-server .dot.on { background: #2fbf6a; box-shadow: 0 0 6px #2fbf6a; } .news-server .dot.off { background: #aab4c4; }
.news-motd { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: linear-gradient(90deg, #fff4d0, #ffe8b0); border: 1px solid #f0c860; font-weight: 700; color: #6a4a00; font-size: 13px; }
.news-list { display: grid; gap: 8px; max-height: 380px; overflow-y: auto; margin-top: 8px; }
.news-item { background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; padding: 8px 12px; } .news-item.top { border-color: #4a7ad0; box-shadow: 0 2px 8px rgba(47,92,176,.15); }
.news-item h4 { margin: 4px 0; font-size: 15px; color: #1c2a44; } .news-item p { margin: 0; font-size: 13px; color: #3a4a64; } .news-item small { color: #7a8aa8; }
.news-item ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #3a4a64; } .news-item li { margin: 2px 0; }
.news-tag, .news-ver { font-size: 10px; font-weight: 900; color: #fff; border-radius: 99px; padding: 2px 8px; } .news-ver { background: #2f5cb0; font-size: 11px; }
.news-auto { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: #5a6c8c; }

/* 0.4.1: planned status points, confirm box, mounts */
.st-row { grid-template-columns: 46px 30px 1fr 24px 28px 18px; }
.st-row.planned { background: #eef8ee; border-color: #a8dcb0; } .st-row.planned .st-val { color: #2a9a3a; }
.st-pend { font-style: normal; color: #fff; background: #3aaa4a; border-radius: 99px; padding: 0 6px; font-size: 11px; font-weight: 900; }
.st-minus { width: 22px; height: 24px; border-radius: 6px; border: 1px solid #c8d8ee; background: #fff; color: #c8443a; font-weight: 900; padding: 0; } .st-minus:disabled { opacity: 0; cursor: default; }
.st-pts small { font-size: 12px; color: #2a9a3a; }
.st-apply { gap: 6px; margin-top: 6px; } .st-apply .btn.gold { flex: 1; }
.confirm-back { position: fixed; inset: 0; z-index: 9000; background: rgba(8,14,28,.55); display: grid; place-items: center; animation: cfIn .12s ease-out; }
@keyframes cfIn { from { opacity: 0; } }
.win.confirm { position: relative; width: 380px; max-width: calc(var(--hud-w, 100vw) - 32px); animation: cfPop .16s ease-out; } @keyframes cfPop { from { transform: scale(.9); } }
.win.confirm .win-head { cursor: default; }
.win.confirm p { margin: 4px 0 8px; } .note.warn { color: #c0582a; }
.cf-line { display: flex; align-items: center; gap: 4px; padding: 4px 8px; margin: 3px 0; background: #fff; border: 1px solid #c8d8ee; border-radius: 8px; font-size: 14px; color: #1c2a44; }
.cf-line b { color: #2f5cb0; min-width: 34px; } .cf-line i { font-style: normal; font-weight: 900; color: #2a9a3a; } .cf-line small { color: #7a8aa8; }
.confirm-btns { justify-content: flex-end; gap: 8px; margin-top: 10px; }
.sk-acts { display: flex; gap: 4px; align-items: center; } .on-bar { font-size: 11px; color: #2a9a3a; font-weight: 800; }
.hb-btn.ride { background: linear-gradient(180deg, #c8842a, #8a5418); border-color: #e0a040; } .hb-btn.ride.on { background: linear-gradient(180deg, #3aaa4a, #22742e); border-color: #6ad07a; }
.mnt-hero { display: flex; gap: 12px; align-items: stretch; padding: 10px; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(135deg, #182648, #2c1c52); border: 2px solid var(--tc); box-shadow: 0 0 18px -4px var(--tc), inset 0 0 30px rgba(0,0,0,.35); color: #fff; }
.mnt-hero .mnt-pv { border-radius: 10px; border: 1px solid rgba(255,255,255,.25); flex: none; max-width: 52%; height: auto; }
.mnt-info { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; } .mnt-info h3 { margin: 0; color: #fff; font-size: 20px; letter-spacing: .3px; text-shadow: 0 0 10px var(--tc); }
.mnt-info .note { color: #d6defa; margin: 0; } .mnt-info .row { gap: 6px; flex-wrap: wrap; margin-top: auto; }
.mnt-tier { align-self: flex-start; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 99px; color: #fff; box-shadow: 0 0 10px var(--tc); }
.mnt-stat { display: grid; grid-template-columns: 42px 1fr 52px; align-items: center; gap: 6px; font-size: 11px; } .mnt-stat b { color: #ffe28a; font-size: 11px; }
.mnt-bar { height: 7px; border-radius: 9px; background: rgba(255,255,255,.15); overflow: hidden; } .mnt-bar i { display: block; height: 100%; border-radius: 9px; box-shadow: 0 0 8px currentColor; }
.mnt-src { margin: 0; font-size: 11px; color: #9fe0a8; font-weight: 700; }
.mnt-buy .mnt-price, .mnt-buy .lumens { color: inherit; margin-left: 4px; }
.mnt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mnt-card { position: relative; display: grid; justify-items: center; gap: 2px; background: #fff; border: 2px solid #d8e2f0; border-radius: 12px; padding: 6px 4px; text-align: center; color: #1c2a44; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.mnt-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px -4px var(--tc); border-color: var(--tc); }
.mnt-card.sel { border-color: var(--tc); box-shadow: 0 0 0 2px var(--tc), 0 0 16px -2px var(--tc); }
.mnt-card b { font-size: 11.5px; line-height: 1.15; } .mnt-card .mnt-pv { width: 100%; height: auto; }
.mnt-tdot { position: absolute; top: 9px; left: 9px; z-index: 1; font-size: 8.5px; font-weight: 900; text-transform: uppercase; color: #fff; padding: 0 5px; border-radius: 6px; }
.mnt-pv { image-rendering: pixelated; border-radius: 8px; }
.mnt-speed { font-size: 11px; font-weight: 800; color: #2a9a3a; }
.mnt-price { font-weight: 900; color: #b07a10; } .mnt-own { font-weight: 800; color: #2f5cb0; font-size: 12px; }
.cf-mount { display: flex; gap: 10px; align-items: center; color: #1c2a44; } .cf-mount p { margin: 2px 0; } .good { color: #2a9a3a; }
.cash-mounts { display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin-bottom: 8px; border-radius: 12px; background: linear-gradient(90deg, #1c3166, #5a3aa8); color: #fff; }
.cash-mounts .mnt-pv { background: rgba(255,255,255,.1); } .cash-mounts > div { flex: 1; } .cash-mounts .note { color: #dfe6ff; margin: 2px 0 0; }
@media (max-width: 640px) { .mnt-grid { grid-template-columns: repeat(3, 1fr); } .mnt-hero { flex-direction: column; } .mnt-hero .mnt-pv { max-width: 100%; } }

/* 0.5.0: auto potion, duel */
.auto-btn.pot { align-self: stretch; } .auto-btn.pot.on { background: linear-gradient(180deg, #ff7a8a, #c8304a); border-color: #ffb0bc; box-shadow: 0 0 10px rgba(255,90,110,.6); } .auto-btn.pot.on b { color: #fff; }
.ap-master { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; padding: 8px 10px; color: #1c2a44; margin-bottom: 8px; }
.ap-master.on { background: #fff0f2; border-color: #f0a0b0; } .ap-master p { margin: 2px 0 0; }
.ap-block { background: #fff; border: 1px solid #c8d8ee; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; color: #1c2a44; } .ap-block.off { opacity: .55; }
.ap-check { display: flex; align-items: center; gap: 4px; cursor: pointer; } .ap-pct { font-weight: 800; color: #5a6c8c; font-size: 12px; }
.ap-range { width: 100%; margin: 6px 0; accent-color: #e0a020; }
.ap-item { gap: 6px; align-items: center; } .ap-item select { flex: 1; min-width: 0; padding: 4px; border-radius: 6px; border: 1px solid #c8d8ee; font: inherit; font-size: 12px; } .ap-item small { color: #7a8aa8; white-space: nowrap; } .ap-none { width: 28px; text-align: center; color: #9aa8c0; }
.duel-row { margin-top: 8px; gap: 8px; align-items: center; } .duel-row .note { margin: 0; font-size: 11.5px; }
.btn.duel { background: linear-gradient(180deg, #ff6a5a, #c8302a); border-color: #ff9a8a; }

/* auto attack targets */
.auto-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; } .auto-row .auto-skill { font-size: 9px; padding: 1px 2px; }
.tg-maps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.tg-list { display: grid; gap: 4px; max-height: 330px; overflow-y: auto; }
.tg-row { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #c8d8ee; border-left: 4px solid #5aaa5a; border-radius: 9px; padding: 3px 6px; color: #1c2a44; }
.tg-row.prio { border-left-color: #e0a020; background: #fffaf0; } .tg-row.ignore { border-left-color: #b8c0cc; background: #f2f4f8; } .tg-row.ignore .tg-mob { opacity: .4; filter: grayscale(1); }
.tg-mob { width: 40px; height: 40px; image-rendering: pixelated; flex: none; }
.tg-name { flex: 1; display: grid; min-width: 0; } .tg-name small { color: #7a8aa8; font-size: 11px; }
.tg-seg { display: flex; border: 1px solid #c8d8ee; border-radius: 8px; overflow: hidden; flex: none; }
.tg-b { border: 0; background: #f4f7fc; color: #6a7a98; font: inherit; font-size: 11px; font-weight: 800; padding: 4px 7px; cursor: pointer; } .tg-b + .tg-b { border-left: 1px solid #c8d8ee; }
.tg-b.attack.on { background: #3aaa4a; color: #fff; } .tg-b.prio.on { background: #e0a020; color: #fff; } .tg-b.ignore.on { background: #8a94a8; color: #fff; }
.tg-quick { margin: 8px 0 4px; } .tg-opts { display: grid; gap: 4px; font-size: 12.5px; color: #1c2a44; }

/* level gifts */
.chip.gift { position: relative; cursor: pointer; border: 0; } .chip.gift i { font-style: normal; font-size: 10px; font-weight: 900; color: #fff; background: #ff3a6a; border-radius: 99px; padding: 0 5px; margin-left: 4px; } .chip.gift i:empty { display: none; }
.chip.gift.ready { background: linear-gradient(180deg, #ff9ad0, #e04a8a); color: #fff; animation: pulse 1.2s infinite; }
.gf-all { width: 100%; margin-bottom: 8px; }
.gf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gf-card { display: grid; gap: 4px; justify-items: center; background: #fff; border: 1px solid #c8d8ee; border-radius: 12px; padding: 7px 5px; color: #1c2a44; text-align: center; }
.gf-card.ready { border-color: #ff7ab0; background: linear-gradient(180deg, #fff0f6, #fff); box-shadow: 0 0 12px -3px #ff7ab0; } .gf-card.locked { opacity: .6; } .gf-card.got { background: #f4f6fa; }
.gf-head { display: flex; align-items: center; gap: 5px; } .gf-box { font-size: 20px; } .gf-card.ready .gf-box { animation: pulse 1s infinite; }
.gf-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; } .gf-it { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; color: #4a5c7c; } .gf-it.zen { color: #b07a10; }
.gf-state { font-size: 11px; font-weight: 800; color: #8a9ab8; }
@media (max-width: 640px) { .gf-grid { grid-template-columns: repeat(2, 1fr); } }
.gf-welcome { grid-column: 1 / -1; margin-bottom: 8px; background: linear-gradient(90deg, #eaf8ff, #fff4fb); } .gf-welcome .gf-head small { color: #7a8aa8; font-size: 11px; }

/* rankings */
.rk-tabs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.rk-tab { border: 1px solid #c8d8ee; background: #f4f7fc; color: #4a5c7c; border-radius: 10px; padding: 7px; font: inherit; font-weight: 900; cursor: pointer; }
.rk-tab.on { background: linear-gradient(180deg, #ffd768, #e0a22a); color: #3a2400; border-color: #b07a10; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rk-chip { border: 1px solid #c8d8ee; background: #fff; color: #4a5c7c; border-radius: 99px; padding: 2px 9px; font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; border-left: 4px solid var(--jc, #c8d8ee); }
.rk-chip.on { background: #1c3166; color: #fff; border-color: #1c3166; border-left-color: var(--jc, #ffd060); }
.rk-podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 8px; align-items: end; margin-bottom: 8px; padding: 10px 6px 8px; border-radius: 14px; background: linear-gradient(180deg, #1c2a5a, #2c1c52); }
.rk-card { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 4px 8px; border-radius: 12px; background: rgba(255,255,255,.08); border: 2px solid #8a9ab8; color: #fff; text-align: center; }
.rk-card.r1 { border-color: #ffd060; background: linear-gradient(180deg, rgba(255,208,96,.35), rgba(255,255,255,.06)); box-shadow: 0 0 18px -2px #ffd060; padding-top: 18px; }
.rk-card.r2 { border-color: #d8e0ec; background: linear-gradient(180deg, rgba(216,224,236,.28), rgba(255,255,255,.05)); }
.rk-card.r3 { border-color: #e09a5a; background: linear-gradient(180deg, rgba(224,154,90,.3), rgba(255,255,255,.05)); }
.rk-card.rk-me { outline: 2px dashed #7affc8; outline-offset: 2px; }
.rk-medal { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #3a2400; background: #ffd060; box-shadow: 0 0 0 2px #fff; }
.rk-card.r2 .rk-medal { background: #d8e0ec; } .rk-card.r3 .rk-medal { background: #e09a5a; }
.rk-crown { position: absolute; top: 8px; right: 8px; font-size: 16px; filter: drop-shadow(0 0 4px #ffd060); }
.rk-frame { border-radius: 50%; overflow: hidden; width: 70px; height: 70px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #5a7ad0, #1c2a5a); border: 2px solid rgba(255,255,255,.6); }
.rk-card.r1 .rk-frame { width: 80px; height: 80px; border-color: #ffd060; }
.rk-face { image-rendering: pixelated; }
.rk-name { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-job { font-size: 9.5px; font-weight: 900; color: #1c2a44; padding: 1px 6px; border-radius: 99px; text-transform: uppercase; line-height: 14px; }
.rk-row .rk-job { flex: none; width: 76px; text-align: center; box-sizing: border-box; }
.rk-season { text-align: center; font-size: 11px; font-weight: 800; color: #5a6c8c; margin: -2px 0 6px; }
.rk-stat { font-weight: 900; color: #ffe28a; font-size: 13px; } .rk-card small { color: #c8d4f0; font-size: 10.5px; }
.rk-list { display: grid; gap: 3px; max-height: clamp(150px, calc(var(--hud-h, 100vh) - 560px), 300px); overflow-y: auto; scrollbar-gutter: stable; } .rk-list.mine { margin-top: 6px; max-height: none; overflow-y: hidden; }
.rk-row { display: flex; align-items: center; gap: 8px; min-height: 40px; box-sizing: border-box; background: #fff; border: 1px solid #d8e2f0; border-radius: 9px; padding: 2px 8px; color: #1c2a44; }
.rk-row.rk-me { background: #eafff4; border-color: #5ad8a0; }
.rk-row .rk-face { flex: none; border-radius: 50%; background: #e4ecf8; } .rk-n { flex: none; width: 34px; text-align: right; font-weight: 900; color: #8a9ab8; font-variant-numeric: tabular-nums; }
.rk-who { flex: 1; display: grid; min-width: 0; } .rk-who small { color: #7a8aa8; font-size: 11px; } .rk-row .rk-stat { flex: none; color: #b07a10; width: 78px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-card small, .rk-stat { font-variant-numeric: tabular-nums; }

/* fashion points + Anime Fest costumes */
.fp-box { margin: 8px 0 4px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #2a1c52, #5a2a6a); color: #fff; display: grid; gap: 4px; }
.fp-val { font-weight: 900; color: #ffd8f0; font-size: 16px; text-shadow: 0 0 8px #ff7ad0; } .fp-title { font-size: 12px; color: #f0d8ff; font-weight: 800; }
.fp-bar { height: 7px; border-radius: 9px; background: rgba(255,255,255,.18); overflow: hidden; } .fp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff7ad0, #ffd060); }
.fp-box .note { color: #d8c8f0; margin: 0; }
.af-sec { margin: 10px 0; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, #3a0c18, #2a1450 60%, #0c2a5a); border: 2px solid #ff6a4a; box-shadow: 0 0 16px -4px #ff6a4a; color: #fff; }
.af-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .af-head b { font-size: 16px; } .af-head small { color: #ffd0c0; font-size: 11px; }
.af-badge { font-size: 9px; font-weight: 900; letter-spacing: 1px; background: #ff3a3a; color: #fff; border-radius: 6px; padding: 1px 6px; animation: pulse 1.2s infinite; }
.af-hero { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .af-views { display: flex; gap: 4px; flex: none; }
.af-views .cos-pv { background: radial-gradient(circle at 50% 70%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%); border-radius: 10px; border: 1px solid rgba(255,255,255,.2); }
.af-info { flex: 1; display: grid; gap: 4px; min-width: 0; } .af-info h3 { margin: 0; color: #fff; text-shadow: 0 0 10px #ff6a4a; } .af-info .note { color: #f0d8d8; margin: 0; }
.af-tags { display: flex; gap: 4px; } .af-tags span { font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,.14); border-radius: 99px; padding: 1px 8px; }
.af-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.af-card { display: grid; justify-items: center; gap: 2px; padding: 5px 3px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18); cursor: pointer; text-align: center; }
.af-card:hover, .af-card.sel { border-color: #ffb060; background: rgba(255,170,90,.18); } .af-card b { font-size: 10.5px; line-height: 1.15; }
.af-card .cos-pv { width: 100%; height: auto; image-rendering: pixelated; } .af-fp { font-size: 10px; font-weight: 900; color: #ffb0e0; } .af-own { font-size: 10.5px; color: #9fe0a8; font-weight: 800; }
.cos-pv { image-rendering: pixelated; }
@media (max-width: 640px) { .af-grid { grid-template-columns: repeat(3, 1fr); } .af-hero { flex-direction: column; } }

/* World Boss: live ranking overlay, results, Costume Forge */
body.wb-on .feed { display: none; }
.wb-panel { position: absolute; right: 10px; top: 262px; width: 250px; background: linear-gradient(180deg, rgba(40,10,14,.93), rgba(18,14,34,.93)); border: 2px solid #ff6a3a; border-radius: 12px; box-shadow: 0 0 18px -4px #ff5a1a, 0 6px 18px rgba(0,0,0,.45); padding: 7px 8px 8px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; box-sizing: border-box; font-size: 12px; pointer-events: auto; }
.wb-head { display: flex; align-items: center; gap: 6px; } .wb-head b { color: #ffb070; letter-spacing: .5px; } .wb-time { margin-left: auto; font-weight: 900; color: #ffe08a; font-variant-numeric: tabular-nums; }
.wb-head button { width: 22px; height: 20px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font-size: 11px; cursor: pointer; }
.wb-panel.min > :not(.wb-head) { display: none; } .wb-panel.min .wb-head button { transform: rotate(180deg); }
.wb-name { font-weight: 900; font-size: 13px; } .wb-name em { font-style: normal; font-size: 10px; background: #ff2a2a; color: #fff; padding: 0 5px; border-radius: 99px; margin-left: 4px; animation: wbpulse .6s infinite alternate; }
@keyframes wbpulse { to { box-shadow: 0 0 10px #ff4a2a; } }
.wb-hp { position: relative; height: 14px; border-radius: 7px; background: #1a0c10; border: 1px solid #000; overflow: hidden; }
.wb-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #ff9a5a, #d82a1a); transition: width .3s; } .wb-hp.rage i { background: linear-gradient(180deg, #ff5a5a, #9a0a0a); }
.wb-hp span { position: relative; display: block; text-align: center; font-size: 10.5px; font-weight: 900; line-height: 14px; text-shadow: 0 1px 2px #000; }
.wb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.wb-tabs button { border: 1px solid rgba(255,160,110,.45); background: rgba(255,255,255,.06); color: #ffd8c0; border-radius: 7px; padding: 3px 0; font: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.wb-tabs button.on { background: linear-gradient(180deg, #ffb060, #e0602a); color: #2a0c00; border-color: #ffb060; }
.wb-list { display: grid; gap: 2px; } .wb-list.mine { border-top: 1px dashed rgba(255,255,255,.25); padding-top: 3px; }
.wb-row { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 6px; background: rgba(255,255,255,.05); }
.wb-row.wb-me { background: rgba(122,255,200,.16); outline: 1px solid rgba(122,255,200,.5); }
.wb-n { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 10px; background: #3a2a4a; color: #fff; }
.wb-row:nth-child(1) .wb-n { background: #ffd060; color: #3a2400; } .wb-row:nth-child(2) .wb-n { background: #d8e0ec; color: #222; } .wb-row:nth-child(3) .wb-n { background: #e09a5a; color: #2a1400; }
.wb-list.mine .wb-row .wb-n { background: #3a2a4a; color: #fff; }
.wb-who { flex: 1; min-width: 0; display: grid; position: relative; }
.wb-who b { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wb-who small { font-size: 9.5px; color: #9ad0ff; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-who i { height: 2px; margin-top: 1px; border-radius: 2px; background: linear-gradient(90deg, #ff7a3a, #ffd060); }
.wb-v { flex: none; width: 50px; text-align: right; font-weight: 900; color: #ffe08a; font-variant-numeric: tabular-nums; }
.wb-empty { margin: 0; font-size: 10.5px; color: #c8b8d0; text-align: center; }
.wb-go { width: 100%; }
.wbr-hero { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #3a1a1a, #2a1c3a); color: #fff; }
.wbr-hero.won { background: linear-gradient(135deg, #5a2a0a, #8a3a1a 50%, #3a1a4a); box-shadow: 0 0 16px -4px #ffb040; } .wbr-hero b { font-size: 15px; color: #ffd8a0; }
.wbr-items { display: flex; flex-wrap: wrap; gap: 6px; }
.wbr-item { display: grid; justify-items: center; width: 82px; padding: 4px; border-radius: 10px; background: #fff; border: 1px solid #d8e2f0; } .wbr-item img { width: 36px; height: 36px; } .wbr-item small { font-size: 10px; text-align: center; color: #5a6c8c; }
.wbr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.wbr-row { display: flex; align-items: center; gap: 5px; padding: 2px 5px; border-radius: 7px; background: #fff; border: 1px solid #d8e2f0; margin-bottom: 2px; font-size: 11.5px; }
.wbr-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wbr-row span:last-child { color: #b07a10; font-weight: 900; font-variant-numeric: tabular-nums; }
.wbr-row.wb-me { background: #eafff4; border-color: #5ad8a0; } .wbr-row .wb-n { background: #8a9ab8; }
.fg-top { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid #d8e2f0; } .fg-top img { width: 40px; height: 40px; } .fg-top div { display: grid; } .fg-top small { color: #5a6c8c; }
.fg-sec { background: linear-gradient(135deg, #2a0c0c, #4a1a10 50%, #1a1430); border-color: #ff8a2a; }
.fg-cost { font-size: 11px; font-weight: 900; color: #ff9a8a; } .fg-cost.ok { color: #9affb0; }

/* Mailbox */
.chip.mail { position: relative; cursor: pointer; border: 0; } .chip.mail i { font-style: normal; font-size: 10px; font-weight: 900; color: #fff; background: #3a7aff; border-radius: 99px; padding: 0 5px; margin-left: 4px; } .chip.mail i:empty { display: none; }
.chip.mail.ready { background: linear-gradient(180deg, #9ad8ff, #3a8ae0); color: #fff; animation: pulse 1.2s infinite; }
.ml-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .ml-top > span { flex: 1; font-size: 12px; color: #5a6c8c; font-weight: 700; }
.ml-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px; min-height: 280px; }
.ml-list { display: grid; align-content: start; gap: 4px; max-height: clamp(220px, calc(var(--hud-h, 100vh) - 260px), 420px); overflow-y: auto; padding-right: 2px; }
.ml-row { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #d8e2f0; cursor: pointer; }
.ml-row:hover { border-color: #8ab0e8; } .ml-row.on { border-color: #3a7aff; background: #eef4ff; box-shadow: 0 0 0 1px #3a7aff inset; }
.ml-row.new .ml-who b::after { content: ' NEW'; font-size: 9px; color: #ff3a6a; font-weight: 900; }
.ml-ico { font-size: 18px; } .ml-who { display: grid; min-width: 0; } .ml-who b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ml-who small { font-size: 10px; color: #6a7c9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-dot { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 2px #fff; }
.ml-view { display: grid; align-content: start; gap: 8px; background: #fff; border: 1px solid #d8e2f0; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ml-view h3 { margin: 0; font-size: 15px; } .ml-meta { font-size: 11px; color: #6a7c9c; } .ml-body { font-size: 13px; line-height: 1.45; white-space: pre-line; color: #2a3a58; }
.ml-att { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: linear-gradient(180deg, #fff8e6, #fff); border: 1px solid #f0cf7a; } .ml-att.got { background: #f4f6fa; border-color: #d8e2f0; opacity: .8; }
.ml-att h4 { margin: 0; font-size: 12px; color: #8a6a1a; } .ml-att .btn { justify-self: start; }
.ml-items { display: flex; flex-wrap: wrap; gap: 6px; } .ml-it { display: grid; justify-items: center; width: 76px; padding: 4px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f2; } .ml-it b { font-size: 12px; } .ml-it small { font-size: 10px; color: #5a6c8c; text-align: center; }
.ml-coin { width: 26px; height: 26px; margin: 2px; } .ml-coin.z { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a0, #e0a020); } .ml-coin.l { width: 20px; height: 20px; margin: 5px; transform: rotate(45deg); border-radius: 4px; background: linear-gradient(135deg, #bfe8ff, #4a8aff); }
.ml-state { font-weight: 900; color: #2a9a5a; font-size: 12px; } .ml-acts { justify-content: flex-end; } .ml-empty { text-align: center; padding: 30px 10px; }
.ms-f { display: grid; gap: 3px; margin-bottom: 7px; font-size: 12px; font-weight: 700; color: #3a4a68; } .ms-f input, .ms-f textarea { font: inherit; font-weight: 400; padding: 6px 8px; border-radius: 8px; border: 1px solid #b8c8e0; background: #fff; color: #1c2a44; resize: vertical; }
.ms-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .ml-wrap { grid-template-columns: minmax(0, 1fr); } .ml-list { max-height: 180px; } }

/* Status sheet (v0.5.9) */
.st-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.st-sheet { padding: 2px 10px; } .st-sheet .st-line { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #edf2f9; font-size: 13px; } .st-sheet .st-line span { color: #5a6c8c; }
.st-eq { color: #2a9a3a; }
.st-vs { font-size: 11px; color: #2f5cb0; font-weight: 600; padding: 4px 0 5px; border-bottom: 1px solid #edf2f9; line-height: 1.35; } .st-vs b { color: #1c2a44; } .st-vs.dim { color: #8a9ab8; font-weight: 400; }
.st-rec { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: #fff8e4; border: 1px solid #f0d890; } .st-rec small { flex: 1; color: #8a6a1a; font-weight: 700; font-size: 11px; }
.st-rec .rec-tag { white-space: nowrap; }
/* Bag (v0.5.9) */
.bag-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; } .bag-tabs button { white-space: nowrap; flex: none; }
.bag-tools2 { display: flex; gap: 6px; margin-bottom: 8px; } .bag-sort { position: relative; flex: 1; display: flex; gap: 2px; } .bag-sort > .btn:first-child { flex: 1; font-size: 15px; padding: 8px; border-radius: 10px 4px 4px 10px; } .bag-caret { width: 34px; padding: 0; border-radius: 4px 10px 10px 4px; }
.bag-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; display: grid; min-width: 140px; background: #fff; border: 1px solid #b8c8e0; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.2); overflow: hidden; }
.bag-menu button { border: 0; background: #fff; padding: 8px 12px; text-align: left; font-weight: 700; color: #1c2a44; cursor: pointer; } .bag-menu button:hover { background: #eef4ff; } .bag-menu button.on { color: #2f5cb0; }
.bag-menu button.on::before { content: '✓ '; }
.bag-foot2 { margin-top: 8px; color: #5a6c8c; font-size: 12px; } .bag-foot2 b { color: #1c2a44; } .bag-empty { grid-column: 1 / -1; text-align: center; padding: 20px; }
/* Item Mall */
.im-top { display: flex; align-items: center; gap: 8px; } .im-bal { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #c8d8ee; font-weight: 700; color: #3a4a68; white-space: nowrap; } .im-get { white-space: nowrap; }
.im-tabs { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 3px; } .im-tabs button { flex: none; border: 1px solid #c8d8ee; background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 700; color: #1c2a44; cursor: pointer; } .im-tabs button.on { background: #2f5cb0; border-color: #2a4a90; color: #fff; }
.im-note { text-align: center; font-size: 12px; color: #6a7c9c; margin: 8px 0; }
.im-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; }
.im-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; max-height: clamp(300px, calc(var(--hud-h, 100vh) - 250px), 520px); overflow-y: auto; padding: 2px 4px 2px 2px; }
.im-card { position: relative; display: grid; justify-items: center; gap: 3px; padding: 14px 6px 8px; background: #fff; border: 1px solid #d0dcee; border-radius: 10px; cursor: pointer; font: inherit; color: #1c2a44; }
.im-card:hover { border-color: #7aa4e8; } .im-card.sel { border-color: #2f5cb0; box-shadow: 0 0 0 2px #9cc0ff; background: #f4f8ff; }
.im-card b { font-size: 12px; text-align: center; line-height: 1.2; } .im-ic { display: grid; place-items: center; width: 52px; height: 52px; border: 2px dashed #8a6ad0; border-radius: 8px; background: #faf8ff; }
.im-new { position: absolute; left: 4px; top: 4px; font-size: 9px; font-weight: 900; color: #fff; background: #e0384a; border-radius: 4px; padding: 1px 5px; } .im-new.in { position: static; margin-left: 6px; vertical-align: middle; }
.im-price { font-size: 12px; font-weight: 800; color: #2f5cb0; } .im-price i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; background: linear-gradient(135deg, #bfe8ff, #4a8aff); transform: rotate(45deg); border-radius: 2px; } .im-price small { font-weight: 600; color: #6a7c9c; }
.im-own { font-size: 11px; font-weight: 900; color: #2a9a5a; } .im-card.owned { background: #f4fbf6; }
.im-side { display: grid; align-content: start; gap: 6px; background: #fff; border: 1px solid #d0dcee; border-radius: 12px; padding: 8px; }
.im-stage { display: grid; place-items: center; min-height: 220px; border-radius: 10px; background: linear-gradient(180deg, #dfe9f8, #c8d8ee); overflow: hidden; } .im-stage canvas { max-width: 100%; }
.im-pv-lpc { width: 192px; height: 192px; image-rendering: pixelated; } .im-pv-ic canvas { image-rendering: auto; }
.im-dirs { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; } .im-dirs button { border: 1px solid #b8c8e0; background: #fff; border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 700; color: #1c2a44; cursor: pointer; }
.im-dirs button.on, .im-dirs button.cur { background: #2f5cb0; color: #fff; border-color: #2a4a90; }
.im-hint { margin: 0; text-align: center; font-size: 11px; color: #6a7c9c; }
.im-info h3 { margin: 2px 0 4px; font-size: 15px; } .im-info p { margin: 4px 0 0; font-size: 12px; color: #3a4a68; line-height: 1.4; }
.im-tags { display: flex; flex-wrap: wrap; gap: 4px; } .im-tags span { font-size: 10px; font-weight: 800; color: #2f5cb0; background: #eef4ff; border: 1px solid #c8d8ee; border-radius: 99px; padding: 1px 7px; }
.im-qty { display: flex; align-items: center; gap: 8px; } .im-qty b { min-width: 24px; text-align: center; } .im-qty small { color: #6a7c9c; font-size: 11px; }
.im-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf2f9; padding-top: 8px; } .im-buyrow > div { display: grid; }
.im-total { color: #c8283a; font-size: 14px; } .im-total.ok { color: #2a9a5a; } .im-lack { color: #c8283a; font-size: 11px; }
@media (max-width: 860px) { .im-main { grid-template-columns: minmax(0, 1fr); } .im-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 280px; } .im-top { flex-wrap: wrap; } }
.im-new.lim { background: linear-gradient(90deg, #ff8a1a, #e0384a); } .im-card .im-own { margin-top: -2px; }
/* Sovereign Raid Key */
.rk2-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, #fff8e0, #fff); border: 1px solid #f0cf7a; } .rk2-top > div { flex: 1; } .rk2-top p { margin: 2px 0 0; }
.rk2-list { display: grid; gap: 5px; } .rk2-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid #d8e2f0; }
.rk2-row code { font-weight: 900; letter-spacing: .5px; color: #1c2a44; } .rk2-row small { color: #6a7c9c; font-size: 11px; } .rk2-st { font-size: 11px; font-weight: 800; color: #c88a10; } .rk2-row.paid .rk2-st { color: #2a9a5a; }
/* equipment drag and drop */
.eq-slot[draggable="true"], .eq-mini { cursor: grab; }
body.eq-dragging #win-equip .eq-slot:not(.eq-ok) { opacity: .5; }
#win-equip .eq-slot.eq-ok { border-color: #f2b632; box-shadow: 0 0 0 2px rgba(242,182,50,.45), 0 0 12px rgba(255,196,60,.55); animation: eqPulse 1s ease-in-out infinite; }
#win-equip .eq-slot.eq-hot { background: linear-gradient(180deg, #fffbe6, #ffe9a8); border-color: #e09a10; transform: scale(1.03); }
@keyframes eqPulse { 50% { box-shadow: 0 0 0 3px rgba(242,182,50,.25), 0 0 18px rgba(255,196,60,.8); } }
.eq-strip { margin-top: 8px; padding: 6px 8px; background: linear-gradient(180deg, #f3f7fd, #e2ebf7); border: 1px solid #b8cce6; border-radius: 8px; }
.eq-strip-h { font-size: 11px; font-weight: 700; color: #4a5e82; margin-bottom: 5px; }
.eq-strip-row { display: flex; flex-wrap: wrap; gap: 5px; max-height: 88px; overflow-y: auto; }
.eq-mini { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: linear-gradient(180deg, #ffffff, #dfe8f5); border: 1px solid #a9bedc; border-radius: 6px; }
.eq-mini:hover { border-color: #2f6fe0; box-shadow: 0 0 0 2px rgba(47,111,224,.25); }
.eq-mini.bad { filter: grayscale(.8); opacity: .65; }
.eq-mini .bag-r { position: absolute; right: 2px; top: 1px; font-size: 10px; }
#win-inv.eq-drop-target { outline: 2px dashed #f2b632; }
/* accounts */
.acc-wait { display: flex; align-items: center; gap: 10px; padding: 30px 6px; color: #cfe0ff; font-weight: 700; }
.acc-spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #ffd23a; animation: accSpin .8s linear infinite; }
@keyframes accSpin { to { transform: rotate(360deg); } }
.acc-form { display: grid; gap: 6px; margin-top: 10px; }
.acc-form label { font-size: 12px; font-weight: 700; color: #b9cdf0; margin-top: 4px; }
.acc-form input { padding: 10px 12px; border-radius: 8px; border: 1px solid #3c5a96; background: #0f1d3d; color: #fff; font-size: 15px; }
.acc-form input:focus { outline: 2px solid #ffd23a; border-color: transparent; }
.acc-form .btn { margin-top: 10px; }
.linkish { background: none; border: 0; padding: 0; color: #8fc0ff; font-weight: 700; cursor: pointer; text-decoration: underline; font-size: inherit; }
.acc-guest { display: block; margin: 14px auto 0; font-size: 12px; color: #9fb4d8; }
.acc-err { color: #ffb0a0 !important; }
.acc-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; padding: 7px 10px; border-radius: 8px; background: rgba(60,140,255,.18); border: 1px solid rgba(120,170,255,.35); color: #dbe8ff; font-size: 12px; }
.acc-bar.guest { background: rgba(255,210,60,.12); border-color: rgba(255,210,60,.35); } .acc-bar.warn { background: rgba(255,120,80,.15); border-color: rgba(255,120,80,.4); }
.acc-import { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,210,60,.1); border: 1px dashed rgba(255,210,60,.55); color: #fff; }
.acc-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(180deg, #f3f7fd, #e2ebf7); border: 1px solid #b8cce6; margin-bottom: 8px; }
.acc-card b { font-size: 18px; color: #1c2a44; }
.acc-cloud { padding: 7px 10px; border-radius: 8px; background: #e6f5ec; color: #1f6a3a; font-size: 12px; font-weight: 700; margin-bottom: 8px; } .acc-cloud.bad { background: #fde8e4; color: #a03020; }
#win-account input { display: block; width: 100%; box-sizing: border-box; margin: 4px 0; padding: 7px 9px; border-radius: 6px; border: 1px solid #b8cce6; }
/* Emberdeep Nest */
body.nest-on .feed { display: none !important; }
.nest-panel { position: fixed; right: 12px; top: 268px; width: 250px; z-index: 30; padding: 10px 12px; border-radius: 12px; color: #efe6ff; font-size: 12px;
  background: linear-gradient(180deg, rgba(40,20,64,.94), rgba(16,10,30,.94)); border: 1px solid rgba(176,112,255,.55); box-shadow: 0 8px 30px rgba(0,0,0,.5), 0 0 18px rgba(150,80,255,.25); }
.np-head { display: flex; justify-content: space-between; align-items: baseline; } .np-head b { font-size: 15px; color: #e0c8ff; } .np-head span { font-weight: 800; color: #ffd860; font-variant-numeric: tabular-nums; }
.np-sub { color: #b8a8d8; margin: 2px 0 6px; } .np-lives { color: #ff6a9a; letter-spacing: 1px; }
.np-stage { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; color: #8a7aa8; } .np-stage i { width: 14px; font-style: normal; text-align: center; }
.np-stage.on { color: #fff; font-weight: 700; } .np-stage.done { color: #9adfa8; } .np-stage small { color: #c8b8e8; font-weight: 400; }
.np-boss { margin: 6px 0; } .np-boss small { color: #ffb0f0; font-weight: 700; } .np-bar { height: 8px; border-radius: 4px; background: #2a1440; overflow: hidden; margin-top: 2px; } .np-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff4ad8, #9a4aff); transition: width .25s; }
.nest-panel .btn { margin-top: 6px; width: 100%; } .nest-panel .np-leave { opacity: .85; }
.nest-req { display: grid; gap: 4px; margin: 8px 0; } .nest-req span { padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; } .nest-req .ok { background: #e3f6e8; color: #1f6a3a; } .nest-req .bad { background: #fde8e4; color: #a03020; }
.nest-loot { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.nl-card { display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 10px; text-align: center; background: linear-gradient(180deg, #f4f6fb, #dfe6f2); border: 2px solid #b8c4d8; animation: nlIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.nl-card b { font-size: 12px; color: #1c2a44; } .nl-card small { font-size: 11px; color: #5a6a88; text-transform: capitalize; }
.nl-card.rare { border-color: #4a8aff; } .nl-card.epic { border-color: #9a4aff; background: linear-gradient(180deg, #f6eeff, #e0ccff); box-shadow: 0 0 14px rgba(154,74,255,.45); }
.nl-card.legendary { border-color: #ffb020; background: linear-gradient(180deg, #fff8e0, #ffe08a); box-shadow: 0 0 22px rgba(255,180,40,.8); }
@keyframes nlIn { from { opacity: 0; transform: scale(.4) rotate(-8deg); } }
.nest-coins { display: inline-flex; align-items: center; gap: 4px; color: #6a3ab0; } .nest-cost { font-weight: 800; color: #6a3ab0; }
.nest-row.legendary { background: linear-gradient(90deg, rgba(255,200,60,.18), transparent); } .nest-row.epic { background: linear-gradient(90deg, rgba(154,74,255,.12), transparent); }
.party-panel.compact { width: 260px; grid-template-columns: 1fr 1fr; gap: 3px; }
.party-panel.compact .pp-head { grid-column: 1 / -1; }
.party-panel.compact .pp-row { grid-template-columns: 18px 1fr; gap: 4px; padding: 1px 3px; border-radius: 6px; }
.party-panel.compact .pp-face-wrap { width: 18px; height: 18px; border-radius: 5px; } .party-panel.compact .pp-face { width: 36px; height: 36px; left: -9px; top: -5px; }
.party-panel.compact .pp-row b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .party-panel.compact small { display: none; }
.pp-row.away { opacity: .45; filter: grayscale(.7); } .pp-row.away small { color: #ffd27a !important; display: block !important; }
.pp-bonus.low { background: rgba(255,170,60,.25); color: #ffcf8a; }
