/* LA2BEST x100/x13 — мини-приложение.
   Визуальный язык — окна клиента Lineage 2: прямые углы (радиус 0 везде), тонкая бронзовая рамка
   с тёмной внешней линией и светлой фаской сверху, тёмные тёплые панели, золото только акцентом.
   Без пилюль, свечений, размытий и градиентного текста. */
:root {
  --bg: #0e0d0b;
  --panel: #181612;
  --panel2: #221f1a;
  --edge: #3a3227;
  --edge-hi: #5a4c37;
  --text: #ebe5d8;
  --dim: #9b927f;
  --dim2: #665e50;
  --acc: #d1aa5a;
  --acc2: #e8c87e;
  --acc-ink: #1b1308;
  --acc-bg: rgba(209, 170, 90, .10);
  --hp: #b8322b;
  --mp: #2f62b8;
  --cp: #c2932b;
  --ok: #6fbf5a;
  --bad: #d65040;
  --tabh: 58px;
  --safe-t: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  /* цвета каналов чата как в клиенте */
  --ch-all: #e6e1d6;
  --ch-shout: #ff8c3a;
  --ch-trade: #ea7bd0;
  --ch-clan: #a98cff;
  --ch-party: #4fcf63;
  --ch-ally: #9fe07f;
  --ch-hero: #5aaaf5;
  --ch-tell: #ff6fa0;
  /* рамка «окна»: тёмный контур + фаска */
  --frame: 0 0 0 1px #050404, inset 0 1px 0 rgba(255, 236, 200, .06);
  /* шрифты: заголовки и ники — Forum (римские капители, как заставка L2), текст — Fira Sans, цифры — Oswald */
  --f-title: "Forum", "Times New Roman", serif;
  --f-ui: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-num: "Oswald", "Fira Sans Condensed", "Arial Narrow", sans-serif;
  /* металлическое золото, как цифры уровня в клиенте */
  --gold-metal: linear-gradient(180deg, #fff3c4 0%, #f1cf7a 22%, #b8862f 48%, #7a5418 52%, #c99a43 70%, #f6dc94 100%);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; border-radius: 0; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.38 var(--f-ui);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; user-select: none;
}
input, textarea, button { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
/* надпись рядом со значком: строка подрезана по заглавным (у .lc — по строчным), flex центрирует буквы */
.lbl { display: block; line-height: 1; text-box: trim-both cap alphabetic; }
.lc .lbl { text-box: trim-both ex alphabetic; }
svg { display: block; flex: none; }
.num, .bar b, .stats .v, .price, .kv b, .badge, .cnt, .it .q, .it .en, .eff .t, .pill.num { font-family: var(--f-num); letter-spacing: .2px; }

#app { min-height: 100dvh; padding: 10px 12px calc(var(--tabh) + var(--safe-b) + 16px); max-width: 520px; margin: 0 auto; }

/* верхняя строка */
.top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: var(--panel);
  border: 1px solid var(--edge); box-shadow: var(--frame); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pill .chev { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--dim); margin-left: 1px; }
/* LA2BEST: переключатель сервера в шапке (x13 / x100) */
.srv-select { display: inline-flex; flex: none; align-items: center; height: 32px; padding: 3px; gap: 2px; border: 1px solid #9d814b45; border-radius: 5px; background: #13110dd9; box-shadow: inset 0 1px 0 #f4d6980a, 0 2px 8px #0003; }
.srv-option { display: inline-flex; align-items: baseline; justify-content: center; gap: 1px; min-width: 42px; height: 24px; padding: 3px 7px; border: 1px solid transparent; border-radius: 3px; color: #92836a; background: transparent; font: 500 13px/16px var(--f-num); }
.srv-option span { font: 400 11px/1 var(--f-ui); opacity: .7; }
.srv-option.selected { color: #f0d49a; border-color: #a8874740; background: linear-gradient(180deg, #80602c50, #59432136); box-shadow: inset 0 1px 0 #f5db9e0e; }
.srv-option:focus-visible { outline: 2px solid var(--acc2); outline-offset: 1px; }
.srv-option:active { color: #fff0ce; }
#lcode { font: 500 26px var(--f-num); letter-spacing: .35em; text-align: center; }
#link-form .btn { margin-top: 16px; width: 100%; }
.chev-l { width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 1px 0 3px; }
.pill img { width: 18px; height: 18px; }
.pill svg { width: 15px; height: 15px; flex: none; color: var(--acc); }
.pill:active, .ico-btn:active { background: var(--panel2); }
.top .grow { flex: 1; }
.back { color: var(--dim); }
.ico-btn { width: 32px; height: 32px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--edge);
  box-shadow: var(--frame); position: relative; color: var(--acc); }
.ico-btn svg { width: 17px; height: 17px; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--acc);
  color: var(--acc-ink); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 1px solid #050404; }

h1 { font-family: var(--f-title); font-size: 26px; margin: 6px 0 2px; font-weight: 400; letter-spacing: .3px; color: #f2e6c9; }
.sub { color: var(--dim); font-size: 13.5px; margin: 0 0 12px; }
.sect { display: flex; align-items: center; gap: 10px; color: var(--acc2); font-family: var(--f-title); font-size: 16px; font-weight: 400; margin: 18px 0 8px; }
.sect::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

.card { background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--frame); }
.pad { padding: 12px; }

/* герой */
.hero { position: relative; overflow: hidden; padding: 10px 12px 12px; background: linear-gradient(180deg, #1d1a15, var(--panel) 60%); }
.hero .chips { display: flex; justify-content: space-between; gap: 8px; position: relative; z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 9px; font-size: 13px; font-weight: 500;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--edge); color: var(--dim); white-space: nowrap; overflow: hidden; }
.chip.on { color: var(--ok); }
.chip.on::before, .chip.off::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--ok); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.chip.off::before { background: var(--dim2); }
.chip.gold { color: var(--acc2); }
.hero .lvl { position: absolute; left: 0; right: 0; top: 22px; text-align: center; font-family: var(--f-num); font-size: 218px; font-weight: 700;
  line-height: 1; letter-spacing: 2px; color: transparent; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px rgba(40, 24, 6, .9); opacity: .9; }
.hero .emb { position: relative; z-index: 1; display: block; width: 88px; height: 88px; margin: 20px auto 6px; }
.hero .head-slot { position: relative; z-index: 1; display: flex; justify-content: center; min-height: 100px; margin-top: 2px; }
.hero .head3d { display: block; width: 230px; height: 200px; margin: 4px auto -4px;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.hero .name { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--f-title); font-size: 28px; font-weight: 400; letter-spacing: .5px; color: #f6ecd2; }
.crest { display: inline-flex; gap: 0; flex: none; border: 1px solid #050404; }
.crest img { display: block; height: 18px; image-rendering: pixelated; }
.crest img.ally { width: 12px; } .crest img.clan { width: 24px; }
.crest.sm img { height: 12px; } .crest.sm img.ally { width: 8px; } .crest.sm img.clan { width: 16px; }
.hero .cls { position: relative; z-index: 1; text-align: center; color: var(--acc2); font-size: 13px; font-weight: 600; margin-top: 3px; }
.hero .cls span { color: var(--dim); font-weight: 500; }

.bar { position: relative; height: 18px; background: #0a0908; border: 1px solid #050404; box-shadow: inset 0 0 0 1px #2a251e; overflow: hidden; margin-top: 5px; }
.bar i { position: absolute; inset: 1px auto 1px 1px; }
.bar b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; line-height: 16px; font-weight: 500; text-shadow: 0 1px 1px #000, 0 0 3px rgba(0, 0, 0, .6); }
.bar.hp i { background: linear-gradient(180deg, #d4473e, var(--hp) 55%, #8c231d); }
.bar.mp i { background: linear-gradient(180deg, #4a7ed4, var(--mp) 55%, #1f4688); }
.bar.cp i { background: linear-gradient(180deg, #dcae47, var(--cp) 55%, #8f6a1c); }
.bar .tag { position: absolute; left: 6px; top: 0; bottom: 0; display: flex; align-items: center; font-family: var(--f-num); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .6px; color: rgba(255, 255, 255, .8); z-index: 1; }
.bar.xp { height: 6px; margin-top: 10px; }
.bar.xp i { background: var(--acc); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 10px; border-top: 1px solid var(--edge); }
.stats > div { padding: 9px 4px 1px; text-align: center; }
.stats > div + div { border-left: 1px solid var(--edge); }
.stats .k { color: var(--dim); font-size: 12.5px; }
.stats .v { font-size: 19px; font-weight: 500; margin-top: 1px; }
.stats .v.gold { color: transparent; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; }
.stats .v.red { color: var(--bad); }

.effs { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.eff { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; border: 1px solid #050404; box-shadow: inset 0 0 0 1px var(--edge); }
.eff img { width: 100%; height: 100%; display: block; }
.eff.bad { border-color: #2a0705; box-shadow: inset 0 0 0 1px var(--bad); }
.eff.bad .t { color: #ffb4a8; }
.head .debuffs { font-style: normal; color: var(--bad); margin-left: 6px; }
.bar i { transition: width .45s ease-out; }
.it .box.flash { animation: zk-flash 1.1s ease-out; }
@keyframes zk-flash { 0% { box-shadow: inset 0 0 0 2px var(--acc2); background: #3a2c10; } 100% { box-shadow: inset 0 0 0 1px var(--edge); background: #050404; } }
.eff .t { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; font-weight: 800; text-align: center; background: rgba(0, 0, 0, .7); line-height: 11px; }
.head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.head b { font-family: var(--f-title); font-size: 16px; font-weight: 400; color: var(--acc2); }
.head span { color: var(--dim); font-size: 12px; }

/* строки-меню */
.list { overflow: hidden; }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; min-height: 54px; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid #2a251e; }
.row .ic { width: 32px; height: 32px; display: grid; place-items: center; background: var(--acc-bg); border: 1px solid var(--edge); color: var(--acc); flex: none; position: relative; }
.row .ic svg { width: 17px; height: 17px; }
.row .ic img { width: 32px; height: 32px; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-weight: 500; font-size: 15.5px; color: #f1ebdf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx small { display: block; color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .rt { color: var(--dim); font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ad { display: inline-block; width: 15px; height: 15px; margin-right: 3px; vertical-align: -3px; }
.kv b .ad { width: 18px; height: 18px; vertical-align: -4px; }
.rtc { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cry { display: inline-flex; align-items: center; gap: 2px; color: var(--dim); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.cry img { width: 14px; height: 14px; flex: none; opacity: .92; }
.kv b .cry { font-size: 15px; color: #f1ebdf; gap: 3px; }
.kv b .cry img { width: 18px; height: 18px; }
.cryl { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 12.5px; color: var(--dim2); }
.row .rt .price { color: var(--acc2); font-weight: 700; }
.row .arr { width: 7px; height: 7px; flex: none; border-right: 1.5px solid var(--dim2); border-bottom: 1.5px solid var(--dim2); transform: rotate(-45deg); margin: 0 4px 0 4px; }
.row .cnt { background: var(--acc); color: var(--acc-ink); min-width: 20px; height: 20px; padding: 0 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.row:active { background: var(--panel2); }

/* поиск и фильтры */
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; background: #0b0a09; border: 1px solid var(--edge);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); margin-bottom: 10px; }
.search svg { width: 15px; height: 15px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 100%; }
.search input::placeholder { color: var(--dim2); }
.search:focus-within { border-color: var(--acc); }
.sugg { display: none; margin: -4px 0 10px; border: 1px solid var(--edge); background: var(--panel); box-shadow: var(--frame); }
.sugg.on { display: block; }
.sugg button { display: block; width: 100%; text-align: left; padding: 9px 12px; font-size: 14px; color: var(--text); }
.sugg button + button { border-top: 1px solid #2a251e; }
.sugg button:active { background: var(--panel2); }
.note.fixed { margin: 0 0 8px; }
.note.other { display: block; width: 100%; text-align: left; color: var(--gold2); border: 1px solid var(--edge); background: var(--panel); padding: 12px; font-size: 14px; }
.note.other::after { content: " →"; }
.note.fixed b { color: var(--acc2); font-weight: 600; }
.tools { display: flex; justify-content: flex-end; margin: -2px 0 8px; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-head .sortbtn { flex: none; }
.per { color: var(--dim); font-size: 12px; font-weight: 500; }
.searchrow { display: flex; gap: 6px; margin-bottom: 10px; }
.searchrow .search { flex: 1; margin-bottom: 0; }
.sortbtn { width: 38px; height: 38px; }
.sortbtn.on { border-color: var(--acc); color: var(--acc2); background: var(--acc-bg); }
.sortmenu { display: flex; flex-direction: column; min-width: 170px; margin: -4px -8px; }
.sortmenu button { text-align: left; padding: 8px 10px; font-size: 14px; color: var(--text); }
.sortmenu button + button { border-top: 1px solid #2a251e; }
.sortmenu button.on { color: var(--acc2); }
.sortmenu button.on::after { content: ""; float: right; width: 6px; height: 10px; border-right: 2px solid var(--acc2); border-bottom: 2px solid var(--acc2); transform: rotate(45deg); margin: 1px 2px 0 0; }
.seg { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: flex; align-items: center; height: 32px; padding: 0 12px; background: var(--panel); border: 1px solid var(--edge); color: var(--dim); font-weight: 600; font-size: 13px; white-space: nowrap; flex: none; }
.seg button.on { color: var(--acc2); border-color: var(--acc); background: var(--acc-bg); }
.tabs2 { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--edge); margin-bottom: 12px; }
.tabs2 button { height: 38px; font-weight: 600; color: var(--dim); font-size: 14px; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs2 button.on { color: var(--acc2); border-bottom-color: var(--acc); background: linear-gradient(180deg, transparent, var(--acc-bg)); }
.tabs2 button { display: flex; align-items: center; justify-content: center; gap: 7px; }
.tabs2 .badge { position: static; }

.weight { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); margin: 0 0 12px; }
.weight .bar { flex: 1; height: 8px; margin: 0; }
.weight .bar i { background: var(--ok); }
.weight .bar.warn i { background: var(--acc); }
.weight .bar.over i { background: var(--bad); }

/* сетка предметов */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px 6px; }
.it { text-align: center; min-width: 0; }
.it .box { position: relative; aspect-ratio: 1; background: #050404; border: 1px solid #050404; box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.it .box img { width: 100%; height: 100%; display: block; }
.it .box .q { position: absolute; right: 3px; bottom: 1px; font-size: 10.5px; font-weight: 800; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.it .box .en { position: absolute; left: 3px; top: 1px; font-size: 10.5px; font-weight: 900; color: var(--acc2); text-shadow: 0 0 2px #000; }
.it .box.eq { box-shadow: inset 0 0 0 1px var(--acc); }
.it .box .gb { position: absolute; right: 2px; top: 2px; width: 11px; height: 12px; z-index: 1; display: block; }
.it .nm { font-size: 11px; color: #a89f8c; margin-top: 3px; line-height: 1.2; height: 25px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.g { display: inline-flex; align-items: center; font-family: var(--f-num); font-size: 11px; font-weight: 600; padding: 3px 4px; border: 1px solid var(--edge); color: #cfc8b8; vertical-align: middle; margin-left: 4px; }
/* грейд — игровой значок 11×12 (×4 в файле), в строке 1,25× */
.gr { display: inline-block; width: 13.75px; height: 15px; vertical-align: middle; margin: 0 0 0 2.5px; position: relative; top: -1px; }

/* рынок */
.lot .ic { width: 38px; height: 38px; background: #050404; border: 1px solid #050404; box-shadow: inset 0 0 0 1px var(--edge); }
.lot .ic img { width: 36px; height: 36px; }
.seller { font-size: 12.5px; color: var(--dim); }
.seller .sn { color: var(--text); font-weight: 600; }

/* чат — как окно чата в клиенте: строки, а не пузыри */
.chat { padding: 8px 10px 76px; font-size: 14px; line-height: 1.45; background: rgba(0, 0, 0, .25); border: 1px solid var(--edge); box-shadow: var(--frame); }
.msg { padding: 2px 0; font-size: 14.5px; word-break: break-word; user-select: text; }
.msg .ts { color: var(--dim2); font-size: 11.5px; margin-right: 6px; }
.msg .who { font-weight: 700; }
.msg.me .who { text-decoration: underline; text-decoration-color: rgba(209, 170, 90, .5); text-underline-offset: 3px; }
.ch-all { color: var(--ch-all); } .ch-shout { color: var(--ch-shout); } .ch-trade { color: var(--ch-trade); }
.ch-clan { color: var(--ch-clan); } .ch-party { color: var(--ch-party); } .ch-ally { color: var(--ch-ally); }
.ch-hero { color: var(--ch-hero); } .ch-tell { color: var(--ch-tell); }
.composer { position: fixed; left: 0; right: 0; bottom: calc(var(--tabh) + var(--safe-b)); padding: 8px 12px; background: var(--bg);
  border-top: 1px solid var(--edge); max-width: 520px; margin: 0 auto; }
.composer .in { display: flex; align-items: center; gap: 6px; background: #0b0a09; border: 1px solid var(--edge); padding: 3px 3px 3px 3px; }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; height: 34px; }
.composer .chsel { display: flex; align-items: center; font-size: 13px; font-weight: 600; padding: 0 10px; height: 34px; background: var(--panel2); border-right: 1px solid var(--edge); }
.send { width: 34px; height: 34px; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.send svg { width: 17px; height: 17px; }

/* формы */
.field { margin-bottom: 10px; }
.field label { display: block; color: var(--dim); font-size: 12.5px; margin: 0 0 5px; }
.field input, .field textarea { width: 100%; background: #0b0a09; border: 1px solid var(--edge); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
  padding: 10px 11px; outline: 0; }
.field textarea { min-height: 92px; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--acc); }
input[data-in="d-att"] { background: #0b0a09; border: 1px solid var(--edge); color: var(--text);
  padding: 8px; height: 36px; font: inherit; text-align: center; }
input[data-in="d-att"]:focus { border-color: var(--acc); outline: 1px solid var(--acc); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px;
  background: linear-gradient(180deg, #e4c173, #c39845 50%, #a97f33); color: var(--acc-ink); font-weight: 700; font-size: 15px; letter-spacing: .3px;
  border: 1px solid #6e5222; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px #050404; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--panel2); color: var(--text); border-color: var(--edge); box-shadow: inset 0 1px 0 rgba(255, 236, 200, .06), 0 0 0 1px #050404; }
.btn[disabled] { opacity: .45; }
.btn + .btn { margin-top: 8px; }
.switch { width: 42px; height: 22px; background: #0b0a09; border: 1px solid var(--edge); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: var(--dim2); transition: transform .12s, background .12s; }
.switch.on { border-color: var(--acc); }
.switch.on::after { transform: translateX(20px); background: var(--acc); }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.kv + .kv { border-top: 1px solid #2a251e; }
.kv span { color: var(--dim); }
.kv b { font-weight: 500; font-size: 16px; text-align: right; }
.kv b.gold { color: var(--acc2); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; background: var(--panel2); border: 1px solid var(--edge); font-size: 20px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.stepper input { width: 92px; height: 36px; text-align: center; background: #0b0a09; border: 1px solid var(--edge); outline: 0; font-weight: 700; }
.note { color: var(--dim); font-size: 12.5px; margin: 8px 0; }
.empty { text-align: center; color: var(--dim); padding: 32px 12px; border: 1px dashed var(--edge); }

/* нижняя панель */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 0 var(--safe-b); background: #12110e; border-top: 1px solid var(--edge);
  box-shadow: 0 -1px 0 #050404; z-index: 20; }
.tabbar .in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabh); position: relative; }
/* золотая подсветка — одна на панель, едет между кнопками (--ti — номер вкладки, при свайпе дробный) */
.tabbar .tb-ind { position: absolute; top: -1px; bottom: 0; left: 0; width: 20%; pointer-events: none; border-top: 2px solid var(--acc);
  background: linear-gradient(180deg, var(--acc-bg), transparent); transform: translate3d(calc(var(--ti, 0) * 100%), 0, 0); will-change: transform; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim2);
  font-weight: 600; font-size: 11px; position: relative; border-top: 2px solid transparent; margin-top: -1px; }
.tabbar button svg { width: 21px; height: 21px; }
.tabbar button { --w: 0; color: color-mix(in srgb, var(--acc2) calc(var(--w) * 100%), var(--dim2)); }
.tabbar button.on { --w: 1; }
.tabbar button svg { transform: translateY(calc(var(--w) * -1px)); }
.tabbar button .badge { top: 6px; right: calc(50% - 20px); }

/* нижний лист */
#sheet { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#sheet .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .18s; }
#sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--panel);
  border-top: 1px solid var(--edge-hi); box-shadow: 0 -1px 0 #050404; padding: 12px 14px calc(14px + var(--safe-b));
  transform: translateY(105%); transition: transform .2s cubic-bezier(.2, .8, .2, 1); max-height: 88vh; overflow-y: auto; }
#sheet.open { pointer-events: auto; }
#sheet.open .dim { opacity: 1; }
#sheet.open .panel { transform: none; }
.grab { display: none; }
.sh-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sh-head > img { width: 48px; height: 48px; background: #050404; border: 1px solid #050404; box-shadow: inset 0 0 0 1px var(--edge); }
.sh-head .tx { flex: 1; min-width: 0; }
.sh-head b { display: block; font-family: var(--f-title); font-size: 19px; font-weight: 400; }
.sh-head small { color: var(--dim); font-size: 13px; }
.tx b:has(> .nm) { display: flex; align-items: center; }
.tx b > .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx b > .gr { flex: none; top: -0.5px; }
.x { width: 30px; height: 30px; background: var(--panel2); border: 1px solid var(--edge); color: var(--dim); font-size: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.done { text-align: center; color: var(--ok); font-weight: 800; font-size: 16px; margin: 6px 0 2px; }
.done + .note { text-align: center; margin-top: 0; }

#pop { position: fixed; top: 0; left: 0; z-index: 50; background: var(--panel2); border: 1px solid var(--edge-hi); box-shadow: 0 0 0 1px #050404, 0 6px 18px rgba(0, 0, 0, .5);
  padding: 8px 12px; font-size: 14px; white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
#pop.on { opacity: 1; transform: none; pointer-events: auto; }
#pop b { font-family: var(--f-num); font-size: 17px; font-weight: 500; color: var(--acc2); }
#pop span { color: var(--dim); }
[hidden] { display: none !important; }
#toast { position: fixed; left: max(16px, env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px)); top: calc(var(--safe-t) + 12px);
  width: auto; max-width: 420px; margin: 0 auto; box-sizing: border-box; max-height: calc(100dvh - var(--safe-t) - var(--safe-b) - 24px); overflow-y: auto;
  background: var(--panel2); border: 1px solid var(--edge-hi); box-shadow: 0 0 0 1px #050404;
  padding: 11px 14px; font-weight: 600; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
  z-index: 60; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
#toast.on { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.skel { background: var(--panel); border: 1px solid var(--edge); }

/* иконки появляются и уходят мягко (эффекты, инвентарь, экипировка) */
.appear { animation: zk-in .36s cubic-bezier(.2, .8, .2, 1) both; }
.vanish { animation: zk-out .3s ease-in both; pointer-events: none; }
@keyframes zk-in { 0% { opacity: 0; transform: scale(.55); filter: brightness(1.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes zk-out { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.55); } }
@media (prefers-reduced-motion: reduce) {
  .appear, .vanish { animation-duration: 1ms; }
  #sheet .panel, #sheet .dim, #toast, .switch::after, .bar i { transition: none; }
  .it .box.flash { animation: none; }
}

/* ---------- 23.10: пометки, поиск, донат, поддержка, отзыв ---------- */
/* «после рестарта» — маленькая золотая плашка; сама пропадает, когда мост игры поднялся (S.d.bridge) */
.soon { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .2px;
  color: var(--acc2); border: 1px solid var(--edge-hi); background: var(--acc-bg); white-space: nowrap; vertical-align: middle; }
.note .soon { margin-right: 4px; }
/* крестик очистки в поиске */
.search .clr { display: none; flex: none; width: 26px; height: 26px; margin-right: -6px; place-items: center; color: var(--dim); }
.search.has .clr { display: grid; }
.search .clr svg { width: 13px; height: 13px; color: currentColor; }
.search .clr:active { color: var(--acc2); }
/* шаги доната */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; margin: 2px 0 14px; }
.steps span { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; font-size: 12.5px; color: var(--dim2);
  background: #0b0a09; border: 1px solid var(--edge); white-space: nowrap; overflow: hidden; }
.steps b { display: grid; place-items: center; width: 17px; height: 17px; flex: none; font-size: 11px; border: 1px solid var(--edge); color: var(--dim); }
.steps .on { color: var(--acc2); border-color: var(--acc); background: var(--acc-bg); }
.steps .on b { border-color: var(--acc); color: var(--acc2); }
.steps .ok { color: var(--dim); }
.steps .ok b { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
/* пакеты монет: крупная цифра, бонус, цена */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 10px; background: var(--panel);
  border: 1px solid var(--edge); box-shadow: var(--frame); }
.pack b { font-family: var(--f-num); font-size: 24px; font-weight: 500; line-height: 1; color: var(--acc2); }
.pack .bon { font-size: 12px; color: var(--ok); min-height: 15px; }
.pack small { font-size: 12px; color: var(--dim); }
.pack:active, .pack.on { border-color: var(--acc); background: var(--acc-bg); }
.row2 { display: flex; gap: 6px; }
.row2 input { flex: 1; min-width: 0; }
.btn.sm { width: auto; height: auto; min-height: 40px; padding: 0 16px; flex: none; }
.how { margin-top: 16px; border: 1px solid var(--edge); background: #0f0e0c; }
.how div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; font-size: 13.5px; color: #d6cebd; line-height: 1.35; }
.how div + div { border-top: 1px solid #2a251e; }
.how b { display: grid; place-items: center; width: 20px; height: 20px; flex: none; font-size: 12px; color: var(--acc-ink); background: var(--acc); }
.dnsum { margin: -4px 0 6px; color: var(--dim); font-size: 14px; }
.dnsum b { color: var(--acc2); font-family: var(--f-num); font-size: 18px; font-weight: 500; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pick { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; font-size: 14px; color: var(--text);
  background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--frame); max-width: 100%; overflow: hidden; }
.pick.copy { font-family: var(--f-num); letter-spacing: .4px; color: var(--acc2); }
.pick:active { border-color: var(--acc); background: var(--acc-bg); }
.req { font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; word-break: break-word; -webkit-user-select: text; user-select: text; }
.field input.cpbox { font-family: var(--f-num); font-size: 17px; letter-spacing: .4px; color: var(--acc2); -webkit-user-select: text; user-select: text; }
.req code { cursor: pointer; border-bottom: 1px dashed var(--edge-hi); font-family: var(--f-num); font-size: 15px; color: var(--acc2); letter-spacing: .3px; }
.pre { white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; color: #e6dfd0; }
.attrow { margin: 0 0 10px; }
.attrow .btn { cursor: pointer; }
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; font-size: 12px; border: 1px solid var(--edge); color: var(--dim); white-space: nowrap; }
.st-granted { color: var(--ok); border-color: rgba(111, 191, 90, .45); }
.st-rejected { color: var(--bad); border-color: rgba(214, 80, 64, .45); }
.st-new, .st-granting { color: var(--acc2); border-color: var(--edge-hi); }
/* поддержка: переписка */
.sup { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; max-height: 46vh; overflow-y: auto; }
.bub { max-width: 86%; padding: 8px 10px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; border: 1px solid var(--edge); }
.bub small { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 3px; }
.bub.you { align-self: flex-end; background: #1f1b14; border-color: var(--edge-hi); }
.bub.adm { align-self: flex-start; background: var(--panel); }
.bub .att { display: block; margin-top: 4px; font-size: 12.5px; color: var(--acc2); }
/* отзыв: звёзды */
.stars { display: flex; gap: 6px; margin: 4px 0 12px; }
.stars button { width: 44px; height: 44px; font-size: 24px; color: var(--dim2); background: var(--panel); border: 1px solid var(--edge); }
.stars button.on { color: var(--acc2); border-color: var(--acc); background: var(--acc-bg); }
.note.test { font-size: 12px; color: var(--dim2); margin-top: 14px; }

/* лента уведомлений */
.feed { display: flex; flex-direction: column; border: 1px solid var(--edge); background: var(--panel); box-shadow: var(--frame); }
.fitem { display: flex; gap: 10px; padding: 10px 12px; }
.fitem + .fitem { border-top: 1px solid #2a251e; }
.fitem.new { background: linear-gradient(90deg, var(--acc-bg), transparent 70%); }
.fic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid var(--edge); background: #0b0a09; color: var(--acc); }
.fic svg { width: 16px; height: 16px; }
.ftx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; color: #e6dfd0; }
.ftx small { display: block; font-size: 11.5px; color: var(--dim); margin-bottom: 2px; }
.tabs2 button .badge { position: static; margin-left: 6px; }

/* донат компактнее (замечание владельца 23.10): небольшие кнопки сумм, шаги и своя сумма в одну строку */
.steps { margin: 0 0 10px; gap: 3px; }
.steps span { height: 26px; padding: 0 6px; font-size: 11.5px; gap: 5px; }
.steps b { width: 15px; height: 15px; font-size: 10px; }
.packs { gap: 5px; }
.pack { padding: 7px 4px 6px; gap: 1px; }
.pack b { font-size: 18px; }
.pack .bon { font-size: 11px; min-height: 13px; }
.pack small { font-size: 11px; }
.dnq { margin-top: 8px; }
.dnq input { height: 40px; background: #0b0a09; border: 1px solid var(--edge); padding: 0 10px; color: var(--text); font-size: 15px; }
.dnq input:focus { border-color: var(--acc); outline: 0; }
.dnq .btn.sm { min-height: 40px; }

/* шаги доната: подписи в строку и тонкая полоса прогресса (без квадратиков) */
.steps2 { margin: 2px 0 14px; }
.steps2 .lbls { display: flex; justify-content: space-between; gap: 6px; }
.steps2 .lbls span { font-size: 12.5px; color: var(--dim2); white-space: nowrap; letter-spacing: .2px; }
.steps2 .lbls span.ok { color: var(--dim); }
.steps2 .lbls span.on { color: var(--acc2); font-weight: 600; }
.steps2 .track { height: 2px; margin-top: 7px; background: #2a251e; }
.steps2 .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .25s ease; }

/* чат: своя прокрутка, держится внизу (высоту ставит chatFit по видимой части экрана) */
.chat { padding-bottom: 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* значок «Демо» в шапке */
.demo { display: inline-flex; align-items: center; height: 22px; margin-left: 8px; padding: 0 8px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; color: var(--acc-ink); background: var(--acc); }

/* ---------- верх карточки персонажа: подложка по ступени уровня (как грейды L2) ---------- */
.htop { position: relative; margin: -10px -12px 0; padding: 10px 12px 10px; overflow: hidden; isolation: isolate; background: var(--t-bg); }
.htop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--t-fx, none); }
/* зерно — фактура «как камень», одинаковая на всех ступенях */
.htop::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .htop .lvl { background-image: var(--t-num); -webkit-background-clip: text; background-clip: text; filter: var(--t-glow, none); -webkit-text-stroke: 1.5px var(--t-edge, rgba(40, 24, 6, .9)); }
.tier-ng { --t-bg: radial-gradient(120% 90% at 50% 38%, #2a241c 0%, #17140f 58%, #100e0b 100%);
  --t-num: linear-gradient(180deg, #c9b597 0%, #8a7457 52%, #4a3c2b 100%); --t-edge: rgba(30, 22, 12, .9); }
.tier-d { --t-bg: radial-gradient(120% 90% at 50% 38%, #26313a 0%, #151a1f 60%, #0e1013 100%);
  --t-fx: repeating-linear-gradient(135deg, rgba(160, 190, 210, .035) 0 2px, transparent 2px 9px);
  --t-num: linear-gradient(180deg, #f2f6f9 0%, #a8b6c1 48%, #56636d 100%); --t-edge: rgba(14, 20, 26, .9); }
.tier-c { --t-bg: radial-gradient(120% 90% at 50% 38%, #1c3a30 0%, #11201b 60%, #0b120f 100%);
  --t-fx: radial-gradient(60% 45% at 50% 42%, rgba(232, 200, 126, .12), transparent 70%);
  --t-num: var(--gold-metal); --t-edge: rgba(40, 24, 6, .9); }
.tier-b { --t-bg: radial-gradient(120% 90% at 50% 38%, #4a1a1b 0%, #24100f 60%, #120807 100%);
  --t-fx: radial-gradient(62% 46% at 50% 42%, rgba(255, 150, 80, .16), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 180, 120, .03) 0 2px, transparent 2px 10px);
  --t-num: linear-gradient(180deg, #fff1c9 0%, #f0a050 45%, #9a2f18 100%); --t-edge: rgba(40, 8, 4, .9); }
.tier-a { --t-bg: radial-gradient(120% 90% at 50% 38%, #34204e 0%, #1a1028 60%, #0d0814 100%);
  --t-fx: repeating-conic-gradient(from 0deg at 50% 44%, rgba(200, 150, 255, .06) 0 6deg, transparent 6deg 18deg), radial-gradient(60% 45% at 50% 42%, rgba(190, 130, 255, .18), transparent 72%);
  --t-num: linear-gradient(180deg, #fbefff 0%, #c79bf0 45%, #5a2c86 100%); --t-edge: rgba(24, 8, 40, .9); }
.tier-s { --t-bg: radial-gradient(120% 90% at 50% 38%, #5a4214 0%, #2a1e0a 58%, #120d05 100%);
  --t-fx: repeating-conic-gradient(from 0deg at 50% 44%, rgba(255, 215, 120, .10) 0 5deg, transparent 5deg 15deg), radial-gradient(58% 44% at 50% 42%, rgba(255, 220, 140, .28), transparent 72%);
  --t-num: linear-gradient(180deg, #fffdf0 0%, #ffe08a 38%, #e0a83a 62%, #8a5a10 100%); --t-edge: rgba(50, 30, 4, .9);
  --t-glow: drop-shadow(0 0 22px rgba(255, 200, 90, .35)); }
.htop .chips .chip { background: rgba(0, 0, 0, .45); }
/* фигурка: шире и выше, низ и бока плеч уходят в прозрачность */
.head-slot { position: relative; }
.head-loading { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; pointer-events: none;
  color: #e4c77e; background: rgba(21, 17, 10, .88); border: 1px solid rgba(216, 177, 92, .28);
  border-radius: 0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); font-size: 14px; line-height: 20px; white-space: nowrap; }
.head-loading i { width: 22px; height: 22px; box-sizing: border-box; border: 2px solid rgba(228, 199, 126, .2);
  border-top-color: #e4c77e; border-right-color: #b5934f; border-radius: 50%; animation: head-loading-spin .85s linear infinite; }
.head-slot:has(.head3d[data-loading="false"]) .head-loading:not(.head-load-error) { display: none; }
.head-load-error { cursor: pointer; pointer-events: auto; white-space: normal; width: 270px; max-width: calc(100% - 32px); justify-content: center; font: inherit; color: #e4c77e; }
.boot-error { margin: 12px 0; padding: 16px; border: 1px solid #78613b; background: #211d15; }
.boot-error p { margin: 0 0 10px; }
.boot-error small { display: block; color: #ada38a; margin-bottom: 10px; }
@keyframes head-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .head-loading i { animation: none; } }
.hero .head3d { width: 300px; height: 250px; margin: 0 auto -6px;
  -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 99%), linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 66%, transparent 99%), linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
  mask-composite: intersect; }
/* полная фигура: на всю ширину шапки (оружие обрезает край экрана); высоту ставит head3d; низ растворяется под ником и классом.
   :not(.bust) — если фигура не загрузилась, head3d показывает прежний бюст и ставит холсту класс bust: тогда старые правила бюста */
.hero .head3d.body:not(.bust) { width: calc(100% + 24px); margin-left: -12px; margin-right: -12px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(52% + 42% * var(--open, 0)), transparent 99%), linear-gradient(90deg, transparent 0, #000 calc(12% - 10% * var(--open, 0)), #000 calc(88% + 10% * var(--open, 0)), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(52% + 42% * var(--open, 0)), transparent 99%), linear-gradient(90deg, transparent 0, #000 calc(12% - 10% * var(--open, 0)), #000 calc(88% + 10% * var(--open, 0)), transparent 100%); }
/* подсказка «потяни»: тонкая широкая золотая галочка ПОД ником и классом, маленький отступ; раскрыто — смотрит вверх */
.hero .htop .pull { display: block; width: 34px; height: 9px; margin: 5px auto 0; position: relative; z-index: 1; pointer-events: none; opacity: .8;
  transition: transform .25s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .9)); }
.hero .htop .pull::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f3d58f, #a8782e);
  clip-path: polygon(0 0, 50% 64%, 100% 0, 100% 36%, 50% 100%, 0 36%); }
:root.h3d-open .hero .htop .pull { transform: rotate(180deg); }
.hero:has(.head3d.bust) .htop .pull { display: none; }
/* чат без вкладок: ник — кнопка «в личку» */
.msg .who.pm { cursor: pointer; }
.msg .who.pm:active { opacity: .7; }

/* донат: «Мои заявки» приглушены, свежая отправленная — яркая */
.sect.dim { opacity: .55; }
.dnhist .row { opacity: .5; transition: opacity .2s; }
.dnhist .row.hot { opacity: 1; box-shadow: inset 2px 0 0 var(--acc); }
/* цифра уровня — по центру фигурки (центр холста головы) */
.hero .htop .lvl { top: 54px; }

/* инвентарь: категории — квадратики с иконками в одну строку по центру (без прокрутки вбок) */
.icats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 46px); justify-content: center; gap: 4px; margin: 10px 0 0; }
.icats button { aspect-ratio: 1; padding: 0; position: relative; background: #050404; border: 1px solid var(--edge); opacity: .55;
  filter: saturate(.55); transition: opacity .15s, filter .15s; display: grid; place-items: center; }
.icats button img { width: 100%; height: 100%; display: block; }
.icats button.all svg { width: 52%; height: 52%; color: var(--acc2); }
.icats button.on { opacity: 1; filter: none; border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 12px rgba(209, 170, 90, .25); }
.icats button:active { opacity: .85; }
.icats-lbl { text-align: center; font-size: 13px; color: var(--dim); margin: 6px 0 8px; }
.icats-lbl b { color: var(--acc2); font-weight: 600; }


/* ---------- фон ступени: арт L2 + свет + частицы (замечание владельца 24.10: «дорого и красиво») ---------- */
.tier-ng { --t-img: url(img/tier_ng_k.webp?v=1); --t-tint: rgba(60, 90, 40, .18); --t-mote: rgba(230, 240, 200, .75); }
.tier-d { --t-img: url(img/tier_d_k.webp?v=1); --t-tint: rgba(70, 60, 120, .22); --t-mote: rgba(210, 225, 255, .8); }
.tier-c { --t-img: url(img/tier_c_k.webp?v=1); --t-tint: rgba(150, 100, 30, .2); --t-mote: rgba(255, 210, 120, .9); }
.tier-b { --t-img: url(img/tier_b_k.webp?v=1); --t-tint: rgba(150, 30, 25, .24); --t-mote: rgba(255, 140, 70, .95); }
.tier-a { --t-img: url(img/tier_a_k.webp?v=1); --t-tint: rgba(90, 40, 160, .22); --t-mote: rgba(205, 160, 255, .95); }
.tier-s { --t-img: url(img/tier_s_k.webp?v=1); --t-tint: rgba(170, 110, 20, .22); --t-mote: rgba(255, 220, 130, 1); }
/* арт: чуть размыт и приглушён, медленно «дышит» приближением */
.htop::before { inset: -6%; z-index: -3; background: var(--t-img) center 32% / cover no-repeat, var(--t-bg);
  animation: zk-kb 26s ease-in-out infinite alternate; will-change: transform; }   /* размытие/насыщенность/яркость вшиты в картинку (_k) */
@keyframes zk-kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); } }
/* свет: тёмный верх под плашками, виньетка по краям, оттенок ступени, лучи (для A и S), плавный уход в карточку */
.htop .fx { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 7, 6, .5) 0%, rgba(8, 7, 6, .05) 24%, rgba(8, 7, 6, .08) 64%, var(--panel) 100%),
    radial-gradient(80% 70% at 50% 46%, transparent 45%, rgba(0, 0, 0, .42) 100%), linear-gradient(var(--t-tint), var(--t-tint)); }
.htop .fx::after { content: ""; position: absolute; inset: 0; background: var(--t-fx, none); mix-blend-mode: screen; opacity: .4; }
.htop::after { opacity: .14; }
/* частицы: тихо поднимаются и гаснут */
.htop .motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.htop .motes i { position: absolute; left: var(--x); bottom: -8px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--t-mote);
  box-shadow: 0 0 6px 1px var(--t-mote); opacity: 0; animation: zk-mote var(--d) linear var(--t) infinite; }
@keyframes zk-mote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .5; }
  100% { transform: translate3d(12px, -330px, 0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .htop::before, .htop .motes i { animation: none; } .htop .motes { display: none; } }
/* поверх фона — читаемость */
.htop .name { text-shadow: 0 2px 8px rgba(0, 0, 0, .85); }
.htop .cls { text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.htop .chips .chip { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* ---------- инвентарь и рынок: одно окно прокрутки, липкая строка (категории / вкладки) ---------- */
.vfix { display: flex; flex-direction: column; }
.vfix > .scrollbox { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.stick { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 8px 0 8px; }
.stick::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none; background: linear-gradient(var(--bg), transparent); }
.stick .icats { margin: 0; }
.stick .tabs2 { margin: 0; }
.vfix > .scrollbox > h1:first-child { margin-top: 2px; }

/* шаги доната — кнопки: пройденные нажимаются (назад), будущие — нет */
.steps2 .lbls button { font-size: 12.5px; color: var(--dim2); white-space: nowrap; letter-spacing: .2px; padding: 6px 0; background: none; border: 0; }
.steps2 .lbls button.ok { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(209, 170, 90, .35); text-underline-offset: 4px; }
.steps2 .lbls button.ok:active { color: var(--acc2); }
.steps2 .lbls button.on { color: var(--acc2); font-weight: 600; }
.steps2 .lbls button[disabled] { cursor: default; }
.steps2 .track { margin-top: 1px; }

/* свайп между вкладками: слой экрана едет за пальцем */
#view { will-change: transform; }

/* полный экран Telegram: сверху его плавающие кнопки и вырез телефона — наш верх ниже них (безопасная зона из SDK) */
:root.fs #app { padding-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 4px); }

/* соседний экран при свайпе: та же вёрстка, едет рядом с текущим */
.peek { position: fixed; top: 0; bottom: calc(var(--tabh) + var(--safe-b)); z-index: 3; overflow: hidden; pointer-events: none;
  background: var(--bg); box-sizing: border-box; will-change: transform; }
.peek .composer { position: absolute; bottom: 0; }

/* иконки заточенных вещей не подсвечиваем (владелец 26.10) — заточку показывает только «+N» */
.it .box .en, .it .box .q, .it .box .gb { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .it .box.gl::after, .it .box.gl::before { animation: none; } }

/* «Поделиться персонажем»: кнопка в шапке и окно с готовой карточкой */
.htop .share-btn { position: absolute; right: 12px; top: 44px; z-index: 3; width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); border: 1px solid var(--edge); color: var(--acc2); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.htop .share-btn svg { width: 18px; height: 18px; }
.htop .share-btn:active { transform: scale(.94); }
.share-pv { margin-top: 10px; border: 1px solid var(--edge); background: #050404; }
.share-pv img { display: block; width: 100%; height: auto; }
.share-pv .skel { aspect-ratio: 4 / 3; }
.share-go { margin-top: 12px; }
.share-go .btn { flex: 1; }
.share-go .btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 8px; font-size: 16px; }
.share-go .btn svg { width: 19px; height: 19px; flex: 0 0 19px; }
.share-caption { margin-top: 12px; color: var(--muted, #a99d87); font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

/* «Дозор» — первая карточка «Ещё»: та же строка, что у разделов, выделена золотой рамкой и значком */
.card.list.watch { margin: 6px 0 4px; border-color: rgba(209, 170, 90, .5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .55); }
.watch .row .ic { color: var(--acc2); border-color: rgba(209, 170, 90, .55); background: rgba(209, 170, 90, .12); }
.watch .row .tx b { color: var(--acc2); }
.watch .wst { font-size: 12px; color: var(--ok); white-space: nowrap; }

/* донат 26.10: пакеты — сундуки с золотом (больше сумма — богаче сундук), процент бонуса в углу, крупные суммы строкой */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pack { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 4px 8px;
  background: radial-gradient(110% 70% at 50% 28%, #1b160e, #0a0908 72%); border: 1px solid var(--edge); box-shadow: var(--frame); }
.pack .pk-art { position: relative; display: block; width: 74px; height: 70px; margin: 4px auto 0; }
.pack .pk-art img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)); }
.pack .pk-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--chest) center / contain no-repeat; mask: var(--chest) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 238, 190, .5) 50%, transparent 58%) 160% 0 / 300% 100% no-repeat;
  animation: zk-glint 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s); }
@keyframes zk-glint { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.pack b { font-family: var(--f-num); font-size: 19px; font-weight: 500; line-height: 1.05; color: var(--acc2); position: relative; }
.pack .bon { font-size: 11px; color: var(--ok); min-height: 13px; line-height: 13px; }
.pack small { font-size: 11px; color: var(--dim); line-height: 13px; }
.pack .pk-pct { position: absolute; top: 4px; right: 4px; z-index: 2; padding: 1px 5px; font-size: 10.5px; font-weight: 600; line-height: 14px;
  color: #0c1508; background: var(--ok); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.pack.c4 { border-color: rgba(209, 170, 90, .42); }
.pack.c5 { border-color: rgba(209, 170, 90, .68); box-shadow: var(--frame), inset 0 0 14px rgba(209, 170, 90, .14); }
.pack.c6 { border-color: var(--acc); box-shadow: var(--frame), inset 0 0 18px rgba(232, 200, 126, .24), 0 0 10px rgba(232, 200, 126, .14);
  background: radial-gradient(110% 70% at 50% 28%, #2a1f0e, #0d0a06 72%); }
.pack.c6 .pk-pct { color: #1a1206; background: linear-gradient(180deg, #ffe7a6, #d9a948); animation: zk-pulse 1.8s ease-in-out infinite; }
@keyframes zk-pulse { 50% { box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 10px rgba(255, 220, 140, .75); } }
.pack .sp { position: absolute; z-index: 1; width: 3px; height: 3px; background: #ffe7a6; box-shadow: 0 0 6px 1px rgba(255, 214, 120, .9); opacity: 0;
  pointer-events: none; animation: zk-spark 2.6s ease-in-out infinite; }
.pack .sp:nth-of-type(1) { left: 18%; top: 34%; animation-delay: 0s; }
.pack .sp:nth-of-type(2) { left: 74%; top: 22%; animation-delay: .7s; }
.pack .sp:nth-of-type(3) { left: 30%; top: 12%; animation-delay: 1.3s; }
.pack .sp:nth-of-type(4) { left: 62%; top: 44%; animation-delay: 1.9s; }
@keyframes zk-spark { 0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -14px, 0) scale(1); } }
.pack:active, .pack.on { border-color: var(--acc); background: radial-gradient(110% 70% at 50% 28%, #2b2112, #0d0b07 72%); }
.pack.pop { animation: zk-pop .17s ease-out forwards; }
@keyframes zk-pop { 45% { transform: scale(.94); } 100% { transform: scale(1.03); filter: brightness(1.3); } }
/* своя сумма: какой сундук и сколько придёт */
.dnq-hint { display: flex; align-items: center; gap: 8px; min-height: 0; margin-top: 6px; font-size: 13px; color: #d8cfbd; }
.dnq-hint:empty { display: none; }
.dnq-hint img { width: 34px; height: 34px; object-fit: contain; flex: none; }
/* итог на следующих шагах */
.dnsum { display: flex; align-items: center; gap: 10px; margin: -2px 0 10px; color: var(--dim); font-size: 14px; }
.dnsum img { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.dnsum span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.dnsum b { color: var(--acc2); font-family: var(--f-num); font-size: 20px; font-weight: 500; }
.dnsum .nk { color: #e6dfd0; }
.dnsum small { flex-basis: 100%; font-size: 12px; color: var(--ok); }
/* «Заявка принята»: крупный сундук */
.dndone { text-align: center; }
.dndone .dn-big { display: block; width: 150px; height: 150px; margin: -4px auto 4px; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); animation: zk-breathe 3.2s ease-in-out infinite alternate; }
/* «дыхание» сундука: чуть растёт и поднимается — без пульса яркости (он подсвечивал край ореола) */
@keyframes zk-breathe { from { transform: translate3d(0, 1px, 0) scale(.985); } to { transform: translate3d(0, -2px, 0) scale(1.02); } }
.dndone .pre { text-align: center; }
@media (prefers-reduced-motion: reduce) { .pack .pk-art::after, .pack .sp, .pack.c6 .pk-pct, .dndone .dn-big { animation: none; } .pack .sp { display: none; } }

/* Coin of Luck: монета из игры (без фона) рядом с «CoL» — по центру строки */
img.coin { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.3em; margin: 0 .12em 0 .05em; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.dnrate { display: flex; align-items: center; gap: 4px; }
.dnrate img.coin { width: 19px; height: 19px; margin: 0; vertical-align: 0; flex: none; }
.dnsum img.coin { width: 17px; height: 17px; margin: 0 1px 0 0; vertical-align: 0; align-self: center; flex: none; }
.dnsum span { align-items: center; }
.dnq-hint img.coin { width: 15px; height: 15px; }

/* свайп без рывков: собранный заранее соседний экран ждёт скрытым — не рисуется и не анимируется */
.peek { contain: layout paint style; }
.peek.pre { visibility: hidden; content-visibility: hidden; }
/* пока тянем: размытия под плашками и блики выключены — каждый кадр только сдвиг слоёв */
.swiping .htop .chips .chip, .swiping .htop .share-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .62); }
.swiping .pack .pk-art::after, .swiping .pack .sp { animation-play-state: paused; }
.tabbar .in.tbtr button { transition: color .22s ease-out; }
.tabbar .in.tbtr button svg { transition: transform .22s ease-out; }
.dnsum .cu { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; }

/* экраны бота внутри приложения: карточка раздела, текст, кнопки бота */
.botscr { overflow: hidden; margin-top: 6px; }
.botscr .botcard { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--edge); }
.botscr .bottx { padding: 12px 14px 14px; font-size: 14.5px; line-height: 1.5; color: #e6dfd0; word-break: break-word; }
.botscr .bottx b { color: #f2e6c9; }
.botscr .bottx code { font-family: var(--f-num); color: var(--acc2); letter-spacing: .3px; }
.botscr .bottx a { color: var(--acc2); }
.botscr .bottx blockquote { margin: 6px 0; padding: 4px 10px; border-left: 2px solid var(--acc); color: #d6cebd; }
.botscr.busy { opacity: .55; transition: opacity .15s; }
.botnote { margin: 6px 0 0; }
.botrows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.botrow { display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 6px; }
.bbtn { min-height: 42px; padding: 8px 10px; font-size: 14px; font-weight: 500; line-height: 1.25; color: #f2e6c9; text-align: center;
  background: linear-gradient(180deg, #24201a, #17140f); border: 1px solid var(--edge); box-shadow: var(--frame); }
.bbtn:active { border-color: var(--acc); background: var(--acc-bg); transform: translateY(1px); }
.botin { margin-top: 10px; }
.botin input { height: 42px; background: #0b0a09; border: 1px solid var(--edge); padding: 0 10px; color: var(--text); font-size: 15px; }
.botin input:focus { border-color: var(--acc); outline: 0; }

/* экран бота: абзацы, нумерованные и маркированные списки, строки «название — значение» */
.botscr .bottx p { margin: 0 0 10px; }
.botscr .bottx > :last-child { margin-bottom: 0; }
.botscr .bottx .bol { list-style: none; counter-reset: bo; margin: 0 0 10px; padding: 0; }
.botscr .bottx .bol li { counter-increment: bo; position: relative; padding: 0 0 8px 30px; }
.botscr .bottx .bol li::before { content: counter(bo); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center;
  font: 600 12px/1 var(--f-num); color: var(--acc-ink); background: var(--acc); }
.botscr .bottx .bul { list-style: none; margin: 0 0 10px; padding: 0; }
.botscr .bottx .bul li { position: relative; padding: 0 0 7px 16px; }
.botscr .bottx .bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--acc); transform: rotate(45deg); }
.botscr .bottx .bkv { margin: 0 0 10px; }
.botscr .bottx .bkv .kv { padding: 7px 0; font-size: 14px; }
.botscr .bottx .bkv .kv b { font-size: 15px; }
.botscr .bottx a { text-decoration: none; border-bottom: 1px dashed rgba(209, 170, 90, .5); }
.bbtn.pri { color: var(--acc-ink); background: linear-gradient(180deg, #f0cf86, #c99a45); border-color: #8a6a2a; font-weight: 600; }
.bbtn.ext::after { content: "↗"; margin-left: 6px; opacity: .7; }
.brows { margin: 0; }
.botscr.appear, .bonl.appear { animation: zk-fade .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes zk-fade { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

/* значки вместо эмодзи бота: в кнопках и в списках текста */
.bbtn.hasic { display: flex; align-items: center; justify-content: center; gap: 8px; }
.bbtn svg { width: 17px; height: 17px; color: var(--acc); flex: none; }
.bbtn.pri svg { color: var(--acc-ink); }
.botscr .bottx .bkv .kv b { font-family: var(--f-ui); font-weight: 600; font-size: 14.5px; }
.botscr .bottx .bil { list-style: none; margin: 0 0 10px; padding: 0; }
.botscr .bottx .bil li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.botscr .bottx .bil li + li { border-top: 1px solid #2a251e; }
.botscr .bottx .bil svg { width: 18px; height: 18px; margin-top: 2px; color: var(--acc); flex: none; }

/* строки «название — значение» в экранах бота: название не сжимается, значение переносится; прогресс «3 из 20» — полоской */
.botscr .bottx .bkv .kv { flex-wrap: wrap; align-items: baseline; }
.botscr .bottx .bkv .kv span { flex: none; max-width: 48%; }
.botscr .bottx .bkv .kv b { flex: 1; min-width: 0; }
.botscr .bottx .bkv .kv .kvbar { flex-basis: 100%; height: 4px; margin-top: 6px; background: #0b0a09; box-shadow: inset 0 0 0 1px #2a251e; }
.botscr .bottx .bkv .kv .kvbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }

.botscr .bottx .bstep { margin: 0 0 12px; font: 600 12.5px/1 var(--f-ui); color: var(--acc2); letter-spacing: .3px; text-transform: uppercase; }
.botscr .bottx .bstep .kvbar { display: block; height: 4px; margin-top: 7px; background: #0b0a09; box-shadow: inset 0 0 0 1px #2a251e; }
.botscr .bottx .bstep .kvbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }

/* «Сундуки Глифа»: сверху — где ты сейчас (текст слева, сундук справа), три шага, лестница I–VII */
.gch { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 14px 12px 14px 16px; border: 1px solid var(--edge); box-shadow: var(--frame);
  background: radial-gradient(120% 90% at 85% 50%, rgba(209, 170, 90, .16), transparent 60%), var(--panel); }
.gch.ready { border-color: rgba(111, 191, 90, .55); background: radial-gradient(120% 90% at 85% 50%, rgba(111, 191, 90, .16), transparent 60%), var(--panel); }
.gch-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.gch-tx small { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; }
.gch-tx b { font-family: var(--f-title); font-weight: 400; font-size: 26px; line-height: 1.05; color: #f2e6c9; }
.gch-tx span { font-size: 14px; line-height: 1.35; color: #e6dfd0; }
.gch-tx .ok { color: var(--ok); font-weight: 600; }
.gch-tx .warn { color: #e0a86a; }
.gch-tx .who { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.gch-bar { height: 6px; margin-top: 2px; background: #0b0a09; box-shadow: inset 0 0 0 1px #2a251e; }
.gch-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.gch-img { width: 96px; height: 96px; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(232, 200, 126, .35)); animation: zk-breathe 3.2s ease-in-out infinite alternate; }
.gch-img.dim { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)) saturate(.8); }
.gch.done .gch-img { filter: drop-shadow(0 0 16px rgba(111, 191, 90, .45)); }
.gca { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gca svg { width: 17px; height: 17px; color: var(--acc); }
.gchow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gchow div { display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; background: #0f0e0c; border: 1px solid var(--edge); font-size: 12.5px; line-height: 1.3; color: #d6cebd; }
.gchow b { width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; color: var(--acc-ink); background: var(--acc); }
.gcl .gcr { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.gcl .gcr + .gcr { border-top: 1px solid #2a251e; }
.gcl .gci { position: relative; width: 46px; height: 46px; flex: none; }
.gcl .gci img { width: 100%; height: 100%; display: block; }
.gcl .gcr.lock .gci img { filter: grayscale(1) brightness(.5); }
.gcl .gcr.now { background: linear-gradient(90deg, var(--acc-bg), transparent 70%); }
.gcl .gcr.now .gci img { filter: drop-shadow(0 0 8px rgba(232, 200, 126, .6)); }
.gcl .gci .ck, .gcl .gci .lk { position: absolute; right: -3px; bottom: -2px; width: 17px; height: 17px; border: 1px solid #050404; }
.gcl .gci .ck { background: var(--ok); }
.gcl .gci .ck::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border-right: 2px solid #0c1508; border-bottom: 2px solid #0c1508; transform: rotate(45deg); }
.gcl .gci .lk { background: #2a251e; }
.gcl .gci .lk::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 6px; background: var(--dim); }
.gcl .gci .lk::after { content: ""; position: absolute; left: 5px; top: 3px; width: 3px; height: 4px; border: 1.5px solid var(--dim); border-bottom: 0; }
.gcl .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.gcl .tx b { font-size: 15px; font-weight: 600; color: #f2e6c9; }
.gcl .gcr.lock .tx b { color: var(--dim); }
.gcl .tx small { font-size: 12.5px; color: var(--dim); }
.gcside { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.gcside img { width: 64px; height: 64px; flex: none; }
.gcside.rev { flex-direction: row-reverse; }
.gcside b { display: block; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: #e6dfd0; margin-bottom: 8px; }
/* «Правила»: строка-главное со значком, разделы — раскрывающиеся карточки со своими картинками */
.rlead { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; font-size: 14px; line-height: 1.4; color: #d6cebd; }
.rlead img { width: 46px; height: 46px; flex: none; }
.rules { display: flex; flex-direction: column; gap: 8px; }
.rsec { background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--frame); }
.rsec.open { border-color: rgba(209, 170, 90, .5); }
.rhead { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; }
.rhead img { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.rhead .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rhead .tx b { font-size: 16px; font-weight: 600; color: #f2e6c9; }
.rhead .tx small { font-size: 12.5px; color: var(--dim); }
.rhead .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc); transform: rotate(45deg); margin: -4px 6px 0; transition: transform .2s; }
.rsec.open .rhead .chev { transform: rotate(225deg); margin-top: 4px; }
.rbody { padding: 2px 14px 14px; font-size: 14.5px; line-height: 1.5; color: #e6dfd0; animation: zk-fade .22s ease-out both; }
.rbody .bol { list-style: none; counter-reset: bo; margin: 0; padding: 0; }
.rbody .bol li { counter-increment: bo; position: relative; padding: 0 0 8px 30px; }
.rbody .bol li::before { content: counter(bo); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; font: 600 12px/1 var(--f-num); color: var(--acc-ink); background: var(--acc); }
.rbody .bul { list-style: none; margin: 0; padding: 0; }
.rbody .bul li { position: relative; padding: 0 0 7px 16px; }
.rbody .bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; background: var(--acc); transform: rotate(45deg); }
.rpath { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; }
.rpath span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 4px; font-size: 13px; background: #0f0e0c; border: 1px solid var(--edge); }
.rpath span:last-of-type { border-color: rgba(214, 80, 64, .55); color: #f0a090; }
.rpath b { width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; color: var(--acc-ink); background: var(--acc); }
.rpath .chev-r { width: 6px; height: 6px; border-right: 1.5px solid var(--dim2); border-bottom: 1.5px solid var(--dim2); transform: rotate(-45deg); }

/* «Онлайн»: цифра поверх арта города */
.bonl { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; aspect-ratio: 16 / 10; margin-top: 6px; padding: 16px;
  background: center / cover no-repeat; border: 1px solid var(--edge); box-shadow: var(--frame); overflow: hidden; }
.bonl::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 5, .92), rgba(8, 7, 5, .35) 55%, rgba(8, 7, 5, .1)); }
.bonl > * { position: relative; }
.bonl b { font-size: 64px; font-weight: 500; line-height: 1; color: #f6dc9a; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.bonl span { font-size: 16px; color: #f2e6c9; }
.bonl small { font-size: 12.5px; color: var(--dim); }
/* кнопки разделов с картинкой-значком */
.row.artrow .ic { width: 52px; height: 52px; background: none; border: 0; }
.row.artrow .ic img.bart { width: 52px; height: 52px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.bempty img { width: 72px; height: 72px; opacity: .9; }

/* онлайн сервера на главной: маленькая плашка в углу шапки, точка «живая», изменение всплывает */
.htop .onl { position: absolute; left: 14px; top: 46px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .8); }   /* без фона и обводки — чистая надпись поверх арта */
.htop .onl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc2); animation: zk-live 2s ease-out infinite; }
@keyframes zk-live { 0% { box-shadow: 0 0 0 0 rgba(232, 200, 126, .6); } 70%, 100% { box-shadow: 0 0 0 6px rgba(232, 200, 126, 0); } }
.htop .onl b { font-size: 15px; font-weight: 500; color: #f6e7c4; }
.htop .onl small { font-size: 12px; color: #cfc4ad; }
.htop .onl em { position: absolute; left: calc(100% + 6px); top: 5px; font: 600 12px/1 var(--f-num); font-style: normal; pointer-events: none; animation: zk-delta 1.6s ease-out forwards; }
.htop .onl em.up { color: var(--ok); }
.htop .onl em.down { color: #e07a6a; }
@keyframes zk-delta { 0% { opacity: 0; transform: translate3d(0, 6px, 0); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, -8px, 0); } }
@media (prefers-reduced-motion: reduce) { .htop .onl .dot { animation: none; } }

/* «● 412 в мире»: точка, цифры и подпись на одной средней линии — высота строки обрезана по заглавным, flex центрирует */
.htop .onl { align-items: center; height: 18px; gap: 6px; }
.htop .onl b, .htop .onl small { display: block; line-height: 1; text-box: trim-both cap alphabetic; }
.htop .onl small { letter-spacing: .2px; }
.htop .onl em { top: 3px; }
/* «Поделиться»: только значок — без фона и обводки, читается тенью поверх арта */
.htop .share-btn { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.htop .share-btn svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .95)) drop-shadow(0 0 6px rgba(0, 0, 0, .7)); }
.swiping .htop .share-btn { background: none; }
/* значок «Поделиться» — на одной линии с «● N в мире» (центр строки онлайна: top 46 + 18/2 = 55 → 55 − 34/2) */
.htop .share-btn { top: 38px; }
/* «● 412 в мире» без text-box (на iOS < 18.2 его нет): цифры и подпись — на общей базовой линии, точка — по центру высоты цифр */
.htop .onl { align-items: baseline; height: auto; line-height: 1; }
.htop .onl b, .htop .onl small { display: inline; line-height: 1; text-box: none; }
.htop .onl .dot { align-self: auto; position: relative; top: -2px; margin-right: 1px; }
/* одинаковые зазоры «точка — цифры — в мире»: цифры пропорциональные (у моноширинных пустые поля по бокам), отступы по 5 px, точка — на середине цифр */
.htop .onl { gap: 5px; }
.htop .onl b { font-variant-numeric: normal; letter-spacing: 0; }
.htop .onl .dot { top: -3px; margin-right: 0; }
.htop .share-btn { top: 36.5px; }   /* центр значка = середина цифр онлайна */
/* «в мире» — по центру цифр: середина строчных (x-height 7) на середине цифр (13) → подпись выше базовой линии на (13 − 7) / 2 = 3 px */
.htop .onl small { position: relative; top: -3px; }
/* онлайн — точка ровно под квадратиком статуса «в сети» (рамка 1 + поле 9 плашки): не выступает за плашку выше */
.htop .onl { left: 22px; }

/* кнопки со значком: значок и надпись — одна группа по центру; надпись в одну строку (перенос растягивал её на всю
   ширину и прижимал значок к краю), длинная — с многоточием */
.btn > .lbl, .bbtn > .lbl { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* у .lbl рамка = высота заглавных (text-box), и overflow срезал хвосты «у», «д» и «Й»: поле вокруг текста шире,
   отрицательный отступ возвращает размер — центр тот же */
.btn > .lbl, .bbtn > .lbl { padding: .32em 0; margin: -.32em 0; }
.btn > svg + .lbl, .bbtn > svg + .lbl { text-align: left; }
.bbtn.hasic { padding-left: 12px; padding-right: 12px; }

/* подсказка сундука: картинка, условие, где ты сейчас, ссылка на вики */
.gcl .gcr { cursor: pointer; }
.gcl .gcr:active { background: var(--acc-bg); }
.gch-img { cursor: pointer; }
.sh-head.gctip > img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.sh-head.gctip > img.lock { filter: grayscale(1) brightness(.55); }
.gctip-st { margin: 12px 0 4px; padding: 10px 12px; font-size: 14px; border: 1px solid var(--edge); background: #0f0e0c; }
.gctip-st.ok { color: var(--ok); border-color: rgba(111, 191, 90, .45); }
.gctip-st.now { color: var(--acc2); border-color: rgba(209, 170, 90, .55); }
.gctip-st.lock { color: var(--dim); }
.sh-head.gctip > img { background: none; border: 0; box-shadow: none; padding: 0; }

/* ровные зазоры на глаз (замер по пикселям): у «в» своё поле слева (~1.3 px), у точки — кольцо пульса справа →
   точка на 1 px дальше от цифр, подпись на 1 px ближе: оба зазора ≈ 6 px */
.htop .onl .dot { margin-right: 1px; }
.htop .onl small { margin-left: -1px; }

/* «Кланы»: вверху — объявление (своё или «подай»), ниже — карточки кланов, «Вступить» прямо на карточке */
.clcta { align-items: center; }
.clcta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.clcta b { font-size: 16px; font-weight: 600; color: #f2e6c9; margin: 0; }
.clcta small { font-size: 13px; line-height: 1.35; color: var(--dim); }
.clcta .btn.sm { margin-top: 4px; }
.clmine > div { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.clmine small { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.clmine b { font-size: 16px; font-weight: 600; color: #f2e6c9; margin: 0; }
.clmine img, .clcta img { width: 64px; height: 64px; }
.sect .cnt { margin-left: 6px; }
.clans { display: flex; flex-direction: column; gap: 8px; }
.clcard { padding: 12px; background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--frame); }
.clh { display: flex; align-items: center; gap: 12px; }
.clh img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55)); }
.clh .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.clh .tx b { font-size: 17px; font-weight: 600; color: #f2e6c9; }
.chip.sm { height: 22px; padding: 0 8px; font-size: 12px; }
.clm { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.clm > div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #d6cebd; }
.clm > div > span:first-child { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: var(--acc); }
.clm svg { width: 16px; height: 16px; }
.clf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.clf .clc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--acc2); background: none; border: 0; padding: 0; }
.clf .btn.sm { flex: none; min-width: 120px; }
.sh-head > img.bare { background: none; border: 0; box-shadow: none; width: 48px; height: 48px; object-fit: contain; }
.clform .field { margin-top: 10px; }
.clform label { display: block; margin-bottom: 5px; font-size: 12.5px; color: var(--dim); }
.clform .bad { border-color: var(--bad) !important; }
.sh-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 14px; text-align: center; }
.sh-done img { width: 84px; height: 84px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.sh-done b { font-size: 17px; font-weight: 600; color: #f2e6c9; }
.sh-done span { font-size: 14px; line-height: 1.4; color: var(--dim); }
.sh-done + .btn, .sh-done + .row2 { margin-top: 4px; }
.sh-done ~ .btn + .btn { margin-top: 8px; }

/* значки клана и альянса из игры — перед названием, как над головой персонажа */
.clh .tx > b, .clmine b { display: flex; align-items: center; gap: 8px; min-width: 0; }
.clh .tx > b > .lbl, .clmine b > .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .32em 0; margin: -.32em 0; }
.clh .crest img, .gcside .crest img { height: 18px; filter: none; }
.clh .crest img.ally, .gcside .crest img.ally { width: 12px; }
.clh .crest img.clan, .gcside .crest img.clan { width: 24px; }
.sh-head .tx > b > .crest { vertical-align: -3px; margin-right: 7px; }
/* в ряду кнопки рядом, а не столбиком: отступ «кнопка под кнопкой» (8 px) сдвигал вторую вниз — одна линия, одна высота */
.row2 > .btn + .btn, .row2 > .bbtn + .bbtn, .row2 > .btn + .bbtn, .row2 > .bbtn + .btn { margin-top: 0; }
.row2 { align-items: stretch; }

/* «Дозор»: сразу видно, что можно получать — иконка из игры, что это и переключатель; выключенное приглушено */
.ntf-top { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ntf-top .tx { flex: 1; min-width: 0; }
.ntf-top .tx b { display: block; font-size: 16px; font-weight: 600; color: #f2e6c9; }
.ntf-top .tx small { display: block; font-size: 13px; color: var(--dim); margin-top: 3px; }
.ntf-top .ntf-ok { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ok); border: 1px solid rgba(111, 191, 90, .45); flex: none; }
.ntf-top .ntf-ok svg { width: 18px; height: 18px; }
.nrow { min-height: 58px; }
.nrow .ic { width: 38px; height: 38px; background: #0b0a09; }
.nrow .ic img { width: 36px; height: 36px; transition: filter .15s, opacity .15s; }
.nrow:not(.on) .ic img { filter: grayscale(.85) brightness(.7); }
.nrow .tx small { white-space: normal; line-height: 1.3; margin-top: 2px; }
.feed.short .ftx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.feed.short + .btn { margin-top: 10px; }
.ftx { white-space: pre-line; }

/* кнопки без «жёлтой плитки» (владелец 26.10: дёшево смотрится): тёмная бронза, золотая кромка и золотая надпись,
   как кнопки окон в игре; второстепенные — серые; заливка золотом осталась только у мелких значков и меток */
.btn { background: linear-gradient(180deg, #3b2f1e 0%, #2a2216 52%, #1f1910 100%); color: #f2d999; font-weight: 600; letter-spacing: .35px;
  border: 1px solid #a07b3c; text-shadow: 0 1px 1px rgba(0, 0, 0, .85);
  box-shadow: inset 0 1px 0 rgba(255, 228, 165, .24), inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 -10px 16px rgba(0, 0, 0, .22), 0 0 0 1px #050404, 0 2px 8px rgba(0, 0, 0, .35); }
.btn svg { color: #e8c87e; }
.btn:active { background: linear-gradient(180deg, #2c2316, #1d170f); border-color: #c99d50; }
.btn.ghost { background: var(--panel2); color: #d9d0bf; border-color: var(--edge); text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .06), 0 0 0 1px #050404; }
.btn.ghost svg { color: var(--dim); }
.bbtn.pri { color: #f2d999; background: linear-gradient(180deg, #3b2f1e, #231c12); border-color: #a07b3c; text-shadow: 0 1px 1px rgba(0, 0, 0, .85);
  box-shadow: inset 0 1px 0 rgba(255, 228, 165, .2), 0 0 0 1px #050404; }
.bbtn.pri svg { color: #e8c87e; }
/* «Дозор»: справа — «Включить всё» или «Всё включено», под ним серая «Отключить всё» */
.ntf-act { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.ntf-top .ntf-ok { width: auto; height: 32px; padding: 0 10px; gap: 6px; display: flex; align-items: center; font-size: 13.5px; font-weight: 500; }
.tlink { background: none; border: 0; padding: 4px 6px; font-size: 13px; color: var(--dim); text-decoration: underline; text-decoration-color: rgba(168, 158, 140, .35);
  text-underline-offset: 3px; cursor: pointer; }
.tlink:active { color: var(--text); }

/* «Дозор»: одна кнопка «Включить всё» ⇄ «Отключить всё», ширина одна — карточка не прыгает при переключении */
.ntf-top .ntf-btn { min-width: 156px; }
.ntf-top .ntf-btn svg { width: 16px; height: 16px; }

/* «Чаты»: строка ввода сразу под окном чата, в потоке (не fixed — внутри сдвинутого экрана fixed считается от него) */
.composer { position: static; left: auto; right: auto; bottom: auto; margin: 8px 0 0; padding: 0; background: none; border-top: 0; max-width: none; }

/* ---------- приветствие (нет привязанного персонажа): арт, два шага, «Ввести код» и «Демо-версия» ---------- */
.wel { margin: -10px -12px 0; min-height: calc(100dvh - var(--safe-b)); display: flex; flex-direction: column; }
.wel-hero { position: relative; height: min(46vh, 360px); overflow: hidden; isolation: isolate; flex: none; }
/* LA2BEST: вместо видео-петли — Эльфи на тёмном золотом фоне */
.wel-hero .wel-top { position: absolute; top: 18px; right: 18px; z-index: 4; margin: 0; }
.wel-hero.elfie { background: radial-gradient(120% 90% at 50% 28%, #2b2419 0%, #17140f 46%, var(--bg) 100%); }
.wel-hero.elfie img { object-fit: contain; object-position: 50% 100%; filter: brightness(.96) saturate(1.02); animation: none; }
.wel-hero.elfie::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(58% 48% at 50% 44%, rgba(209, 170, 90, .18), transparent 72%); }
.wel-logo { text-align: center; padding: 2px 0 8px; }
.wel-logo img { height: 38px; width: auto; opacity: .96; }
.wel-hero img, .wel-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
  filter: brightness(.8) saturate(.95); transform-origin: 62% 45%; animation: welZoom 28s ease-in-out infinite alternate; }
.wel-hero video { opacity: 0; transition: opacity .8s ease; }
.wel-hero video.on { opacity: 1; }
.wel-hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 13, 11, .55) 0%, rgba(14, 13, 11, 0) 22%, rgba(14, 13, 11, 0) 52%, var(--bg) 100%),
    radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.wel-motes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.wel-motes i { position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%; background: #ffe2a0;
  box-shadow: 0 0 6px 1px rgba(255, 200, 110, .8); opacity: 0; animation: welMote 9s linear infinite; }
.wel-motes i:nth-child(1) { left: 58%; animation-delay: 0s; }
.wel-motes i:nth-child(2) { left: 72%; animation-delay: 1.6s; animation-duration: 11s; }
.wel-motes i:nth-child(3) { left: 84%; animation-delay: 3.1s; }
.wel-motes i:nth-child(4) { left: 64%; animation-delay: 4.7s; animation-duration: 12s; }
.wel-motes i:nth-child(5) { left: 90%; animation-delay: 6.2s; animation-duration: 10s; }
.wel-motes i:nth-child(6) { left: 30%; animation-delay: 7.4s; animation-duration: 13s; }
@keyframes welZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes welMote { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(-18px, -300px); opacity: 0; } }

.wel-body { position: relative; z-index: 3; margin-top: -64px; padding: 0 20px calc(var(--safe-b) + 24px); display: flex; flex-direction: column; flex: 1; }
.wel-kick { display: flex; align-items: center; gap: 10px; color: var(--acc); font-family: var(--f-num); font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; }
.wel-kick::before, .wel-kick::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(209, 170, 90, .55)); }
.wel-kick::after { background: linear-gradient(90deg, rgba(209, 170, 90, .55), transparent); }
.wel-t { margin: 10px 0 6px; text-align: center; font-size: 31px; line-height: 1.1; color: #f2e6c9;
  background-image: var(--gold-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.wel-sub { text-align: center; color: var(--dim); font-size: 14px; line-height: 1.4; margin: 0 auto 18px; max-width: 300px; }

.wel-steps { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.wel-steps::before { content: ""; position: absolute; left: 15px; top: 30px; bottom: 30px; width: 1px; background: linear-gradient(var(--acc), rgba(209, 170, 90, .15)); }
.wel-steps li { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.wel-steps i { position: relative; flex: none; width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-family: var(--f-num); font-size: 15px; font-weight: 600; color: #f2d999; }
.wel-steps i::before { content: ""; position: absolute; inset: 5px; z-index: -1; transform: rotate(45deg); border: 1px solid #a07b3c;
  background: linear-gradient(180deg, #3b2f1e, #1f1910); box-shadow: 0 0 0 1px #050404, 0 0 12px rgba(209, 170, 90, .25); }
.wel-steps li { isolation: isolate; }
.wel-steps span { color: var(--text); font-size: 15px; line-height: 1.35; }

.wel-go { height: 50px; font-size: 16px; }
.wel-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--dim2); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.wel-or::before, .wel-or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

/* «Демо-версия» — не вторая кнопка-плитка, а табличка с камнем-ромбом и бегущим бликом по кромке */
.wel-demo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left;
  color: var(--text); background: linear-gradient(180deg, rgba(34, 30, 24, .92), rgba(20, 18, 15, .92)); border: 1px solid var(--edge-hi);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .07), 0 0 0 1px #050404, 0 6px 20px rgba(0, 0, 0, .35); cursor: pointer; font: inherit; }
.wel-demo::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 226, 160, .10), transparent); animation: welShine 5.5s ease-in-out 1.2s infinite; }
.wel-demo:active { transform: translateY(1px); border-color: #a07b3c; }
.wd-ic { position: relative; flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #f2d999; isolation: isolate; }
.wd-ic::before { content: ""; position: absolute; inset: 6px; z-index: -1; transform: rotate(45deg); border: 1px solid #a07b3c;
  background: radial-gradient(circle at 50% 35%, #4a3a22, #1c160e 75%); box-shadow: 0 0 0 1px #050404, 0 0 14px rgba(209, 170, 90, .3); }
.wd-ic svg { width: 15px; height: 15px; margin-left: 2px; }
.wd-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wd-tx b { font-family: var(--f-title); font-weight: 400; font-size: 18px; color: #f2d999; line-height: 1.1; }
.wd-tx small { color: var(--dim); font-size: 13px; line-height: 1.3; }
.wd-go { flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--acc); border-top: 1.5px solid var(--acc); transform: rotate(45deg); }
@keyframes welShine { 0% { left: -40%; } 45%, 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .wel-hero img, .wel-hero video, .wel-demo::before { animation: none; } .wel-motes { display: none; } }

/* «Демо ×» в шапке — выйти из демо обратно в своё приложение (только когда открыто из Telegram) */
.demo.out { border: 0; cursor: pointer; gap: 6px; font-family: inherit; }
.demo.out .dx { font-size: 15px; line-height: 1; margin-top: -1px; }

/* LA2BEST: витрины сетов */
.sets { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.setcard { position: relative; display: block; width: 100%; padding: 0; text-align: left; border: 1px solid var(--edge); box-shadow: var(--frame); background: #000; overflow: hidden; }
.setcard img { display: block; width: 100%; height: auto; filter: brightness(.9); }
.setcard .sc-sh { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, .88) 100%); }
.setcard .sc-tx { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.setcard .sc-tx b { font-family: var(--f-title); font-size: 19px; color: #f2e6c9; font-weight: 600; letter-spacing: .5px; }
.setcard .sc-tx small { color: var(--dim); font-size: 12px; }
.sethero { border: 1px solid var(--edge); box-shadow: var(--frame); margin-top: 12px; background: #000; }
.sethero img { display: block; width: 100%; height: auto; }

.row .ic.pay{width:22px;height:22px;background:none;border:0;border-radius:0}
.row .ic.pay .payic{width:22px;height:22px;display:block;border-radius:50%}
.row[data-a="dn-method"]{gap:7px}
.row[data-a="dn-method"] .tx b{line-height:22px}

.pack .pr{display:block;font-size:11px;line-height:1.1;color:#b9a06a;margin-top:1px;font-weight:600}
/* Private requests: use the app's existing dark bronze panels and compact controls. */
.desk-toolbar{display:flex;gap:8px;justify-content:space-between;margin:14px 0}
.desk-toolbar .btn{width:auto;min-width:0}
.desk-summary{display:grid;gap:5px;margin-bottom:18px}
.desk-summary strong{font:600 28px var(--font-num,inherit);color:var(--gold,#dec17b)}
.desk-summary p{margin:5px 0 0}
.desk-log .bub{max-width:96%;overflow-wrap:anywhere}
.desk-log .bub .btn{margin:10px 0 0;width:auto;max-width:100%}
.desk-text{white-space:pre-wrap;overflow-wrap:anywhere}
.desk-preview{margin:14px 0}
.desk-preview img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:12px auto 0}
.desk-decision{margin-top:24px;border-color:#8b7042}
.desk-decision .btn{margin-top:10px;white-space:normal;line-height:1.35;min-height:44px}
.desk-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:14px 0}
.desk-check input{width:20px;height:20px;flex-shrink:0;margin:2px 0;accent-color:#b79652}
.st-queued{color:#b7d198}.st-review_due,.st-granting{color:#e3bb75}
#desk-text{min-height:110px}
.desk-badge:empty{display:none}.desk-badge{display:flex;flex-shrink:0}
.desk-unread{border-color:var(--acc);color:var(--acc2)}
/* Staff notices: bronze frame, engraved seal, readable message hierarchy. */
#desk-alert{position:fixed;z-index:900;top:calc(var(--safe-t) + 12px);left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));max-width:440px;margin:0 auto;isolation:isolate;background:linear-gradient(115deg,#30271b 0%,#211d16 36%,#191713 100%);border:1px solid #75603b;box-shadow:inset 0 0 0 3px #15130e,inset 0 0 0 4px #d2b16f16,0 12px 32px #0009;color:#eee5cf;animation:desk-notice-in .22s ease-out}
#desk-alert::before{content:"";position:absolute;pointer-events:none;top:-1px;left:22px;right:22px;height:1px;background:linear-gradient(90deg,transparent,#d2b16f 35%,#d2b16f 65%,transparent)}
.desk-alert-body{border:0;border-radius:0;background:transparent;color:inherit;text-align:left;width:100%;min-width:0;padding:17px 18px;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:13px;cursor:pointer;font:inherit}
.desk-alert-seal{display:grid;place-items:center;width:42px;height:48px;margin-top:3px;color:#d2b16f;background:radial-gradient(ellipse,#b88b3924,transparent 72%)}
.desk-alert-seal svg{width:32px;height:36px;filter:drop-shadow(0 2px 1px #0008)}
.desk-alert-copy{display:grid;gap:5px;min-width:0}
.desk-alert-copy small{padding-right:23px;color:#c5a56b;font-size:11px;font-weight:500;letter-spacing:.55px;line-height:1.4}
.desk-alert-copy b{padding-right:18px;color:#f3e9d2;font-size:16px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}
.desk-alert-message{color:#c8bfac;font-size:14px;font-weight:400;line-height:1.45;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.desk-alert-close{position:absolute;right:5px;top:5px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:0;background:transparent;color:#a79a7e;cursor:pointer}
.desk-alert-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5}
.desk-alert-close:hover{color:#f3e9d2;background:#d2b16f0d}
.desk-alert-body:focus-visible,.desk-alert-close:focus-visible{outline:2px solid #d2b16f;outline-offset:-5px}
@keyframes desk-notice-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.desk-alert-body{padding:15px 13px;grid-template-columns:32px minmax(0,1fr);gap:10px}.desk-alert-seal{width:32px}.desk-alert-copy b{font-size:15px}.desk-alert-message{font-size:13px}}
@media(prefers-reduced-motion:reduce){#desk-alert{animation:none}}


.desk-badge{display:block;margin:-4px 0 12px}.desk-unread{width:100%;display:flex;align-items:center;gap:9px;min-height:36px;padding:7px 11px;border:1px solid var(--edge-hi);background:var(--acc-bg);color:var(--acc2);font:500 13px inherit;text-align:left;cursor:pointer}.desk-unread svg{width:18px;height:18px;flex:none}.desk-unread b{margin-left:auto}.desk-summary strong{font-family:Oswald,sans-serif;font-weight:600;font-size:28px}

/* Watch labels and delayed-source status remain readable on narrow phones. */
.nrow .tx b { white-space: normal; overflow: visible; line-height: 1.3; }
.nrow .soon { margin-top: 3px; vertical-align: middle; }

/* Compact game-channel controls, same square gold frames as the application. */
.chat .who.pm{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left}
.chat-status{margin:0 0 7px}.composer button:disabled{opacity:.45;cursor:default}

/* All writing conversations share the visible mobile viewport. */
html.chat-active,html.chat-active body{overflow:hidden}
html.chat-active #app{min-height:0;padding-bottom:0}
/* Navigation is hidden by the shared app-keyboard transition below. */
html.chat-keyboard #view>.top{display:none}
html.chat-keyboard #view>h1{font-size:23px;margin:4px 0 6px}
html.chat-keyboard .desk-status{margin-bottom:6px}
.composer input,#desk-text{font-size:16px}
.desk-scroll{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.desk-scroll .desk-log{margin-bottom:0}
 .desk-composer{margin-top:8px;background:var(--bg)}
.desk-compose-box{border:1px solid var(--edge-hi);background:#100e0b;box-shadow:var(--frame);padding:8px}
.desk-compose-box:focus-within{border-color:var(--acc)}
.desk-compose-box #desk-text{display:block;width:100%;min-height:44px;max-height:112px;padding:3px 3px 8px;line-height:1.4;background:none;border:0;resize:none;outline:none;font-size:16px}
.desk-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #a2845030;padding-top:8px}
.desk-attach{display:flex;align-items:center;gap:6px;min-width:0;min-height:40px;color:#c3ad82;cursor:pointer;font-size:12px;line-height:1.2}
.desk-attach svg{width:20px;height:20px;flex:none}.desk-attach span{min-width:0;overflow-wrap:anywhere}
.desk-submit{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;padding:8px 12px;border:1px solid #b7944d;background:linear-gradient(#d6b467,#b18b40);box-shadow:inset 0 1px #f4dda066;color:#201808;font-size:14px;font-weight:600}
.desk-submit svg{width:17px;height:17px}.desk-submit:disabled{opacity:.5}.desk-submit:focus-visible,.desk-attach:focus-within{outline:1px solid var(--acc2);outline-offset:2px}
.desk-file-selected{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:12px;color:var(--dim)}
.desk-file-selected>span{min-width:0;overflow-wrap:anywhere}.desk-file-selected .btn{width:auto;min-height:28px;margin:0;padding:4px 8px;font-size:12px;flex:none}
.desk-composer .desk-file-hint{margin:5px 0 0;font-size:11px}
html.chat-keyboard .desk-file-hint{display:none}
.composer input,.composer .chsel{height:44px}.composer .send{width:44px;height:44px}

html.chat-tight #view>h1,html.chat-tight .desk-status{display:none}

html.chat-keyboard #view>.desk-badge{display:none}

/* LA2BEST Codex/help: readable chapters, original article numbers, existing game-window palette. */
.info-menu { margin:12px 0; }
.info-link { display:flex; align-items:center; gap:12px; width:100%; min-height:64px; padding:13px 14px; text-align:left; background:transparent; color:var(--text); border:0; border-bottom:1px solid var(--edge); }
.info-link:last-child { border-bottom:0; }
.info-link>svg { width:22px; height:22px; flex:0 0 22px; color:var(--acc); }
.info-link>span { flex:1; min-width:0; }
.info-link b { display:block; font-size:16px; font-weight:500; }
.info-link small { display:block; color:var(--dim); font-size:13px; line-height:1.35; margin-top:3px; }
.info-link:hover,.info-link:focus-visible { background:var(--acc-bg); }
.info-link:focus-visible,.info-detail summary:focus-visible { outline:1px solid var(--acc); outline-offset:-2px; }
.info-sections { display:grid; gap:8px; }
.info-detail { border:1px solid var(--edge); background:var(--panel); min-width:0; }
.info-detail summary { display:flex; gap:10px; align-items:center; justify-content:space-between; min-height:54px; padding:13px 14px; cursor:pointer; color:var(--text); font-size:16px; line-height:1.35; list-style:none; }
.info-detail summary::-webkit-details-marker { display:none; }
.info-detail summary span { min-width:0; overflow-wrap:anywhere; }
.info-detail summary .chev { flex-shrink:0; }
.info-detail[open] summary { color:var(--acc2); border-bottom:1px solid var(--edge); }
.info-detail[open] summary .chev { transform:rotate(225deg); }
.info-detail .info-prose { padding:0 14px 8px; }
.info-prose { font-size:15px; line-height:1.55; overflow-wrap:anywhere; }
.info-prose p { margin:12px 0; }
.info-prose h3 { margin:14px 0 3px; font-size:14px; color:var(--acc); font-weight:500; }
.info-prose h3+p { margin-top:3px; }
.info-intro { color:var(--dim); margin-bottom:16px; font-size:14px; }
.info-search { display:flex; align-items:center; gap:10px; border:1px solid var(--edge-hi); background:#0a0908; padding:0 12px; margin-bottom:12px; }
.info-search>svg { width:18px; height:18px; flex:0 0 18px; color:var(--acc); }
.info-search input { min-width:0; width:100%; height:48px; border:0; background:transparent; padding:0; font-size:16px; color:var(--text); }
.info-search:focus-within { border-color:var(--acc); }

/* Rules follow the X1 chapter-card layout, with the complete LA2BEST Codex. */
.info-rule summary { list-style:none; cursor:pointer; }
.info-rule summary::-webkit-details-marker { display:none; }
.info-rule[open] { border-color:rgba(209,170,90,.5); }
.info-rule[open] .rhead .chev { transform:rotate(225deg); margin-top:4px; }
.info-rule .rhead .tx b { overflow-wrap:anywhere; }
.info-introduction { margin:0 0 8px; }
.info-introduction>summary { cursor:pointer; padding:10px 14px; color:var(--dim); font-size:13px; }
/* Long character names must not push currency and mail off a narrow screen. */
.top>.pill[data-a="chars-sheet"] { min-width:0; flex:0 1 auto; }
.top>.pill[data-a="chars-sheet"]>.lbl { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.top>.pill[data-a="chars-sheet"]>.chev { flex-shrink:0; }
.top>.pill.num { flex-shrink:0; }
.top>.ico-btn { flex-shrink:0; }
@media(max-width:360px) {
  .top { gap:4px; }
  .top>.pill { padding:0 6px; gap:4px; }
  .top>.pill[data-a="chars-sheet"]>svg { display:none; }
  .top .srv-option { min-width:34px; padding:3px 4px; }
  .top>.grow { flex:1 1 0; min-width:0; }
  .top>.demo { max-width:36px; overflow:hidden; text-overflow:ellipsis; }
}

.info-detail summary .chev { width:8px; height:8px; border-right:1.5px solid var(--acc); border-bottom:1.5px solid var(--acc); transform:rotate(45deg); margin-right:4px; }
.info-detail[open] summary .chev { transform:rotate(225deg); }
.top>.pill.back { min-width:0; flex:0 1 auto; }
.top>.pill.back>.lbl { min-width:0; overflow:hidden; text-overflow:ellipsis; }
@media(max-width:420px) {
  .top:has(>.demo) { display:grid; grid-template-columns:minmax(40px,1fr) auto auto 32px; gap:4px; }
  .top:has(>.demo)>.grow { display:none; }
  .top>.demo { grid-column:1 / -1; grid-row:2; order:5; max-width:none; text-align:right; border:0; background:transparent; height:14px; padding:0; line-height:14px; }
}

/* Hide before native keyboard movement; only fade navigation back in. */
.tabbar { transition:opacity 120ms linear,visibility 0s; }
html.keyboard-nav-hidden .tabbar { opacity:0; visibility:hidden; pointer-events:none; transition:none; }
html.app-keyboard:not(.chat-active) #app { padding-bottom:calc(var(--keyboard-inset,0px) + var(--safe-b) + 16px); }
#dn-qty,#dn-nick,#dn-coin { font-size:16px; scroll-margin-block:16px; }
@media(max-width:600px) { #view input:not([type=file]),#view textarea { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .tabbar { transition:none!important; } }

/* Community: original Elfie banners, dark bronze panels and compact mobile forms. */
.co-categories{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0 24px}
.co-categories button{display:grid;grid-template-columns:28px 1fr;gap:6px 9px;align-items:center;text-align:left;padding:14px 10px;background:linear-gradient(135deg,#292318,#14120e);border:1px solid #51452e;border-top-color:#8d7542;color:var(--gold2);min-width:0}
.co-categories svg{width:24px;height:24px;grid-row:1/3;color:#c3a664}
.co-categories b{font-size:16px;line-height:1.2;overflow-wrap:anywhere}
.co-categories small{font-size:12px;line-height:1.35;color:var(--dim)}
.co-categories button:hover,.co-categories button:focus-visible{border-color:var(--gold2);background:#30281a}
.co-banner{width:100%;height:auto;display:block;margin:12px 0 18px;border:1px solid #51452e}
.co-line{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;margin:10px 0}
.co-line h2{margin:0;font-size:21px;overflow-wrap:anywhere}.co-line>.btn{width:auto;min-height:40px;flex-shrink:0;padding:8px 12px}
.co-form{display:grid;gap:14px;margin:16px 0}.co-field{display:grid;gap:7px;color:var(--dim);font-size:13px;min-width:0}
.co-field input,.co-field textarea,.co-field select{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:16px;padding:12px;color:var(--txt);background:#0d0c0a;border:1px solid #51452e;border-radius:0;outline:none}
.co-field input:focus,.co-field textarea:focus,.co-field select:focus{border-color:var(--gold2)}
.co-field textarea{resize:vertical;min-height:112px}.co-entry,.co-clan{background:#191710;border:1px solid #403828;padding:14px;margin:10px 0;overflow-wrap:anywhere}
.co-entry summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer}.co-entry summary>span{display:grid;gap:5px;min-width:0}.co-entry small,.co-clan small{color:var(--dim)}.co-entry em{font-style:normal;flex-shrink:0}
.co-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.co-clan p{margin:10px 0}.co-clan svg{width:16px;height:16px;vertical-align:middle;color:var(--gold2)}.co-clan .btn,.co-entry>.btn{margin-top:12px}
.co-thread{display:flex;width:100%;text-align:left;align-items:center;gap:12px;padding:14px;background:#191710;border:1px solid #403828;margin:8px 0;color:var(--txt)}.co-thread>span{display:grid;gap:5px;min-width:0;flex:1}.co-thread small{color:var(--gold2)}.co-thread>span>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--dim)}
#co-log{overflow-y:auto;overscroll-behavior:contain;min-height:64px;margin-top:12px}.co-message{margin:8px 36px 8px 0;padding:10px 12px;background:#191710;border:1px solid #403828;overflow-wrap:anywhere}.co-message.own{margin:8px 0 8px 36px;border-color:#685738;background:#262117}.co-message small{color:var(--dim);font-size:12px}.co-message p{white-space:pre-wrap;line-height:1.45;margin:5px 0 0}
.co-compose{display:flex;gap:8px;margin-top:10px;align-items:stretch}.co-compose textarea{flex:1;min-width:0;resize:none;border:1px solid #685738;border-radius:0;background:#0d0c0a;color:var(--txt);font:inherit;font-size:16px;padding:10px}.co-compose>.btn{width:48px;min-height:48px;padding:12px;flex-shrink:0}#co-notice:empty{display:none}
@media(max-width:350px){.co-categories button{grid-template-columns:22px 1fr;padding:12px 8px;gap:5px 6px}.co-categories b{font-size:15px}.co-categories svg{width:20px;height:20px}.co-entry summary{align-items:flex-start;flex-direction:column}}

#community-alert{z-index:1001}#community-alert .desk-alert-seal svg{width:25px;height:25px}

.co-prime{display:flex;align-items:center;gap:6px}.co-prime>svg{display:block;flex:0 0 16px}.co-prime>span{min-width:0}

/* Master account: the treasury, using the original donation chest. */
.lk-vault{position:relative;isolation:isolate;margin-top:14px;border:1px solid #93703c;background:#19130d;box-shadow:inset 0 0 0 3px #100d09,inset 0 0 0 4px #42321e,0 8px 24px #0005;padding:4px}
.lk-vault:before,.lk-vault:after{content:"";position:absolute;width:7px;height:7px;top:-4px;background:#e0bc6f;border:1px solid #98733d;transform:rotate(45deg);z-index:2}.lk-vault:before{left:-4px}.lk-vault:after{right:-4px}
.lk-vault-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 15px 0;font-size:11px;letter-spacing:1.5px;color:#b99453}.lk-linked{color:#a0bd83;letter-spacing:0;font-size:11px}.lk-linked:before{content:"";display:inline-block;width:4px;height:4px;background:#9db87c;vertical-align:middle;margin-right:6px;transform:rotate(45deg)}
.lk-treasure{position:relative;display:flex;align-items:center;min-height:210px;padding:22px 18px 26px;overflow:hidden;background:radial-gradient(ellipse at 83% 73%,#9b601f44,transparent 62%)}
.lk-treasure:after{content:"";position:absolute;bottom:0;left:14px;right:14px;height:1px;background:linear-gradient(90deg,transparent,#b18544,transparent)}
.lk-reward{position:relative;z-index:1;width:54%;pointer-events:none}.lk-eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;color:#d0b77f}.lk-discount{display:flex;align-items:baseline;gap:3px;margin:7px 0 4px;color:#f7d58a;text-shadow:0 2px 0 #6c431b,0 5px 16px #0008}.lk-discount>b{font-size:88px;line-height:1;font-weight:600;letter-spacing:-3px}.lk-discount>span{font-family:var(--f-title);font-size:38px;color:#d9b46a}.lk-reward-caption{font-size:12px;color:#bdaa87}
.lk-chest{position:absolute;right:1%;bottom:6px;width:54%;height:auto;max-width:245px;filter:drop-shadow(0 8px 12px #0009);pointer-events:none}
.lk-vault-body{padding:19px 17px 16px;background:linear-gradient(#21190e88,#15120e)}
.lk-next{display:flex;align-items:center;justify-content:space-between;gap:14px}.lk-next>div{display:flex;align-items:center;gap:9px}.lk-next>div>span{font-size:12px;color:#d0b987;max-width:90px;line-height:1.4}.lk-next b{font-family:var(--f-num);font-size:32px;line-height:1;color:#eaca80;white-space:nowrap}.lk-next small{font-size:17px}.lk-next p{font-size:11px;line-height:1.5;color:#a89a81;text-align:right;max-width:115px;margin:0}.lk-next strong{color:#f2d48b;font-size:19px;white-space:nowrap;margin-left:3px}
.lk-meter{height:10px;margin-top:17px;padding:2px;border:1px solid #73572c;background:#080706;box-shadow:0 1px 0 #e4bc5620}.lk-meter>span{display:block;height:100%;background:linear-gradient(90deg,#83551d,#d9ab4c,#ffe3a0);box-shadow:0 0 8px #e6b95435}.lk-meter-label{display:flex;justify-content:space-between;margin:6px 0 16px;font-family:var(--f-num);font-size:12px;color:#ac956b}
.lk-account-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #74552e4d;padding-top:14px}.lk-account-stats>div>span{font-size:11px;color:#a99b85;display:block;margin-bottom:8px}.lk-total>b{font-size:25px;line-height:1.3;color:#e4d7ba;overflow-wrap:anywhere}.lk-accounts{border-left:1px solid #74552e4d;padding-left:16px}.lk-accounts>div{display:flex;gap:13px;flex-wrap:wrap}.lk-accounts>div>span{font-size:11px;color:#af925f;white-space:nowrap}.lk-accounts b{display:inline-block;font-family:var(--f-num);font-size:22px;color:#e4d7ba;margin-left:4px;font-weight:500}
.lk-max{padding:0 0 18px;text-align:center;font-family:var(--f-title);font-size:22px;color:#eaca80}.lk-footnote{font-size:12px;line-height:1.6;color:#9b927f;margin:15px 5px}.lk-actions{margin-top:14px}.lk-actions .lk-site{position:relative;min-height:52px;border-color:#b48b45;color:#f5dc9d;background:linear-gradient(110deg,#302315,#48351b 50%,#302315);box-shadow:inset 0 0 0 2px #171109,inset 0 3px 0 #ffffff12;gap:12px}.lk-site>span{font-size:19px;font-weight:400;color:#bf9d5e}.lk-site:active{background:#302315}
.lk-applied{color:var(--gold2);padding:10px 12px;border-left:2px solid var(--acc);background:#211c13}
@media(min-width:450px){.lk-treasure{min-height:230px;padding-left:25px}.lk-discount>b{font-size:104px}.lk-chest{right:3%;bottom:0}.lk-vault-body{padding-left:24px;padding-right:24px}}
@media(max-width:350px){.lk-vault-top{padding:13px 11px 0;font-size:10px;letter-spacing:1px}.lk-linked{font-size:10px}.lk-treasure{min-height:185px;padding:20px 12px}.lk-discount>b{font-size:74px}.lk-discount>span{font-size:30px}.lk-chest{width:55%;right:-2%;bottom:9px}.lk-vault-body{padding:16px 12px}.lk-next{gap:8px}.lk-next>div{gap:7px}.lk-next>div>span{max-width:76px;font-size:11px}.lk-next p{max-width:100px}.lk-account-stats{gap:10px}.lk-accounts{padding-left:10px}.lk-accounts>div{gap:8px}}

/* Currency is a persistent display preference, payment methods keep their own currency. */
.dn-currency{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:12px 0 4px;min-height:36px}.dn-currency>span{font-size:11px;color:var(--dim);flex-shrink:0}.dn-currency>div{display:flex;align-items:center;gap:16px}.dn-currency button{position:relative;min-height:36px;padding:8px 0;border:0;border-bottom:1px solid transparent;background:none;color:#9b927f;font:inherit;font-size:12px;cursor:pointer}.dn-currency button[aria-pressed="true"]{color:#e8c87e;border-bottom-color:#c3a261}.dn-currency button:focus-visible{outline:1px solid #e8c87e;outline-offset:3px}.pack .pr{font-size:clamp(12px,3.4vw,16px);white-space:nowrap}
@media(max-width:350px){.dn-currency>div{gap:13px}.dn-currency{gap:8px}}
