:root {
  --bg: #0f1018; --panel: rgba(18, 20, 33, 0.94); --panel2: rgba(26, 29, 46, 0.96); --line: #343a58; --text: #e8e9f3; --dim: #9ba1bd;
  --accent: #6fe3ff; --gold: #f2c35a; --gold2: #a9812d; --bad: #ff6b6b; --good: #6fdc7f;
  --frame: linear-gradient(180deg, #e2c27a, #8a6a2a 55%, #c9a24f);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, 'Segoe UI', Roboto, sans-serif; }
body { overflow: hidden; }
body.admin-page { overflow: auto; }
.hidden { display: none !important; }
.dim { color: var(--dim); font-size: 12px; }
.err { color: var(--bad); min-height: 18px; font-size: 13px; }
.good { color: var(--good); } .bad { color: var(--bad); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
h1, h2, h3 { margin: 0 0 8px; }
h1 { font-size: 28px; color: var(--accent); letter-spacing: 1px; }
.pix { image-rendering: pixelated; }

input, select, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=range]), select {
  width: 100%; padding: 8px 10px; background: #0b0c14; border: 1px solid var(--line); border-radius: 6px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
.btn { padding: 8px 14px; background: linear-gradient(#2c3150, #22263f); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #5a6290; }
.btn.primary { background: linear-gradient(#2a8db0, #1d6582); border-color: #3aa8cf; }
.btn.small { padding: 4px 9px; font-size: 12px; }
.btn.danger { background: linear-gradient(#7d2a35, #5e1f28); border-color: #a13a48; }

/* ---------- экраны входа и персонажей ---------- */
.screen { height: 100%; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px;
  background: radial-gradient(ellipse at 50% 0%, #25406b 0%, #0f1018 70%); }
.card { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card.auth { max-width: 380px; }
.card.chars { max-width: 640px; }
.char-card { display: flex; align-items: center; gap: 12px; padding: 10px; background: #0b0c14; border: 1px solid var(--line); border-radius: 8px; }
.create { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.create .prev { padding: 10px; background: #0b0c14; border: 1px solid var(--line); border-radius: 8px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.opt-row .lbl { width: 76px; color: var(--dim); font-size: 12px; }
.opt { padding: 5px 10px; background: #1b1e30; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
.opt.sw { width: 26px; height: 26px; padding: 0; }
.opt.on { border-color: var(--accent); }

/* ---------- игра ---------- */
#screen-game { position: fixed; inset: 0; }
#game { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: default; }
.cur-seg button { display: inline-flex; align-items: center; gap: 5px; }
.cur-seg img { width: 18px; height: 18px; flex: none; }
#hud { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.panel { pointer-events: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45); }

/* полоски */
.bar { position: relative; height: 15px; background: #07080d; border: 1px solid #000; border-radius: 4px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8); }
.bar + .bar { margin-top: 4px; }
.bar .fill { height: 100%; width: 0; transition: width 0.2s; position: relative; }
.bar .fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%); }
.bar.hp .fill { background: linear-gradient(90deg, #8e1d24, #e5484d); }
.bar.mp .fill { background: linear-gradient(90deg, #1f3f94, #4a8cff); }
.bar.big { height: 19px; }
.bar.thin { height: 13px; }
.bar.sk .fill { background: linear-gradient(90deg, #5a2c96, #b667ff); }
.bar-label { position: absolute; inset: 0; text-align: center; font-size: 11px; line-height: inherit; display: flex; align-items: center; justify-content: center; font-weight: 600; text-shadow: 0 1px 2px #000, 0 0 3px #000; }

/* рамка персонажа */
.uf { position: relative; width: 318px; pointer-events: auto; padding: 10px 12px 10px 10px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(34, 38, 62, 0.96), rgba(14, 15, 26, 0.96)); border: 1px solid #5c4a22;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(242, 195, 90, 0.18), 0 6px 22px rgba(0, 0, 0, 0.55); }
.uf-row { display: flex; gap: 12px; align-items: center; }
.uf-portrait { position: relative; flex: none; width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: var(--frame); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.uf-portrait canvas { width: 64px; height: 64px; border-radius: 50%; display: block; background: radial-gradient(circle at 50% 35%, #3b4a7a, #141726 75%); }
.uf-lvl { position: absolute; right: -4px; bottom: -4px; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; background: radial-gradient(circle at 40% 30%, #3a3f63, #12131f);
  border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 2px #000; }
.uf-main { flex: 1; min-width: 0; }
.uf-top { display: flex; align-items: center; gap: 6px; }
.uf-name { font-weight: 800; font-size: 15px; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; }
.uf-vip { flex: none; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 8px; color: #2a1e04; background: linear-gradient(#ffe08a, #d9a23a); }
.uf-cls { font-size: 11.5px; color: var(--dim); margin: 1px 0 5px; }
.uf-chips { display: flex; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(242, 195, 90, 0.15); }
.chip { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 4px; background: rgba(0, 0, 0, 0.35); border: 1px solid #2a2e48; border-radius: 6px; font-size: 12px; }
.chip i { font-style: normal; opacity: 0.85; }
.uf-points { width: 100%; margin-top: 8px; padding: 5px; border: 1px solid #3c7a45; border-radius: 6px; background: linear-gradient(#24502c, #183a1f); color: #b8ffc4; font-size: 12px; font-weight: 700; cursor: pointer; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 10px rgba(111, 220, 127, 0.5); } }
.buffs { display: flex; gap: 5px; margin-top: 8px; }
.buffs:empty { display: none; }
.buff { width: 34px; height: 38px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--gold2); display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: auto; }
.buff span { font-size: 17px; line-height: 1; }
.buff small { font-size: 10px; color: var(--gold); font-weight: 700; }

/* цель */
.tf { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 280px; display: flex; gap: 10px; align-items: center; padding: 8px 10px; pointer-events: auto;
  border-radius: 10px; background: linear-gradient(160deg, rgba(48, 26, 30, 0.95), rgba(16, 14, 22, 0.95)); border: 1px solid #5a2a2e; box-shadow: 0 0 0 1px #000, 0 4px 16px rgba(0, 0, 0, 0.5); }
.tf-portrait { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 2px; background: linear-gradient(#b14a4a, #4a1414); }
.tf-portrait canvas { width: 44px; height: 44px; border-radius: 50%; display: block; background: radial-gradient(#2a2a3c, #0e0e16); }
.tf-lvl { position: absolute; right: -5px; bottom: -3px; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 10px; background: #12131f; border: 1px solid #000; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tf-main { flex: 1; min-width: 0; }
.tf-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdist { font-size: 11.5px; margin-top: 3px; }

.mini { padding: 6px; }
.mini canvas { display: block; image-rendering: pixelated; border-radius: 4px; background: #5aa7dc; }
.clock { font-size: 11px; text-align: center; margin-top: 4px; color: var(--dim); }
.clock.night { color: #b9a6ff; }
/* чат (v0.18): шапка с вкладками, лента, строка ввода со смайлами */
.chat { position: relative; width: var(--chat-w, 360px); padding: 0; overflow: visible; border-radius: 12px; background: rgba(12, 14, 24, var(--chat-o, 0.92)); }
.chat-head { display: flex; align-items: stretch; gap: 4px; padding: 5px 5px 0; }
.chat-tabs { flex: 1; display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(0, 0, 0, 0.35); }
.ct { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 4px 2px; font-size: 10.5px; border: 0; border-radius: 7px; background: none; color: var(--dim); cursor: pointer; transition: background 0.15s, color 0.15s; }
.ct:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.ct.on { color: #1a1406; background: linear-gradient(#f4d27e, #c9a24f); font-weight: 700; }
.ct-ico { font-size: 11px; } .ct-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head { container-type: inline-size; }
@container (max-width: 440px) { .ct:not(.on) .ct-l { display: none; } .ct.on { flex: 2.4; } }
.ct-n { position: absolute; top: -4px; right: -2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 9px; font-weight: 800; line-height: 15px; }
.chat-fold { width: 24px; border: 0; border-radius: 7px; background: rgba(0, 0, 0, 0.35); color: var(--dim); cursor: pointer; } .chat-fold:hover { color: var(--text); }
.chat-body { position: relative; }
.chat-log { height: var(--chat-h, 150px); overflow-y: auto; font-size: var(--chat-f, 12.5px); padding: 4px 8px; user-select: text; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #3a4066 transparent; }
.chat.folded .chat-body { display: none; }
.chat-new { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 3px 10px; border: 0; border-radius: 12px; font-size: 11px; font-weight: 700; color: #1a1406; background: var(--gold); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.chat-bar { display: flex; align-items: center; gap: 4px; padding: 5px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.chat-bar input { min-width: 0; padding: 6px 8px !important; font-size: 12.5px; border-radius: 8px; }
.chat-text { flex: 1; } .chat-to { width: 84px !important; flex: none; }
.ch-pill { flex: none; padding: 5px 9px; border-radius: 8px; border: 1px solid #3a4066; background: #161a2c; color: #cfd3ea; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.ch-pill::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.ch-pill.c-world { color: #e8e9f3; } .ch-pill.c-party { color: #8fd0ff; } .ch-pill.c-guild { color: #7dffa0; } .ch-pill.c-whisper { color: #ff9ad5; }
.chat-ib { flex: none; width: 30px; height: 30px; border: 1px solid #3a4066; border-radius: 8px; background: #161a2c; color: #cfd3ea; font-size: 15px; line-height: 1; cursor: pointer; }
.chat-ib:hover { border-color: var(--gold2); } .chat-ib.send { color: var(--gold); }
.cl { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; padding: 1px 4px; margin: 0 -4px; border-radius: 5px; line-height: 1.45; }
.cl:hover { background: rgba(255, 255, 255, 0.04); }
.cl.cont { margin-top: -1px; } .cl.old { opacity: 0.72; }
.cl-t { flex: none; width: 34px; font-size: 0.82em; color: #5e6488; font-variant-numeric: tabular-nums; }
.cl.cont .cl-t { visibility: hidden; } .cl.cont:hover .cl-t { visibility: visible; }
.cl-x { flex: 1 1 0; min-width: 40%; }
.cl .cn { cursor: pointer; } .cl .cn:hover { text-decoration: underline; } .cl .cn::after { content: ':'; color: var(--dim); font-weight: 400; }
.cn.cls-warrior { color: #ffb0a4; } .cn.cls-ranger { color: #a8eab0; } .cn.cls-mage { color: #a9c4ff; }
.cl-vip { font-size: 0.9em; } .cl-ico { color: #6b7090; }
.cl.ment { background: rgba(242, 195, 90, 0.12); box-shadow: inset 2px 0 0 var(--gold); }
.cl.ch-party .cl-x { color: #b8e2ff; } .cl.ch-guild .cl-x { color: #b5ffc8; } .cl.ch-whisper .cl-x { color: #ffc4e6; }
.cl.sys .cl-x { color: #a9d6a3; } .cl.adm-msg { background: rgba(255, 120, 120, 0.1); box-shadow: inset 2px 0 0 #ff8a8a; } .cl.adm-msg .cl-x { color: #ffd0d0; font-weight: 600; }
.cl-mark { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: #5e6488; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.cl-mark::before, .cl-mark::after { content: ''; flex: 1; height: 1px; background: #2a2f4a; }
.cchip { flex: none; padding: 0 5px; border-radius: 5px; font-size: 0.78em; font-weight: 800; line-height: 1.5; }
.cchip.c-party { background: #12304a; color: #8fd0ff; } .cchip.c-guild { background: #123a22; color: #7dffa0; } .cchip.c-whisper { background: #3a1430; color: #ff9ad5; }
.cchip.adm { background: #4a1414; color: #ff9a9a; }
.vip { color: var(--gold); font-weight: 700; } .adm { color: #ff8a8a; }
.chn { opacity: 0.8; }
/* смайлы */
.emo { display: inline-block; font-size: 1.25em; line-height: 1; vertical-align: -0.2em; image-rendering: pixelated; }
canvas.emo { width: 1.4em; height: 1.4em; }
.emo-bounce { animation: emoBounce 1.1s ease-in-out infinite; } .emo-spin { animation: emoSpin 2.4s linear infinite; }
.emo-pulse { animation: emoPulse 1s ease-in-out infinite; } .emo-shake { animation: emoShake 0.6s ease-in-out infinite; }
.emo-glow { animation: emoGlow 1.6s ease-in-out infinite; } .emo-float { animation: emoFloat 2.2s ease-in-out infinite; }
@keyframes emoBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 60% { transform: translateY(0); } }
@keyframes emoSpin { to { transform: rotate(360deg); } }
@keyframes emoPulse { 50% { transform: scale(1.25); } }
@keyframes emoShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes emoGlow { 50% { filter: drop-shadow(0 0 6px #fff6b0) brightness(1.3); } }
@keyframes emoFloat { 50% { transform: translateY(-3px) rotate(4deg); } }
.emo-pick { position: absolute; left: 6px; right: 6px; bottom: 46px; z-index: 5; max-height: 260px; overflow-y: auto; padding: 8px; border-radius: 12px; background: #141729; border: 1px solid #3a4066; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.emo-tabs { display: flex; gap: 4px; margin-bottom: 6px; }
.emo-t { flex: 1; padding: 4px; border: 1px solid #2c3254; border-radius: 7px; background: none; color: var(--dim); font-size: 11.5px; cursor: pointer; } .emo-t.on { color: var(--gold); border-color: var(--gold2); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(32px, 1fr)); gap: 2px; }
.emo-b { height: 32px; border: 0; border-radius: 7px; background: none; font-size: 18px; cursor: pointer; } .emo-b:hover { background: rgba(255, 255, 255, 0.08); }
.emo-b.off { opacity: 0.35; filter: grayscale(0.8); }
.emo-pack { margin-bottom: 6px; } .emo-ph { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin: 2px 2px 3px; } .emo-ph b { color: var(--text); }
.chat input { padding: 6px 8px !important; font-size: 12.5px; }

/* панель действий */
.actionbar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); pointer-events: auto; padding: 6px 6px 5px; border-radius: 12px;
  background: linear-gradient(rgba(30, 33, 54, 0.95), rgba(12, 13, 22, 0.95)); border: 1px solid #5c4a22; box-shadow: 0 0 0 1px #000, 0 4px 18px rgba(0, 0, 0, 0.5); }
.ab-row { display: flex; gap: 8px; }
.slots { display: flex; gap: 4px; }
.hb { position: relative; width: 50px; height: 50px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: inherit;
  background: radial-gradient(circle at 50% 35%, #2a2f4c, #10111c); border: 1px solid #3c4266; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.hb:hover { border-color: var(--gold); }
.hb.atk { border-color: #6a4a2a; }
.hb.empty { opacity: 0.55; }
.hb.dim .ico { filter: grayscale(0.8) brightness(0.55); }
.hb .ico { font-size: 24px; pointer-events: none; }
.hb .key { position: absolute; left: 4px; top: 1px; font-size: 10px; font-weight: 700; color: var(--dim); pointer-events: none; }
.hb .cnt { position: absolute; right: 4px; bottom: 1px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; pointer-events: none; }
.hb .rk { position: absolute; right: 3px; top: 1px; font-size: 9px; font-weight: 800; color: #d9b8ff; pointer-events: none; }
.hb .cd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.68); border-radius: 8px; font-weight: 800; font-size: 15px; pointer-events: none; }
.xpbar { position: relative; height: 11px; margin-top: 6px; background: #07080d; border: 1px solid #000; border-radius: 6px; overflow: hidden; }
.xp-fill { height: 100%; width: 0; background: linear-gradient(90deg, #8a5cff, #c79bff); transition: width 0.3s; }
.xpbar span { position: absolute; inset: 0; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 2px #000; }
.menu { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; pointer-events: auto; padding: 4px; border-radius: 10px;
  background: linear-gradient(rgba(30, 33, 54, 0.95), rgba(12, 13, 22, 0.95)); border: 1px solid #5c4a22; }
.mb { position: relative; width: 46px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 50% 30%, #2a2f4c, #10111c); border: 1px solid #3c4266; border-radius: 7px; cursor: pointer; color: #d9c48a; }
.mb:hover { border-color: var(--gold); color: #ffe7a8; }
.mb-label { font-size: 9px; color: var(--dim); line-height: 1; }
.mb-key { position: absolute; right: 3px; top: 1px; font-size: 8px; color: #6b7090; }

/* окна */
.win { position: absolute; padding: 0; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.win-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); font-weight: 700;
  background: linear-gradient(rgba(242, 195, 90, 0.08), transparent); border-radius: 8px 8px 0 0; }
.win-head .x { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--dim); line-height: 1; }
.win-body { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.w-inv { right: 12px; top: 220px; width: 436px; }
.w-char { left: 12px; top: 240px; width: 440px; }
.w-skills { left: 50%; top: 80px; transform: translateX(-50%); width: 480px; }
.w-mid { left: 50%; top: 18%; transform: translateX(-50%); width: 400px; }
.grid { display: grid; grid-template-columns: repeat(8, 46px); gap: 5px; }
.equip { display: grid; grid-template-columns: repeat(7, 54px); gap: 5px; }
.equip .slot { width: 54px; height: 54px; }
.slot { position: relative; width: 46px; height: 46px; background: #0b0c14; border: 2px solid #2a2e45; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.slot .ico { font-size: 22px; pointer-events: none; }
.slot .qty { position: absolute; right: 3px; bottom: 0; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; pointer-events: none; }
.slot .ph { font-size: 9px; color: #565c7c; text-align: center; pointer-events: none; }
.slot .lvl { position: absolute; left: 3px; top: 0; font-size: 10px; font-weight: 700; color: var(--bad); text-shadow: 0 1px 2px #000; pointer-events: none; }
.slot.locked { background: #050509; }
.slot.locked .ico { filter: grayscale(0.85) brightness(0.32); }
.slot.r0 { border-color: #7d8494; } .slot.r1 { border-color: #5fd35f; } .slot.r2 { border-color: #4da3ff; }
.slot.r3 { border-color: #b667ff; box-shadow: inset 0 0 8px rgba(182, 103, 255, 0.35); }
.slot.r4 { border-color: #ff9a2e; box-shadow: inset 0 0 10px rgba(255, 154, 46, 0.45); }
.hint { font-size: 11.5px; color: var(--dim); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hd { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.srow { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.srow span { flex: 1; }
.plus { width: 20px; height: 20px; padding: 0; line-height: 1; background: #1f6f8c; border: 0; border-radius: 4px; cursor: pointer; font-weight: 700; }
.shop-row { display: flex; align-items: center; gap: 10px; }
.shop-row .ico { font-size: 24px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.set-row select, .set-row input[type=range] { width: 150px; }
.loot-filter { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.loot-filter.off { opacity: 0.55; }
.chks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.chk { display: flex; align-items: center; gap: 4px; font-size: 12.5px; cursor: pointer; }

/* книга умений */
.sk-row { display: flex; gap: 10px; padding: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid #2a2e48; border-radius: 8px; }
.sk-row.off { opacity: 0.7; }
.sk-ico { flex: none; width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: grab;
  background: radial-gradient(circle at 50% 35%, #3a2f5c, #12101e); border: 1px solid #6a4ab0; }
.sk-ico.locked { cursor: default; filter: grayscale(1) brightness(0.5); border-color: #333; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.sk-vals { font-size: 12px; color: #a8e6a1; margin: 3px 0 5px; }
.sk-req { font-size: 11.5px; margin-top: 3px; }

.tip { position: fixed; z-index: 100000; max-width: 260px; padding: 9px 11px; background: #090a12; border: 1px solid #4a4f74; border-radius: 6px; font-size: 12.5px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); }
.tip-name { font-weight: 700; font-size: 14px; }
.tip .stat { color: #a8e6a1; }
.tip-pw { margin-top: 4px; color: var(--gold); }
.ctxmenu { position: fixed; z-index: 100001; display: flex; flex-direction: column; min-width: 170px; background: #090a12; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; pointer-events: auto; }
.ctxmenu button { padding: 8px 12px; text-align: left; background: none; border: 0; cursor: pointer; }
.ctxmenu button:hover { background: #262a42; }
.toasts { position: absolute; z-index: 99999; left: 50%; top: 92px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { padding: 7px 14px; background: rgba(10, 11, 18, 0.92); border: 1px solid var(--line); border-radius: 16px; font-size: 13px; }
.death { position: absolute; inset: 0; pointer-events: auto; background: rgba(40, 0, 0, 0.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.death h2 { font-size: 34px; color: var(--bad); }
.conn { position: absolute; inset: 0; z-index: 30; background: rgba(8, 9, 16, 0.78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }
.conn-text { font-size: 16px; max-width: 520px; }

/* ---------- админка ---------- */
#admin { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tabs .btn.on { border-color: var(--accent); color: var(--accent); }
.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; overflow-x: auto; }
.a-card.edit { border-color: var(--gold2); }
.a-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.a-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--dim); width: 170px; }
.a-form label.wide { width: 350px; }
.a-form label.full { width: 100%; }
.grades { display: flex; gap: 8px; flex-wrap: wrap; }
.grades label { width: 110px; }
.drops { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.drops .row input { width: 90px; }
.drops .row select { width: 260px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.stat-grid div { background: #0b0c14; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.stat-grid b { display: block; font-size: 22px; color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #262a40; vertical-align: middle; }
th { color: var(--dim); font-weight: 600; }
td .btn { margin: 1px 2px 1px 0; }
.tag { padding: 1px 7px; border-radius: 10px; font-size: 11px; background: #262a42; }
.tag.on { background: #1d5a2c; } .tag.ban { background: #6e2630; } .tag.adm { background: #5a4a1d; }

/* ---------- v0.4: колонки, группа, трекер, босс ---------- */
.svg-ico { display: inline-block; vertical-align: -2px; flex: none; }
.leftcol { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rightcol { position: absolute; right: 12px; top: 12px; width: 174px; display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.chip .svg-ico { color: #c9cde4; } .chip.gold .svg-ico { color: var(--gold); } .chip.gem .svg-ico { color: #8fd8ff; }
.uf-chips { flex-wrap: wrap; }
.chip { min-width: 52px; }
.party { width: 210px; pointer-events: auto; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: rgba(14, 16, 27, 0.88); border: 1px solid #2f3a2c; }
.pm-head { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9fe0a8; }
.pm-leave { margin-left: auto; padding: 1px 6px; font-size: 10px; background: #3a1f24; border: 1px solid #6e2630; border-radius: 4px; cursor: pointer; }
.pm { padding: 4px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid #2a2e48; cursor: context-menu; }
.pm.dead { opacity: 0.5; }
.pm-top { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.pm-top .crown { color: var(--gold); }
.pm-lvl { margin-left: auto; font-size: 10px; color: var(--dim); }
.bar.tiny { height: 7px; } .bar.micro { height: 4px; margin-top: 2px !important; }
.invites { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.invite { display: flex; align-items: center; gap: 8px; padding: 8px 10px; min-width: 360px; border-color: var(--gold2); color: #ffe7a8; }
.boss-bar { padding: 6px 8px; border-radius: 8px; background: linear-gradient(rgba(60, 20, 80, 0.95), rgba(20, 10, 30, 0.95)); border: 1px solid #7b3fc4; }
.boss-name { font-size: 12px; font-weight: 700; color: #e0b8ff; margin-bottom: 4px; }
.tf.boss { border-color: #7b3fc4; background: linear-gradient(160deg, rgba(60, 20, 80, 0.95), rgba(16, 10, 24, 0.95)); }
.tracker { display: flex; flex-direction: column; gap: 4px; }
.tr-head { font-size: 11px; color: var(--gold); text-shadow: 0 1px 2px #000; }
.tr-q { padding: 5px 7px; border-radius: 6px; background: rgba(10, 11, 18, 0.78); border-left: 3px solid #6a7090; font-size: 11px; cursor: pointer; text-shadow: 0 1px 2px #000; }
.tr-q b { display: block; font-size: 11.5px; color: #ffe7a8; }
.tr-q.ready { border-left-color: var(--good); }
.tr-q.ready div { color: var(--good); }

/* сумка */
.slot .en { position: absolute; left: 3px; bottom: 0; font-size: 10px; font-weight: 800; color: #ffd24a; text-shadow: 0 1px 2px #000; pointer-events: none; }
.slot.closed { background: repeating-linear-gradient(45deg, #0b0c14, #0b0c14 4px, #10121c 4px, #10121c 8px); border-style: dashed; border-color: #2a2e45; color: #4c5272; cursor: pointer; }
.slot.closed:hover { color: var(--gold); border-color: var(--gold2); }
.slot.sel { outline: 2px solid var(--gold); outline-offset: 1px; }
.slot.worn::before { content: 'Н'; position: absolute; right: 2px; top: 0; font-size: 8px; color: var(--accent); }
.inv-sum { display: flex; align-items: center; gap: 2px; font-size: 13px; }
.w-inv .grid { max-height: 52vh; overflow-y: auto; padding-right: 4px; }

/* окно героя */
.w-char { width: 470px; top: 120px; left: 340px; }
.doll { display: flex; gap: 10px; justify-content: space-between; padding: 8px; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, rgba(80, 90, 150, 0.25), rgba(0, 0, 0, 0.3)); border: 1px solid #2a2e48; }
.doll-col { display: flex; flex-direction: column; gap: 6px; width: 120px; }
.doll-slot { display: flex; align-items: center; gap: 6px; }
.doll-slot small { font-size: 10.5px; color: var(--dim); line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.doll-col:last-child .doll-slot { flex-direction: row-reverse; text-align: right; }
.doll-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.doll-pic { width: 96px; height: 120px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.doll-name { font-weight: 800; font-size: 14px; }
.doll-power { color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 2px; cursor: help; }
.stat-block { padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); border: 1px solid #2a2e48; }
.stat-block .srow { cursor: help; flex-wrap: wrap; }
.stat-block .srow small { width: 100%; font-size: 10.5px; }

/* окна города и соц. */
.w-quests { left: 50%; top: 70px; transform: translateX(-50%); width: 480px; }
.w-guild { left: 50%; top: 70px; transform: translateX(-50%); width: 560px; }
.w-top { left: 50%; top: 60px; transform: translateX(-50%); width: 560px; }
.w-donate { left: 50%; top: 60px; transform: translateX(-50%); width: 620px; }
.w-smith { left: 50%; top: 70px; transform: translateX(-50%); width: 460px; }
.w-npc { left: 50%; top: 70px; transform: translateX(-50%); width: 460px; }
.npc-head { display: flex; gap: 12px; align-items: center; }
.npc-pic { width: 64px; height: 80px; flex: none; border-radius: 8px; background: radial-gradient(#3b4a7a, #141726); }
.npc-title { color: var(--gold); font-size: 12px; margin-bottom: 4px; }
.npc-greet { font-style: italic; color: #d6d9ea; }
.q-card { display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid #2a2e48; border-left: 3px solid #6a7090; }
.q-card.avail { border-left-color: var(--gold); } .q-card.ready { border-left-color: var(--good); } .q-card.low { opacity: 0.6; }
.q-card .btn { align-self: flex-start; }
.q-state { font-size: 11px; color: var(--dim); }
.q-card.ready .q-state { color: var(--good); font-weight: 700; } .q-card.avail .q-state { color: var(--gold); }
.q-desc { font-size: 12.5px; color: #cfd2e4; }
.q-goal { font-size: 12px; color: #ffe7a8; }
.q-rew { font-size: 12px; color: #a8e6a1; }
.qdone { padding: 12px 16px; min-width: 320px; max-width: 460px; text-align: center; display: flex; flex-direction: column; gap: 4px; border-color: var(--good); }
.qd-title { color: var(--good); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.smith-grid { max-height: 210px; overflow-y: auto; }
.enh-box { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--gold2); }
.enh-box .btn { align-self: flex-start; }
.enh-line { display: flex; justify-content: space-between; font-size: 16px; }
.gem-balance { display: flex; align-items: center; gap: 8px; font-size: 20px; color: #8fd8ff; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px; border-radius: 10px; background: radial-gradient(circle at 50% 20%, #26304e, #10121c); border: 1px solid #3c4266; }
.offer.poor { opacity: 0.6; }
.offer-ico { font-size: 30px; }
.offer .btn { margin-top: auto; display: flex; align-items: center; gap: 3px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; color: #6b7090; }
.g-head { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.g-head h3 { margin: 0; color: var(--text); }
.g-motd { display: flex; flex-direction: column; gap: 4px; }
textarea { width: 100%; padding: 7px 9px; background: #0b0c14; border: 1px solid var(--line); border-radius: 6px; color: inherit; font: inherit; resize: vertical; }
.g-table tr.off { opacity: 0.6; }
.g-table .btn { margin-right: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #555; margin-right: 6px; }
.dot.on { background: var(--good); box-shadow: 0 0 6px var(--good); }
.tabs.small { margin: 0 0 8px; }
.top-table tr.me td { background: rgba(242, 195, 90, 0.12); }
.top-table td.num { text-align: right; font-weight: 700; color: var(--gold); }
.a-form textarea { width: 100%; }

/* ---------- v0.5: лента добычи ---------- */
.bottomleft { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.lootfeed { width: var(--chat-w, 360px); padding: 0; overflow: hidden; background: rgba(14, 16, 27, var(--chat-o, 0.92)); }
.lf-head { display: flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 12px; cursor: pointer; color: #e8d9ad; border-bottom: 1px solid #262a40; }
.lf-sum { margin-left: auto; font-size: 11px; color: var(--dim); display: flex; align-items: center; gap: 3px; }
.lf-arrow::after { content: '▾'; color: var(--dim); }
.lootfeed.collapsed .lf-arrow::after { content: '▸'; }
.lootfeed.collapsed .lf-list { display: none; }
.lootfeed.collapsed .lf-head { border-bottom: 0; }
.lf-list { max-height: 112px; overflow-y: auto; padding: 3px 4px; }
.lf-row { display: flex; align-items: center; gap: 7px; padding: 2px 5px; border-radius: 5px; font-size: 12px; animation: lfIn 0.35s ease-out; }
.lf-row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }
.lf-row.rare { background: linear-gradient(90deg, rgba(182, 103, 255, 0.14), transparent); }
.lf-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-meta { font-size: 10.5px; color: #6b7090; }
.lf-meta.sold { color: var(--gold); }
.lf-empty { font-size: 11.5px; color: #5a5f7c; padding: 6px; text-align: center; }
@keyframes lfIn { from { opacity: 0; transform: translateX(-8px); } }

/* ---------- v0.5: ячейки предметов ---------- */
.slot { background: linear-gradient(#141624, #0a0b12); border: 1px solid #2a2e45; border-radius: 7px; overflow: hidden; }
.slot .item-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); pointer-events: none; }
.slot.r0 { border-color: #4a4f60; } .slot.r1 { border-color: #3e8a45; } .slot.r2 { border-color: #2f6db0; }
.slot.r3 { border-color: #7d45b8; box-shadow: inset 0 -10px 14px -10px rgba(182, 103, 255, 0.55); }
.slot.r4 { border-color: #c06d1c; box-shadow: inset 0 -10px 16px -10px rgba(255, 154, 46, 0.7); }
.slot.r1 { box-shadow: inset 0 -8px 12px -10px rgba(95, 211, 95, 0.5); }
.slot.r2 { box-shadow: inset 0 -8px 12px -10px rgba(77, 163, 255, 0.55); }
.slot.empty { border-style: dashed; border-color: #2b3048; }
.slot .ph-ico { color: #2c3150; }
.slot.locked .item-ico { filter: grayscale(0.9) brightness(0.35); }
.slot.fade { opacity: 0.22; }
.b-en, .b-qty, .b-lock, .b-up { position: absolute; font-size: 10px; font-weight: 800; line-height: 1; text-shadow: 0 1px 2px #000, 0 0 2px #000; pointer-events: none; }
.b-en { left: 3px; top: 3px; color: #ffd24a; }
.b-qty { right: 3px; bottom: 3px; color: #fff; }
.b-lock { left: 3px; bottom: 3px; color: var(--bad); }
.b-up { left: 3px; bottom: 2px; color: var(--good); font-size: 11px; }
.slot .b-el { position: absolute; right: 3px; top: 3px; filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9)); pointer-events: none; }
.slot .en, .slot .lvl { display: none; }

/* ---------- v0.5: сумка ---------- */
.w-inv { width: 412px; }
.w-inv .grid { grid-template-columns: repeat(8, 44px); gap: 4px; max-height: 46vh; }
.w-inv .slot { width: 44px; height: 44px; }
.inv-head { display: flex; align-items: center; gap: 10px; }
.cap { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.cap-bar { flex: 1; height: 6px; background: #07080d; border-radius: 3px; overflow: hidden; }
.cap-fill { height: 100%; background: linear-gradient(90deg, #3a6fb0, #6fe3ff); }
.cap-fill.warn { background: linear-gradient(90deg, #b06a3a, #ff6b6b); }
.cur { display: flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; }
.cur .svg-ico { color: var(--gold); } .cur.gem .svg-ico { color: #8fd8ff; } .cur.dust .svg-ico { color: #ffd98a; }
.inv-tabs { display: flex; gap: 3px; }
.it { flex: 1; padding: 4px 0; font-size: 11.5px; background: rgba(0, 0, 0, 0.3); border: 1px solid #2a2e48; border-radius: 6px; color: var(--dim); cursor: pointer; }
.it small { margin-left: 4px; opacity: 0.6; }
.it.on { color: var(--text); border-color: #4a5280; background: rgba(111, 134, 255, 0.12); }
.inv-foot { display: flex; align-items: center; gap: 6px; }
.inv-foot .hint { margin-left: auto; font-size: 10.5px; }
.inv-details summary { cursor: pointer; font-size: 12px; color: var(--dim); padding: 2px 0; }
.inv-details .loot-filter { border-top: 0; padding-top: 6px; }

/* ---------- v0.5: окно героя ---------- */
.w-char { width: 470px; }
.hero { display: grid; grid-template-columns: 58px 1fr 58px; gap: 10px; padding: 12px; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 30%, rgba(60, 70, 120, 0.35), rgba(0, 0, 0, 0.35) 70%); border: 1px solid #2a2e48; }
.hero-col { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.hero .slot.eq { width: 56px; height: 56px; }
.hero .slot.eq .item-ico { width: 30px; height: 30px; }
.hero-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hero-stage { position: relative; width: 150px; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.hero-stage::before { content: ''; position: absolute; left: 50%; bottom: 4px; width: 120px; height: 28px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.55; animation: glowPulse 3.5s ease-in-out infinite; }
.hero-stage::after { content: ''; position: absolute; inset: 10px 20px 20px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.12; }
@keyframes glowPulse { 50% { opacity: 0.85; } }
.hero-pic { position: relative; z-index: 1; width: 112px; height: 140px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6)); }
.hero-name { font-weight: 800; font-size: 15px; margin-top: 2px; }
.hero-power { display: flex; align-items: center; gap: 3px; margin-top: 3px; padding: 2px 10px; border-radius: 10px; font-weight: 800; color: var(--gold);
  background: rgba(242, 195, 90, 0.1); border: 1px solid rgba(242, 195, 90, 0.3); cursor: help; }
.res { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid #2a2e48; }
.res .hd { margin-bottom: 2px; }
.res-row { display: grid; grid-template-columns: 14px 52px 66px 1fr auto; align-items: center; gap: 6px; font-size: 11.5px; }
.res-row.off { opacity: 0.45; }
.res-name { font-weight: 700; }
.res-now { color: var(--good); font-weight: 700; }
.res-next { color: #6b7090; font-size: 10.5px; text-align: right; }
.pips { display: flex; gap: 2px; }
.pips i { width: 8px; height: 8px; border-radius: 2px; background: #1d2033; }
.pips i.step { box-shadow: 0 0 0 1px #4a4f70; }
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.scard { position: relative; display: grid; grid-template-columns: 16px 1fr; grid-template-rows: auto auto; column-gap: 6px; padding: 6px 8px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid #2a2e48; cursor: help; }
.scard .svg-ico { grid-row: span 2; align-self: center; color: #9aa6d8; }
.sc-name { font-size: 10.5px; color: var(--dim); }
.scard b { font-size: 14px; }
.scard small { position: absolute; right: 6px; bottom: 5px; font-size: 10px; }
.attrs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.attr { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: rgba(0, 0, 0, 0.28); border: 1px solid #2a2e48; font-size: 12px; cursor: help; }
.attr b { font-size: 13px; }
.pts-left { color: var(--good); font-size: 12px; font-weight: 700; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.hero-foot select { width: 150px; padding: 3px 6px; }

/* ---------- цветные ники ---------- */
.nk { background-clip: text; -webkit-background-clip: text; color: transparent !important; }
.nk-gold { background-image: linear-gradient(90deg, #ffe28a, #f2b33a); }
.nk-ice { background-image: linear-gradient(90deg, #e2f8ff, #5bb8ff); filter: drop-shadow(0 0 3px rgba(91, 184, 255, 0.6)); }
.nk-fire { background-image: linear-gradient(90deg, #ffe36b, #ff4a1a); animation: nkPulse 2.4s ease-in-out infinite; }
.nk-toxic { background-image: linear-gradient(90deg, #d4ff7a, #33d16b); filter: drop-shadow(0 0 3px rgba(77, 255, 122, 0.5)); }
.nk-void { background-image: linear-gradient(90deg, #f0d6ff, #8a4ae0); animation: nkPulseV 2.8s ease-in-out infinite; }
.nk-star { background-image: linear-gradient(90deg, #ffffff, #cfe6ff, #ffffff); background-size: 200% 100%; animation: nkShine 3s linear infinite; filter: drop-shadow(0 0 3px rgba(154, 216, 255, 0.7)); }
.nk-rainbow { background-image: linear-gradient(90deg, #ff5a5a, #ffd24a, #5dff7a, #5bb8ff, #b667ff, #ff5a5a); background-size: 300% 100%; animation: nkShine 4s linear infinite; }
@keyframes nkPulse { 50% { filter: drop-shadow(0 0 5px rgba(255, 106, 42, 0.8)); } }
@keyframes nkPulseV { 50% { filter: drop-shadow(0 0 5px rgba(182, 103, 255, 0.85)); } }
@keyframes nkShine { to { background-position: -300% 0; } }
.ver { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: 0; }

/* ---------- v0.7 ---------- */
.win { max-width: calc(100vw - 16px); }
.win-head { cursor: move; user-select: none; }
.win-body { min-height: 0; }
.w-inv .grid { max-height: none; overflow: visible; }
.hud-info { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 8px; background: rgba(10, 11, 18, 0.78); font-size: 11.5px; text-shadow: 0 1px 2px #000; }
.hi-zone { font-weight: 700; color: #ffe7a8; }
.hi-ev { font-weight: 700; }
.hi-recall { margin-top: 2px; }
.hi-recall:disabled { opacity: 0.55; cursor: default; }
.slot .b-lk { position: absolute; right: 3px; bottom: 3px; color: #8fd8ff; pointer-events: none; }
.st-top { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: radial-gradient(ellipse at 20% 40%, rgba(60, 70, 120, 0.35), rgba(0, 0, 0, 0.3) 70%); border: 1px solid #2a2e48; }
.st-top .hero-stage { --glow: #6f86ff; flex: none; }
.st-note { margin-top: 6px; min-height: 16px; color: #ffe7a8; }
.gem-balance.small { font-size: 14px; margin-top: 6px; }
.st-group { padding: 7px 9px; border-radius: 9px; background: rgba(0, 0, 0, 0.25); border: 1px solid #2a2e48; }
.st-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.st-chip { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 5px 8px; font-size: 12px; background: #151828; border: 1px solid #343a58; border-radius: 7px; cursor: pointer; color: inherit; }
.st-chip:hover { border-color: var(--gold); }
.st-chip.on { border-color: var(--good); background: rgba(111, 220, 127, 0.12); }
.st-chip.locked span { color: var(--dim); }
.st-chip small { display: flex; align-items: center; gap: 2px; font-size: 10.5px; color: #8fd8ff; }
.st-chip:disabled { opacity: 0.45; cursor: default; }

/* ---------- v0.8: миникарта, карта мира, сияние вещей, редактор карты ---------- */
.mm { position: relative; width: 188px; display: flex; flex-direction: column; align-items: center; }
.mm-frame { position: relative; width: 176px; height: 176px; padding: 4px; border-radius: 50%; box-sizing: content-box;
  background: conic-gradient(#f7dc8c, #8a6a22, #f1c95a, #6d5218, #f7dc8c); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 0 0 1px #3a2a08; }
.mm-canvas { display: block; width: 176px; height: 176px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6); }
.mm-n { position: absolute; left: 50%; top: -3px; transform: translateX(-50%); padding: 0 5px; border-radius: 8px; font-size: 10px; font-weight: 800; color: #2a1c00; background: #f1c95a; border: 1px solid #3a2a08; pointer-events: none; }
.mm-btns { position: absolute; right: -2px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; }
.mm-btn { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid #8a6a22; background: #14162a; color: var(--gold); font-weight: 800; font-size: 12px; line-height: 1; cursor: pointer; }
.mm-btn:hover { background: #23264a; border-color: #f1c95a; }
.mm .clock { margin-top: 5px; padding: 1px 10px; border-radius: 10px; background: rgba(10, 11, 20, 0.8); border: 1px solid var(--line); }
.w-map { left: 50%; top: 6%; transform: translateX(-50%); width: 590px; max-width: 96vw; }
.bigmap { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #8a6a22; cursor: crosshair; image-rendering: pixelated; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0; font-size: 11px; color: var(--dim); }
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.6); }

/* сияние: легендарные вещи и заточка +7. Свечение статичное, блик - отдельный слой на transform (не вызывает перерисовку сумки).
   --hd - отрицательная задержка от общего времени: при пересборке сумки блик продолжает движение, а не начинается заново. */
.slot.hot { border-color: var(--hot); box-shadow: 0 0 6px -1px var(--hot), inset 0 0 9px -3px var(--hot); }
.slot.hot::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; will-change: transform;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  transform: translateX(-120%); animation: hotSweep 3.6s linear infinite; animation-delay: var(--hd, 0s); }
.slot.hot .item-ico { filter: drop-shadow(0 0 2px var(--hot)); }
@keyframes hotSweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(290%); } }
.hero-stage::after { opacity: 0.22; animation: stageBreath 3.4s ease-in-out infinite; }
@keyframes stageBreath { 50% { opacity: 0.38; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .slot.hot::after, .hero-stage::after { animation: none; } }

.rightcol { width: 188px; }
.hi-ev.streak { color: #ffb347; font-weight: 700; }

/* ---------- админка v0.9: каркас с боковым меню ---------- */
#admin { max-width: none; margin: 0; padding: 0; }
.adm-root { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 16px 10px; background: #0a0b12; border-right: 1px solid var(--line); }
.adm-brand { display: flex; flex-direction: column; padding: 0 8px 4px; }
.adm-brand b { font-size: 16px; color: var(--gold); }
.adm-brand span { font-size: 11.5px; color: var(--dim); }
.adm-gname { padding: 0 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7190; }
.adm-link { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--text); text-decoration: none; font-size: 13.5px; border: 1px solid transparent; }
.adm-link:hover { background: #151828; }
.adm-link.on { background: #1b2038; border-color: #343c66; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.adm-link:focus-visible, .btn:focus-visible, .dt th:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-ico { width: 20px; text-align: center; font-size: 14px; }
.adm-count { margin-left: auto; padding: 0 7px; border-radius: 9px; font-size: 11px; color: var(--dim); background: #171a2b; }
.adm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.adm-main { min-width: 0; padding: 0 26px 70px; }
.adm-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -26px 16px; padding: 14px 26px; background: rgba(15, 16, 24, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.adm-top h1 { margin: 0; font-size: 20px; }
.adm-status { font-size: 12.5px; color: var(--good); padding: 3px 10px; border-radius: 12px; background: rgba(111, 220, 127, 0.1); border: 1px solid rgba(111, 220, 127, 0.25); }
.adm-content { max-width: 1500px; }
.adm-content .a-card h3 { margin: 0 0 10px; font-size: 14px; }
.lead { margin: 0 0 12px; max-width: 900px; font-size: 13px; color: var(--dim); }
.pad { padding: 20px 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.cols .row input { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.noaccess { max-width: 420px; margin: 80px auto; text-align: center; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.ghost:hover { background: #1a1d30; color: var(--text); border-color: var(--line); }
.adm-root .stat-grid { margin-bottom: 14px; }
.adm-root .stat-grid div { font-size: 12px; color: var(--dim); background: var(--panel); }
.adm-root .stat-grid b { font-size: 21px; margin-bottom: 2px; }
.adm-root code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #b9c2ff; }

/* таблица с поиском и сортировкой */
.a-card.dt { padding: 0; overflow: hidden; }
.dt-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.dt-tools { margin-left: auto; display: flex; gap: 6px; }
.dt-count { font-size: 12px; color: var(--dim); }
.search { width: 280px; max-width: 100%; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.filters input[type=number] { width: 80px; }
.dt-wrap { overflow: auto; max-height: calc(100vh - 190px); border-top: 1px solid var(--line); }
.drw .dt-wrap { max-height: 340px; }
.dt thead th { position: sticky; top: 0; z-index: 1; background: #161929; white-space: nowrap; user-select: none; }
.dt th.sortable { cursor: pointer; }
.dt th.sortable:hover { color: var(--text); }
.dt th.asc::after { content: ' ▲'; color: var(--accent); font-size: 9px; }
.dt th.desc::after { content: ' ▼'; color: var(--accent); font-size: 9px; }
.dt td.n, .dt th.n { text-align: right; font-variant-numeric: tabular-nums; }
.dt tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.dt tr.click { cursor: pointer; }
.dt tbody tr:hover td { background: #1a1e33; }
.dt td .tag { margin-left: 6px; }
.dt-empty { padding: 26px; text-align: center; color: var(--dim); }

/* формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.form fieldset { margin: 0; padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 9px; min-width: 0; }
.form legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--gold); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 12px; color: var(--dim); }
.fld > input:not([type=checkbox]):not([type=color]), .fld > select, .fld > textarea { width: 100%; }
.fld.wide { grid-column: span 2; }
.fld.full { grid-column: 1 / -1; }
.fld.end { justify-content: flex-end; align-items: flex-start; }
.fld.bool { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; min-height: 34px; color: var(--text); cursor: pointer; }
.fld.inline { flex-direction: row; align-items: center; gap: 6px; }
.form-grid .grades { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.form-grid .grades .fld { width: auto; }
input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #0b0c14; cursor: pointer; }
input.sw { appearance: none; position: relative; flex: none; width: 36px; height: 20px; margin: 0; border-radius: 10px; background: #2a2e45; border: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
input.sw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #9ba1bd; transition: transform 0.15s, background 0.15s; }
input.sw:checked { background: #1d6582; border-color: #3aa8cf; }
input.sw:checked::after { transform: translateX(16px); background: #fff; }
.savebar { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 8px; margin: 0 -26px; padding: 12px 26px; background: rgba(15, 16, 24, 0.95); border-top: 1px solid var(--line); }

/* окна: подтверждение и боковая панель */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(4, 5, 10, 0.62); }
.dlg { width: min(420px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #151828; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.dlg form { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.dlg p { margin: 0; font-size: 14.5px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; }
.drw { position: fixed; inset: 0 0 0 auto; width: min(680px, 100vw); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: #12141f; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
.drw[open] { display: flex; flex-direction: column; animation: drwIn 0.16s ease-out; }
.drw.wide { width: min(980px, 100vw); }
@keyframes drwIn { from { transform: translateX(40px); opacity: 0; } }
.drw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drw-head h2 { margin: 0; font-size: 18px; }
.drw-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drw-foot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #0e1019; }
.drw-foot .btn.ghost { margin-left: auto; }
.a-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.a-toast { max-width: 380px; padding: 10px 14px; border-radius: 9px; font-size: 13.5px; background: #1a1e33; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: toastIn 0.18s ease-out; }
.a-toast.ok { border-left: 3px solid var(--good); }
.a-toast.bad { border-left: 3px solid var(--bad); }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drw[open], .a-toast { animation: none; } }
@media (max-width: 860px) {
  .adm-root { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-group { display: flex; gap: 4px; }
  .adm-gname, .adm-brand span, .adm-foot .dim, .adm-count { display: none; }
  .adm-link { white-space: nowrap; }
  .adm-foot { margin: 0; padding: 0; border: 0; }
  .adm-main { padding: 0 12px 60px; }
  .adm-top { margin: 0 -12px 12px; padding: 10px 12px; }
  .savebar { margin: 0 -12px; padding: 10px 12px; }
  .fld.wide { grid-column: 1 / -1; }
}
.adm-root .dt-bar input.search, .adm-root .filters input.search { width: 280px; }
.adm-root .filters input:not(.search) { width: 190px; }
.adm-root .filters input[type=number] { width: 80px; }
.adm-root .filters select { width: auto; }
.fld .row input[type=color], dialog .row input[type=color] { flex: none; width: 38px; padding: 2px; }
.fld .row input:not([type=color]) { flex: 1; min-width: 0; }

/* ---------- v0.10: кристалл миров ---------- */
.w-travel { left: 50%; top: 10%; transform: translateX(-50%); width: 520px; max-width: 96vw; }
.tw-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; max-height: 62vh; overflow-y: auto; }
.tw-card { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; background: linear-gradient(#1a1f36, #10121c); border: 1px solid #3c4266; }
.tw-card.pvp { border-color: #7a3440; background: linear-gradient(#2a1a22, #14101a); }
.tw-card.here { box-shadow: inset 0 0 0 1px var(--accent); }
.tw-card .btn { margin-top: auto; align-self: flex-start; }
.tw-tag { padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 800; }
.tw-tag.pve { background: #1d5a2c; color: #c9ffd4; } .tw-tag.pvp { background: #7a2633; color: #ffd0d6; }
.tw-req { font-size: 12px; } .tw-req.bad { color: var(--bad); } .tw-req.good { color: var(--good); }

/* ---------- v0.11: правила миров и эффекты ---------- */
.buff.debuff { border-color: #a13a48; background: #2a1418; }
.hi-ev.rules { color: #ffb347; font-size: 11.5px; max-width: 190px; }
.tw-rules { font-size: 11.5px; color: #ffb347; }
.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 12px; max-height: 190px; overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #0b0c14; }
.multi label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text); cursor: pointer; }

/* ---------- v0.12: пиксельные иконки предметов и их редактор ---------- */
.pix-ico { image-rendering: pixelated; display: block; flex: none; }
.slot .pix-ico.item-ico { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); pointer-events: none; }
.art-ed { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.art-board { position: relative; flex: none; width: 288px; height: 288px; border: 1px solid var(--line); border-radius: 6px; cursor: crosshair; touch-action: none;
  background: repeating-conic-gradient(#1a1d2c 0 25%, #12141f 0 50%) 0 0 / 36px 36px; }
.art-board canvas { display: block; width: 288px; height: 288px; image-rendering: pixelated; }
.art-side { display: flex; flex-direction: column; gap: 10px; min-width: 220px; flex: 1; }
.art-pal { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.art-sw { position: relative; width: 26px; height: 26px; border-radius: 5px; border: 2px solid #2a2e45; cursor: pointer; overflow: hidden; }
.art-sw.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.art-sw input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.art-sw.erase { background: repeating-conic-gradient(#3a3e55 0 25%, #1a1d2c 0 50%) 0 0 / 10px 10px; }
.art-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.art-tools .btn.on { border-color: var(--accent); color: var(--accent); }
.art-prev { display: flex; gap: 10px; align-items: center; }
.art-prev .slot { width: 46px; height: 46px; }
.art-vars { display: grid; grid-template-columns: repeat(6, 44px); gap: 6px; }
.art-vars .slot { width: 44px; height: 44px; cursor: pointer; }
.art-vars .slot:hover { outline: 2px solid var(--accent); }
.ico-cell { display: flex; align-items: center; gap: 8px; }
.ico-cell .slot { width: 34px; height: 34px; flex: none; }
.dev-hi { color: var(--bad); font-weight: 700; } .dev-lo { color: #6fb7ff; font-weight: 700; } .dev-ok { color: var(--dim); }
.curve { width: auto; } .curve td, .curve th { padding: 3px 8px; } .curve input { width: 90px; }

/* ---------- v0.13: бегущая строка, окна подтверждения, бой, почта ---------- */
.ticker { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(720px, 70vw); height: 30px; overflow: hidden; pointer-events: none;
  border-radius: 15px; border: 1px solid rgba(255, 210, 74, 0.55); background: linear-gradient(90deg, rgba(40, 24, 4, 0.2), rgba(30, 20, 6, 0.88) 15%, rgba(30, 20, 6, 0.88) 85%, rgba(40, 24, 4, 0.2));
  box-shadow: 0 0 18px rgba(255, 190, 60, 0.25), inset 0 0 12px rgba(255, 190, 60, 0.12); }
.ticker-text { position: absolute; top: 0; left: 0; white-space: nowrap; line-height: 30px; font-weight: 700; font-size: 14px; color: #ffe7a8; text-shadow: 0 1px 2px #000, 0 0 8px rgba(255, 200, 80, 0.5); transform: translateX(var(--from)); }
.ticker-text.run { animation-name: tickerRun; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes tickerRun { from { transform: translateX(var(--from)); } to { transform: translateX(var(--to)); } }
.gdlg { padding: 0; border: 0; background: transparent; color: var(--text); }
.gdlg::backdrop { background: rgba(4, 5, 12, 0.55); }
.gdlg-box { width: min(380px, 90vw); padding: 16px 18px 14px; border-radius: 12px; border: 1px solid #8a6a22; background: linear-gradient(#1c2036, #10121c); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05); animation: gdlgIn 0.14s ease-out; }
@keyframes gdlgIn { from { transform: scale(0.94); opacity: 0; } }
.gdlg-title { font-weight: 800; color: var(--gold); margin-bottom: 6px; letter-spacing: 0.02em; }
.gdlg p { margin: 0 0 14px; line-height: 1.4; }
.gdlg-foot { display: flex; justify-content: flex-end; gap: 8px; }
.uf-fight { margin-left: 6px; padding: 0 5px; border-radius: 8px; font-size: 11px; line-height: 16px; color: #fff; background: #b8323a; box-shadow: 0 0 8px rgba(229, 72, 77, 0.7); animation: fightPulse 1s ease-in-out infinite; }
.uf-fight::after { content: ' ' attr(data-s); font-size: 10px; opacity: 0.85; }
@keyframes fightPulse { 50% { box-shadow: 0 0 2px rgba(229, 72, 77, 0.3); } }
.mm-mail { position: absolute; left: -2px; top: 10px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #f1c95a; background: #2a1f08; color: #ffd24a; font-size: 15px; cursor: pointer; animation: mailBounce 1.2s ease-in-out infinite; }
.mm-mail::after { content: attr(data-n); position: absolute; right: -6px; top: -6px; min-width: 15px; height: 15px; border-radius: 8px; font-size: 10px; line-height: 15px; color: #fff; background: #d33; }
@keyframes mailBounce { 50% { transform: translateY(-3px); } }
.w-mail { left: 50%; top: 12%; transform: translateX(-50%); width: 620px; max-width: 96vw; }
.ml { display: grid; grid-template-columns: 220px 1fr; gap: 10px; min-height: 300px; max-height: 64vh; }
.ml-list { overflow-y: auto; border-right: 1px solid var(--line); padding-right: 6px; }
.ml-row { padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 12.5px; border: 1px solid transparent; }
.ml-row:hover { background: #171a2b; } .ml-row.on { background: #1d2240; border-color: #3a4170; }
.ml-row.unread b { color: #ffe7a8; } .ml-row.unread::before { content: '●'; float: right; color: var(--gold); font-size: 10px; }
.ml-top { display: flex; align-items: center; gap: 6px; } .ml-gift { color: var(--gold); flex: none; }
.ml-view { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.ml-subj { font-weight: 800; font-size: 15px; } .ml-body { white-space: pre-wrap; line-height: 1.45; padding: 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.03); }
.ml-atts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 8px; border: 1px dashed #8a6a22; }
.ml-atts.taken { opacity: 0.45; } .ml-att { display: flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; }
.ml-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .ml-empty { margin: auto; }
.tip-wp { color: #bfe6ff; font-size: 12px; } .tip-perk { color: #ffcf6a; font-size: 12px; }
.mail-row { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
h3.sub { margin: 18px 0 8px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .uf-fight, .mm-mail, .gdlg-box { animation: none; } }

/* ---------- v0.14: главная страница, выбор и создание героя ---------- */
/* фон под меню: z-index 0, а меню выше - с отрицательным z-index холст уходил под фон body и был не виден */
.bg-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; image-rendering: pixelated; pointer-events: none; }
#app.screen { position: relative; z-index: 1; }
.screen { background: transparent; padding: 0; display: block; }
.home, .chars-screen { min-height: 100%; display: flex; flex-direction: column; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--gold); letter-spacing: 0.02em; text-shadow: 0 2px 0 #3a2a08; }
.logo small { font-size: 11px; color: var(--dim); font-weight: 600; text-shadow: none; }
.logo-gem { width: 14px; height: 22px; background: linear-gradient(#e8fdff, #6fe3ff 45%, #2a8ab0); clip-path: polygon(50% 0, 100% 45%, 50% 100%, 0 45%); filter: drop-shadow(0 0 6px #6fe3ff); }
.lang-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-sw button { padding: 4px 9px; font-size: 11px; font-weight: 700; border: 0; background: rgba(10, 11, 20, 0.6); color: var(--dim); cursor: pointer; }
.lang-sw button.on { background: #24305a; color: #fff; }
.home-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px); gap: 40px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 20px 28px 40px; }
.home-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1; color: #ffe7a8; letter-spacing: 0.01em;
  text-shadow: 0 3px 0 #6a4a10, 0 6px 0 #2a1a04, 0 0 30px rgba(255, 200, 80, 0.35); }
.home-tag { margin: 12px 0 6px; font-size: 17px; font-weight: 700; color: var(--accent); text-shadow: 0 0 12px rgba(111, 227, 255, 0.4); }
.home-lead { max-width: 560px; color: #cfd3ea; font-size: 15px; line-height: 1.55; }
.home-stats { display: flex; gap: 22px; margin: 18px 0 22px; min-height: 46px; }
.home-stats div { display: flex; flex-direction: column; padding: 6px 14px; border-left: 3px solid var(--gold); background: rgba(10, 11, 22, 0.55); border-radius: 0 8px 8px 0; }
.home-stats b { font-size: 22px; color: #fff; } .home-stats span { font-size: 12px; color: var(--dim); }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.feat { padding: 12px 14px; border-radius: 12px; background: rgba(14, 16, 30, 0.72); border: 1px solid rgba(120, 130, 190, 0.25); backdrop-filter: blur(4px); }
.feat b { display: block; margin: 2px 0 3px; color: #fff; } .feat p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.feat-ico { font-size: 20px; }
.auth-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: rgba(16, 18, 32, 0.9); border: 1px solid #8a6a22;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); }
.auth-card h2 { margin: 0 0 4px; color: var(--gold); }
.auth-card input { padding: 11px 12px; font-size: 15px; }
.btn.big { padding: 11px 14px; font-size: 15px; font-weight: 700; }
.btn.ghost-gold { background: transparent; border-color: #8a6a22; color: var(--gold); }
.btn.ghost-gold:hover { background: rgba(242, 195, 90, 0.08); }
.small { font-size: 12px; } .center { text-align: center; }
.home-foot { padding: 14px; text-align: center; font-size: 12px; color: rgba(200, 205, 230, 0.5); }
@media (max-width: 860px) { .home-main { grid-template-columns: 1fr; gap: 22px; } .feats { grid-template-columns: 1fr; } .home-top { padding: 12px 16px; } }

.chars-box, .cr-box { width: min(1060px, 94vw); margin: 10px auto 40px; padding: 22px; border-radius: 16px; background: rgba(14, 16, 30, 0.88); border: 1px solid rgba(138, 106, 34, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); }
.chars-box h2, .cr-box h2 { margin: 0; color: var(--gold); }
.hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 18px 0; }
.hero-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 14px; border-radius: 14px; cursor: pointer; color: var(--text);
  background: linear-gradient(#1b2036, #10121e); border: 2px solid #2c3254; transition: transform 0.12s, border-color 0.12s; }
.hero-card:hover { transform: translateY(-3px); border-color: #4a5590; }
.hero-card.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(242, 195, 90, 0.25); }
.hero-stage-sm { width: 120px; height: 124px; display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(ellipse 50% 14% at 50% 92%, rgba(111, 227, 255, 0.35), transparent 70%), radial-gradient(circle at 50% 40%, rgba(80, 90, 160, 0.35), transparent 65%); }
.hc-name { font-size: 15px; } .hc-lvl { font-size: 12px; color: var(--dim); }
.hc-cls { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: #2a2f4a; }
.cls-warrior.hc-cls { background: #5a1f24; color: #ffc0c0; } .cls-ranger.hc-cls { background: #1f4a2a; color: #c0ffc8; } .cls-mage.hc-cls { background: #232f6a; color: #c8d4ff; }
.hero-card.new { justify-content: center; min-height: 210px; border-style: dashed; color: var(--dim); background: rgba(16, 18, 30, 0.6); }
.hero-card.new:hover { color: var(--gold); border-color: var(--gold); }
.hc-plus { font-size: 46px; line-height: 1; font-weight: 300; }
.chars-play { display: flex; justify-content: center; } .chars-play .btn { min-width: 240px; }

.cr-box { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; }
.cr-left { display: flex; flex-direction: column; gap: 10px; }
.cr-stage { height: 270px; display: flex; align-items: flex-end; justify-content: center; border-radius: 14px; border: 1px solid #2c3254;
  background: radial-gradient(ellipse 45% 10% at 50% 94%, rgba(111, 227, 255, 0.45), transparent 70%), radial-gradient(circle at 50% 35%, #2a3366, #0f1120 70%); }
.cr-turn { display: flex; justify-content: center; gap: 8px; }
.cr-name { display: flex; gap: 6px; } .cr-name input { flex: 1; padding: 10px; font-size: 15px; }
.cr-right h3 { margin: 4px 0 8px; font-size: 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.cls-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cls-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; cursor: pointer; color: var(--text); background: #151933; border: 2px solid #2c3254; }
.cls-card.on { border-color: var(--gold); background: #1f2546; }
.cls-ico { font-size: 24px; }
.cls-info { margin: 10px 0 16px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--accent); }
.cls-info p { margin: 0 0 4px; }
.cr-opt { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(52, 58, 88, 0.5); }
.cr-lbl { font-size: 12.5px; color: var(--dim); }
.sw-row, .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-row .sw { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #1a1d2c; box-shadow: 0 0 0 1px #3a4066; cursor: pointer; }
.sw-row .sw.on { box-shadow: 0 0 0 2px var(--gold); }
.sw-row .sw.auto { background: conic-gradient(#b03a3a 0 33%, #3f8a4b 0 66%, #4a5fd0 0); }
.chip { padding: 4px 10px; font-size: 12px; border-radius: 14px; border: 1px solid #3a4066; background: #151933; color: var(--text); cursor: pointer; }
.chip.on { border-color: var(--gold); background: #2a2a18; color: #ffe7a8; }
@media (max-width: 820px) { .cr-box { grid-template-columns: 1fr; } }

/* ---------- меню настроек ---------- */
.w-set { left: 50%; top: 10%; transform: translateX(-50%); width: 600px; max-width: 96vw; }
.st { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 330px; }
.st-tabs { display: flex; flex-direction: column; gap: 2px; padding-right: 10px; border-right: 1px solid var(--line); }
.st-tab { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); text-align: left; font-size: 13px; cursor: pointer; }
.st-tab:hover { background: #171a2b; color: var(--text); } .st-tab.on { background: #1f2546; color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.st-ico { width: 18px; text-align: center; }
.st-body { padding-left: 14px; display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(52, 58, 88, 0.55); }
.st-lbl { display: flex; flex-direction: column; min-width: 0; } .st-lbl b { font-weight: 600; font-size: 13.5px; } .st-lbl small { color: var(--dim); font-size: 11.5px; }
.st-sw { position: relative; flex: none; width: 40px; height: 22px; padding: 0; border-radius: 11px; border: 1px solid var(--line); background: #2a2e45; cursor: pointer; transition: background 0.15s; }
.st-sw i { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9ba1bd; transition: transform 0.15s, background 0.15s; }
.st-sw.on { background: #1d6582; border-color: #3aa8cf; } .st-sw.on i { transform: translateX(18px); background: #fff; }
.st-seg { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.st-seg button { padding: 5px 10px; font-size: 12px; border: 0; border-right: 1px solid var(--line); background: #11131f; color: var(--dim); cursor: pointer; }
.st-seg button:last-child { border-right: 0; } .st-seg button.on { background: #24305a; color: #fff; }
.st-range { display: flex; align-items: center; gap: 8px; flex: none; } .st-range input { width: 150px; }
.st-val { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--gold); }
.st-acts { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; } .st-acts.end { justify-content: flex-end; margin-top: auto; }
.st-badge { padding: 2px 10px; border-radius: 10px; background: #24305a; font-size: 12px; }
.st-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.st-key { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.st-key kbd { min-width: 44px; padding: 2px 6px; text-align: center; font: 600 11px ui-monospace, Consolas, monospace; border-radius: 5px; border: 1px solid #4a5280; border-bottom-width: 2px; background: #171a2b; color: #fff; }
.st-hint { margin-top: 12px; font-size: 12px; color: var(--dim); line-height: 1.5; }
@media (max-width: 560px) { .st { grid-template-columns: 1fr; } .st-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 6px; } .st-body { padding: 10px 0 0; } }

/* ---------- v0.15: полировка главной ---------- */
.home-main { min-height: calc(100dvh - 200px); }
.home-hero h1.shine { background: linear-gradient(100deg, #f2c35a 0%, #ffe7a8 30%, #fffaf0 45%, #ffe7a8 60%, #e8a83a 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 3px 0 #6a4a10) drop-shadow(0 6px 0 #2a1a04) drop-shadow(0 0 24px rgba(255, 200, 80, 0.35)); animation: titleShine 7s ease-in-out infinite; }
@keyframes titleShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.home-hero > * { animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.home-hero > :nth-child(2) { animation-delay: 0.08s; } .home-hero > :nth-child(3) { animation-delay: 0.16s; }
.home-hero > :nth-child(4) { animation-delay: 0.24s; } .home-hero > :nth-child(5) { animation-delay: 0.32s; }
.auth-card { animation: slideIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; position: relative; }
.auth-card::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: 17px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #8a6a22, #f2c35a, #6fe3ff, #8a6a22, #8a6a22); animation: borderSpin 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes borderSpin { to { --ang: 360deg; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px) scale(0.98); } }
.auth-card input, .cr-name input { background: rgba(6, 8, 18, 0.75); color: #fff; border: 1px solid #3a4170; border-radius: 9px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-card input::placeholder, .cr-name input::placeholder { color: #7f86a8; }
.auth-card input:focus, .cr-name input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 195, 90, 0.18); }
.auth-card input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #0c0e1c inset; caret-color: #fff; }
.auth-card .btn.primary { position: relative; overflow: hidden; background: linear-gradient(#e8b84a, #a9812d); border-color: #ffd98a; color: #2a1a04; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3); }
.auth-card .btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.6s; }
.auth-card .btn.primary:hover::after { transform: translateX(120%); }
.btn { transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s; }
.btn.big:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.feat { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(242, 195, 90, 0.55); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 18px rgba(242, 195, 90, 0.12); }
.feat-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(111, 227, 255, 0.1); border: 1px solid rgba(111, 227, 255, 0.25); }
.home-stats div { backdrop-filter: blur(4px); }
.home-top { position: relative; z-index: 2; }
.hero-card, .cls-card, .chip, .sw-row .sw { transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s, background 0.2s; }
.chars-box, .cr-box { animation: riseIn 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-cards .hero-card { animation: riseIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-cards .hero-card:nth-child(2) { animation-delay: 0.06s; } .hero-cards .hero-card:nth-child(3) { animation-delay: 0.12s; } .hero-cards .hero-card:nth-child(4) { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .home-hero > *, .auth-card, .auth-card::before, .home-hero h1.shine, .chars-box, .cr-box, .hero-card { animation: none; } }

/* ---------- v0.16: ячейки, титулы, кузнец, магазин ---------- */
.b-socks { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.b-socks i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6); }
.b-socks i.full { border-color: rgba(255, 255, 255, 0.8); background: radial-gradient(circle at 35% 30%, #fff 0 18%, var(--gc) 40%, color-mix(in srgb, var(--gc) 55%, #000) 100%); box-shadow: 0 0 4px var(--gc), 0 0 0 1px rgba(0, 0, 0, 0.6); }
.tip-sock { font-size: 12px; } .tip-sock.empty { color: var(--dim); }
/* титулы */
.ttl { font-weight: 800; color: var(--c1); letter-spacing: 0.02em; }
.ttl.big { font-size: 15px; }
.ttl-pulse { animation: tPulse 1.6s ease-in-out infinite; }
.ttl-shimmer, .ttl-rainbow, .ttl-fire, .ttl-frost, .ttl-all { background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttl-shimmer { background-image: linear-gradient(100deg, var(--c1) 30%, var(--c2) 50%, var(--c1) 70%); animation: tShim 2.6s linear infinite; }
.ttl-rainbow { background-image: linear-gradient(90deg, #ff5a6a, #ffd24a, #5fd35f, #4da3ff, #b667ff, #ff5a6a); animation: tShim 3s linear infinite; }
.ttl-fire { background-image: linear-gradient(0deg, #a8240c, var(--c1), #ffe066); background-size: 100% 200%; animation: tFire 1.2s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 120, 40, 0.6)); }
.ttl-frost { background-image: linear-gradient(100deg, #9ae6ff, #ffffff, var(--c1), #ffffff); animation: tShim 3.5s linear infinite; filter: drop-shadow(0 0 4px rgba(150, 220, 255, 0.7)); }
.ttl-glow { animation: tGlow 1.8s ease-in-out infinite; }
.ttl-all { background-image: linear-gradient(90deg, #ff5a6a, #ffd24a, #5fd35f, #4da3ff, #b667ff, #ff5a6a); animation: tShim 2.4s linear infinite, tPulse 1.6s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45)); }
@keyframes tPulse { 50% { opacity: 0.6; } }
@keyframes tShim { to { background-position: -220% 0; } }
@keyframes tFire { 50% { background-position: 0 100%; } }
@keyframes tGlow { 0%, 100% { text-shadow: 0 0 3px var(--c1); } 50% { text-shadow: 0 0 10px var(--c1), 0 0 18px var(--c1); } }
.tc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 360px; overflow-y: auto; padding-right: 2px; }
.tcard { padding: 8px 10px; border-radius: 9px; background: #151933; border: 1px solid #2c3254; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.tcard:hover { border-color: #4a5590; transform: translateY(-1px); }
.tcard.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(242, 195, 90, 0.2); }
.tcard.locked { cursor: default; opacity: 0.6; filter: grayscale(0.6); } .tcard.locked:hover { transform: none; }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tc-badge { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #2a1a04; font-weight: 800; }
.tc-stats { font-size: 11.5px; color: var(--good); margin-top: 3px; } .tc-cond { font-size: 11px; color: var(--dim); margin-top: 2px; }
.tc-bar { height: 4px; margin-top: 5px; border-radius: 2px; background: #0b0c14; overflow: hidden; } .tc-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
/* кузнец */
.w-smith { width: 640px !important; max-width: 96vw; }
.sm-res { display: flex; gap: 12px; font-size: 12.5px; align-items: center; } .sm-res span { display: inline-flex; align-items: center; gap: 3px; }
.sm-warn { margin: 8px 0; padding: 6px 10px; border-radius: 8px; background: rgba(229, 72, 77, 0.12); border: 1px solid rgba(229, 72, 77, 0.4); color: #ffb0b0; font-size: 12.5px; }
.sm-main { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px; margin-top: 10px; }
.sm-doll { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 6px; align-content: start; padding: 10px; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #222a4e, #10121e); border: 1px solid #2c3254; }
.sm-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; } .sm-cell small { font-size: 10.5px; color: var(--dim); }
.sm-cell .slot { cursor: pointer; } .sm-cell .slot.empty { cursor: default; opacity: 0.5; }
.slot.sel { outline: 2px solid var(--gold); outline-offset: 1px; box-shadow: 0 0 12px rgba(242, 195, 90, 0.4); }
.sm-panel { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #12152a; border: 1px solid #2c3254; }
.sm-head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sm-arrow { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 20px; color: var(--dim); }
.sm-en { font-weight: 900; color: #fff; font-size: 24px; } .sm-en.next { color: var(--gold); text-shadow: 0 0 10px rgba(242, 195, 90, 0.5); }
.sm-stats { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 12.5px; } .sm-stats div { display: flex; justify-content: space-between; gap: 6px; } .sm-stats div span { color: var(--dim); flex: 1; }
.sm-chance { height: 8px; border-radius: 4px; background: #0b0c14; overflow: hidden; } .sm-chance i { display: block; height: 100%; border-radius: 4px; transition: width 0.3s; }
.sm-cost { display: flex; gap: 14px; font-weight: 700; } .sm-cost span { display: inline-flex; align-items: center; gap: 3px; }
.sm-prot { color: var(--text); }
.sm-sockrow { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.sm-sock { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid #4a5280; background: #07080f; }
.sm-sock.full { border-color: #fff; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--gc) 40%, color-mix(in srgb, var(--gc) 50%, #000)); box-shadow: 0 0 8px var(--gc); }
.sm-gems { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .sm-gems .slot { width: 34px; height: 34px; cursor: pointer; }
.sm-dis { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; background: #12152a; }
.sm-empty { padding: 30px; text-align: center; } .big-msg { font-size: 16px; text-align: center; padding: 20px; }
@media (max-width: 640px) { .sm-main { grid-template-columns: 1fr; } }
/* магазин кристаллов */
.w-donate { width: 720px !important; max-width: 96vw; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(120deg, #2a1f5a, #14183a 60%, #0f2a3a); border: 1px solid #4a3f8a; box-shadow: inset 0 0 30px rgba(111, 227, 255, 0.08); }
.ds-bal { display: flex; align-items: center; gap: 10px; color: #6fe3ff; } .ds-bal b { display: block; font-size: 22px; color: #fff; line-height: 1; } .ds-bal span { font-size: 12px; color: var(--dim); }
.ds-top { background: linear-gradient(#e8b84a, #a9812d); border-color: #ffd98a; color: #2a1a04; font-weight: 800; }
.ds-cats { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.ds-cat { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 16px; border: 1px solid #2c3254; background: #12152a; color: var(--dim); font-size: 12.5px; cursor: pointer; }
.ds-cat:hover { color: var(--text); border-color: #4a5590; } .ds-cat.on { background: #24305a; border-color: var(--gold); color: #fff; }
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.ds-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 10px; text-align: center; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--cc, #24305a) 0%, #12152a 55%); border: 1px solid #2c3254; transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s; }
.ds-card:hover { transform: translateY(-3px); border-color: rgba(242, 195, 90, 0.6); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.ds-card.c-vip { --cc: #4a3a10; } .ds-card.c-look { --cc: #3a1f5a; } .ds-card.c-title { --cc: #4a2a14; } .ds-card.c-comfort { --cc: #1f3a2a; } .ds-card.c-res { --cc: #1f2a4a; }
.ds-card.owned { opacity: 0.7; }
.ds-ico { font-size: 34px; line-height: 1.2; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.ds-name { font-size: 13.5px; } .ds-desc { flex: 1; font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.ds-rib { position: absolute; top: 9px; left: -24px; width: 92px; padding: 2px 0; transform: rotate(-35deg); font-size: 10px; font-weight: 900; color: #fff; background: #d33; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.ds-rib.sale { background: #1f9e5a; left: auto; right: -24px; transform: rotate(35deg); }
.ds-buy { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 7px 8px; margin-top: 4px; border-radius: 9px; cursor: pointer; font-weight: 800;
  border: 1px solid #3aa8cf; background: linear-gradient(#2a7ea8, #1b5a7c); color: #fff; } .ds-buy:hover { filter: brightness(1.15); }
.ds-buy.poor { border-color: #4a5280; background: #1b1e30; color: var(--dim); }
.ds-buy s { color: rgba(255, 255, 255, 0.5); font-weight: 600; margin-right: 2px; }
.ds-buy.money { background: linear-gradient(#e8b84a, #a9812d); border-color: #ffd98a; color: #2a1a04; font-size: 15px; }
.ds-own { margin-top: 4px; font-size: 12px; color: var(--good); font-weight: 700; }
.ds-card.pack { --cc: #14304a; } .ds-card.pack.hot { --cc: #4a3a10; border-color: rgba(242, 195, 90, 0.6); }
.ds-gemstack { color: #6fe3ff; filter: drop-shadow(0 0 10px rgba(111, 227, 255, 0.6)); }
.ds-amt { font-size: 22px; color: #fff; } .ds-bonus { font-size: 12px; color: #7dff9a; font-weight: 700; min-height: 16px; }
.ds-style { margin-bottom: 8px; width: 100%; }
.ds-promo { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #12152a; } .ds-promo input { flex: 1; }
.gem-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 15%, var(--gc) 45%, #000 120%); box-shadow: 0 0 6px var(--gc); }

/* ---------- v0.18: журнал, достижения, подземелья, магазин ---------- */
.mb-badge { position: absolute; left: 3px; top: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 9.5px; font-weight: 800; line-height: 15px; animation: emoPulse 1.4s ease-in-out infinite; }
.w-journal { width: min(520px, 94vw); }
.pg-bar { position: relative; flex: 1; height: 14px; border-radius: 7px; overflow: hidden; background: #0c0e1a; border: 1px solid #2a2f4a; }
.pg-fill { height: 100%; width: 0; background: linear-gradient(90deg, #3aa8cf, #6fe3ff); transition: width 0.3s; }
.pg-bar.full .pg-fill { background: linear-gradient(90deg, #4ac46a, #8fffa8); } .pg-bar.boss .pg-fill { background: linear-gradient(90deg, #b8322f, #ff6b5a); }
.pg-bar span { position: absolute; inset: 0; text-align: center; font-size: 10px; line-height: 13px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.tk-sec { margin-bottom: 10px; } .tk-h { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 6px; font-weight: 700; }
.tk { padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; background: #14172a; border: 1px solid #262b46; }
.tk.ready { border-color: rgba(111, 220, 127, 0.6); box-shadow: 0 0 12px rgba(111, 220, 127, 0.15); } .tk.got { opacity: 0.55; }
.tk-top { display: flex; justify-content: space-between; gap: 8px; } .tk-rew { font-size: 11.5px; color: #ffe08a; white-space: nowrap; }
.tk-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; } .tk-ok { font-size: 12px; color: var(--good); font-weight: 700; white-space: nowrap; }
.ach-sum { margin: 2px 0 8px; color: var(--dim); } .ach-sum b { color: var(--gold); font-size: 16px; }
.ach-list { display: flex; flex-direction: column; gap: 6px; max-height: 56vh; overflow-y: auto; }
.ach { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #14172a; border: 1px solid #262b46; }
.ach .pg-bar { margin-top: 5px; } .ach.done { border-color: rgba(242, 195, 90, 0.45); background: linear-gradient(90deg, rgba(242, 195, 90, 0.1), #14172a 60%); }
.ach:not(.done) .ach-ico { filter: grayscale(1); opacity: 0.6; }
.ach-ico { font-size: 26px; width: 34px; text-align: center; } .ach-t { font-size: 11.5px; color: var(--dim); }
.ach-pop { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--gold2); animation: achIn 0.5s cubic-bezier(.2, 1.4, .4, 1); }
.ach-pop .ach-ico { animation: emoBounce 1.2s ease-in-out infinite; } .ach-k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
@keyframes achIn { from { transform: scale(0.6); opacity: 0; } }
.sn-head { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #2a1f4a, #14172a); border: 1px solid #4a3a7a; }
.sn-name { font-size: 16px; color: #e8d8ff; } .sn-left { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-size: 11px; color: var(--dim); } .sn-left b { font-size: 15px; color: var(--gold); }
.sn-me { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.sn-me div { padding: 8px; border-radius: 10px; background: #14172a; text-align: center; font-size: 11px; color: var(--dim); } .sn-me b { display: block; font-size: 20px; color: #fff; }
.sn-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 6px; }
.sn-top { max-height: 38vh; overflow-y: auto; } .sn-row { display: flex; gap: 6px; align-items: center; padding: 3px 6px; border-radius: 6px; font-size: 12.5px; }
.sn-row:nth-child(odd) { background: rgba(255, 255, 255, 0.03); } .sn-row.me { background: rgba(242, 195, 90, 0.15); } .sn-p { width: 22px; text-align: center; }
.sn-rw { display: flex; flex-direction: column; gap: 5px; font-size: 12px; } .sn-rw > div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 5px 7px; border-radius: 8px; background: #14172a; }
.pad { padding: 18px 8px; }
.tw-card.dg { border-color: #4a3a7a; background: linear-gradient(180deg, rgba(74, 58, 122, 0.25), transparent); } .tw-card.off { opacity: 0.75; }
.dg-rew { font-size: 11.5px; color: #ffe08a; }
.dg-hud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; width: 100%; max-width: 220px; box-sizing: border-box; padding: 8px 10px; margin-top: 6px; border: 1px solid #4a3a7a; }
.dg-hud > div { flex-basis: 100%; } .dg-t { font-weight: 800; font-variant-numeric: tabular-nums; } .dg-t.bad { color: var(--bad); animation: emoPulse 1s infinite; }
.dg-hud.done { border-color: var(--good); } .dg-boss { font-size: 11.5px; } .dg-boss .pg-bar { margin-top: 3px; }
.ticker.t-adm .ticker-text { color: #ffd6d6; text-shadow: 0 1px 2px #000, 0 0 10px rgba(255, 90, 90, 0.7); }
.ticker.t-adm { border-color: rgba(255, 120, 120, 0.6); }
/* магазин: VIP-таблица, своя лента, смайлы в карточке */
.ds-vipnow { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--gold); }
.ds-card.c-emote { --cc: #3a2a14; } .ds-card.c-special { --cc: #4a1f3a; }
.ds-rib.own { background: linear-gradient(90deg, #7a3aff, #c040ff); }
.ds-vipb { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; } .ds-vipb span { padding: 1px 6px; border-radius: 6px; font-size: 10.5px; background: rgba(0, 0, 0, 0.35); color: #ffe08a; }
.ds-emo { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 15px; }
.vip-tbl { width: 100%; margin-bottom: 10px; border-collapse: separate; border-spacing: 0; font-size: 12px; text-align: center; border-radius: 10px; overflow: hidden; background: #12152a; }
.vip-tbl th { padding: 6px 4px; font-size: 11px; } .vip-tbl th div { font-size: 18px; } .vip-tbl td { padding: 4px; border-top: 1px solid #22263e; }
.vip-tbl td:first-child { text-align: left; padding-left: 10px; color: var(--dim); } .vip-tbl .cur { background: rgba(242, 195, 90, 0.12); }
/* анимации карточек магазина и пакетов (выбираются в админке) */
.ds-card[class*='an-']::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.ds-card.an-shine::after { background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); background-size: 250% 100%; animation: anShine 3.2s ease-in-out infinite; }
.ds-card.an-glow { animation: anGlow 2.4s ease-in-out infinite; }
.ds-card.an-pulse .ds-ico, .ds-card.an-pulse .ds-gemstack { animation: emoPulse 1.6s ease-in-out infinite; }
.ds-card.an-float .ds-ico, .ds-card.an-float .ds-gemstack { animation: emoFloat 2.6s ease-in-out infinite; }
.ds-card.an-rainbow { border: 2px solid transparent; background: linear-gradient(180deg, var(--cc, #24305a) 0%, #12152a 55%) padding-box, linear-gradient(var(--rb, 0deg), #ff5a5a, #ffd24a, #5aff8a, #5ac8ff, #b65aff, #ff5a5a) border-box; animation: anRainbow 4s linear infinite; }
.ds-card.an-sparkle::after { background-image: radial-gradient(circle, #fff 0 1.2px, transparent 1.6px), radial-gradient(circle, #ffe9a0 0 1px, transparent 1.4px); background-size: 46px 52px, 31px 37px; animation: anSparkle 2.8s linear infinite; opacity: 0.7; }
.ds-card.an-fire::after { background: linear-gradient(0deg, rgba(255, 110, 30, 0.45), rgba(255, 60, 0, 0.08) 45%, transparent 70%); animation: anFire 1.3s ease-in-out infinite alternate; }
.ds-card.an-frost::after { background: linear-gradient(180deg, rgba(160, 230, 255, 0.28), transparent 40%), radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 30%); animation: anFrost 3s ease-in-out infinite alternate; }
.ds-card.an-gold { border-color: rgba(242, 195, 90, 0.7); }
.ds-card.an-gold .ds-name { background: linear-gradient(90deg, #a9812d, #ffe9a0, #f2c35a, #a9812d); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: anShine 2.6s linear infinite; }
@property --rb { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes anShine { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@keyframes anGlow { 50% { box-shadow: 0 0 22px rgba(111, 227, 255, 0.45), inset 0 0 18px rgba(111, 227, 255, 0.12); border-color: rgba(111, 227, 255, 0.7); } }
@keyframes anRainbow { to { --rb: 360deg; } }
@keyframes anSparkle { from { background-position: 0 0, 0 0; } to { background-position: 0 -52px, 0 -74px; } }
@keyframes anFire { to { opacity: 0.55; transform: translateY(-3px); } }
@keyframes anFrost { to { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .ds-card[class*='an-'], .ds-card[class*='an-']::after, [class*='emo-'] { animation: none !important; } }
/* ---------- админка v0.18: порядок, витрина магазина, аналитика ---------- */
.ord-list { display: flex; flex-direction: column; gap: 4px; }
.ord-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #161a2c; border: 1px solid #262b46; cursor: grab; }
.ord-h { color: #6b7090; } .ord-n { width: 22px; color: var(--gold); font-weight: 800; text-align: right; }
.dragging { opacity: 0.4; } .drop { outline: 2px dashed var(--gold); outline-offset: 2px; }
.adm-shop { max-height: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 10px; }
.adm-shop .ds-card { cursor: pointer; } .adm-shop .ds-card.off { opacity: 0.45; filter: grayscale(0.6); }
.adm-shop-meta { display: flex; justify-content: space-between; width: 100%; font-size: 11px; color: var(--dim); } .adm-shop-meta b { color: #6fe3ff; }
.adm-shop-tools { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.adm-add { justify-content: center; min-height: 160px; border-style: dashed; color: var(--dim); cursor: pointer; font: inherit; }
.an-recs { display: flex; flex-direction: column; gap: 5px; }
.an-rec { display: flex; gap: 8px; padding: 7px 10px; border-radius: 8px; background: #161a2c; border-left: 3px solid #3a4066; line-height: 1.4; }
.an-rec.bad { border-color: var(--bad); } .an-rec.warn { border-color: #ffae42; } .an-rec.ok { border-color: var(--good); } .an-rec.idea { border-color: #6fe3ff; }
.an-bar { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 8px; margin: 3px 0; font-size: 12.5px; }
.an-bar div { height: 10px; border-radius: 5px; background: #12152a; overflow: hidden; } .an-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #3aa86a, #6fdc7f); }
.an-bar.out i { background: linear-gradient(90deg, #b8322f, #ff7a5a); } .an-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.an-hist { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.an-hist > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; font-size: 10.5px; color: var(--dim); }
.an-hist i { width: 100%; border-radius: 5px 5px 0 0; background: linear-gradient(#6fe3ff, #2a7ea8); }
.an-hist b { color: var(--text); }
.stat-grid > div.bad b { color: var(--bad); }
.stat-grid.small { grid-template-columns: repeat(3, 1fr); } .stat-grid.small > div b { font-size: 16px; }
tr.warn td:first-child { box-shadow: inset 3px 0 0 #ffae42; }
.dlg p { white-space: pre-line; }
.report { width: 100%; min-height: 360px; font: 12px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.an-rec { align-items: center; } .an-rec .btn { flex: none; }

/* ================= v0.19: единый вид игрового интерфейса ================= */
:root { --win-bg: linear-gradient(180deg, rgba(24, 27, 44, 0.97), rgba(13, 14, 24, 0.97)); --win-line: #3a3352; --tab-bg: rgba(0, 0, 0, 0.32); --gold-grad: linear-gradient(#f4d27e, #c9a24f); }
#game { touch-action: none; }
/* окна */
.win { border: 1px solid var(--win-line); border-radius: 14px; background: var(--win-bg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04); overflow: hidden; }
.win:not(.hidden) { animation: winIn 0.16s ease-out; }
@keyframes winIn { from { opacity: 0; scale: 0.97; } }
.win::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 195, 90, 0.7), transparent); pointer-events: none; }
.win-head { gap: 8px; padding: 9px 10px 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; background: linear-gradient(180deg, rgba(242, 195, 90, 0.09), rgba(242, 195, 90, 0) 80%); }
.win-ico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; color: var(--gold); background: rgba(242, 195, 90, 0.1); border: 1px solid rgba(242, 195, 90, 0.25); }
.win-title { flex: 1; font-size: 14px; letter-spacing: 0.02em; color: #f3ead2; }
.win-head .x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 13px; border-radius: 8px; color: var(--dim); background: rgba(255, 255, 255, 0.04); border: 1px solid transparent; transition: background 0.15s, color 0.15s; }
.win-head .x:hover { color: #fff; background: #7d2a35; border-color: #a13a48; }
.win-body { padding: 12px 14px 14px; gap: 10px; scrollbar-width: thin; scrollbar-color: #3a4066 transparent; }
.win-body::-webkit-scrollbar { width: 8px; } .win-body::-webkit-scrollbar-thumb { background: #2e3352; border-radius: 4px; }
/* вкладки - один стиль везде: окна, магазин, рейтинг, кузница, журнал */
.inv-tabs, .ds-cats, .tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin: 0; border-radius: 10px; background: var(--tab-bg); border: 1px solid rgba(255, 255, 255, 0.05); }
.it, .ds-cat, .tabs .btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px; padding: 4px 10px; font-size: 12px; font-weight: 600;
  border: 0; border-radius: 7px; background: transparent; color: var(--dim); cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; box-shadow: none; }
.it:hover, .ds-cat:hover, .tabs .btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.it.on, .ds-cat.on, .tabs .btn.on { color: #1d1606; background: var(--gold-grad); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); }
.tabs.small { margin: 0 0 8px; }
/* кнопки */
.btn { border-radius: 8px; font-weight: 600; }
.btn.primary { background: linear-gradient(#f0cd76, #b98d35); border-color: #ffdf94; color: #221704; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: default; filter: grayscale(0.4); }
/* нижняя панель меню */
.menu { gap: 3px; padding: 5px; border-radius: 14px; background: linear-gradient(rgba(28, 31, 50, 0.96), rgba(11, 12, 21, 0.96)); border: 1px solid var(--win-line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.mb { width: 50px; height: 50px; border-radius: 10px; background: linear-gradient(180deg, #1f2338, #12141f); border: 1px solid #2c3150; color: #d9c48a; transition: transform 0.12s, border-color 0.15s, background 0.15s; }
.mb:hover { transform: translateY(-2px); border-color: var(--gold); color: #ffe7a8; }
.mb.on { border-color: var(--gold); background: linear-gradient(180deg, #3a3018, #1a160c); color: #ffe7a8; }
.mb.on::before { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }
.mb-label { font-size: 9.5px; } .mb-emo { font-size: 18px; line-height: 1; }
.mb::after { content: attr(data-tip) '\A' attr(data-desc); position: absolute; right: 0; bottom: calc(100% + 10px); width: max-content; max-width: 230px; padding: 7px 10px; white-space: pre-line; text-align: left;
  font-size: 11.5px; line-height: 1.4; color: var(--dim); background: #10121e; border: 1px solid var(--win-line); border-radius: 9px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 5; }
.mb:not([data-tip])::after { display: none; }
.mb:hover::after { opacity: 1; transform: none; }
.mb-more, .mb-chat, .joy { display: none; }
/* панели HUD - тот же язык */
.uf, .tf, .hud-info, .lootfeed, .chat, .dg-hud, .mini, .boss-bar { border-color: var(--win-line); }
.gdlg-box { border-radius: 14px; }

/* ================= телефон и планшет ================= */
@media (max-width: 820px), (pointer: coarse) and (max-height: 520px) {
  .win { position: fixed !important; left: max(6px, env(safe-area-inset-left)) !important; right: max(6px, env(safe-area-inset-right)) !important; top: max(6px, env(safe-area-inset-top)) !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important; width: auto !important; max-width: none !important; max-height: none !important; transform: none !important; border-radius: 16px; }
  .win-head { cursor: default; padding: 10px 12px; } .win-head .x { width: 36px; height: 36px; font-size: 16px; }
  .win-body { padding: 10px; }
  .it, .ds-cat, .tabs .btn { min-height: 34px; }
  .inv-tabs, .ds-cats, .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  /* меню: одна кнопка «Меню» + «Чат», остальное раскрывается сеткой */
  .menu { right: max(6px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); }
  .menu .mb:not(.mb-more):not(.mb-chat) { display: none; }
  .mb-more, .mb-chat { display: flex; }
  .menu.open { flex-wrap: wrap; justify-content: flex-end; width: min(300px, calc(100vw - 12px)); }
  .menu.open .mb:not(.mb-more):not(.mb-chat) { display: flex; width: 64px; height: 58px; }
  .mb::after, .mb-key { display: none; }
  /* чат - по кнопке, листом снизу */
  .bottomleft { display: none; }
  body.chat-open .bottomleft { display: flex; position: fixed; left: 6px; right: 6px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 25; }
  body.chat-open .chat, body.chat-open .lootfeed { width: 100%; }
  body.chat-open .chat-log { height: min(var(--chat-h, 150px), 34vh); }
  /* HUD компактнее */
  .leftcol { left: 6px; top: 6px; transform: scale(0.82); transform-origin: top left; }
  .rightcol { right: 6px; top: 6px; transform: scale(0.8); transform-origin: top right; }
  .tracker { display: none; }
  .actionbar { left: auto; right: 72px; bottom: max(6px, env(safe-area-inset-bottom)); transform: none; padding: 5px; }
  .ab-row { align-items: center; }
  .slots { display: grid; grid-template-columns: repeat(5, 42px); gap: 4px; }
  .hb { width: 42px; height: 42px; } .hb.atk { width: 62px; height: 62px; border-radius: 50%; }
  .hb .key { display: none; }
  .ticker { width: 92vw; top: 4px; }
  .invites { top: 60px; }
  .win-body { overflow-x: auto; }
  .w-inv .grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); } .w-inv .slot { width: auto; height: auto; aspect-ratio: 1; }
  .ds-grid { max-height: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sn-cols { grid-template-columns: 1fr; }
}
body.touch .joy { display: block; position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); width: 128px; height: 128px; border-radius: 50%; pointer-events: auto; touch-action: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 45%, rgba(255, 255, 255, 0.1) 46% 48%, transparent 49%), rgba(10, 11, 18, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f4d27e, #a9812d); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); opacity: 0.8; }
.joy.on .joy-knob { opacity: 1; }
body.touch .hb, body.touch .mb, body.touch .ct, body.touch .btn { -webkit-tap-highlight-color: transparent; }
body.touch .tip { display: none !important; }
@media (prefers-reduced-motion: reduce) { .win:not(.hidden), .mb { animation: none; transition: none; } }
/* админка: баланс снаряжения */
.gb { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .gb { grid-template-columns: 1fr; } }
.gb-form { grid-template-columns: 1fr; }
.gb-form .grades { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.gb-ctl { gap: 14px; align-items: center; margin-bottom: 8px; } .gb-ctl input[type=range] { width: 200px; }
.gb-out h3 { margin: 12px 0 6px; font-size: 13.5px; }
.gb-t { width: 100%; border-collapse: collapse; font-size: 12.5px; } .gb-t th, .gb-t td { padding: 4px 6px; border-bottom: 1px solid #22263e; text-align: left; } .gb-t th { color: var(--dim); font-weight: 600; }
.gb-t td.n { text-align: right; font-variant-numeric: tabular-nums; } td.warn { color: #ffae42; }
.gb-chart { width: 100%; height: auto; background: #0e1020; border-radius: 10px; }
.gb-grid { stroke: #22263e; stroke-width: 1; } .gb-now { stroke: var(--gold); stroke-dasharray: 4 4; } .gb-lbl { fill: #6b7090; font-size: 10px; }
.gb-rs { gap: 8px; color: var(--dim); font-size: 12.5px; }

.sm-tr { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; background: #12152a; font-size: 12.5px; }
.sm-gems .slot.sel { outline: 2px solid var(--gold); }

/* v0.20: путь, календарь, бестиарий, гильдия, комплекты */
.spec-list { display: flex; flex-direction: column; gap: 8px; }
.spec { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #14172a; border: 1px solid #262b46; }
.spec.on { border-color: var(--gold); background: linear-gradient(90deg, rgba(242, 195, 90, 0.12), #14172a 70%); } .spec.low { opacity: 0.6; }
.spec-ico { font-size: 30px; width: 40px; text-align: center; } .spec-b { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.spec-b span { padding: 1px 7px; border-radius: 6px; font-size: 11px; background: rgba(111, 220, 127, 0.12); color: #a8f0b4; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 8px; }
.cal-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 9px; background: #14172a; border: 1px solid #262b46; font-size: 11px; }
.cal-d small { color: var(--dim); font-size: 9.5px; } .cal-i { font-size: 18px; } .cal-d.big { border-color: rgba(242, 195, 90, 0.5); background: linear-gradient(#2a2412, #14172a); }
.cal-d.got { opacity: 0.55; } .cal-d.cur { border-color: var(--gold); box-shadow: 0 0 12px rgba(242, 195, 90, 0.35); animation: emoPulse 1.6s ease-in-out infinite; }
.cal-ok { position: absolute; right: 4px; top: 2px; color: var(--good); font-weight: 800; }
.best { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 56vh; overflow-y: auto; }
.best-c { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #14172a; border: 1px solid #262b46; }
.best-c.t1 { border-color: #8a6a3a; } .best-c.t2 { border-color: #c9d2e3; } .best-c.t3 { border-color: var(--gold); }
.best-pic { width: 36px; height: 36px; image-rendering: pixelated; } .best-pic.unknown { filter: brightness(0); opacity: 0.5; }
.best-t { width: 26px; text-align: center; font-weight: 800; color: var(--gold); } .best-c .pg-bar { margin-top: 3px; }
.g-lvl { padding: 8px 10px; border-radius: 10px; background: #14172a; border: 1px solid #262b46; display: flex; flex-direction: column; gap: 5px; }
.tip-set { margin-top: 4px; font-weight: 700; } .tip-setb { font-size: 12px; color: #6b7090; } .tip-setb.on { color: #a8f0b4; }
.dg-set { font-size: 11.5px; } .tw-card.raid { border-color: #7a3a3a; background: linear-gradient(180deg, rgba(122, 58, 58, 0.25), transparent); }

.tip-season { display: inline-flex; gap: 4px; align-items: center; align-self: flex-start; margin: 2px 0; padding: 1px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); }
.b-ss { position: absolute; right: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent var(--sc) transparent transparent; pointer-events: none; filter: drop-shadow(0 0 3px var(--sc)); }
.tip-en { color: #ffd98a; }

/* ---------- v0.22: рамка игрока и полоска ресурсов ---------- */
.uf { width: 300px; padding: 9px 12px 9px 9px; }
.uf-row { gap: 11px; }
.uf-portrait { cursor: pointer; transition: box-shadow 0.2s; }
.uf-portrait.fight { box-shadow: 0 0 0 2px #e5484d, 0 0 14px rgba(229, 72, 77, 0.75); animation: fightPulse 1s ease-in-out infinite; }
.uf-vip { position: absolute; left: -5px; top: -5px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #3a3f63, #12131f); border: 2px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); padding: 0; color: inherit; }
.uf-top { min-height: 20px; } .uf-name { font-size: 15px; }
.uf-title { min-height: 16px; margin: 0 0 5px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uf-fight { margin-left: auto; }
.bar.big { height: 18px; } .bar.mp { height: 11px; } .bar.mp .bar-label { font-size: 9px; }
.buffs { flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.buff { position: relative; width: 32px; height: 32px; overflow: hidden; border-radius: 8px; }
.buff::before { content: ''; position: absolute; inset: 0; background: conic-gradient(transparent var(--p, 100%), rgba(0, 0, 0, 0.55) 0); pointer-events: none; }
.buff span { position: relative; font-size: 15px; } .buff small { position: relative; font-size: 9px; text-shadow: 0 1px 2px #000; }
.uf-points { margin-top: 6px; padding: 4px; font-size: 11.5px; }
.resbar { display: flex; gap: 4px; pointer-events: auto; }
.res { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 4px 6px; border-radius: 9px; cursor: pointer; font-size: 12px;
  background: linear-gradient(rgba(28, 31, 50, 0.95), rgba(11, 12, 21, 0.95)); border: 1px solid var(--win-line); color: var(--text); white-space: pre-line; }
.res:hover { border-color: var(--gold2); } .res b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res.gold .svg-ico { color: var(--gold); } .res.gem .svg-ico { color: #8fd8ff; } .res.pw .svg-ico { color: #ffb46a; }

/* обучение новичка */
.tut { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 20; display: flex; gap: 12px; align-items: center; width: min(460px, 92vw); padding: 10px 12px;
  border: 1px solid var(--gold2); border-radius: 14px; pointer-events: auto; animation: achIn 0.4s cubic-bezier(.2, 1.4, .4, 1); }
.tut-ico { font-size: 30px; animation: emoFloat 2.4s ease-in-out infinite; } .tut-k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.tut b { font-size: 14.5px; } .tut .x { align-self: flex-start; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 14px; }
.tut-dots { display: flex; gap: 4px; margin-top: 6px; } .tut-dots i { width: 18px; height: 4px; border-radius: 2px; background: #2a2f4a; } .tut-dots i.on { background: var(--good); } .tut-dots i.cur { background: var(--gold); }

/* v0.22: друзья, поиск группы, банк, арена */
.w-bank { left: 50%; top: 10%; transform: translateX(-50%); width: 440px; }
.bank-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 30vh; overflow-y: auto; }
.f-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); margin-top: 6px; }
.f-row .small { font-size: 11px; }
.f-dot { width: 9px; height: 9px; border-radius: 50%; background: #50556e; flex: none; }
.f-row.on .f-dot { background: var(--good); box-shadow: 0 0 6px var(--good); }
.lfg-goal { flex: none; font-size: 11px; padding: 2px 7px; border-radius: 10px; background: rgba(111, 227, 255, 0.12); color: var(--accent); }
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; text-align: center; }
.ar-stats > div { padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--win-line); }
.ar-stats b { font-size: 18px; color: var(--gold); }
.ar-top { display: flex; flex-direction: column; gap: 2px; }
.ar-row { display: flex; gap: 8px; align-items: center; padding: 3px 6px; border-radius: 6px; font-size: 13px; }
.ar-row:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.ar-n { width: 18px; color: var(--dim); text-align: right; }
.ar-hud { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: flex-start; gap: 14px; pointer-events: none; }
.ar-side { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.ar-p { padding: 3px 8px; border-radius: 8px; background: rgba(10, 11, 20, 0.82); border: 1px solid var(--win-line); font-size: 12px; }
.ar-p.dead { opacity: 0.45; text-decoration: line-through; }
.ar-pn { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-hp { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--good) var(--w), rgba(255, 255, 255, 0.1) var(--w)); }
.ar-side.foes .ar-hp { background: linear-gradient(90deg, var(--bad) var(--w), rgba(255, 255, 255, 0.1) var(--w)); }
.ar-clock { padding: 6px 14px; border-radius: 12px; background: rgba(10, 11, 20, 0.9); border: 1px solid var(--gold2); color: var(--gold); font: 700 20px/1 system-ui, sans-serif; }
.ar-clock.wait { animation: arPulse 1s infinite; }
@keyframes arPulse { 50% { transform: scale(1.08); } }
.ar-q { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 14; padding: 5px 12px; border-radius: 14px; border: 1px solid var(--gold2); background: rgba(10, 11, 20, 0.88); color: var(--gold); cursor: pointer; font-size: 12px; }
@media (max-width: 820px) { .ar-side { min-width: 90px; } .ar-clock { font-size: 16px; } }

/* v0.23: монета, разлёт золота */
.coin-ico { flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)); vertical-align: -2px; }
.gold-v { display: inline-flex; align-items: center; gap: 4px; color: #ffd86a; }
.gold-v b { font-weight: 700; }
.coin-layer { position: fixed; inset: 0; pointer-events: none; z-index: 100001; }
.fly-coin { position: fixed; width: 18px; height: 18px; margin: -9px 0 0 -9px; animation: coinFly 1s cubic-bezier(.5, 0, .7, .4) both; }
@keyframes coinFly {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  12% { opacity: 1; }
  35% { transform: translate(var(--sx), var(--sy)) scale(1.15) rotate(90deg); }
  100% { transform: translate(var(--tx), var(--ty)) scale(.6) rotate(540deg); opacity: .9; }
}
.res.gold.bump { animation: resBump .5s ease-out; }
@keyframes resBump { 30% { transform: scale(1.18); box-shadow: 0 0 16px rgba(255, 210, 74, .7); } }
.rw { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid #3a3352; font-size: 12px; }
.q-rew { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tip-sell { display: flex; align-items: center; gap: 4px; margin-top: 3px; }

/* баннеры заданий и уровня по центру */
.qbn-root { position: fixed; left: 50%; top: 26%; transform: translateX(-50%); z-index: 9000; pointer-events: none; }
.qbn { position: relative; min-width: 300px; max-width: 520px; padding: 18px 30px 16px; text-align: center; border-radius: 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 74, .22), transparent 70%), linear-gradient(180deg, rgba(30, 26, 18, .96), rgba(12, 11, 18, .96));
  border: 1px solid #a9812d; box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 190, 60, .25);
  animation: qbnIn .55s cubic-bezier(.2, 1.4, .4, 1) both; overflow: hidden; }
.qbn.out { animation: qbnOut .45s ease-in both; }
@keyframes qbnIn { 0% { transform: scale(.4) translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes qbnOut { to { transform: translateY(-30px) scale(.9); opacity: 0; } }
.qbn-rays { position: absolute; left: 50%; top: 34px; width: 360px; height: 360px; margin: -180px 0 0 -180px; z-index: -1; opacity: .35;
  background: repeating-conic-gradient(rgba(255, 220, 120, .5) 0 8deg, transparent 8deg 24deg); border-radius: 50%; animation: qbnSpin 8s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 65%); mask: radial-gradient(circle, #000 20%, transparent 65%); }
@keyframes qbnSpin { to { transform: rotate(360deg); } }
.qbn-ico { font-size: 34px; line-height: 1; filter: drop-shadow(0 0 10px rgba(255, 210, 74, .8)); animation: qbnPop .7s .15s both; }
@keyframes qbnPop { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.3); } 100% { transform: none; } }
.qbn-k { margin-top: 6px; font: 800 12px/1 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ffd24a; }
.qbn-t { margin-top: 6px; font: 800 22px/1.2 Georgia, 'Times New Roman', serif; color: #fff4d0; text-shadow: 0 2px 0 #000, 0 0 18px rgba(255, 200, 80, .45); }
.qbn-s { margin-top: 6px; color: #d9cfb2; font-size: 13px; }
.qbn-x { margin-top: 10px; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.qbn-x .rw { font-size: 14px; padding: 4px 10px; border-color: #a9812d; }
.qbn-new { border-color: #6f86ff; box-shadow: 0 0 0 1px #000, 0 20px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(111, 134, 255, .3); }
.qbn-new .qbn-k { color: #9fb0ff; }
.qbn-ready .qbn-k { color: #7dff9a; }
.qbn-lvl .qbn-t { font-size: 28px; }

/* распределение характеристик */
.stat-plan { margin-top: 10px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid #2a2e48; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sp-free { padding: 2px 10px; border-radius: 10px; background: rgba(255, 210, 74, .15); color: #ffd24a; font-weight: 700; font-size: 12px; animation: spGlow 1.6s ease-in-out infinite; }
@keyframes spGlow { 50% { box-shadow: 0 0 12px rgba(255, 210, 74, .55); } }
.sp-body { display: flex; gap: 10px; align-items: center; }
.sp-radar { width: 132px; height: 132px; flex: none; }
.sp-rows { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; cursor: help; }
.sp-row:hover { border-color: var(--c); background: rgba(255, 255, 255, .06); }
.sp-row.main { box-shadow: inset 3px 0 0 var(--c); }
.sp-ico { font-size: 16px; width: 20px; text-align: center; }
.sp-mid { flex: 1; min-width: 0; }
.sp-top { display: flex; align-items: baseline; gap: 6px; font-size: 12px; }
.sp-top span { flex: 1; color: var(--dim); }
.sp-top b { font-size: 14px; color: var(--c); }
.sp-plus { color: #ffd24a; font-weight: 700; }
.sp-bar { display: flex; height: 6px; margin-top: 3px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sp-bar i { display: block; height: 100%; transition: width .25s; }
.sp-b0 { background: color-mix(in srgb, var(--c) 45%, #222); }
.sp-b1 { background: var(--c); }
.sp-b2 { background: repeating-linear-gradient(45deg, #ffd24a 0 3px, #b8860b 3px 6px); }
.sp-btns { display: flex; gap: 3px; }
.sp-b { width: 26px; height: 24px; border-radius: 6px; border: 1px solid #3a3f62; background: #1a1d30; color: var(--text); font-weight: 800; cursor: pointer; padding: 0; font-size: 12px; }
.sp-b:hover:not(:disabled) { border-color: var(--c); color: var(--c); }
.sp-b:disabled { opacity: .3; cursor: default; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sp-chip { display: flex; gap: 6px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; background: rgba(111, 220, 127, .1); border: 1px solid rgba(111, 220, 127, .3); }
.sp-chip.bad { background: rgba(255, 107, 107, .1); border-color: rgba(255, 107, 107, .3); }
.sp-chip span { color: var(--dim); }
.sp-actions { display: flex; gap: 6px; margin-top: 8px; justify-content: flex-end; flex-wrap: wrap; }
.sp-apply:not(:disabled) { animation: spGlow 1.6s ease-in-out infinite; }
.sp-foot { margin-top: 6px; text-align: right; }
.sp-foot .btn { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 820px) { .sp-body { flex-direction: column; } }

/* сравнение вещей */
.tip-cmp { opacity: .93; border-color: #3a3f62; }
.tip-eqhead { font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px solid #2a2e48; }
.tip-d { font-weight: 700; font-size: 11.5px; }
.tip .stat.bad { color: var(--bad); }

/* друзья: запросы */
.f-row.req { border: 1px solid rgba(255, 210, 74, .35); background: rgba(255, 210, 74, .07); }
.f-row.out { opacity: .75; }
.inv-emo { font-size: 20px; }

/* v0.24: окно героя в две колонки, без прокрутки */
.w-char { width: min(800px, calc(100vw - 16px)); }
.char-grid { display: grid; grid-template-columns: 330px 1fr; gap: 10px; align-items: start; }
.char-l, .char-r { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.char-grid .hero { padding: 8px; gap: 6px; grid-template-columns: 52px 1fr 52px; }
.char-grid .hero .slot.eq { width: 50px; height: 50px; }
.char-grid .hero-col { gap: 5px; }
.char-grid .hero-stage { width: 120px; height: 124px; }
.char-grid .hero-pic { width: 96px; height: 120px; }
.char-grid .res { padding: 6px 8px; gap: 2px; }
.char-grid .scards { gap: 4px; }
.char-grid .scard { padding: 4px 7px; }
.char-grid .stat-plan { margin-top: 0; padding: 8px; }
.char-grid .sp-radar { width: 112px; height: 112px; }
.char-grid .sp-rows { gap: 4px; }
.char-grid .sp-row { padding: 3px 6px; }
.char-grid .hero-foot { flex-wrap: wrap; }
@media (max-width: 820px) { .char-grid { grid-template-columns: 1fr; } }

/* автопуть в заданиях: строка цели мерцает и зовёт нажать */
.tr-go, .q-go { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 3px; padding: 3px 8px; border-radius: 7px; border: 1px solid rgba(255, 210, 74, .35);
  background: linear-gradient(100deg, rgba(255, 210, 74, .06) 30%, rgba(255, 230, 140, .28) 50%, rgba(255, 210, 74, .06) 70%) 0 0 / 250% 100%;
  color: #ffe7a8; font: inherit; font-size: 12px; text-align: left; cursor: pointer; animation: goShine 2.6s linear infinite; pointer-events: auto; }
.tr-go:hover, .q-go:hover { border-color: #ffd24a; color: #fff; box-shadow: 0 0 10px rgba(255, 210, 74, .35); }
@keyframes goShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.tr-arrow { color: #ffd24a; font-weight: 900; animation: goNudge 1.2s ease-in-out infinite; }
@keyframes goNudge { 50% { transform: translateX(3px); } }
.q-go-k { margin-left: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #ffd24a; opacity: .8; }
.tr-q.ready .tr-go { border-color: rgba(125, 255, 154, .5); color: #c8ffd5; }

/* редкая добыча */
.loot-rare { position: fixed; left: 50%; top: 16%; transform: translateX(-50%); z-index: 9001; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 22px; border-radius: 12px; background: rgba(8, 8, 14, .9); border: 1px solid var(--rc); box-shadow: 0 0 30px color-mix(in srgb, var(--rc) 55%, transparent);
  animation: qbnIn .5s cubic-bezier(.2, 1.4, .4, 1) both, lootFade 3.6s ease-in forwards; }
.loot-rare .lr-k { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--rc); }
.loot-rare b { font: 800 18px/1.2 Georgia, serif; color: var(--rc); text-shadow: 0 0 12px var(--rc); }
@keyframes lootFade { 85% { opacity: 1; } 100% { opacity: 0; } }
.qbn-win { border-color: #ffd24a; } .qbn-lose { border-color: #7a3030; filter: saturate(.7); } .qbn-lose .qbn-k { color: #ff8a8a; }

/* колизей: окно арены */
.w-arena { left: 50%; top: 6%; transform: translateX(-50%); width: min(560px, calc(100vw - 16px)); }
.ar-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; margin-bottom: 10px;
  background: linear-gradient(120deg, rgba(140, 40, 30, .45), rgba(40, 20, 12, .6) 55%, rgba(0, 0, 0, .3)), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px);
  border: 1px solid #6a3a28; box-shadow: inset 0 1px 0 rgba(255, 220, 160, .12); }
.ar-emblem { width: 52px; height: 52px; flex: none; display: grid; place-items: center; font-size: 28px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #c98a00 60%, #6a4300); border: 2px solid #3a2400; box-shadow: 0 0 18px rgba(255, 190, 60, .45); }
.ar-title { font: 800 22px/1 Georgia, 'Times New Roman', serif; color: #ffe7b0; letter-spacing: .04em; text-shadow: 0 2px 0 #000; }
.ar-sub { margin-top: 4px; font-size: 12px; color: #d8b89a; }
.ar-wl { text-align: right; } .ar-wl b { display: block; font-size: 18px; color: #fff; } .ar-wl small { color: #d8b89a; font-size: 11px; }
.ar-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ar-mode { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 14%, rgba(20, 20, 32, .9)), rgba(12, 12, 20, .92)); border: 1px solid color-mix(in srgb, var(--tc) 45%, #2a2e48); }
.ar-mode.queued { animation: arQ 1.4s ease-in-out infinite; }
@keyframes arQ { 50% { box-shadow: 0 0 0 1px var(--tc), 0 0 18px color-mix(in srgb, var(--tc) 50%, transparent); } }
.ar-mhead { display: flex; justify-content: space-between; align-items: baseline; }
.ar-mname { font-weight: 800; font-size: 15px; } .ar-mhint { font-size: 11px; color: var(--dim); }
.ar-tier { display: flex; align-items: center; gap: 10px; }
.ar-shield { width: 46px; height: 52px; display: grid; place-items: center; font-size: 24px; clip-path: polygon(50% 0, 100% 15%, 100% 60%, 50% 100%, 0 60%, 0 15%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 70%, #fff), color-mix(in srgb, var(--tc) 60%, #000)); }
.ar-tname { font-size: 12px; font-weight: 800; color: var(--tc); text-transform: uppercase; letter-spacing: .1em; }
.ar-rating { font: 800 26px/1 system-ui, sans-serif; color: #fff; }
.ar-prog { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ar-prog i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 60%, #000), var(--tc)); }
.ar-next { font-size: 11px; }
.ar-go { width: 100%; font-weight: 800; letter-spacing: .06em; }
.ar-go.cancel { border-color: var(--tc); color: var(--tc); }
.ar-mini { width: 18px; text-align: center; }
.ar-row.p1 { background: rgba(255, 210, 74, .1); } .ar-row.p2 { background: rgba(200, 210, 220, .08); } .ar-row.p3 { background: rgba(197, 139, 90, .09); }
.ar-h .ar-res { width: 92px; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.ar-h.r-win .ar-res { color: var(--good); } .ar-h.r-loss .ar-res { color: var(--bad); } .ar-h.r-draw .ar-res { color: var(--dim); }
.ar-h { flex-wrap: wrap; }
.ar-tourhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; background: rgba(255, 210, 74, .08); color: #ffe7a8; }
.ar-rules { display: flex; flex-direction: column; gap: 6px; }
.ar-rule { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .03); font-size: 12.5px; }
.seg { display: flex; gap: 4px; margin-bottom: 6px; }
@media (max-width: 820px) { .ar-modes { grid-template-columns: 1fr; } }

/* v0.24: книга умений */
.w-skills { width: min(720px, calc(100vw - 16px)); }
.skb { display: grid; grid-template-columns: 1fr 330px; gap: 12px; align-items: start; }
.skb-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.skt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.skt { position: relative; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border-radius: 12px; cursor: pointer; color: var(--text);
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tc) 22%, #1a1d30), #11131f 75%); border: 1px solid color-mix(in srgb, var(--tc) 40%, #2a2e48); transition: transform .12s, box-shadow .15s; }
.skt:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 12px color-mix(in srgb, var(--tc) 40%, transparent); }
.skt.sel { border-color: var(--tc); box-shadow: 0 0 0 2px var(--tc), 0 0 18px color-mix(in srgb, var(--tc) 50%, transparent); }
.skt.locked { filter: grayscale(.85) brightness(.7); }
.skt.locked.ready { filter: none; animation: skReady 1.6s ease-in-out infinite; }
@keyframes skReady { 50% { box-shadow: 0 0 14px rgba(255, 210, 74, .55); } }
.skt-ico { font-size: 26px; line-height: 1; }
.skt-pips { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.skt-pips i { width: 6px; height: 3px; border-radius: 1px; background: rgba(255, 255, 255, .18); }
.skt-pips i.on { background: var(--tc); box-shadow: 0 0 4px var(--tc); }
.skt-lock { position: absolute; bottom: 3px; font-size: 10px; color: var(--dim); }
.skt-key { position: absolute; top: 3px; right: 4px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 4px; font: 800 10px/15px system-ui; background: #ffd24a; color: #2a1a00; }
.skc { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--tc) 45%, #2a2e48);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 10%, rgba(18, 20, 33, .95)), rgba(12, 13, 22, .95)); }
.skc-head { display: flex; gap: 10px; align-items: center; }
.skc-ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; font-size: 30px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid var(--tc); box-shadow: 0 0 14px color-mix(in srgb, var(--tc) 35%, transparent); }
.skc-ico.locked { filter: grayscale(.8); }
.skc-name { font-weight: 800; font-size: 16px; }
.skc-type { font-size: 11px; color: var(--tc); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.skc-stars { font-size: 12px; color: #ffd24a; white-space: pre; }
.skc-desc { font-size: 12.5px; color: #c9cde0; }
.skd { width: 150px; height: 70px; align-self: center; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.skc-tbl { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.skc-th, .skc-row { display: grid; grid-template-columns: 1fr auto 80px; gap: 8px; align-items: baseline; }
.skc-th { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.skc-row span:first-child { color: var(--dim); }
.skc-next.up { color: var(--good); font-weight: 700; }
.skc-xph { display: flex; justify-content: space-between; font-size: 12px; }
.skc-xp { height: 7px; margin: 3px 0; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.skc-xp i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 50%, #000), var(--tc)); }
.skc-max { text-align: center; color: #ffd24a; font-weight: 800; }
.skc-learn { display: flex; flex-direction: column; gap: 5px; }
.skc-step { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #c9cde0; }
.skc-step span { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2a2e48; font-weight: 800; font-size: 11px; }
.skc-step.done span { background: var(--good); color: #0a2a10; }
.skc-keys { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.skc-k { width: 26px; height: 26px; padding: 0; border-radius: 6px; border: 1px solid #3a3f62; background: #1a1d30; color: var(--text); font-weight: 800; cursor: pointer; }
.skc-k:hover { border-color: var(--tc); } .skc-k.on { background: #ffd24a; color: #2a1a00; border-color: #ffd24a; }
@media (max-width: 820px) { .skb { grid-template-columns: 1fr; } }

/* v0.29: боевой пропуск */
.win.w-wide { width: min(780px, 96vw); }
.tip div { white-space: pre-line; }
.bp { display: flex; flex-direction: column; gap: 10px; }
.bp-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 10px; text-align: center; } .bp-empty-ico { font-size: 40px; opacity: .8; }
.bp-hero { --sc: #ffd24a; position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: linear-gradient(115deg, color-mix(in srgb, var(--sc) 26%, #121427) 0%, #121427 55%, color-mix(in srgb, var(--sc) 12%, #121427) 100%);
  border: 1px solid color-mix(in srgb, var(--sc) 45%, #2a2e48); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .35); }
.bp-hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sc) 30%, transparent), transparent); animation: bpGlow 6s ease-in-out infinite alternate; }
@keyframes bpGlow { to { transform: translate(-30px, 20px) scale(1.15); opacity: .7; } }
.bp-emb { flex: none; width: 78px; height: 88px; display: grid; place-content: center; justify-items: center; line-height: 1; color: #2a1a00;
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); background: linear-gradient(160deg, #fff4c2, #ffcf3a 45%, #a8740a); filter: drop-shadow(0 4px 10px rgba(255, 190, 60, .35)); }
.bp-emb b { font: 900 30px/1 system-ui, sans-serif; margin: 2px 0; } .bp-emb small { font: 800 9px/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.bp-hmid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bp-kick { font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--sc) 70%, #fff); }
.bp-title { font: 900 20px/1.15 system-ui, sans-serif; letter-spacing: .01em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.bp-sub { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #b8bdd8; }
.bp-bar { position: relative; height: 16px; margin-top: 4px; border-radius: 9px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.bp-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(90deg, #a8740a, #ffd24a 70%, #fff1a6); box-shadow: 0 0 12px rgba(255, 210, 74, .5); }
.bp-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); background-size: 60px 100%; background-repeat: no-repeat; animation: bpShine 2.4s linear infinite; }
@keyframes bpShine { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.bp-bar span { position: relative; display: block; text-align: center; font: 800 10.5px/16px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.bp-hact { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.bp-claim { padding: 9px 14px; font-weight: 800; animation: skReady 1.6s ease-in-out infinite; }
.bp-vipon { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 210, 74, .1); border: 1px solid rgba(255, 210, 74, .4); }
.bp-vipon > span { font-size: 22px; } .bp-vipon b { display: block; font-size: 12px; color: #ffe08a; } .bp-vipon small { color: #b8bdd8; font-size: 11px; }
.bp-show, .bp-buyc { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid #2a2e48; }
.bp-show small, .bp-buyc small { display: block; color: var(--dim); font-size: 11.5px; } .bp-show b, .bp-buyc b { font-size: 14px; }
.bp-show-ico, .bp-buy-crown { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 26px; border-radius: 12px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .12), rgba(0, 0, 0, .2)); border: 1px solid #3a3f62; }
.bp-show.vip .bp-show-ico, .bp-buy-crown { border-color: rgba(255, 210, 74, .55); box-shadow: 0 0 18px rgba(255, 210, 74, .25); }
.bp-buyc { background: linear-gradient(100deg, rgba(255, 210, 74, .12), rgba(180, 120, 255, .08)); border-color: rgba(255, 210, 74, .4); }
.bp-buy { flex: none; font-weight: 800; color: #2a1a00; border: 0; background: linear-gradient(180deg, #fff1a6, #ffc928 60%, #c98a00); box-shadow: 0 4px 14px rgba(255, 190, 40, .35); }
.bp-buy:hover { filter: brightness(1.08); }
.bp-lanes { display: flex; justify-content: space-between; padding: 0 30px; font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.bp-lane.vip { color: #ffd24a; }
.bp-wrap { display: flex; align-items: center; gap: 4px; }
.bp-nav { flex: none; width: 26px; height: 120px; border-radius: 9px; font-size: 22px; color: #b8bdd8; background: rgba(255, 255, 255, .04); border: 1px solid #2a2e48; cursor: pointer; }
.bp-nav:hover { color: #fff; border-color: #4a5080; }
.bp-track { flex: 1; display: flex; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.bp-col { flex: none; width: 92px; display: grid; grid-template-rows: 86px 30px 86px; gap: 0; padding: 0 4px; scroll-snap-align: center; }
.bp-node { position: relative; display: grid; place-items: center; }
.bp-line { position: absolute; left: -4px; right: -4px; top: 50%; height: 4px; margin-top: -2px; background: #23263c; }
.bp-line i { display: block; height: 100%; background: linear-gradient(90deg, #c98a00, #ffd24a); box-shadow: 0 0 8px rgba(255, 210, 74, .6); }
.bp-lv { position: relative; z-index: 1; min-width: 26px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 11px; font: 800 11.5px/1 system-ui, sans-serif;
  background: #1a1d30; color: var(--dim); border: 2px solid #2f3352; }
.bp-col.on .bp-lv { background: linear-gradient(180deg, #ffe08a, #e0a21a); color: #2a1a00; border-color: #fff1a6; }
.bp-col.next .bp-lv { color: #ffe7a8; border-color: #ffd24a; box-shadow: 0 0 0 4px rgba(255, 210, 74, .15); }
.bp-col.mile .bp-lv { transform: scale(1.12); }
.bp-card { position: relative; height: 82px; margin: 2px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 12px;
  color: var(--text); background: linear-gradient(180deg, #1a1d31, #131527); border: 1px solid #2a2e48; cursor: default; transition: transform .15s, border-color .15s; }
.bp-card:hover { transform: translateY(-2px); border-color: #4a5080; }
.bp-card.vip { background: linear-gradient(180deg, #2a2316, #17141f); border-color: #4e4126; }
.bp-card.r2 { border-color: #3d6c9a; } .bp-card.r3 { border-color: #8a5ad8; background: linear-gradient(180deg, #2a1f44, #15132a); }
.bp-card.vip.r3 { border-color: #e0a21a; background: linear-gradient(180deg, #3a2a10, #1d1426); }
.bp-col.mile .bp-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 0 16px rgba(180, 140, 255, .12); }
.bp-ico { font-size: 28px; line-height: 1; } .bp-val { font: 800 12px/1.1 system-ui, sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-ex { font-size: 10px; color: var(--dim); white-space: nowrap; overflow: hidden; max-width: 100%; }
.bp-card.ready { cursor: pointer; border-color: #ffd24a; box-shadow: 0 0 0 1px rgba(255, 210, 74, .4), 0 0 18px rgba(255, 210, 74, .35); animation: skReady 1.6s ease-in-out infinite; }
.bp-card.got { opacity: .5; } .bp-card.got .bp-ico { filter: grayscale(.6); }
.bp-card.wait { opacity: .78; } .bp-card.none { opacity: .25; }
.bp-card.lock { filter: saturate(.55) brightness(.85); }
.bp-mark { position: absolute; top: 5px; right: 6px; font-style: normal; font-size: 12px; } .bp-mark.ok { color: var(--good); }
.bp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.bp-how { display: flex; flex-wrap: wrap; gap: 6px; } .bp-how span { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; color: #b8bdd8; background: rgba(255, 255, 255, .04); border: 1px solid #2a2e48; }
.bp-how span.vip { color: #ffe08a; border-color: rgba(255, 210, 74, .35); }
@media (max-width: 640px) { .bp-hero { flex-wrap: wrap; } .bp-hact { width: 100%; } .bp-emb { width: 62px; height: 70px; } .bp-emb b { font-size: 24px; } .bp-nav { display: none; } .bp-lanes { padding: 0 4px; } }
.hi-ev.wb { color: #ffb08a; text-shadow: 0 0 8px rgba(255, 120, 60, .5); animation: spGlow 2s ease-in-out infinite; }
.ach-st { font-size: 12px; color: #c9a4ff; display: flex; align-items: center; gap: 5px; }
.ach-st.got { color: var(--good); }
.ach-st-dot { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle, #fff, #c9a4ff); box-shadow: 0 0 6px #c9a4ff; }
.skc-hint { font-size: 11.5px; }

/* v0.27: двухфакторка, техобслуживание */
.tfa-ov { position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center; background: rgba(4, 4, 10, .72); backdrop-filter: blur(3px); }
.tfa-box { width: min(380px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, #1b1d30, #10111c); border: 1px solid #3a3f62; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.tfa-ico { font-size: 34px; }
.tfa-code { font: 800 26px/1.2 ui-monospace, monospace; letter-spacing: .3em; text-align: center; }
.tfa-rem { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--dim); }
.tfa-set { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid #2a2e48; margin: 8px 0; }
.tfa-head { display: flex; gap: 10px; align-items: center; }
.tfa-head .tfa-ico { font-size: 26px; }
.tfa-qr { width: 176px; height: 176px; image-rendering: pixelated; border-radius: 8px; align-self: center; }
.tfa-secret { font-family: ui-monospace, monospace; letter-spacing: .08em; user-select: all; }
.tfa-rec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.tfa-rec code { padding: 4px 8px; border-radius: 6px; background: #0c0d16; border: 1px solid #2a2e48; font-family: ui-monospace, monospace; text-align: center; user-select: all; }
.maint-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 99990; padding: 6px 12px; text-align: center; font-weight: 700; font-size: 13px; color: #fff;
  background: repeating-linear-gradient(-45deg, #8a2a16 0 16px, #a8361d 16px 32px); box-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.maint-note { padding: 8px 10px; border-radius: 10px; background: rgba(255, 120, 60, .12); border: 1px solid rgba(255, 120, 60, .45); color: #ffc4a8; font-size: 13px; }

/* v0.45: рейтинг - список категорий слева, справа шапка, пьедестал, таблица, «ваше место» */
.w-top.tp-win { width: min(880px, calc(100vw - 16px)); max-height: calc(100vh - 80px); display: flex; flex-direction: column; }
.tp-win .win-body { padding: 0; overflow: hidden; flex: 1; min-height: 0; }
.tp-wrap { display: grid; grid-template-columns: 210px 1fr; height: min(620px, calc(100vh - 190px)); min-height: 0; }
.tp-side { display: flex; flex-direction: column; gap: 3px; padding: 10px 8px; background: var(--inset); border-right: 1px solid var(--line); overflow-y: auto; }
.tp-cat { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; border-left: 3px solid transparent; background: transparent; color: var(--dim); font: inherit; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.tp-cat:hover { background: rgba(201, 154, 82, .08); color: var(--text); }
.tp-cat.on { background: linear-gradient(90deg, rgba(216, 166, 74, .2), rgba(216, 166, 74, .04)); border-left-color: var(--gold); color: var(--text); }
.tp-ci { width: 22px; text-align: center; font-size: 17px; flex: none; }
.tp-ct { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tp-ct b { font-size: 13px; font-weight: 700; } .tp-ct small { font-size: 11px; color: var(--faint); }
.tp-cat.on .tp-ct small { color: var(--dim); }
.tp-main { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 0; overflow-y: auto; min-width: 0; scrollbar-width: thin; scrollbar-color: #5d4c3b transparent; }
.tp-in { animation: tpIn .2s ease-out both; }
@keyframes tpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tp-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tp-title { display: flex; align-items: center; gap: 8px; font: 700 20px/1.2 var(--serif); color: var(--gold); }
.tp-hi { font-size: 20px; }
.tp-what { font-size: 12.5px; color: var(--dim); }
.tp-upd { font-size: 11px; color: var(--faint); }
.tp-tools { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tp-search { flex: 1 1 150px; min-width: 120px; max-width: 220px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--inset); color: var(--text); font: inherit; font-size: 13px; }
.tp-search:focus { outline: none; border-color: var(--trim); }
.tp-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tp-chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; transition: background .15s, color .15s; }
.tp-chip:hover { border-color: var(--trim); color: var(--text); }
.tp-chip.on { background: var(--gold-grad); color: #2a1a00; border-color: var(--trim-hi); font-weight: 700; }
.tp-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; padding: 4px 0 2px; }
.tp-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.tp-pod.empty { visibility: hidden; }
.tp-crown { font-size: 22px; line-height: 1; margin-bottom: -4px; z-index: 1; }
.tp-stage { display: grid; place-items: end center; width: 100%; padding-top: 6px; border-radius: 8px 8px 0 0; background: radial-gradient(ellipse at 50% 90%, rgba(226, 194, 131, .22), transparent 70%); transition: transform .2s; }
.tp-pod:hover .tp-stage { transform: translateY(-3px); }
.tp-pic { width: 76px; height: 95px; image-rendering: pixelated; }
.tp-pod.p1 .tp-pic { width: 92px; height: 115px; }
.tp-plate { width: 100%; padding: 8px 6px 9px; border-radius: 0 0 8px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .3)); border: 1px solid #594a3b; border-top: 2px solid #594a3b; }
.tp-pod.p1 .tp-plate { min-height: 92px; border-color: #c99a52; background: linear-gradient(180deg, rgba(216, 166, 74, .22), rgba(40, 26, 8, .5)); box-shadow: 0 0 18px rgba(216, 166, 74, .2); }
.tp-pod.p2 .tp-plate { min-height: 76px; border-color: #b9b2a6; background: linear-gradient(180deg, rgba(220, 213, 201, .14), rgba(0, 0, 0, .3)); }
.tp-pod.p3 .tp-plate { min-height: 66px; border-color: #a8703f; background: linear-gradient(180deg, rgba(168, 112, 63, .2), rgba(0, 0, 0, .3)); }
.tp-pod.me .tp-plate { outline: 2px solid var(--gold); }
.tp-pn { display: flex; align-items: center; gap: 5px; max-width: 100%; }
.tp-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-sub { font-size: 11px; color: var(--dim); }
.tp-val b { color: var(--gold); font-size: 16px; } .tp-val small { color: var(--dim); font-size: 11px; } .tp-val .tp-ms { color: #b9a7e6; }
.tp-on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.tp-bar { display: block; width: 100%; min-width: 70px; height: 4px; border-radius: 3px; background: #0c0a07; overflow: hidden; margin-top: 3px; }
.tp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #a97c34, #e2b865); border-radius: 3px; }
.tp-list { display: flex; flex-direction: column; gap: 2px; }
.tp-row { display: grid; grid-template-columns: 34px 28px 1fr minmax(120px, 190px); align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border-radius: 6px; border: 1px solid transparent; background: rgba(255, 255, 255, .02); color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: default; animation: tpRow .22s ease-out both; animation-delay: calc(var(--i, 0) * 14ms); }
button.tp-row { cursor: pointer; }
@keyframes tpRow { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tp-row:nth-child(odd) { background: rgba(255, 255, 255, .04); }
button.tp-row:hover { border-color: #74604b; background: rgba(226, 194, 131, .08); }
.tp-row.me { border-color: var(--gold); background: rgba(216, 166, 74, .1); }
.tp-rank { text-align: center; font-weight: 800; color: var(--dim); font-size: 13px; }
.tp-medal { font-size: 17px; }
.tp-cico { text-align: center; font-size: 16px; }
.tp-emb { display: block; }
.tp-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tp-tag { color: var(--dim); font-size: 11px; white-space: nowrap; }
.tp-score { display: flex; flex-direction: column; align-items: flex-end; }
.tp-v { white-space: nowrap; } .tp-v b { color: var(--gold); font-size: 14px; } .tp-v small { color: var(--dim); font-size: 11px; } .tp-v .tp-ex { color: #b9a7e6; }
.tp-score .tp-bar { width: 100%; }
.tp-empty { padding: 26px 10px; text-align: center; color: var(--dim); }
.tp-me { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 9px 12px; border-radius: 8px 8px 0 0; background: #261c13; border: 1px solid var(--line); border-bottom: 0; font-size: 13px; box-shadow: 0 -6px 12px rgba(0, 0, 0, .35); }
.tp-me.in { border-color: var(--trim); }
.tp-mel { color: var(--dim); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tp-mep { color: var(--gold); font-size: 16px; }
.tp-mev { margin-left: auto; color: var(--dim); } .tp-mev b { color: var(--gold); }
@media (max-width: 820px) {
  .tp-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: calc(100dvh - 200px); }
  .tp-side { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tp-cat { flex: none; padding: 6px 10px; border-left-width: 1px; border-radius: 999px; border-color: var(--line); gap: 5px; }
  .tp-cat.on { border-color: var(--trim-hi); }
  .tp-ct small { display: none; } .tp-ci { width: auto; font-size: 15px; }
  .tp-main { padding: 8px 8px 0; gap: 8px; }
  .tp-title { font-size: 17px; }
  .tp-podium { gap: 4px; } .tp-pic { width: 60px; height: 75px; } .tp-pod.p1 .tp-pic { width: 72px; height: 90px; }
  .tp-row { grid-template-columns: 26px 20px 1fr auto; gap: 5px; padding: 5px 6px; font-size: 12.5px; }
  .tp-v .tp-ex { display: none; }
  .tp-search { max-width: none; }
}
.ins-ov { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(13, 10, 6, .78); border-radius: inherit; }
.ins-card { position: relative; width: min(500px, calc(100% - 20px)); max-height: calc(100% - 20px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px;
  border-radius: 14px; background: linear-gradient(180deg, #2e251c, #1d1610); border: 1px solid #8a6a3a; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: qbnIn .3s ease-out both; }
.ins-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid #594a3b; background: #251d16; color: var(--text); cursor: pointer; }
.ins-top { display: flex; gap: 12px; align-items: center; }
.ins-stage { flex: none; width: 112px; height: 140px; border-radius: 12px; background: radial-gradient(ellipse at 50% 85%, rgba(226, 194, 131, .25), transparent 70%), #16110c; border: 1px solid #42362b; }
.ins-pic { width: 112px; height: 140px; image-rendering: pixelated; }
.ins-name { font: 800 20px/1.1 Georgia, serif; }
.ins-power b { color: var(--gold); font-size: 16px; }
.ins-hd { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.ins-eq { display: flex; gap: 6px; flex-wrap: wrap; }
.ins-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ins-st { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 12px; }
.ins-st b { font-size: 13px; }
@media (max-width: 820px) { .ins-stats { grid-template-columns: repeat(2, 1fr); } }
.inv-tabs .it.ready { color: #ffe7a8; box-shadow: inset 0 -2px 0 #ffd24a; animation: spGlow 1.6s ease-in-out infinite; }
.it-n { display: inline-block; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px; background: #ffd24a; color: #2a1a00; font: 800 10px/16px system-ui; vertical-align: 1px; }
/* задания: сводка у жителя и в журнале */
.q-sum { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; }
.qs { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .06); border: 1px solid #2f3352; white-space: nowrap; }
.qs.ready { color: #7dff9a; border-color: rgba(125, 255, 154, .4); } .qs.avail { color: #ffd24a; border-color: rgba(255, 210, 74, .45); }
.qs.active { color: #9fb0ff; } .qs.low { color: var(--dim); } .qs.done { color: #c9a4ff; }
.q-card.mini { padding: 6px 10px; opacity: .75; }
.q-card.done { opacity: .5; }
.q-why { font-size: 12px; color: #ffb08a; }
.q-rep { font-size: 11.5px; color: #9fd8ff; }
.q-none { padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--dim); font-size: 13px; }
.q-npcs { display: flex; flex-direction: column; gap: 3px; }
.q-npc { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid #2a2e48; background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.q-npc.has { border-color: rgba(255, 210, 74, .45); background: rgba(255, 210, 74, .06); }
.q-npc:hover { border-color: #ffd24a; }
/* ---------- единые значки (glyphs.js) ---------- */
svg.gl { display: inline-block; vertical-align: -0.2em; flex: none; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); overflow: visible; }
.sp-ico svg.gl, .skc-ico svg.gl, .skt-ico svg.gl, .spec-ico svg.gl, .ach-ico svg.gl, .ds-ico svg.gl, .buff > span svg.gl, .ach-pop .ach-ico svg.gl { width: 1em; height: 1em; vertical-align: middle; }
.ic-ctl { display: flex; flex-direction: column; gap: 6px; } .ic-ctl .row { display: flex; gap: 6px; align-items: center; } .ic-ctl input { flex: 1; min-width: 0; }
.ic-prev { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 4px; border-radius: 8px; background: #0d0f1c; border: 1px solid #2a2e48; }
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; max-height: 220px; overflow: auto; padding: 6px; border-radius: 8px; background: #0d0f1c; border: 1px solid #2a2e48; }
.ic-b { display: grid; place-items: center; height: 36px; border-radius: 7px; background: rgba(255,255,255,.03); border: 1px solid transparent; cursor: pointer; }
.ic-b:hover { border-color: #6f86ff; background: rgba(111,134,255,.12); }
.rep-chat { display: flex; flex-direction: column; gap: 3px; max-height: 280px; overflow: auto; padding: 8px; border-radius: 8px; background: #0d0f1c; border: 1px solid #2a2e48; font-size: 13px; }
.rep-line { display: flex; gap: 8px; align-items: baseline; } .rep-line .tag { flex: none; }
.rep-q { margin: 6px 0; padding: 8px 12px; border-left: 3px solid #ff9a3c; background: rgba(255, 154, 60, .08); border-radius: 0 8px 8px 0; }
.rp { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; } .rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-r { padding: 8px; border-radius: 8px; font-size: 12.5px; text-align: left; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid #2a2e48; cursor: pointer; }
.rp-r.on { border-color: #ff9a3c; background: rgba(255,154,60,.12); color: #ffd3a8; }
.rp-text { width: 100%; resize: vertical; padding: 8px; border-radius: 8px; background: #0d0f1c; color: var(--text); border: 1px solid #2a2e48; font: inherit; }
.cap-box { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.cap-box.hidden { display: none; }
.cap-pic { grid-column: 1 / -1; display: grid; place-items: center; padding: 4px; border-radius: 10px; background: #0b0d18; border: 1px solid #2a2e48; }
.cap-pic svg { max-width: 100%; height: auto; }
.cap-in { grid-column: 1; letter-spacing: .3em; font-weight: 800; text-align: center; }
.cap-box .btn { grid-column: 2; grid-row: 2; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
/* v0.30: справочная INFO */
.w-info { width: min(560px, 95vw); }
.inf-head { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(110deg, rgba(63, 214, 234, .14), rgba(111, 134, 255, .06)); border: 1px solid rgba(63, 214, 234, .35); }
.inf-name { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #7fe0f0; margin-bottom: 5px; }
.inf-greet { font-size: 14px; line-height: 1.35; }
.inf-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 2px; }
.inf-sum > div { padding: 7px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid #2a2e48; min-width: 0; }
.inf-sum small { display: block; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; } .inf-sum b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inf-sec { margin: 10px 2px 4px; font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.inf-c { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin-bottom: 5px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid #2a2e48; }
.inf-c.big { padding: 10px 12px; background: linear-gradient(100deg, rgba(255, 210, 74, .08), rgba(255, 255, 255, .02)); border-color: rgba(255, 210, 74, .3); }
.inf-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 19px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid #2f3352; }
.inf-c.big .inf-ico { width: 40px; height: 40px; font-size: 22px; border-color: rgba(255, 210, 74, .4); }
.inf-c b { font-size: 13.5px; } .inf-t { font-size: 12px; color: #b8bdd8; line-height: 1.35; margin-top: 2px; }
.inf-c .btn { flex: none; }
.inf-faq { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid #2a2e48; }
.inf-faq summary { cursor: pointer; font-weight: 700; color: #b8bdd8; }
.inf-f { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 5px 0; font-size: 12.5px; border-top: 1px solid #23263c; } .inf-f b { color: #ffe08a; }
@media (max-width: 560px) { .inf-sum { grid-template-columns: repeat(2, 1fr); } .inf-c { flex-wrap: wrap; } }
.buff.idle { opacity: .45; filter: grayscale(.7); }
.sec-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 8px; border-radius: 10px; background: #0d0f1c; border: 1px solid #2a2e48; overflow-x: auto; }
.sec-col { flex: 1 0 6px; max-width: 26px; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; cursor: help; }
.sec-col i { display: block; min-height: 0; border-radius: 2px; } .sec-col i.o { background: #4fbf6a; } .sec-col i.f { background: #e0565b; }
.sec-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-r { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; color: var(--text); background: rgba(224,86,91,.08); border: 1px solid rgba(224,86,91,.35); cursor: pointer; }
.sec-r.on { background: rgba(224,86,91,.25); } .sec-r b { color: #ff9a9a; }
.sec-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 1100px) { .sec-two { grid-template-columns: 1fr; } }
.acc-chars { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.warn { color: #ffc94a; font-weight: 700; }
/* v0.31: Мастерство */
.xpbar.mastery .xp-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 55%, #000), var(--mc), color-mix(in srgb, var(--mc) 40%, #fff)); box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 60%, transparent); }
.ms { display: flex; flex-direction: column; gap: 10px; }
.ms-head { --mc: #ffd24a; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--mc) 45%, #2a2e48);
  background: linear-gradient(115deg, color-mix(in srgb, var(--mc) 20%, #121427), #121427 60%); }
.ms-head.locked { filter: saturate(.4); }
.ms-star { flex: none; width: 74px; height: 74px; display: grid; place-items: center; color: #2a1a00;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle at 50% 40%, #fff7d6, var(--mc) 55%, color-mix(in srgb, var(--mc) 50%, #000)); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--mc) 60%, transparent)); animation: msPulse 3s ease-in-out infinite; }
.ms-star b { font: 900 19px/1 system-ui, sans-serif; margin-top: 8px; }
@keyframes msPulse { 50% { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--mc) 80%, transparent)); } }
.ms-kick { font: 800 10.5px/1 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--mc); }
.ms-title { font: 900 19px/1.2 system-ui, sans-serif; margin: 3px 0; } .ms-sub { font-size: 12px; color: #b8bdd8; }
.ms-bar { position: relative; height: 14px; margin-top: 7px; border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.ms-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in srgb, var(--mc) 50%, #000), var(--mc)); }
.ms-bar span { position: relative; display: block; text-align: center; font: 800 10px/14px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.ms-pts { flex: none; display: grid; justify-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid color-mix(in srgb, var(--mc) 40%, #2a2e48); }
.ms-pts b { font: 900 24px/1 system-ui, sans-serif; color: var(--mc); } .ms-pts small { font-size: 10.5px; }
.ms-row { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid #23263c; }
.ms-row.shut { opacity: .6; }
.ms-rh { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; font: 800 11px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ms-rh small { letter-spacing: 0; text-transform: none; font-weight: 600; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ms-node { --nc: #ffd24a; display: flex; gap: 9px; align-items: center; padding: 8px 9px; border-radius: 11px; background: linear-gradient(180deg, #1a1d31, #131527); border: 1px solid #2a2e48; }
.ms-node.has { border-color: color-mix(in srgb, var(--nc) 45%, #2a2e48); } .ms-node.max { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nc) 60%, transparent), 0 0 14px color-mix(in srgb, var(--nc) 22%, transparent); }
.ms-node.lock { opacity: .55; filter: saturate(.4); }
.ms-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: 19px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--nc) 45%, #1a1d31), #0d0f1c); border: 1px solid color-mix(in srgb, var(--nc) 55%, #2a2e48); }
.ms-node b { font-size: 13px; } .ms-eff { font-size: 11.5px; color: #b8bdd8; margin: 2px 0 4px; }
.ms-pips { display: flex; gap: 2px; } .ms-pips i { flex: 1; height: 4px; border-radius: 2px; background: #23263c; } .ms-pips i.on { background: var(--nc); }
.ms-side { flex: none; display: grid; justify-items: center; gap: 3px; }
.ms-up { width: 30px; height: 30px; border-radius: 9px; font: 900 17px/1 system-ui, sans-serif; color: #2a1a00; border: 0; background: linear-gradient(180deg, #fff1a6, var(--nc)); cursor: pointer; }
.ms-up:disabled { cursor: default; color: var(--dim); background: #23263c; }
.ms-node.can .ms-up { animation: skReady 1.6s ease-in-out infinite; }
.ms-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-sum { display: flex; flex-wrap: wrap; gap: 5px; } .ms-sum span { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; background: rgba(255,255,255,.04); border: 1px solid #2a2e48; }
.clog-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .clog-kinds .sec-r { background: rgba(111,134,255,.08); border-color: rgba(111,134,255,.35); } .clog-kinds .sec-r b { color: #c9d2ff; }
.clog-t { font-size: 12.5px; }
.log-pre { white-space: pre-wrap; font-size: 12.5px; background: #0d0f1c; padding: 10px; border-radius: 8px; border: 1px solid #2a2e48; max-height: 60vh; overflow: auto; }
/* v0.32: кошелёк у меню и мощь в рамке героя (вместо полоски ресурсов сверху) */
.uf-pw { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 800 11px/16px system-ui, sans-serif; color: #ffe08a; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 210, 74, .16), rgba(255, 210, 74, .05)); border: 1px solid rgba(255, 210, 74, .35); position: relative; pointer-events: auto; }
.uf-pw:hover { border-color: #ffd24a; }
.wallet { position: absolute; right: 12px; bottom: 74px; display: flex; gap: 6px; pointer-events: auto; z-index: 3; }
.wl { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; cursor: pointer; font: 800 13.5px/1 system-ui, sans-serif; color: #fff;
  background: linear-gradient(180deg, rgba(30, 33, 54, .95), rgba(12, 13, 22, .95)); border: 1px solid var(--win-line, #2a2e48); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.wl.gold b { color: #ffe08a; } .wl.gem b { color: #9fe8ff; }
.wl:hover { border-color: #4a5080; transform: translateY(-1px); }
.wl-plus { font-style: normal; display: grid; place-items: center; width: 17px; height: 17px; margin-left: 2px; border-radius: 50%; font: 900 13px/1 system-ui, sans-serif; color: #062a33; background: linear-gradient(180deg, #bff4ff, #4fd0ea); }
.wl.pop, .uf-pw.pop { animation: wlPop .5s ease-out; }
@keyframes wlPop { 30% { transform: scale(1.12); filter: brightness(1.4); } }
.wl-pop { position: absolute; right: 8px; top: -4px; font: 900 12.5px/1 system-ui, sans-serif; pointer-events: none; text-shadow: 0 1px 3px #000; animation: wlFly 1.4s ease-out forwards; white-space: nowrap; }
.wl-pop.up { color: #7dff9a; } .wl-pop.down { color: #ff7a7a; }
@keyframes wlFly { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
@media (max-width: 820px) { .wallet { bottom: auto; top: 96px; right: 8px; } .wl { padding: 4px 9px 4px 6px; font-size: 12px; } }

/* v0.32: рамки цели по рангу */
.tf { --rk: #6b7090; --rk2: #2a2e48; overflow: visible; }
.tf.r-normal { border-color: #3a3f5c; background: linear-gradient(160deg, rgba(30, 32, 48, .95), rgba(14, 14, 22, .95)); --rk: #8a90a8; }
.tf .tf-portrait { background: linear-gradient(var(--rk), color-mix(in srgb, var(--rk) 30%, #000)); }
.tf-rank { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; white-space: nowrap; font: 900 10px/14px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #120a00; background: linear-gradient(180deg, color-mix(in srgb, var(--rk) 40%, #fff), var(--rk)); box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 12px color-mix(in srgb, var(--rk) 50%, transparent); z-index: 2; }
.tf-wings { display: none; position: absolute; inset: -5px; pointer-events: none; border-radius: 14px; }
.tf.r-elite, .tf.r-leader, .tf.r-boss, .tf.r-wboss, .tf.r-pvp { border-color: var(--rk); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rk) 40%, transparent), 0 8px 26px rgba(0,0,0,.55), 0 0 22px color-mix(in srgb, var(--rk) 25%, transparent); }
.tf.r-elite { --rk: #ffc93a; background: linear-gradient(160deg, rgba(60, 46, 12, .95), rgba(16, 13, 8, .95)); }
.tf.r-leader { --rk: #ff9a3c; background: linear-gradient(160deg, rgba(70, 34, 10, .95), rgba(18, 11, 6, .95)); }
.tf.r-boss { --rk: #b46cff; width: 320px; background: linear-gradient(160deg, rgba(60, 20, 90, .96), rgba(16, 9, 26, .96)); }
.tf.r-wboss { --rk: #ff5a3a; width: 340px; background: linear-gradient(160deg, rgba(96, 22, 12, .96), rgba(24, 8, 6, .96)); animation: tfWb 2.2s ease-in-out infinite; }
.tf.r-pvp { --rk: #ff4a5a; background: linear-gradient(160deg, rgba(80, 14, 24, .95), rgba(18, 8, 10, .95)); }
@keyframes tfWb { 50% { box-shadow: 0 0 0 1px rgba(255, 90, 58, .6), 0 8px 26px rgba(0,0,0,.55), 0 0 34px rgba(255, 90, 58, .45); } }
/* уголки-крылья: у элиты и выше */
.tf.r-elite .tf-wings, .tf.r-leader .tf-wings, .tf.r-boss .tf-wings, .tf.r-wboss .tf-wings { display: block;
  background: linear-gradient(var(--rk), var(--rk)) left top / 14px 2px no-repeat, linear-gradient(var(--rk), var(--rk)) left top / 2px 14px no-repeat,
    linear-gradient(var(--rk), var(--rk)) right top / 14px 2px no-repeat, linear-gradient(var(--rk), var(--rk)) right top / 2px 14px no-repeat,
    linear-gradient(var(--rk), var(--rk)) left bottom / 14px 2px no-repeat, linear-gradient(var(--rk), var(--rk)) left bottom / 2px 14px no-repeat,
    linear-gradient(var(--rk), var(--rk)) right bottom / 14px 2px no-repeat, linear-gradient(var(--rk), var(--rk)) right bottom / 2px 14px no-repeat; }
.tf.r-boss .tf-portrait, .tf.r-wboss .tf-portrait { width: 56px; height: 56px; box-shadow: 0 0 14px var(--rk); }
.tf.r-boss .tf-portrait canvas, .tf.r-wboss .tf-portrait canvas { width: 52px; height: 52px; }
.tf.r-boss .tf-name, .tf.r-wboss .tf-name { font-size: 15px; color: color-mix(in srgb, var(--rk) 35%, #fff); }
.tf.r-boss .bar .fill, .tf.r-wboss .bar .fill { background: linear-gradient(90deg, color-mix(in srgb, var(--rk) 60%, #000), var(--rk)); }
.tf.r-elite .tf-name { color: #ffe08a; } .tf.r-leader .tf-name { color: #ffc08a; } .tf.r-pvp .tf-name { color: #ff9aa5; }
/* v0.32: очки сезона сегодня */
.snt { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid #2a2e48; }
.snt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; } .snt-head > b { font-size: 13px; }
.snt-day { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 160px; } .snt-day span { font: 800 12px/1 system-ui, sans-serif; color: #ffe08a; white-space: nowrap; }
.snt-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 82px 1fr 92px; gap: 8px; align-items: center; font-size: 12px; }
.snt-row.full { opacity: .65; } .snt-row.full b { color: #ff9a7a; }
.snt-n { color: #c9cde6; } .snt-per { color: #9fe08a; font-weight: 700; font-size: 11.5px; } .snt-row b { text-align: right; font-size: 11.5px; }
.snt-bar { position: relative; height: 6px; border-radius: 4px; background: #23263c; overflow: hidden; } .snt-bar.big { flex: 1; height: 10px; }
.snt-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c98a00, #ffd24a); border-radius: 4px; } .snt-bar.free i { background: linear-gradient(90deg, #2f8a4a, #6fdc7f); }
.snt-row.full .snt-bar i { background: #8a4a3a; }
.snt-mul { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .snt-mul span { padding: 2px 8px; border-radius: 999px; font-size: 11px; color: #b8bdd8; background: rgba(255,255,255,.04); border: 1px solid #2a2e48; }
@media (max-width: 560px) { .snt-row { grid-template-columns: 1fr 70px 70px; } .snt-row .snt-bar { display: none; } }

/* содержимое окон не сжимается: при нехватке места окно прокручивается, а не накладывает блоки друг на друга */
.win-body > * { flex-shrink: 0; }
/* вкладки окон: одна строка, лишнее прокручивается вбок - без переноса последней вкладки на всю ширину */
.inv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.inv-tabs::-webkit-scrollbar { display: none; }
.inv-tabs .it { flex: 1 0 auto; white-space: nowrap; }
.snt-row { grid-template-columns: minmax(0, 1.5fr) max-content minmax(40px, 1fr) max-content; }
.snt-per { white-space: nowrap; }
.cap-in::placeholder { letter-spacing: normal; font-weight: 500; }
.bp-ov { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: linear-gradient(100deg, rgba(180, 140, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(180, 140, 255, .35); }
.bp-ov.ready { border-color: #ffd24a; box-shadow: 0 0 16px rgba(255, 210, 74, .2); }
.bp-ov small { display: block; font-size: 11.5px; } .bp-ov b { font-size: 13.5px; }
.bp-ov-n { flex: none; width: 48px; height: 48px; display: grid; place-content: center; justify-items: center; line-height: 1; border-radius: 12px; color: #fff; background: radial-gradient(circle at 50% 35%, #8a5ad8, #2a1f44); border: 1px solid #b48cff; }
.bp-ov-n b { font-size: 19px; } .bp-ov-n small { font-size: 9px; opacity: .8; }
/* v0.33: создание героя */
.cr-look-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.cr-look-head h3 { margin: 0; }
.cr-tabs { margin: 8px 0 4px; }
.cr-pane { display: flex; flex-direction: column; min-height: 210px; }
.cr-note { margin: 8px 0 0; font-size: 12px; }
.cc-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc { position: relative; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #12142a; box-shadow: 0 0 0 1px #3a4066; cursor: pointer; flex: none; }
.cc.on { box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(255, 210, 74, .45); }
.cc.auto { background: conic-gradient(#b03a3a 0 33%, #3f8a4b 0 66%, #4a5fd0 0); }
.cc.pick { display: grid; place-items: center; background: conic-gradient(#ff4a4a, #ffd24a, #4fdc6a, #4fd0ea, #6a6aff, #ff4fd8, #ff4a4a); overflow: hidden; }
.cc.pick span { position: relative; z-index: 1; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font: 900 13px/1 system-ui, sans-serif; color: #fff; background: rgba(10, 12, 26, .75); pointer-events: none; }
.cc.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.hs { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px 5px; border-radius: 10px; cursor: pointer; color: var(--text); background: #151933; border: 1px solid #2c3254; font-size: 11px; }
.hs canvas { width: 54px; height: 54px; border-radius: 8px; background: radial-gradient(circle at 50% 40%, #2a3058, #10132a); }
.hs.on { border-color: var(--gold); background: #1f2546; box-shadow: 0 0 0 1px rgba(255, 210, 74, .35); }
.hs:hover { border-color: #4a5080; }
.cr-opt { grid-template-columns: 110px minmax(0, 1fr); }
@media (max-width: 820px) { .cr-opt { grid-template-columns: 1fr; gap: 6px; } .cr-stage { height: 220px; } .cr-stage canvas { height: 200px; width: auto; } }
.cr-opt.stack { grid-template-columns: 1fr; gap: 8px; }

/* осколок умения: иконка умения в огранке, ранг и опыт */
.slot.shard { background: radial-gradient(circle at 50% 42%, rgba(192, 139, 255, 0.22), rgba(20, 14, 34, 0.9) 70%); }
.slot.shard .sh-ico { width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--tc);
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%); background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.slot.shard .sh-ico .gl, .slot.shard .sh-ico svg { width: 20px; height: 20px; }
.slot.sh-new { box-shadow: 0 0 0 1px #5fd35f inset, 0 0 10px rgba(95, 211, 95, 0.35); }
.slot.sh-max, .slot.sh-cls { opacity: 0.55; }
.slot.sh-max .sh-ico, .slot.sh-cls .sh-ico, .slot.sh-lvl .sh-ico { filter: grayscale(0.7); }
.b-new, .b-rk { position: absolute; left: 2px; top: 2px; padding: 1px 3px; border-radius: 3px; font-size: 8.5px; font-weight: 900; letter-spacing: 0.3px; line-height: 1.15; pointer-events: none; }
.b-new { background: #2f8a3a; color: #eaffea; }
.b-rk { background: rgba(10, 8, 20, 0.85); color: #e8d6ff; border: 1px solid rgba(192, 139, 255, 0.55); }
.b-rk.max { color: #ffd24a; border-color: rgba(255, 210, 74, 0.6); }
.b-xp { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.6); overflow: hidden; pointer-events: none; }
.b-xp i { display: block; height: 100%; background: linear-gradient(90deg, #9a6bff, #e0b8ff); }
.slot.shard .b-qty { bottom: 7px; }
.sh-tip-rank { margin: 2px 0 4px; }
.sh-tip-rank b { color: #e0c4ff; }
.sh-verdict { margin-top: 4px; font-weight: 600; }

/* панель «Сеть и FPS» - под бегущей строкой, ничем не перекрыта */
.perf { position: fixed; top: 44px; left: 50%; transform: translateX(-50%); z-index: 45; display: flex; gap: 2px; padding: 3px; border-radius: 9px;
  background: rgba(10, 12, 22, 0.78); border: 1px solid rgba(255, 255, 255, 0.08); font: 600 11.5px/1 system-ui, sans-serif; pointer-events: auto; white-space: nowrap; }
.perf .pf { display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 7px; border-radius: 6px; }
.perf .pf i { font-style: normal; color: #8f97b8; font-weight: 500; }
.perf .pf b { font-variant-numeric: tabular-nums; }
.perf .ok b { color: #7dff9a; } .perf .warn b { color: #ffd24a; } .perf .bad b { color: #ff6a5a; }
.perf .bad { background: rgba(255, 90, 80, 0.12); }
@media (max-width: 700px) { .perf { top: 92px; left: 6px; transform: none; font-size: 10px; max-width: 47vw; flex-wrap: wrap; } .perf .pf { padding: 3px 4px; } }

/* реликвия сезона: подсказка и кузнец */
.tip-relic { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 6px; border-radius: 6px; color: var(--rc);
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 18%, transparent), transparent); }
.tip-relic .tr-ico { font-size: 15px; }
.tip-relic .tr-rank { margin-left: auto; font-weight: 800; font-size: 11px; padding: 0 5px; border: 1px solid currentColor; border-radius: 4px; }
.tip-relic-d { font-size: 12px; margin: 2px 0 4px; }
.rl-fx { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; margin: 8px 0;
  border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(0, 0, 0, 0.2)); }
.rl-fx .rl-ico { font-size: 24px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.35); box-shadow: 0 0 14px var(--rc); flex: none; }
.rl-fx .rl-ico svg { width: 22px; height: 22px; }
.rl-fx b { color: var(--rc); }
.rl-rank { font-weight: 700; color: #e8d6ff; }
.rl-af { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0 10px; }
.rl-act { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); flex-wrap: wrap; }
.rl-act .sm-cost { margin: 0; }

/* кристалл миров: мир, куда ведёт задание - бегущая по краю подсветка */
@property --twa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tw-card.goal { position: relative; border-color: transparent;
  background: linear-gradient(#1a1f36, #10121c) padding-box,
              conic-gradient(from var(--twa), #6fe3ff, #c08bff 25%, transparent 40%, transparent 60%, #ffd24a 75%, #6fe3ff) border-box;
  border: 2px solid transparent; animation: twGoal 2.4s linear infinite; box-shadow: 0 0 18px rgba(111, 227, 255, 0.35); }
@keyframes twGoal { to { --twa: 360deg; } }
.tw-goal { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #0c1020; background: linear-gradient(90deg, #6fe3ff, #c08bff); }
@media (prefers-reduced-motion: reduce) { .tw-card.goal { animation: none; } }

/* настоящие иконки предметов в наградах, ленте добычи, лавке */
.bp-ico canvas, .bp-ico svg { width: 30px; height: 30px; image-rendering: pixelated; }
.cal-i canvas, .cal-i svg { width: 22px; height: 22px; image-rendering: pixelated; }
.rw canvas, .rw svg, .lf-row canvas { vertical-align: -3px; image-rendering: pixelated; }
.shop-row .ico canvas, .shop-row .ico svg { width: 28px; height: 28px; image-rendering: pixelated; }
.ico-sk { display: inline-grid; place-items: center; line-height: 1; }
.hi-ev.clickable { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.conn-text { white-space: pre-line; }
