/* ============================================================
   ULTRA Crossover — интерфейс
   Графит + золото, объёмные кнопки, металлические рамки карт.
   ============================================================ */

:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --panel: #161b24;
  --panel-2: #1c2230;
  --stroke: #2a3240;
  --stroke-hi: #39445a;
  --text: #eef2f7;
  --muted: #8d97a8;
  --dim: #5d6677;

  --gold: #ffc93c;
  --gold-2: #f59f1b;
  --gold-dark: #94560a;
  --cyan: #46d3f0;

  --c-common: #a9b1bd;
  --c-uncommon: #4fd98a;
  --c-rare: #4fb4ff;
  --c-legendary: #ffc93c;
  --c-mythic: #ff7aa8;

  --e-fire: #ff7a3d;
  --e-water: #3ec7f0;
  --e-electric: #ffd84a;
  --e-earth: #d6a35c;
  --e-poison: #8fe04a;
  --e-psychic: #e07af0;
  --e-mythic: #ffffff;

  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 500 14px/1.4 var(--body);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 45% at 50% -8%, #1f2b40 0%, transparent 70%),
    radial-gradient(70% 40% at 50% 110%, #1a1f2b 0%, transparent 70%),
    var(--bg);
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
.i { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex: none; }

#app { display: flex; flex-direction: column; height: 100%; max-width: 520px; margin: 0 auto; position: relative; }

/* ---------- HUD ---------- */
.hud {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-top)) 12px 8px;
}
.player { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; }
.ava-frame {
  width: 50px; height: 50px; flex: none; padding: 2px; border-radius: 14px;
  background: linear-gradient(150deg, #fff1b8, #c98a12 45%, #ffd76a 70%, #8a5a06);
  box-shadow: 0 3px 8px #0009;
}
.avatar {
  width: 100%; height: 100%; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: #1b2130;
  font: 800 20px var(--display); color: var(--gold);
}
.avatar svg { width: 100%; height: 100%; display: block; transform: scale(1.65) translateY(7%); }
.player-info { min-width: 0; }
.nick { font: 700 14px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.power-pill {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
  padding: 2px 8px 2px 5px; border-radius: 8px; background: #0007; border: 1px solid var(--stroke);
  font: 700 12px var(--display); color: var(--gold);
}
.power-pill .i { font-size: 14px; }

.hud-actions { display: flex; gap: 6px; }
.hud-btn {
  position: relative; width: 50px; height: 50px; border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(#2a3242, #1b212d);
  box-shadow: inset 0 1px 0 #ffffff14, 0 3px 0 #0b0e14, 0 5px 10px #0007;
  color: #c9d2e0;
}
.hud-btn .i { font-size: 21px; }
.hud-label { font: 700 8.5px var(--body); text-transform: uppercase; letter-spacing: .3px; }
.hud-btn--gold {
  background: linear-gradient(#ffd85a, #f29a14); color: #3b2200;
  box-shadow: inset 0 1px 0 #fff9, 0 3px 0 var(--gold-dark), 0 5px 12px #0008;
}
.hud-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff14, 0 1px 0 #0b0e14; }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #ef4444; color: #fff; border: 2px solid var(--bg);
  font: 800 11px/16px var(--display); text-align: center;
}

/* ---------- ресурсы ---------- */
.resources { display: flex; gap: 6px; padding: 0 12px 10px; }
.res {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
  height: 30px; padding: 0 10px 0 4px; border-radius: 15px;
  background: #0009; border: 1px solid var(--stroke);
}
.res b { font: 700 12.5px var(--display); }
.res small { color: var(--muted); font-size: 10.5px; font-weight: 700; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.res-ico .i { font-size: 14px; }
.res-ico--ticket { background: linear-gradient(#ffd85a, #e98d0c); color: #4a2a00; }
.res-ico--dust { background: linear-gradient(#b7a5ff, #6d4fe0); color: #fff; }
.res-ico--cards { background: linear-gradient(#7fd3ff, #2b7fd6); color: #fff; }
.res-ico--coin { background: linear-gradient(#ffe07a, #d38a0e); color: #5a3500; }

/* ---------- контент ---------- */
#view { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 12px 18px; -webkit-overflow-scrolling: touch; }
.eyebrow { font: 700 10.5px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.h1 { font: 800 22px/1.15 var(--display); margin: 4px 0 6px; letter-spacing: -.2px; }
.h2 { font: 800 16px/1.2 var(--display); margin: 0; }
.panel {
  background: linear-gradient(#1a202b, #141922); border: 1px solid var(--stroke);
  border-radius: 18px; box-shadow: inset 0 1px 0 #ffffff0a;
}
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; background: #0008; border: 1px solid var(--stroke);
  font: 700 11px var(--body); color: var(--text); white-space: nowrap;
}
.chip .i { font-size: 13px; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 54px; padding: 6px 12px; border-radius: 15px; white-space: nowrap;
  font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .2px;
  background: linear-gradient(#ffdb63, #f29a14); color: #3b2200;
  box-shadow: inset 0 1px 0 #fffa, inset 0 -2px 0 #0002, 0 4px 0 var(--gold-dark), 0 8px 16px #0007;
  transition: transform .06s;
}
.btn small { font: 700 11px var(--body); text-transform: none; letter-spacing: 0; opacity: .8; display: inline-flex; align-items: center; gap: 4px; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 #fffa, 0 1px 0 var(--gold-dark), 0 3px 8px #0007; }
.btn--steel {
  background: linear-gradient(#3b4659, #283141); color: var(--text);
  box-shadow: inset 0 1px 0 #ffffff22, 0 4px 0 #121722, 0 8px 16px #0007;
}
.btn--steel:active:not(:disabled) { box-shadow: inset 0 1px 0 #ffffff22, 0 1px 0 #121722; }
.btn:disabled { filter: grayscale(1) brightness(.55); cursor: default; }
.btn--wide { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(#2a3242, #1b212d); box-shadow: inset 0 1px 0 #ffffff14, 0 3px 0 #0b0e14;
}
.icon-btn .i { font-size: 18px; }

/* ---------- таббар ---------- */
.tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 6px 8px calc(8px + var(--safe-bottom));
  background: linear-gradient(#141923, #0d1016); border-top: 1px solid var(--stroke);
  box-shadow: 0 -8px 20px #0006;
}
.tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 0 5px; border-radius: 12px; color: var(--dim);
  font: 700 10.5px var(--body); text-transform: uppercase; letter-spacing: .3px;
  transition: color .15s, background .15s;
}
.tabbar .i { font-size: 22px; transition: transform .15s; }
.tabbar button.active {
  color: var(--gold);
  background: linear-gradient(#232b3a, #1a202b);
  box-shadow: inset 0 1px 0 #ffffff12;
}
.tabbar button.active::before {
  content: ''; position: absolute; top: -7px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.tabbar button.active .i { transform: translateY(-1px) scale(1.08); }

/* ============================================================
   КАРТА
   ============================================================ */
.card {
  --rc: var(--c-common);
  --frame: linear-gradient(160deg, #d9dee6, #6b7380 42%, #b5bcc7 68%, #4f5561);
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 7;
  padding: 3px; border-radius: 12px; background: var(--frame);
  box-shadow: 0 6px 14px #000a; text-align: left; isolation: isolate;
}
.card.r-uncommon, .mcard.r-uncommon { --rc: var(--c-uncommon); --frame: linear-gradient(160deg, #c8f7da, #23864d 42%, #7be6a5 68%, #135e34); }
.card.r-rare, .mcard.r-rare { --rc: var(--c-rare); --frame: linear-gradient(160deg, #d3eeff, #1d68b0 42%, #84cbf7 68%, #123f75); }
.card.r-legendary, .mcard.r-legendary { --rc: var(--c-legendary); --frame: linear-gradient(160deg, #fff4c4, #c98a12 40%, #ffdc78 64%, #8a5a06); }
.card.r-mythic, .mcard.r-mythic {
  --rc: var(--c-mythic);
  --frame: conic-gradient(from var(--ang, 0deg), #ff6b8b, #ffd166, #7cf0c0, #6aa8ff, #c58bff, #ff6b8b);
  animation: spin-frame 6s linear infinite;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-frame { to { --ang: 360deg; } }

.card-inner {
  position: relative; height: 100%; border-radius: 9px; overflow: hidden;
  background: #090b10; display: flex; flex-direction: column;
}
.card-art { position: relative; flex: 1; min-height: 0; }
.card-art .portrait { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card-plate {
  position: relative; padding: 9px 6px 6px; text-align: center;
  background: linear-gradient(#171c26, #0d1016); border-top: 1.5px solid var(--rc);
}
.card-stars {
  position: absolute; top: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: 1px;
  color: var(--rc); font-size: 11px; filter: drop-shadow(0 1px 1px #000);
}
.card-name {
  font: 800 11px/1.15 var(--body); color: #fff; letter-spacing: .1px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title { font: 600 9px/1.2 var(--body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.card-power {
  position: absolute; top: 5px; left: 5px; display: flex; align-items: center; gap: 2px;
  padding: 2px 6px 2px 3px; border-radius: 7px; background: #000b; border: 1px solid #ffffff1f;
  font: 800 10px var(--display); color: #fff;
}
.card-power .i { font-size: 12px; color: var(--gold); }
.card-elem {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #000b; border: 1.5px solid currentColor;
}
.card-elem .i { font-size: 12px; }
.card-lock {
  position: absolute; inset: 0; display: grid; place-items: center; color: #4a5263;
}
.card-lock .i { font-size: 26px; filter: drop-shadow(0 2px 4px #000); }
.card.locked { --frame: linear-gradient(160deg, #2f3644, #1b2029); box-shadow: none; }
.card.locked .card-plate { border-top-color: #2a303c; }
.card.locked .card-name { color: #4f5767; }

.card.big { padding: 5px; border-radius: 20px; }
.card.big .card-inner { border-radius: 15px; }
.card.big .card-plate { padding: 14px 10px 10px; border-top-width: 2px; }
.card.big .card-name { font-size: 18px; }
.card.big .card-title { font-size: 12px; }
.card.big .card-stars { font-size: 18px; top: -12px; gap: 2px; }
.card.big .card-power { top: 10px; left: 10px; font-size: 14px; padding: 3px 9px 3px 5px; border-radius: 10px; }
.card.big .card-power .i { font-size: 16px; }
.card.big .card-elem { top: 10px; right: 10px; width: 34px; height: 34px; border-width: 2px; }
.card.big .card-elem .i { font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
@media (min-width: 440px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid > button { display: block; }
.grid > button:active .card { transform: scale(.97); }

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */
.showcase { position: relative; padding: 8px 0 0; text-align: center; }
.showcase::before {
  content: ''; position: absolute; left: 50%; top: -30px; width: 360px; height: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 22%, transparent), transparent);
  pointer-events: none;
}
.showcase-card { position: relative; width: 58%; max-width: 230px; margin: 0 auto; }
.showcase-card::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -14px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, #000c, transparent); z-index: -1;
}
.showcase-card .card { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.showcase-info { position: relative; margin-top: 18px; }
.showcase-info .chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat { padding: 10px 8px; text-align: center; }
.stat-ico { width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 10px; display: grid; place-items: center; }
.stat-ico .i { font-size: 17px; }
.stat b { display: block; font: 800 16px var(--display); }
.stat span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.recruit-banner {
  position: relative; width: 100%; margin-top: 12px; overflow: hidden;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  border-radius: 18px; border: 1px solid #5a4313;
  background:
    radial-gradient(60% 120% at 0% 50%, #ffb32e33, transparent 70%),
    linear-gradient(110deg, #2b2416, #17140f 60%, #141820);
  box-shadow: inset 0 1px 0 #ffffff14, 0 6px 16px #0008;
}
.recruit-banner .fan { position: relative; width: 74px; height: 70px; flex: none; }
.recruit-banner .fan .card { position: absolute; width: 44px; top: 4px; left: 15px; padding: 2px; border-radius: 6px; }
.recruit-banner .fan .card .card-inner { border-radius: 4px; }
.recruit-banner .fan .card-plate, .recruit-banner .fan .card-power, .recruit-banner .fan .card-elem { display: none; }
.recruit-banner .fan .card:nth-child(1) { transform: rotate(-16deg) translateX(-14px); }
.recruit-banner .fan .card:nth-child(3) { transform: rotate(16deg) translateX(14px); }
.recruit-banner .txt { flex: 1; min-width: 0; }
.recruit-banner .txt b { display: block; font: 800 15px var(--display); color: var(--gold); text-transform: uppercase; }
.recruit-banner .txt span { font-size: 12px; color: #d5c7a8; font-weight: 600; }
.recruit-banner .go { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(#ffdb63, #f29a14); color: #3b2200; box-shadow: 0 3px 0 var(--gold-dark); }
.recruit-banner .go .i { font-size: 18px; }
.recruit-banner .dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px #ef444433; }

.lore-panel { margin-top: 12px; padding: 14px 14px 14px 16px; position: relative; }
.lore-panel p { margin: 6px 0 0; color: #c9d0dc; font-size: 13.5px; line-height: 1.5; }
.lore-panel::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rc, var(--gold)); }

.welcome { text-align: center; padding: 22px 16px 18px; overflow: hidden; position: relative; }
.welcome .fan { position: relative; height: 150px; margin: 4px auto 14px; width: 220px; }
.welcome .fan .card { position: absolute; width: 92px; left: 64px; top: 6px; }
.fan .card:nth-child(2) { z-index: 2; }
.welcome .fan .card:nth-child(1) { transform: rotate(-14deg) translateX(-56px) translateY(10px); }
.welcome .fan .card:nth-child(3) { transform: rotate(14deg) translateX(56px) translateY(10px); }
.welcome p { color: var(--muted); margin: 0 auto 16px; max-width: 300px; font-size: 13.5px; }

/* ============================================================
   КОЛЛЕКЦИЯ
   ============================================================ */
.coll-head { padding: 14px; margin-bottom: 10px; }
.coll-head .row { display: flex; align-items: baseline; justify-content: space-between; }
.coll-head .count { font: 800 18px var(--display); }
.coll-head .count small { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: #0009; border: 1px solid var(--stroke); overflow: hidden; margin: 10px 0 8px; }
.bar > div { height: 100%; background: linear-gradient(90deg, #f29a14, #ffdb63); box-shadow: 0 0 8px #ffc93c88; }
.rarity-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.rarity-row .chip { height: 24px; font-size: 10.5px; justify-content: center; padding: 0 4px; gap: 3px; }
.rarity-row .chip b { font-family: var(--display); }

.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: 11px; background: linear-gradient(#202736, #171c27); border: 1px solid var(--stroke);
  color: var(--muted); font: 700 12.5px var(--body);
}
.filter .i { font-size: 16px; }
.filter.active { color: #3b2200; background: linear-gradient(#ffdb63, #f29a14); border-color: transparent; box-shadow: 0 3px 0 var(--gold-dark); }
.filter.active .i { color: #3b2200 !important; }

/* ---------- заглушки ---------- */
.soon { text-align: center; padding: 34px 20px; margin-top: 6px; }
.soon-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(#2a3242, #1b212d); box-shadow: inset 0 1px 0 #ffffff14, 0 4px 0 #0b0e14; color: var(--gold); }
.soon-ico .i { font-size: 36px; }
.soon p { color: var(--muted); margin: 8px 0 0; }
.soon .chip { margin-top: 16px; color: var(--gold); border-color: #5a4313; }

/* ============================================================
   ПОЛНОЭКРАННЫЕ ЭКРАНЫ
   ============================================================ */
.screen {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background: radial-gradient(90% 50% at 50% 0%, #22304a, transparent 70%), #0b0e13f7;
  backdrop-filter: blur(4px);
  animation: screen-in .22s ease;
}
@keyframes screen-in { from { opacity: 0; transform: scale(1.02); } }
.screen-wrap { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column;
  padding: calc(10px + var(--safe-top)) 14px calc(16px + var(--safe-bottom)); }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.screen-head .h2 { flex: 1; text-align: center; text-transform: uppercase; letter-spacing: .6px; }

/* ---------- вербовка ---------- */
.banner {
  position: relative; border-radius: 22px; overflow: hidden; padding: 16px 14px 14px; text-align: center;
  border: 1px solid #5a4313;
  background:
    radial-gradient(70% 60% at 50% 35%, #ffb32e30, transparent 70%),
    linear-gradient(#1f1a12, #12100c 70%, #0f1218);
  box-shadow: inset 0 1px 0 #ffffff14, 0 10px 24px #0009;
}
.banner .rays {
  position: absolute; left: 50%; top: 30%; width: 600px; height: 600px; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, #ffc93c12 0 6deg, transparent 6deg 18deg);
  animation: rays 40s linear infinite; pointer-events: none;
  mask-image: radial-gradient(closest-side, #000, transparent);
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.banner .fan { position: relative; height: 210px; margin: 6px auto 8px; width: 260px; }
.banner .fan .card { position: absolute; width: 112px; left: 74px; top: 8px; }
.banner .fan .card:nth-child(1) { transform: rotate(-13deg) translateX(-70px) translateY(16px) scale(.9); }
.banner .fan .card:nth-child(3) { transform: rotate(13deg) translateX(70px) translateY(16px) scale(.9); }
.banner .fan .card:nth-child(2) { z-index: 2; }
.banner .tag-hot {
  position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 9px; border-radius: 8px;
  background: linear-gradient(#ff6b8b, #d63a62); font: 800 10px var(--display); text-transform: uppercase; letter-spacing: .4px;
  box-shadow: 0 2px 0 #7a1b34;
}
.banner-title { position: relative; font: 900 20px var(--display); text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 0 #5a3500; }
.banner-sub { position: relative; color: #cfc3a6; font-size: 12.5px; margin-top: 4px; }

.ticket-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 6px; border-radius: 17px;
  background: #000a; border: 1px solid var(--stroke); font: 700 13px var(--body);
}
.pill b { font-family: var(--display); font-variant-numeric: tabular-nums; }
.pill .res-ico { width: 24px; height: 24px; }
.cta-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }

.rates { margin-top: 16px; padding: 12px 14px; }
.rate { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; font-weight: 700; }
.rate .track { height: 6px; border-radius: 3px; background: #0009; overflow: hidden; }
.rate .track div { height: 100%; border-radius: 3px; }
.rate b { text-align: right; font-family: var(--display); font-size: 12px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 2px 0; }
.hint b { color: var(--text); }

/* ---------- раскрытие ---------- */
.reveal { background: radial-gradient(80% 55% at 50% 30%, #2a2318, #07080b 75%); }
.reveal .h2 { color: var(--gold); }
.reveal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 7px; margin: 12px 0 14px; }
.reveal-grid .card-title { display: none; }
.reveal-grid .card-name { font-size: 9.5px; }
.reveal-grid.single { grid-template-columns: minmax(0, 230px); justify-content: center; margin-top: 40px; }
.flip { perspective: 900px; cursor: pointer; }
.flip-inner { position: relative; transition: transform .65s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip.open .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-back { transform: rotateY(180deg); }
.flip-front {
  position: absolute; inset: 0; z-index: 1; border-radius: 12px; padding: 3px;
  background: linear-gradient(160deg, #6b7a94, #2a3242 45%, #4a566c 70%, #1e2430);
  box-shadow: 0 6px 14px #000a;
}
.flip-front .back {
  height: 100%; border-radius: 9px; display: grid; place-items: center; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, #ffffff06 0 2px, transparent 2px 9px),
    radial-gradient(circle at 50% 45%, #253047, #10141d 70%);
}
.flip-front .emblem {
  width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #8a97ad; color: #c7d1e2; background: #0006;
}
.flip-front .emblem .i { font-size: 26px; }
.flip-front.hint-rare { box-shadow: 0 0 18px #4fb4ffaa, 0 6px 14px #000a; }
.flip-front.hint-legendary { box-shadow: 0 0 24px #ffc93ccc, 0 6px 14px #000a; animation: pulse 1.2s ease-in-out infinite; }
.flip-front.hint-mythic { box-shadow: 0 0 30px #ff7aa8, 0 0 60px #6aa8ff88; animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }
.flip.open .flip-front { animation: none; }
.under { text-align: center; margin-top: 7px; min-height: 18px; }
.new-badge { display: inline-block; padding: 2px 7px; border-radius: 6px; background: linear-gradient(#5be39a, #22a35e); color: #062b16; font: 800 9.5px var(--display); text-transform: uppercase; }
.dupe-badge { display: inline-flex; align-items: center; gap: 3px; font: 700 10.5px var(--body); color: #b7a5ff; }
.dupe-badge .i { font-size: 12px; }
.under .new-badge, .under .dupe-badge { opacity: 0; transition: opacity .3s .4s; }
.flip.open + .under .new-badge, .flip.open + .under .dupe-badge { opacity: 1; }
.summary { display: flex; justify-content: center; gap: 8px; margin: auto 0 12px; }

/* ---------- досье ---------- */
.detail-card { width: 62%; max-width: 250px; margin: 8px auto 0; position: relative; }
.detail-card::before {
  content: ''; position: absolute; inset: -40px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 25%, transparent), transparent);
}
.detail-info { text-align: center; margin-top: 18px; }
.detail-info .chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.stats-table { margin-top: 14px; padding: 4px 14px; }
.stats-table .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #ffffff0d; font-size: 13px; }
.stats-table .row:last-child { border-bottom: 0; }
.stats-table .row span { color: var(--muted); font-weight: 600; }
.stats-table .row b { font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.stats-table .row b .i { font-size: 15px; }
.screen-foot { margin-top: auto; padding-top: 14px; }

/* ---------- toast / загрузка ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translateX(-50%);
  z-index: 80; max-width: 88vw; padding: 11px 16px; border-radius: 13px; text-align: center;
  background: #1f2633; border: 1px solid var(--stroke-hi); box-shadow: 0 10px 24px #000b;
  font-weight: 700; font-size: 13px; animation: toast-in .2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.loading { height: 60vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--stroke); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { text-align: center; padding: 48px 20px; color: var(--muted); }

/* ============================================================
   АРЕНА
   ============================================================ */
.btn--sm { min-height: 38px; padding: 4px 14px; font-size: 12px; border-radius: 11px; }
.btn--sm:active:not(:disabled) { transform: translateY(2px); }

.rank-badge { width: 64px; height: 72px; flex: none; filter: drop-shadow(0 4px 8px #000a); }
.rank-badge.xs { width: 15px; height: 17px; filter: none; vertical-align: -3px; margin-right: 4px; }
.rank-card { display: flex; align-items: center; gap: 12px; padding: 14px; position: relative; overflow: hidden; }
.rank-card::before { content: ''; position: absolute; left: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tier, #ffc93c33), transparent); pointer-events: none; }
.tier-bronze { --tier: #f3c08f33; } .tier-silver { --tier: #f2f5f933; } .tier-gold { --tier: #ffc93c40; }
.tier-platinum { --tier: #5eead433; } .tier-emerald { --tier: #34d39940; } .tier-master { --tier: #c084fc44; }
.rank-info { flex: 1; min-width: 0; position: relative; }
.rank-name { font: 900 20px var(--display); text-transform: uppercase; margin: 2px 0; }
.rank-rating b { font: 800 14px var(--display); }
.rank-rating span { color: var(--muted); font-size: 12px; font-weight: 700; }
.rank-card .bar { margin: 8px 0 0; }
.wl { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.wl b { font: 800 15px var(--display); text-align: right; }
.wl .w { color: var(--c-uncommon); } .wl .l { color: #ff7b7b; }

.arena-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 10px; flex-wrap: wrap; }
.tile-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tile-ico .i { font-size: 20px; }
.tile-txt { flex: 1; min-width: 0; }
.tile-txt b { display: block; font: 800 18px var(--display); }
.tile-txt span { font-size: 11px; color: var(--muted); font-weight: 700; }
.tile-txt i { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.tile .btn { width: 100%; }

.squad-panel { margin-top: 10px; padding: 14px; }
.squad-panel .row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.squad-panel .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.squad-panel .lineup { margin-bottom: 12px; }
.sp-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 7px; border-radius: 9px;
  background: #0009; border: 1px solid #5a4313; font: 800 13px var(--display); color: var(--gold); white-space: nowrap; }
.sp-pill.enemy { border-color: #5a1f28; color: #ff9a9a; }
.sp-pill .i { font-size: 15px; }

/* мини-карта */
.mcard {
  --frame: linear-gradient(160deg, #d9dee6, #6b7380 42%, #b5bcc7 68%, #4f5561);
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 2px; border-radius: 9px;
  background: var(--frame); box-shadow: 0 3px 8px #0009;
}
.mcard-in { position: relative; height: 100%; border-radius: 7px; overflow: hidden; background: #090b10; }
.mcard-in .portrait { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcard-el { position: absolute; top: 2px; right: 2px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  background: #000c; border: 1px solid currentColor; }
.mcard-el .i { font-size: 9px; }
.mcard-pw { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 0 2px; text-align: center;
  background: linear-gradient(transparent, #000e); font: 800 10px var(--display); color: #fff; }
.mcard-num { position: absolute; top: -6px; left: -5px; z-index: 2; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #0d1016; border: 1.5px solid var(--stroke-hi); font: 800 9.5px/14px var(--display); text-align: center; color: var(--text); }
.mcard.empty { --frame: none; background: #0007; border: 1.5px dashed var(--stroke-hi); box-shadow: none; display: grid; place-items: center; color: var(--dim); }
.mcard.empty .i { font-size: 18px; }
.mcard.active { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.mcard.active .mcard-num { background: var(--gold); color: #3b2200; border-color: var(--gold); }
.mcard.in-squad .mcard-in { filter: brightness(.38) saturate(.6); }
.mcard.in-squad .mcard-num { background: var(--gold); color: #3b2200; border-color: var(--gold); }
.mcard:disabled { cursor: default; }

.lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }

.section-row { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }

.opp { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; }
.opp-ava { width: 48px; height: 48px; flex: none; border-radius: 13px; overflow: hidden; display: grid; place-items: center;
  background: #1b2130; border: 1.5px solid var(--stroke-hi); font: 800 18px var(--display); color: var(--gold); }
.opp-ava svg.portrait { width: 100%; height: 100%; transform: scale(1.65) translateY(7%); }
.opp-ava.npc { background: #0c0f15; border-color: currentColor; }
.opp-ava.npc .i { font-size: 24px; }
.opp-main { flex: 1; min-width: 0; }
.opp-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.opp-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npc-tag { font-style: normal; font: 800 8.5px var(--display); padding: 2px 5px; border-radius: 5px; background: #2a3242; color: var(--muted); flex: none; }
.opp-meta { font-size: 11.5px; color: var(--muted); font-weight: 700; margin: 2px 0 4px; }
.opp-els { display: flex; gap: 3px; }
.opp-els .i { font-size: 13px; }
.opp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.opp-sp { display: flex; align-items: center; gap: 3px; font: 800 13px var(--display); }
.opp-sp .i { color: var(--gold); font-size: 14px; }
.opp .btn--sm { min-height: 34px; padding: 4px 16px; }

.log { padding: 4px 12px; }
.log-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ffffff0b; }
.log-row:last-child { border-bottom: 0; }
.log-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: #2a1820; color: #ff8a8a; }
.log-ico.defense { background: #132a3a; color: #7fd3ff; }
.log-ico .i { font-size: 16px; }
.log-main { flex: 1; min-width: 0; }
.log-main b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-main span { font-size: 11px; color: var(--muted); font-weight: 600; }
.log-res { text-align: right; font-weight: 800; font-size: 12px; }
.log-res small { display: block; font: 800 12px var(--display); }
.log-res.w { color: var(--c-uncommon); } .log-res.l { color: #ff7b7b; }

.hint-panel { margin-top: 16px; padding: 14px; }
.hint-panel p { margin: 6px 0 10px; color: #c9d0dc; font-size: 12.5px; line-height: 1.5; }
.cycle { display: flex; align-items: center; justify-content: center; gap: 4px; }
.cycle .i { font-size: 18px; }
.cycle .arrow .i { font-size: 11px; color: var(--dim); }

/* ---------- подбор отряда ---------- */
.pick-screen .screen-wrap { padding-bottom: 0; }
.vs-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 8px; }
.vs-side b { display: block; font: 800 14px var(--display); }
.vs-side span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.mine-head { margin-top: 10px; }
.lineup.marks { margin: 6px 0; }
.mark { display: flex; align-items: center; justify-content: center; gap: 1px; height: 18px; border-radius: 6px; font: 800 9px var(--display); }
.mark .i { font-size: 9px; }
.mark.up { background: #12351f; color: var(--c-uncommon); }
.mark.down { background: #3a1820; color: #ff7b7b; }
.mark.eq { color: var(--dim); }
.lineup.mine { margin-top: 10px; }
.pick-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px 6px; margin-top: 12px; padding-bottom: 96px; }
.sticky-foot { position: sticky; bottom: 0; margin: auto -14px 0; padding: 12px 14px calc(12px + var(--safe-bottom));
  background: linear-gradient(transparent, #0b0e13 30%); }

/* ---------- бой ---------- */
.battle-screen { background: radial-gradient(80% 50% at 50% 35%, #2a1d1d, #07080b 75%); }
.battle-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 6px; }
.bt-side b { display: block; font: 800 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-side span { font-size: 11px; color: var(--muted); font-weight: 700; }
.bt-side.r { text-align: right; }
.score { display: flex; align-items: center; gap: 6px; font: 900 30px var(--display); }
.score b { min-width: 26px; text-align: center; }
.score b:first-child { color: var(--c-uncommon); } .score b:last-child { color: #ff7b7b; }
.score i { font-style: normal; color: var(--dim); }
.pips { display: flex; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.pip { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 11px var(--display);
  background: #0009; border: 1px solid var(--stroke); color: var(--dim); transition: all .25s; }
.pip.w { background: linear-gradient(#5be39a, #22a35e); color: #062b16; border-color: transparent; }
.pip.l { background: linear-gradient(#ff8a8a, #c93a3a); color: #3a0a0a; border-color: transparent; }

.stage { min-height: 290px; display: flex; align-items: center; justify-content: center; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; }
.duel-side { transition: transform .35s ease, filter .35s ease, opacity .35s; }
.duel-side.a { animation: in-left .35s ease both; }
.duel-side.b { animation: in-right .35s ease both; }
@keyframes in-left { from { transform: translateX(-40px); opacity: 0; } }
@keyframes in-right { from { transform: translateX(40px); opacity: 0; } }
.duel-vs { font: 900 18px var(--display); color: var(--gold); text-shadow: 0 0 14px #ffc93c88; }
.duel-val { margin-top: 10px; text-align: center; font: 900 22px var(--display); opacity: 0; transform: translateY(6px); transition: all .3s; }
.mult { display: inline-block; margin-left: 4px; padding: 1px 5px; border-radius: 6px; font: 800 10px var(--display); vertical-align: middle; }
.mult.up { background: #12351f; color: var(--c-uncommon); }
.mult.down { background: #3a1820; color: #ff7b7b; }
.duel.done .duel-val { opacity: 1; transform: none; }
.duel.done .duel-side.win { transform: scale(1.05); }
.duel.done .duel-side.win .duel-val { color: var(--c-uncommon); }
.duel.done .duel-side.lose { filter: grayscale(.85) brightness(.55); transform: scale(.94); }

.result { margin-top: 6px; padding: 18px 16px 16px; border-radius: 20px; text-align: center; animation: screen-in .3s ease;
  background: linear-gradient(#1a202b, #12161e); border: 1px solid var(--stroke); }
.result.win { border-color: #2c7a4b; box-shadow: 0 0 30px #22a35e33; }
.result.loss { border-color: #7a2c35; }
.result-title { font: 900 28px var(--display); text-transform: uppercase; letter-spacing: 1px; }
.result.win .result-title { color: var(--gold); text-shadow: 0 2px 0 #5a3500; }
.result.loss .result-title { color: #ff8a8a; }
.result-rows { margin: 12px 0 14px; }
.result-rows div { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid #ffffff0b; font-size: 13px; }
.result-rows span { color: var(--muted); font-weight: 700; }
.result-rows b { font-family: var(--display); display: inline-flex; align-items: center; gap: 5px; }
.result-rows em { font-style: normal; font-size: 12px; }
.result-rows em.w { color: var(--c-uncommon); } .result-rows em.l { color: #ff7b7b; }
.coin-val .i { color: var(--gold); }
.rank-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.rank-foot b { color: var(--text); font-family: var(--display); }
.rank-foot .w { color: var(--c-uncommon); } .rank-foot .l { color: #ff7b7b; }

/* ============================================================
   СИНДИКАТЫ
   ============================================================ */
.emblem-badge { width: 44px; height: 50px; flex: none; filter: drop-shadow(0 3px 6px #000a); }
.emblem-badge.sm { width: 34px; height: 38px; }
.emblem-badge.lg { width: 60px; height: 68px; }
.emblem-badge.xl { width: 84px; height: 94px; filter: drop-shadow(0 0 18px color-mix(in srgb, currentColor 35%, transparent)); }

.syn-hero { position: relative; overflow: hidden; padding: 18px 16px 16px; text-align: center; }
.syn-hero::before { content: ''; position: absolute; inset: -60px -60px auto; height: 220px;
  background: radial-gradient(closest-side, #ffb32e22, transparent); pointer-events: none; }
.syn-hero-badges { position: relative; display: flex; justify-content: center; margin-bottom: 10px; }
.syn-hero-badges .emblem-badge { width: 56px; height: 63px; margin: 0 -6px; }
.syn-hero-badges .emblem-badge:nth-child(2) { width: 70px; height: 79px; z-index: 1; margin-top: -8px; }
.syn-hero p { position: relative; color: var(--muted); font-size: 13px; margin: 0 auto 16px; max-width: 330px; }

.search { position: relative; margin-top: 12px; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 17px; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 13px; }

input, textarea {
  font: 600 14px var(--body); color: var(--text); background: #0c0f15; border: 1px solid var(--stroke);
  outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { border-color: #8a6a1c; box-shadow: 0 0 0 3px #ffc93c22; }
input::placeholder, textarea::placeholder { color: var(--dim); }

.syn-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 8px; margin-bottom: 8px; text-align: left; }
.place { width: 24px; flex: none; text-align: center; font: 800 13px var(--display); color: var(--dim); }
.place.top1 { color: #ffc93c; } .place.top2 { color: #d5dbe5; } .place.top3 { color: #e4a06a; }
.syn-row-main { flex: 1; min-width: 0; }
.syn-row-name { display: flex; gap: 5px; align-items: baseline; font-weight: 800; font-size: 13.5px; }
.syn-row-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.syn-row-name em { font-style: normal; color: var(--muted); font-size: 11.5px; flex: none; }
.syn-row-meta { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.syn-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mini-tag { font: 800 9px var(--display); text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: #2a3242; color: var(--muted); }
.empty-list { padding: 22px; text-align: center; color: var(--muted); font-weight: 600; }

.syn-head { padding: 14px; }
.syn-head-top { display: flex; align-items: center; gap: 12px; }
.syn-head-main { min-width: 0; }
.syn-name { font: 800 19px/1.2 var(--display); }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chips-row.center { justify-content: center; }
.syn-desc { color: #c9d0dc; font-size: 13px; margin: 12px 0 0; line-height: 1.45; }
.syn-desc.center { text-align: center; }
.lvl-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.lvl-badge { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font: 900 17px var(--display); color: #3b2200; background: linear-gradient(#ffdb63, #f29a14); box-shadow: 0 3px 0 var(--gold-dark); }
.lvl-main { flex: 1; min-width: 0; }
.lvl-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.lvl-top b { font: 800 13px var(--display); }
.lvl-top span { color: var(--muted); font-weight: 700; }
.lvl-main .bar { margin: 6px 0 0; }
.syn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
.syn-stats div { background: #0007; border: 1px solid var(--stroke); border-radius: 12px; padding: 8px 4px; text-align: center; }
.syn-stats b { display: block; font: 800 15px var(--display); }
.syn-stats b small { font-size: 11px; color: var(--muted); }
.syn-stats b.g { color: var(--c-uncommon); }
.syn-stats span { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.syn-head > .btn { margin-top: 12px; gap: 8px; flex-direction: row; }

.role-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font: 800 9.5px var(--display); text-transform: uppercase; flex: none; }
.role-chip.leader { background: linear-gradient(#ffdb63, #f29a14); color: #3b2200; }
.role-chip.officer { background: #1d3550; color: #8fd0ff; }

.treasury { margin-top: 10px; padding: 14px; }
.treasury-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.boost { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px; border-radius: 12px; background: #0007; border: 1px dashed var(--stroke-hi); }
.boost > div { flex: 1; min-width: 0; }
.boost b { display: block; font-size: 12.5px; }
.boost span:not(.tile-ico):not(.mini-tag) { font-size: 11px; color: var(--muted); font-weight: 600; }
.boost .tile-ico .i { font-size: 16px; }

.seg { display: flex; gap: 4px; padding: 4px; margin: 14px 0 10px; border-radius: 13px; background: #0009; border: 1px solid var(--stroke); }
.seg button { flex: 1; height: 34px; border-radius: 10px; font: 700 12px var(--body); color: var(--muted); white-space: nowrap; }
.seg button.active { background: linear-gradient(#2a3242, #1f2633); color: var(--text); box-shadow: inset 0 1px 0 #ffffff14; }

.list-panel { padding: 4px 12px; }
.member-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #ffffff0b; text-align: left; }
.member-row:last-child { border-bottom: 0; }
.member-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.p-ava { width: 40px; height: 40px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: #1b2130; border: 1.5px solid var(--stroke-hi); font: 800 16px var(--display); color: var(--gold); }
.p-ava svg.portrait { width: 100%; height: 100%; transform: scale(1.65) translateY(7%); }
.p-ava.fill { width: 100%; height: 100%; border: 0; border-radius: 0; font-size: 34px; }
.member-main { flex: 1; min-width: 0; }
.member-name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; }
.member-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-name .you { font-style: normal; font-size: 10px; color: var(--muted); flex: none; }
.member-meta { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.req-actions { display: flex; gap: 6px; }
.icon-btn.ok { background: linear-gradient(#5be39a, #22a35e); color: #062b16; box-shadow: 0 3px 0 #145e36; }
.icon-btn.danger { color: #ff8a8a; }
.log-ico.gold { background: #3a2a0c; color: var(--gold); }

.syn-foot { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.syn-foot .btn { flex: 1; }
.danger-text { color: #ff8a8a !important; }

/* формы */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; padding-bottom: 110px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; }
.field input { height: 46px; }
.field textarea { resize: none; line-height: 1.4; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #0009; border: 1px solid var(--stroke); }
.toggle button { height: 38px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.toggle button.active { background: linear-gradient(#ffdb63, #f29a14); color: #3b2200; box-shadow: 0 2px 0 var(--gold-dark); }
.emblem-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.emblem-pick button { display: grid; place-items: center; padding: 6px 0; border-radius: 12px; border: 1.5px solid transparent; opacity: .55; transition: all .15s; }
.emblem-pick button .emblem-badge { width: 36px; height: 40px; }
.emblem-pick button.active { opacity: 1; border-color: var(--gold); background: #ffc93c14; }

.syn-view-top, .profile-top { text-align: center; padding: 6px 0 4px; }
.syn-view-top .emblem-badge { margin: 4px auto 6px; display: block; }
.profile-top .ava-frame.xl { width: 96px; height: 96px; border-radius: 26px; margin: 4px auto 10px; padding: 3px; }
.profile-top .ava-frame.xl .p-ava { border-radius: 23px; }
.profile-top .sub { margin-top: 4px; }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* пожертвование */
.donate-row { padding: 14px; margin-top: 10px; }
.donate-head { display: flex; align-items: center; gap: 8px; }
.donate-head b { flex: 1; }
.donate-head .have { font-size: 12px; color: var(--muted); font-weight: 700; }
.donate-val { font: 900 30px var(--display); margin: 8px 0 10px; }
.amts { display: flex; gap: 6px; flex-wrap: wrap; }
.amt { height: 34px; padding: 0 12px; border-radius: 10px; font: 800 12px var(--display);
  background: linear-gradient(#2a3242, #1b212d); box-shadow: inset 0 1px 0 #ffffff14, 0 2px 0 #0b0e14; }
.amt:active { transform: translateY(1px); }
.amt.reset { color: var(--muted); font-family: var(--body); }
.donate-sum { display: flex; justify-content: space-between; align-items: center; padding: 14px; margin-top: 10px; }
.donate-sum span { color: var(--muted); font-weight: 700; }
.donate-sum b { font: 900 18px var(--display); color: var(--c-uncommon); }

/* ---------- магазин ---------- */
.badge--dot { min-width: 12px; width: 12px; height: 12px; padding: 0; top: -3px; right: -3px; }

.star-price, .coin-price { display: inline-flex; align-items: center; gap: 4px; font: 800 13px var(--display); letter-spacing: 0; text-transform: none; }
.star-price .i { color: #fff3b0; filter: drop-shadow(0 0 4px #ffcf4088); font-size: 14px; }
.btn--steel .star-price .i { color: var(--gold); }
.coin-price .i { color: var(--gold); font-size: 14px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 2px 10px; }
.section-title span { font: 800 13px var(--display); text-transform: uppercase; letter-spacing: .8px; }
.section-title small { font-size: 11px; color: var(--muted); font-weight: 600; text-align: right; }

.gift { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 4px; }
.gift-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: #232a37; color: var(--muted); }
.gift-ico .i { font-size: 24px; }
.gift.ready { border-color: #6b5420; background: linear-gradient(100deg, #2c2414, var(--panel) 60%); }
.gift.ready .gift-ico { background: linear-gradient(#ffd85a, #e98d0c); color: #4a2a00; box-shadow: 0 0 18px #ffb32a55; animation: gift-bob 2.4s ease-in-out infinite; }
@keyframes gift-bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.gift-txt { flex: 1; min-width: 0; }
.gift-txt b { display: block; font: 800 13.5px var(--display); }
.gift-txt span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.gift-txt span .i { font-size: 12px; color: var(--gold); }
.gift-next { text-align: right; }
.gift-next small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.gift-next b { font: 800 14px var(--display); font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 16px 12px 12px; border-radius: 18px;
  border: 1.5px solid var(--stroke); background: var(--panel); overflow: hidden; }
.plan::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.plan > * { position: relative; }
.plan--premium { border-color: #3a5a7c; }
.plan--premium::before { background: radial-gradient(120% 60% at 50% 0%, #1f3d5c 0%, transparent 70%); }
.plan--platinum { border-color: #8a6a22; box-shadow: 0 0 0 1px #ffc93c22, 0 10px 30px #ffb32a1a; }
.plan--platinum::before { background: radial-gradient(120% 60% at 50% 0%, #4a3712 0%, transparent 70%); }
.plan.active { border-color: var(--c-uncommon); }
.plan-flag { position: absolute; top: 0; right: 0; padding: 4px 9px; border-bottom-left-radius: 10px;
  background: linear-gradient(#ffd85a, #e98d0c); color: #4a2a00; font: 800 8.5px var(--display); text-transform: uppercase; letter-spacing: .4px; }
.plan-name { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .6px; }
.plan--premium .plan-name { color: #8fc8ff; }
.plan--platinum .plan-name { color: var(--gold); }
.plan-hours { display: flex; align-items: baseline; gap: 3px; margin-top: 8px; }
.plan-hours b { font: 900 40px/1 var(--display); }
.plan-hours span { font: 800 16px var(--display); color: var(--muted); }
.plan-sub { font-size: 10.5px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.plan ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.plan li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #c9d0dc; }
.plan li .i { font-size: 13px; color: var(--muted); }
.plan--platinum li .i { color: var(--gold); }
.plan-active { font-size: 11px; font-weight: 800; color: var(--c-uncommon); margin: -4px 0 8px; }
.plan .btn { margin-top: auto; min-height: 50px; padding: 6px; white-space: nowrap; }
.plan .btn small .star-price { font-size: 12px; }

.shop-list { padding: 4px 12px; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.shop-row + .shop-row { border-top: 1px solid var(--stroke); }
.shop-ico { width: 40px; height: 40px; border-radius: 12px; }
.shop-ico .i { font-size: 20px; }
.shop-ico--red { background: linear-gradient(#ff8a6a, #d23c3c); color: #fff; }
.shop-ico--violet { background: linear-gradient(#b7a5ff, #6d4fe0); color: #fff; }
.shop-row-txt { flex: 1; min-width: 0; }
.shop-row-txt b { display: block; font-size: 13.5px; }
.shop-row-txt span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.shop-row-txt .limit { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 5px; background: #0006; font: 800 9.5px var(--display); color: #c9d0dc; }
.shop-row .btn { min-width: 78px; }
.shop-row.blocked .shop-row-txt { opacity: .6; }
.shop-note { display: block; margin-top: 16px; }
.shop-note .i { color: var(--gold); font-size: 12px; margin-top: -2px; }
.shop-link { margin-top: 10px; gap: 6px; }
.boost .btn { flex: none; }
.plan-off { margin-top: auto; min-height: 50px; display: grid; place-items: center; text-align: center; padding: 6px;
  border-radius: 12px; border: 1px dashed var(--stroke-hi); color: var(--muted); font: 700 11px var(--body); }
