/* ============================================================
   ALTERE:GO — профиль Фигуры (home.html после входа, figure.html публично).
   Гибрид: шапка ALTÆRA ID поверх обложки + тело карточки Ранговых битв.
   Визуальный язык — стекло и металл: полированные металлические рамки,
   матовое стекло поверх обложки, гравированная типографика.
   Спецификация: docs/superpowers/specs/2026-09-25-figure-entry-profile-design.md
   ============================================================ */
.fp-root {
  --fp-bg: #040506;
  --fp-panel: #0d0f13;
  --fp-panel-2: #12151a;
  --fp-line: rgba(255, 255, 255, 0.08);
  --fp-line-strong: rgba(255, 255, 255, 0.16);
  --fp-silver: #cfd5dc;
  --fp-silver-bright: #ffffff;
  --fp-silver-dim: #98a0ab;
  --fp-text: #eef1f5;
  --fp-muted: #8a919c;
  --fp-radius: 22px;
  --fp-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* Полированный металл: чередование бликов и теней вдоль диагонали. */
  --fp-metal: linear-gradient(135deg, #fdfeff 0%, #8e96a1 16%, #e9ecf0 32%, #4f5660 50%, #dde1e6 66%, #767e89 82%, #f4f6f8 100%);
  --fp-metal-soft: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(140, 148, 160, 0.18) 30%, rgba(255, 255, 255, 0.4) 50%, rgba(90, 98, 110, 0.14) 72%, rgba(255, 255, 255, 0.45));
  --fp-metal-text: linear-gradient(180deg, #ffffff 0%, #e4e8ed 38%, #9ca4af 62%, #eef1f4 100%);
  --fp-glass: rgba(14, 16, 21, 0.46);
  --fp-glass-strong: rgba(10, 12, 16, 0.72);
  --fp-hairline: linear-gradient(90deg, transparent, rgba(220, 226, 233, 0.34) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(220, 226, 233, 0.34) 80%, transparent);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px 0;
  background:
    radial-gradient(ellipse 70% 38% at 50% -6%, rgba(210, 218, 228, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(120, 130, 145, 0.1), transparent 70%),
    var(--fp-bg);
  color: var(--fp-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.fp-root[hidden] { display: none; }

.fp-root,
.fp-root *,
.fp-root *::before,
.fp-root *::after { box-sizing: border-box; }

.fp-column {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Стекло в металлической рамке: общий приём для плашек и кнопок ── */
.fp-top-btn,
.fp-root [data-hm-launch-match],
.fp-cover-change,
.fp-income-btn {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(var(--fp-glass-strong), var(--fp-glass-strong)) padding-box,
    var(--fp-metal-soft) border-box;
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px rgba(0, 0, 0, 0.35);
  color: var(--fp-text);
}

/* ── Верхняя строка ── */
.fp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 2px 12px;
}

.fp-brand {
  font: 800 12px/1 var(--fp-mono);
  letter-spacing: 0.32em;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-topbar-actions { display: flex; gap: 8px; }

.fp-top-btn,
.fp-root [data-hm-launch-match] {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font: 700 11px/1 var(--fp-mono);
  letter-spacing: 0.16em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-top-btn:hover,
.fp-root [data-hm-launch-match]:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 18px rgba(220, 228, 236, 0.18), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.fp-top-btn:focus-visible,
.fp-root button:focus-visible,
.fp-root a:focus-visible,
.fp-root label:focus-within {
  outline: 2px solid var(--fp-silver-bright);
  outline-offset: 2px;
}

/* ── Карточка: тёмное стекло в полированной металлической рамке ── */
.fp-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--fp-radius);
  background:
    linear-gradient(180deg, #111419 0%, #08090c 100%) padding-box,
    var(--fp-metal) border-box;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 60px -20px rgba(200, 210, 222, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.fp-root--nav .fp-card {
  border-bottom-width: 0;
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
}

.fp-cover {
  position: relative;
  aspect-ratio: 1080 / 1400;
  background:
    radial-gradient(ellipse 70% 55% at 50% 32%, #3b414a 0%, #14171c 55%, #07080a 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Виньетка и мягкий свет сверху — обложка «в витрине». */
.fp-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Блик, один раз проходящий по стеклу обложки. */
.fp-cover::after {
  content: "";
  position: absolute;
  inset: -10% -60%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0.04) 54%, transparent 62%);
  transform: translateX(-70%);
  animation: fp-sheen 2.6s 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards;
}

@keyframes fp-sheen {
  to { transform: translateX(70%); }
}

.fp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-cover-initials[hidden] { display: none; }

.fp-cover-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 88px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.32;
}


/* Плашка идентичности — матовое стекло поверх обложки. */
.fp-cover-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 16px 18px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  /* Прозрачное стекло: картинка за плашкой видна, лишь слегка смягчена. */
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

/* Металлическая кромка — отдельное кольцо: градиент не заливает середину,
   поэтому сквозь плашку видно картинку. */
.fp-cover-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--fp-metal-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* У имени металлическая заливка через background-clip — общая тень плашки
   проступила бы сквозь буквы; у него своя тень через filter. */
.fp-cover-overlay .fp-name { text-shadow: none; }

.fp-name {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.fp-epigraph {
  margin: 0;
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: #d3d8df;
}


/* ── Кошелёк: металлическая монета на стеклянной плашке ── */
.fp-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 14px 0;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)) padding-box,
    linear-gradient(#0c0e12, #0c0e12) padding-box,
    var(--fp-metal-soft) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fp-coin {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #fdfeff, #7f8792, #eef1f4, #5b626c, #e3e7eb, #8a929d, #fdfeff);
  box-shadow: 0 0 14px rgba(220, 228, 236, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.fp-coin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #b9c0c9 55%, #7d858f);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
}

.fp-wallet-amount {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-income-btn {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.fp-income-btn[aria-expanded="true"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 16px rgba(220, 228, 236, 0.2); }

.fp-income {
  margin: 10px 14px 0;
  padding: 4px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: #c4cad2;
}

.fp-income[hidden] { display: none; }

.fp-income-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fp-line);
}

.fp-income-row small { display: block; color: var(--fp-muted); }
.fp-income-total { margin: 10px 0 0; font-weight: 700; color: var(--fp-text); }

/* ── Счётчики: три стеклянные ячейки ── */
.fp-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 14px 6px;
}

.fp-counter {
  padding: 11px 4px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  font: 700 9px/1.3 var(--fp-mono);
  letter-spacing: 0.16em;
  color: var(--fp-muted);
}

.fp-counter b {
  display: block;
  margin-bottom: 2px;
  font: 800 20px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Секции: разделитель — тонкая металлическая линия ── */
.fp-section { position: relative; }

.fp-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--fp-hairline);
  opacity: 0.55;
}

.fp-section-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #dfe3e8;
  font: 800 11px/1.2 var(--fp-mono);
  letter-spacing: 0.24em;
  text-align: left;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(255, 255, 255, 0.06);
}

button.fp-section-head { cursor: pointer; transition: background 0.2s ease; }
button.fp-section-head:hover { background: rgba(255, 255, 255, 0.025); }
.fp-section-body { padding: 0 14px 16px; }
.fp-section-body[hidden] { display: none; }

.fp-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fp-muted);
  letter-spacing: 0.08em;
}

.fp-section-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--fp-silver);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease;
}

.fp-section-head[aria-expanded="true"] .fp-section-chevron { transform: rotate(180deg); }

/* ── Возможности 2×2: шлифованный металл ── */
.fp-abilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fp-ability {
  min-height: 104px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px) padding-box,
    linear-gradient(160deg, #1d2127, #0b0d10) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.14)) border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #b7bec7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fp-ability b { font-size: 13px; line-height: 1.25; color: var(--fp-text); }

.fp-ability--ready {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px) padding-box,
    linear-gradient(160deg, #22272e, #0c0e11) padding-box,
    var(--fp-metal) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px -12px rgba(220, 228, 236, 0.35);
}

.fp-ability--active {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px) padding-box,
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%) padding-box,
    linear-gradient(160deg, #262b33, #0c0e11) padding-box,
    var(--fp-metal) border-box;
  box-shadow: 0 0 26px rgba(230, 236, 242, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.fp-ability--locked {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5c636d;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)) border-box;
  box-shadow: none;
}

.fp-ability-lock { font-size: 18px; line-height: 1; filter: grayscale(1) brightness(1.4); opacity: 0.55; }

.fp-ability-state {
  margin-top: auto;
  font: 700 9px/1.3 var(--fp-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fp-silver-dim);
}

.fp-ability-btn {
  min-height: 34px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--fp-metal);
  color: #0a0b0d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.fp-ability-btn:disabled { opacity: 0.45; cursor: default; }

/* ── Объекты ── */
.fp-objects { list-style: none; margin: 0; padding: 0; }

.fp-object a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--fp-line);
  color: var(--fp-text);
  text-decoration: none;
  font-size: 13px;
  transition: padding 0.2s ease;
}

.fp-object a:hover { padding-left: 6px; }
.fp-object small { display: block; margin-top: 3px; color: var(--fp-muted); font-size: 11px; }

.fp-object-income {
  white-space: nowrap;
  font-weight: 800;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-empty { margin: 0; font-size: 12px; color: var(--fp-muted); }
.fp-empty a { color: var(--fp-silver); }

/* ── Нижняя панель: вид общий с биржей (assets/ag-tabbar.css), здесь только стыковка с карточкой ── */
.fp-nav-slot {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.fp-nav {
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  border-radius: 0 0 var(--fp-radius) var(--fp-radius);
  box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, 0.9);
}

/* ── Кнопка «Маркетплейс» под кошельком (раньше была пунктом нижней панели) ── */
.fp-market-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 10px 14px 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)) padding-box,
    linear-gradient(#0c0e12, #0c0e12) padding-box,
    var(--fp-metal) border-box;
  color: var(--fp-silver-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.fp-market-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.fp-market-link:hover,
.fp-market-link:focus-visible {
  color: #fff;
  box-shadow: 0 0 16px rgba(230, 236, 242, 0.2);
}

.fp-rank-battles-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 10px 14px 0;
  padding: 9px 14px;
  border: 1px solid rgba(239, 43, 50, 0.62);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 43, 50, 0.22), rgba(239, 43, 50, 0.04) 60%, rgba(255, 255, 255, 0.02)),
    #0c0e12;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(239, 43, 50, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.fp-rank-battles-link svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #ff5960;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-rank-battles-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fp-rank-battles-copy strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.fp-rank-battles-copy small {
  color: var(--fp-muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.fp-rank-battles-arrow {
  margin-left: auto;
  color: #ff5960;
  font-size: 20px;
}

.fp-rank-battles-link:hover,
.fp-rank-battles-link:focus-visible {
  border-color: #ff5960;
  box-shadow: 0 0 26px rgba(239, 43, 50, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.fp-rank-battles-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .fp-rank-battles-link { transition: none; }
}

/* ── Вкладки внутри профиля ── */
.fp-view[hidden] { display: none; }

.fp-panel {
  padding: 18px 14px;
  border: 1px solid transparent;
  border-bottom-width: 0;
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
  background:
    linear-gradient(180deg, #111419, #08090c) padding-box,
    var(--fp-metal) border-box;
  min-height: 60vh;
}

.fp-panel-title {
  margin: 0 0 14px;
  font: 800 12px/1.2 var(--fp-mono);
  letter-spacing: 0.26em;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-soon { font-size: 13px; color: var(--fp-muted); }

/* ── Список Фигур ── */
.fp-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fp-figure-card {
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #13161b, #0a0b0e) padding-box,
    var(--fp-metal-soft) border-box;
  color: var(--fp-text);
  text-decoration: none;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-figure-card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, #13161b, #0a0b0e) padding-box,
    var(--fp-metal) border-box;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.95), 0 0 24px -8px rgba(220, 228, 236, 0.25);
}

.fp-figure-card .fp-cover { aspect-ratio: 3 / 4; }
.fp-figure-card .fp-cover::after { display: none; }
.fp-figure-card .fp-cover-initials { font-size: 44px; }
.fp-figure-card-body { padding: 10px 11px 12px; font-size: 11px; color: #b7bec7; }

.fp-figure-card-body b {
  display: block;
  font-size: 14px;
  background: var(--fp-metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fp-figure-card-body em { display: block; margin: 3px 0 7px; color: var(--fp-muted); }
.fp-figure-card-meta { font-family: var(--fp-mono); font-size: 10px; letter-spacing: 0.04em; }
.fp-you { display: inline-block; margin-top: 6px; font: 800 9px/1 var(--fp-mono); letter-spacing: 0.2em; color: var(--fp-silver-bright); }

/* ── Кнопки на обложке: «Изменить», для CRASY BLAZE — «Аватар» / «Сбросить» ── */
.fp-cover-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-cover-change {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  font: 700 11px/1 var(--fp-mono);
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
}

/* ── Админка CRASY BLAZE: управление изображениями Фигур ── */
.fp-avatar-admin {
  margin: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

.fp-avatar-admin-title {
  margin: 0;
  font: 800 12px/1.2 var(--fp-mono);
  letter-spacing: 0.22em;
  color: var(--fp-silver-bright);
}

.fp-avatar-admin-note {
  margin: 8px 0 12px;
  color: var(--fp-muted);
  font-size: 11px;
  line-height: 1.45;
}

.fp-avatar-admin-list {
  display: grid;
  gap: 8px;
}

.fp-avatar-admin-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--fp-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.fp-avatar-admin-preview {
  width: 58px;
  height: 76px;
  aspect-ratio: auto;
  border-radius: 9px;
}

.fp-avatar-admin-preview .fp-cover-overlay { display: none; }

.fp-avatar-admin-preview .fp-cover-initials { font-size: 22px; }

.fp-avatar-admin-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fp-avatar-admin-name {
  overflow: hidden;
  color: var(--fp-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-avatar-admin-meta,
.fp-avatar-admin-state {
  color: var(--fp-muted);
  font: 10px/1.2 var(--fp-mono);
}

.fp-avatar-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.fp-avatar-admin-actions .fp-cover-change,
.fp-avatar-admin-reset {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--fp-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fp-text);
  font: 700 10px/1 var(--fp-mono);
  letter-spacing: 0.05em;
  cursor: pointer;
}

.fp-avatar-admin-actions .fp-cover-change:hover,
.fp-avatar-admin-reset:hover {
  border-color: var(--fp-silver);
  background: rgba(255, 255, 255, 0.12);
}

.fp-avatar-admin-reset:disabled { opacity: 0.55; cursor: wait; }



/* ── Состояния ── */
.fp-status {
  margin: 40px auto;
  max-width: 320px;
  text-align: center;
  font-size: 14px;
  color: var(--fp-muted);
}

.fp-status button { margin-top: 12px; }
.fp-public-actions { display: flex; justify-content: center; padding: 16px 14px 18px; }

/* Без backdrop-filter стекло остаётся читаемым за счёт плотного фона. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fp-root { --fp-glass: rgba(12, 14, 18, 0.86); }
}

/* Мобильная версия: карточка, панель и Маркетплейс во всю ширину экрана —
   без боковых полей, рамок и скруглений; отступ остаётся только у верхней строки. */
@media (max-width: 520px) {
  .fp-root { padding-left: 0; padding-right: 0; }
  .fp-column { max-width: none; }
  .fp-topbar { padding-left: 14px; padding-right: 14px; }
  .fp-card,
  .fp-panel,
  .fp-nav,
  .fp-root--nav .fp-card {
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0;
  }
  .fp-market { max-width: none; }
  .fp-root .rb-marketplace.rb-market--figures {
    max-width: none;
    border-left-width: 0;
    border-right-width: 0;
    border-radius: 0;
  }
}

@media (max-width: 360px) {
  .fp-name { font-size: 27px; }
  .fp-counter b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-root * { transition: none !important; animation: none !important; }
  .fp-cover::after { display: none; }
}

/* ── Маркетплейс Фигур: тот же UI, что у Академии (assets/ranked-marketplace.*),
   красный акцент заменён серебром через токены --shop-accent* ── */
.fp-market { max-width: 420px; }

.rb-marketplace.rb-market--figures {
  --shop-accent: #c9d0d8;
  --shop-accent-rgb: 201, 208, 216;
  --shop-accent-bright: #ffffff;
  --shop-accent-deep-rgb: 58, 63, 71;
  --shop-accent-strong: #aab2bd;
  /* Общие токены styles.css у Академии кислотные — в серебряной теме нейтральные. */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: #3a3f47;
  --panel: #0f1115;
  --muted: #8b919b;
  --text: #eef1f5;
  min-height: 60vh;
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
}

/* На серебре белый текст не читается — у акцентных кнопок тёмный текст. */
.rb-market--figures .rb-shop-primary,
.rb-market--figures .rb-shop-cta { color: #0b0c0f; }

.rb-shop-request-form { display: grid; gap: 12px; margin-top: 12px; }
.rb-shop-request-field { display: grid; gap: 6px; font-size: 12px; color: var(--fp-muted, #8b919b); }

.rb-shop-request-field input,
.rb-shop-request-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #101010;
  color: #fff;
  font: 600 14px/1.3 Inter, system-ui, sans-serif;
}

.rb-shop-cover-btn { margin-top: 8px; min-height: 36px; }

/* Оставшиеся захардкоженные акценты Маркетплейса (лайм и красный) — в серебро. */
.rb-market--figures .rb-shop-header { flex-wrap: wrap; }
.rb-market--figures .rb-shop-wallet-dot { background: #ffffff; box-shadow: 0 0 10px rgba(201, 208, 216, 0.7); }
.rb-market--figures .rb-shop-local-notice { color: #c9d0d8; }
.rb-market--figures .rb-shop-item-action {
  color: #0b0c0f;
  background: linear-gradient(180deg, #e9edf2, #aab2bd);
}
.rb-market--figures .rb-shop-pick:first-child .rb-shop-pick-badge { background: #aab2bd; color: #0b0c0f; }
.rb-market--figures .rb-shop-purchase-price { color: #ffffff; }
.rb-market--figures .rb-shop-collection-card.is-new { border-color: #ffffff; }
.rb-market--figures .rb-shop-reward { border-left-color: #c9d0d8; background: #111317; }
.rb-market--figures .rb-shop-collection-quantity { color: #ffffff; }

/* Витрина Фигур: серебристое свечение вместо фото Академии, металлическая кнопка. */
.rb-market--figures .rb-shop-hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(225, 232, 240, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(140, 150, 165, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #1a1d22, #07080a);
}

.rb-market--figures .rb-shop-cta {
  color: #0a0b0d;
  background: var(--fp-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.5);
}
