/* ─────────────────────────────────────────────────────────────
   Profile v2 — Эрдмар
   Полная версия с табами, stat-grid и атмосферным dark-стилем
   ───────────────────────────────────────────────────────────── */

:root {
  /* Aligned with site horror palette (styles.css :root override) */
  --pf-bg: #060507;
  --pf-bg-2: #140d11;
  --pf-bg-3: rgba(16, 10, 14, 0.92);
  --pf-panel: rgba(16, 10, 14, 0.9);
  --pf-border: rgba(129, 25, 39, 0.34);
  --pf-border-strong: rgba(178, 40, 63, 0.72);
  --pf-text: #d8d1d8;
  --pf-text-dim: #b36b7b;
  --pf-text-muted: #7a4f5a;
  --pf-text-bright: #f5edf0;
  --pf-accent: #b2283f;
  --pf-accent-soft: #c64558;
  --pf-accent-glow: rgba(178, 40, 63, 0.42);
  --pf-gold: #d8a05a;
  --pf-cyan: #8fe7ff;
  --pf-danger: #9d3a2f;
  --pf-ok: #6b8f5e;
  --pf-radius: 8px;
  --pf-shadow: 0 0 24px rgba(88, 9, 22, 0.2);
}

.profile-body {
  color: var(--pf-text);
  min-height: 100vh;
}

.profile-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 24px 80px;
}

/* ── Guard ───────────────────────────────────────────────────── */
.profile-guard__card {
  max-width: 520px;
  margin: 80px auto;
  padding: 40px 32px;
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  text-align: center;
}
.profile-guard__card h1 { font-size: 28px; margin: 12px 0 16px; }
.profile-guard__card p { color: var(--pf-text-dim); margin-bottom: 24px; }
.profile-guard__button { display: inline-block; }

.profile-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin-bottom: 6px;
}

/* ── Tooltip (data-tip="…" on any element) ──────────────────── */
[data-tip] { position: relative; }
[data-tip]:hover,
[data-tip]:focus-visible { z-index: 100000; }
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(20, 13, 17, 0.98) 0%, rgba(8, 5, 7, 0.98) 100%);
  border: 1px solid rgba(178, 40, 63, 0.55);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  color: #fce0e4;
  z-index: 1000;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(82, 9, 20, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(120, 18, 32, 0.25);
  animation: pf-tip-in 0.14s ease-out;
  text-transform: none;
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(20, 13, 17, 0.98);
  border-right: 1px solid rgba(178, 40, 63, 0.55);
  border-bottom: 1px solid rgba(178, 40, 63, 0.55);
  z-index: 999;
  pointer-events: none;
  animation: pf-tip-in 0.14s ease-out;
}
[data-tip-side="bottom"]:hover::after,
[data-tip-side="bottom"]:focus-visible::after {
  bottom: auto; top: calc(100% + 10px);
}
[data-tip-side="bottom"]:hover::before,
[data-tip-side="bottom"]:focus-visible::before {
  bottom: auto; top: calc(100% + 4px);
  border: none;
  border-left: 1px solid rgba(178, 40, 63, 0.55);
  border-top: 1px solid rgba(178, 40, 63, 0.55);
}
@keyframes pf-tip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Topbar ──────────────────────────────────────────────────── */
.pf-topbar {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background:
    linear-gradient(135deg, rgba(34, 11, 17, 0.95) 0%, rgba(16, 10, 14, 0.95) 100%);
  border: 1px solid var(--pf-border-strong);
  border-radius: var(--pf-radius);
  margin-bottom: 32px;
  position: relative;
  overflow: visible;
  box-shadow: var(--pf-shadow);
}
.pf-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, var(--pf-accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}
.pf-topbar__avatar {
  width: 96px; height: 96px;
  border: 2px solid var(--pf-border-strong);
  border-radius: 6px;
  overflow: hidden;
  background: var(--pf-bg-3);
  position: relative; z-index: 1;
}
.pf-topbar__avatar img {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
}
.pf-topbar__main { position: relative; min-width: 0; }
.pf-topbar__name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-topbar__name-row h1 {
  font-size: 28px; margin: 0;
  font-weight: 700; letter-spacing: 0.04em;
}
.pf-topbar__sub { margin: 6px 0 0; color: var(--pf-text-dim); font-size: 13px; }

.pf-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--pf-border);
}
.pf-badge--race { background: rgba(180, 100, 60, 0.15); color: var(--pf-gold); }
.pf-badge--guild { background: rgba(100, 60, 180, 0.15); color: #b399d6; border-color: rgba(140, 100, 200, 0.3); }

.pf-topbar__pills { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.pf-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  min-width: 80px;
}
.pf-pill__icon { width: 22px; height: 22px; color: var(--pf-gold); }
.pf-pill__icon svg { width: 100%; height: 100%; display: block; }
.pf-pill__val { font-size: 18px; font-weight: 700; color: var(--pf-text-bright); margin-top: 2px; }
.pf-pill__lbl { font-size: 10px; color: var(--pf-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Tabs ───────────────────────────────────────────────────── */
.pf-tabs {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--pf-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pf-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pf-tab {
  background: transparent;
  border: none;
  color: var(--pf-text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}
.pf-tab:hover { color: var(--pf-text); }
.pf-tab.is-active { color: var(--pf-accent); }
.pf-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--pf-accent);
  box-shadow: 0 0 8px var(--pf-accent-glow);
}
.pf-tab:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: -2px; }

/* ── Panel ──────────────────────────────────────────────────── */
.pf-panel { display: block; }
.pf-panel[hidden] { display: none; }

/* ── Stat grid ──────────────────────────────────────────────── */
.pf-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.pf-stat {
  padding: 18px 16px;
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.pf-stat:hover { border-color: var(--pf-border-strong); transform: translateY(-2px); }
.pf-stat__icon {
  display: block;
  width: 28px; height: 28px;
  color: var(--pf-accent-soft);
  margin: 0 auto 8px;
}
.pf-stat__icon svg { width: 100%; height: 100%; display: block; }
.pf-stat__lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pf-text-muted);
  margin-bottom: 8px;
}
.pf-help-mark {
  display: inline-block;
  width: 13px; height: 13px;
  line-height: 11px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid currentColor;
  margin-left: 4px;
  opacity: 0.55;
  vertical-align: 1px;
}
.pf-stat:hover .pf-help-mark { opacity: 0.9; }
.pf-stat { cursor: help; }
.pf-pill[data-tip], .pf-pill[data-tip]:hover { cursor: help; }
.pf-stat__val {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--pf-gold);
  line-height: 1;
  margin-bottom: 6px;
}
.pf-stat small { color: var(--pf-text-dim); font-size: 11px; }

/* ── Row / Card ─────────────────────────────────────────────── */
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pf-card {
  padding: 22px 24px;
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  margin-bottom: 16px;
}
.pf-card--danger { border-color: rgba(157, 58, 47, 0.4); }
.pf-card__head { margin-bottom: 16px; }
.pf-card__head h2 { font-size: 20px; margin: 0; font-weight: 700; }
.pf-card__sub { margin: 4px 0 0; font-size: 13px; color: var(--pf-text-dim); }
.pf-session-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-session-hint {
  margin: 0 0 16px;
  color: var(--pf-text-dim);
  font-size: 13px;
  line-height: 1.5;
}
.pf-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fce0e4;
  background: linear-gradient(180deg, #5a0d18 0%, #1f060b 100%);
  border: 1px solid rgba(160, 32, 50, 0.75);
  box-shadow:
    0 0 0 1px rgba(160, 32, 50, 0.18),
    0 0 24px rgba(82, 9, 20, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.36);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.pf-btn-danger svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.pf-btn-danger:hover {
  background: linear-gradient(180deg, #7a1622 0%, #2e0810 100%);
  border-color: rgba(195, 50, 72, 0.95);
  box-shadow:
    0 0 0 1px rgba(195, 50, 72, 0.3),
    0 0 32px rgba(120, 18, 32, 0.42),
    0 18px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.pf-btn-danger:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}
.pf-btn-danger:focus-visible {
  outline: 2px solid rgba(195, 50, 72, 0.7);
  outline-offset: 2px;
}

/* ── Guild card ─────────────────────────────────────────────── */
.pf-guild { padding: 0; overflow: hidden; }
.pf-guild-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 28px 20px;
  background:
    radial-gradient(circle at 100% 50%, rgba(178, 40, 63, 0.18) 0%, transparent 55%),
    linear-gradient(135deg, rgba(34, 11, 17, 0.92) 0%, rgba(16, 10, 14, 0.95) 100%);
  border-bottom: 1px solid var(--pf-border);
}
.pf-guild-hero__crest {
  width: 64px; height: 64px;
  color: var(--pf-accent-soft);
  filter: drop-shadow(0 0 8px rgba(178, 40, 63, 0.4));
}
.pf-guild-hero__crest svg { width: 100%; height: 100%; }
.pf-guild-hero__main h2 { font-size: 22px; margin: 6px 0 4px; }

.pf-guild-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pf-border);
}
.pf-guild-stat {
  padding: 16px 12px;
  background: rgba(10, 7, 7, 0.7);
  text-align: center;
}
.pf-guild-stat__lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pf-text-muted);
  margin-bottom: 6px;
}
.pf-guild-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--pf-gold);
  display: block;
}
.pf-guild-section { padding: 18px 28px; border-top: 1px solid var(--pf-border); }
.pf-guild-section:first-of-type { border-top: none; }

.pf-guild-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.pf-guild-member {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
}
.pf-guild-member.is-you {
  border-color: rgba(178, 40, 63, 0.6);
  background: linear-gradient(135deg, rgba(100, 16, 29, 0.3), rgba(20, 13, 17, 0.85));
}
.pf-guild-member__avatar {
  width: 28px; height: 28px;
  border-radius: 3px;
  background: var(--pf-bg-3);
  image-rendering: pixelated;
  border: 1px solid var(--pf-border);
  flex-shrink: 0;
}
.pf-guild-member__info { min-width: 0; flex: 1; }
.pf-guild-member__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text-bright);
  margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-guild-member__role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pf-text-muted);
}
.pf-guild-member.is-leader .pf-guild-member__role { color: var(--pf-gold); }
.pf-guild-member.is-captain .pf-guild-member__role { color: var(--pf-accent-soft); }

/* Empty state — two paths */
.pf-guild-intro { color: var(--pf-text-dim); margin-bottom: 18px; }
.pf-guild-paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.pf-guild-path {
  padding: 18px;
  background: rgba(16, 10, 14, 0.8);
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.pf-guild-path:hover {
  border-color: var(--pf-border-strong);
  transform: translateY(-2px);
}
.pf-guild-path__icon {
  width: 32px; height: 32px;
  color: var(--pf-accent-soft);
  margin-bottom: 10px;
}
.pf-guild-path__icon svg { width: 100%; height: 100%; }
.pf-guild-path h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--pf-text-bright);
  margin: 0 0 8px;
}
.pf-guild-path p {
  color: var(--pf-text-dim);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.pf-guild-path b { color: var(--pf-text); font-weight: 700; }

/* Defs (key:value list) ──────────────────────────────────── */
.pf-defs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.pf-defs dt {
  color: var(--pf-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: center;
}
.pf-defs dd { margin: 0; color: var(--pf-text); }
.pf-mono { font-family: 'Courier New', monospace; font-size: 12px; color: var(--pf-text-dim); word-break: break-all; }

/* ── Clickable hidden value (reveal-on-click) ───────────────── */
.pf-reveal {
  background: transparent;
  border: 1px dashed var(--pf-border);
  color: var(--pf-text-dim);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-align: left;
  letter-spacing: 0.04em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  line-height: 1.4;
}
.pf-reveal:hover {
  color: var(--pf-text-bright);
  border-color: rgba(178, 40, 63, 0.6);
  background: rgba(100, 16, 29, 0.18);
}
.pf-reveal[data-hidden="0"] {
  border-style: solid;
  color: var(--pf-text-bright);
  background: rgba(16, 10, 14, 0.6);
}
.pf-reveal[data-hidden="0"]:hover {
  background: rgba(100, 16, 29, 0.28);
}
.pf-reveal__mask {
  font-style: italic;
  color: var(--pf-text-muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-size: 11px;
}
.pf-reveal.is-copied { animation: pf-flash 0.5s ease-out; }
@keyframes pf-flash {
  0%   { box-shadow: 0 0 0 1px rgba(178, 40, 63, 0.0); }
  40%  { box-shadow: 0 0 0 2px rgba(178, 40, 63, 0.7), 0 0 16px rgba(178, 40, 63, 0.4); }
  100% { box-shadow: 0 0 0 1px rgba(178, 40, 63, 0.0); }
}

/* ── Achievements list ──────────────────────────────────────── */
.pf-achv-list { list-style: none; padding: 0; margin: 0; }
.pf-achv {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--pf-border);
}
.pf-achv:last-child { border-bottom: none; }
.pf-achv strong { color: var(--pf-gold); font-weight: 600; }
.pf-achv small { color: var(--pf-text-muted); font-size: 11px; }
.pf-achv-empty { color: var(--pf-text-muted); font-style: italic; padding: 12px 0; }

/* ── Character card ─────────────────────────────────────────── */
.pf-char { padding: 0; overflow: hidden; }
.pf-char-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 28px 22px;
  background:
    radial-gradient(circle at 100% 50%, rgba(178, 40, 63, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, rgba(34, 11, 17, 0.92) 0%, rgba(16, 10, 14, 0.95) 100%);
  border-bottom: 1px solid var(--pf-border);
}
.pf-char-hero__left h2 { font-size: 24px; margin: 6px 0 4px; }
.pf-char-hero__level { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf-char-lvl-circle {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(178, 40, 63, 0.3), rgba(20, 13, 17, 0.95) 70%);
  border: 2px solid rgba(178, 40, 63, 0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 16px rgba(178, 40, 63, 0.18),
    0 0 22px rgba(178, 40, 63, 0.22);
}
.pf-char-lvl-circle__num {
  font-size: 30px;
  font-weight: 700;
  color: var(--pf-text-bright);
  line-height: 1;
}
.pf-char-lvl-circle__lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pf-text-muted);
  margin-top: 4px;
}
.pf-char-class-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid var(--pf-border);
  background: rgba(16, 10, 14, 0.85);
  color: var(--pf-gold);
}

/* Vitals */
.pf-vitals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pf-vital {
  padding: 10px 14px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
}
.pf-vital__head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--pf-text-dim);
  margin-bottom: 6px;
}
.pf-vital__head b { color: var(--pf-text-bright); font-weight: 700; font-size: 13px; }
.pf-vital__bar { height: 5px; background: rgba(0,0,0,0.5); border-radius: 3px; overflow: hidden; }
.pf-vital__bar span { display: block; height: 100%; transition: width 0.4s ease-out; }
.pf-vital--hp .pf-vital__bar span { background: linear-gradient(90deg, #b2283f, #d8a05a); }
.pf-vital--mp .pf-vital__bar span { background: linear-gradient(90deg, #4d6b9e, #8fc3ff); }
.pf-vital--sta .pf-vital__bar span { background: linear-gradient(90deg, #8f5e1f, #d8a05a); }
.pf-vital--stl .pf-vital__bar span { background: linear-gradient(90deg, #6a3992, #c084fc); }

/* Points cards */
.pf-points-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pf-point-card {
  padding: 14px 10px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 5px;
  text-align: center;
  cursor: help;
  transition: border-color 0.15s;
}
.pf-point-card:hover { border-color: var(--pf-border-strong); }
.pf-point-card.is-available { border-color: rgba(216, 160, 90, 0.6); box-shadow: 0 0 12px rgba(216, 160, 90, 0.18); }
.pf-point-card__val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--pf-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.pf-point-card__lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pf-text-muted);
}

/* Attributes */
.pf-attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-attr {
  padding: 12px 14px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  position: relative;
}
.pf-attr.has-pts { border-color: rgba(216, 160, 90, 0.4); }
.pf-attr__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.pf-attr__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--pf-text-bright);
}
.pf-attr__key {
  font-size: 10px;
  font-weight: 700;
  color: var(--pf-text-muted);
  letter-spacing: 0.1em;
}
.pf-attr__val {
  font-size: 18px;
  font-weight: 700;
  color: var(--pf-gold);
  margin-bottom: 6px;
}
.pf-attr__val small {
  font-size: 11px;
  color: var(--pf-text-muted);
  font-weight: 500;
}
.pf-attr__bar {
  height: 4px;
  background: rgba(0,0,0,0.5);
  border-radius: 2px;
  overflow: hidden;
}
.pf-attr__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--pf-accent), var(--pf-gold));
  transition: width 0.4s ease-out;
}

/* Profession card */
.pf-prof-card {
  padding: 14px 18px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.pf-prof-card__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(216, 160, 90, 0.15);
  border: 1px solid rgba(216, 160, 90, 0.4);
  color: var(--pf-gold);
  display: flex; align-items: center; justify-content: center;
}
.pf-prof-card__main h4 { margin: 0 0 4px; font-size: 15px; }
.pf-prof-card__main small { color: var(--pf-text-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-prof-card__lvl {
  text-align: right;
}
.pf-prof-card__lvl b { font-size: 22px; color: var(--pf-gold); display: block; line-height: 1; }
.pf-prof-card__lvl small { font-size: 10px; color: var(--pf-text-muted); }

/* Deeds */
.pf-deeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pf-deed {
  padding: 12px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  text-align: center;
}
.pf-deed__val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--pf-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.pf-deed__lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pf-text-muted);
}

/* Accessories */
.pf-acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pf-acc {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
}
.pf-acc__slot {
  width: 30px; height: 30px;
  border-radius: 4px;
  background: rgba(216, 160, 90, 0.12);
  border: 1px solid rgba(216, 160, 90, 0.3);
  color: var(--pf-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pf-acc__info { min-width: 0; }
.pf-acc__name { font-size: 13px; font-weight: 600; color: var(--pf-text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-acc__slot-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pf-text-muted); }

@media (max-width: 700px) {
  .pf-char-hero { grid-template-columns: 1fr; text-align: center; }
  .pf-char-hero__level { align-self: center; }
  .pf-vitals, .pf-attrs { grid-template-columns: 1fr; }
  .pf-points-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Battlepass card ────────────────────────────────────────── */
.pf-bp { padding: 0; overflow: hidden; }
.pf-bp-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 28px 22px;
  background:
    radial-gradient(circle at 100% 50%, rgba(216, 160, 90, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, rgba(34, 11, 17, 0.9) 0%, rgba(16, 10, 14, 0.95) 100%);
  border-bottom: 1px solid var(--pf-border);
}
.pf-bp-hero__main h2 { font-size: 24px; margin: 6px 0 4px; }
.pf-bp-hero__tier {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pf-bp-tier-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(216, 160, 90, 0.25), rgba(20, 13, 17, 0.95) 70%);
  border: 2px solid rgba(216, 160, 90, 0.65);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 16px rgba(216, 160, 90, 0.2),
    0 0 22px rgba(216, 160, 90, 0.2);
}
.pf-bp-tier-circle__num {
  font-size: 32px;
  font-weight: 700;
  color: var(--pf-gold);
  line-height: 1;
}
.pf-bp-tier-circle__of {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pf-text-muted);
  margin-top: 3px;
}
.pf-bp-tier-circle__of b { color: var(--pf-text); font-weight: 700; }
.pf-bp-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 3px;
  border: 1px solid rgba(115, 18, 34, 0.6);
  background: rgba(16, 10, 14, 0.8);
  color: var(--pf-text-dim);
}
.pf-bp-badge.is-premium {
  color: #fff5e0;
  border-color: rgba(216, 160, 90, 0.85);
  background: linear-gradient(180deg, #6b4a1a 0%, #2b1908 100%);
  box-shadow: 0 0 12px rgba(216, 160, 90, 0.45);
}

.pf-bp-progress {
  padding: 18px 28px;
  background: rgba(10, 7, 7, 0.5);
  border-bottom: 1px solid var(--pf-border);
}
.pf-bp-progress__row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--pf-text-dim);
  margin-bottom: 8px;
}
.pf-bp-progress__row span:first-child {
  font-weight: 600;
  color: var(--pf-text);
}
.pf-bp-progress .pf-bar { margin-bottom: 8px; }
.pf-bp-progress .pf-bar.is-ready span {
  background: linear-gradient(90deg, #6b8f5e 0%, #d8a05a 100%);
  box-shadow: 0 0 10px rgba(107, 143, 94, 0.5);
}
.pf-bp-meta {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--pf-text-muted);
}
.pf-bp-meta b { color: var(--pf-text); font-weight: 700; }

.pf-bp-section { padding: 18px 28px 6px; }
.pf-bp-section:last-child { padding-bottom: 22px; }
.pf-bp-section__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-accent-soft);
  margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 8px;
}
.pf-bp-section__title small {
  font-size: 10px;
  color: var(--pf-text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

/* ─── Ladder ─── */
.pf-bp-ladder {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.pf-bp-ladder::-webkit-scrollbar { display: none; }
.pf-bp-rung {
  flex: 0 0 132px;
  padding: 10px;
  background: rgba(16, 10, 14, 0.8);
  border: 1px solid var(--pf-border);
  border-radius: 5px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pf-bp-rung.is-current {
  border-color: var(--pf-accent);
  background: linear-gradient(180deg, rgba(100, 16, 29, 0.5) 0%, rgba(20, 13, 17, 0.9) 100%);
  box-shadow: 0 0 14px rgba(178, 40, 63, 0.35);
  transform: translateY(-2px);
}
.pf-bp-rung.is-claimed::after {
  content: "✓";
  position: absolute;
  top: 6px; right: 8px;
  color: rgba(107, 143, 94, 0.85);
  font-weight: 700;
  font-size: 14px;
}
.pf-bp-rung__tier {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pf-text-muted);
  margin-bottom: 8px;
}
.pf-bp-rung__tier b {
  color: var(--pf-gold);
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
}
.pf-bp-rung__rewards {
  display: flex; flex-direction: column; gap: 6px;
}
.pf-bp-reward {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--pf-border);
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--pf-text);
}
.pf-bp-reward__lvl {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  flex-shrink: 0;
  width: 32px;
}
.pf-bp-reward--premium {
  border-color: rgba(216, 160, 90, 0.4);
  background: rgba(40, 28, 8, 0.4);
}
.pf-bp-reward--premium .pf-bp-reward__lvl { color: var(--pf-gold); }
.pf-bp-reward__name {
  flex: 1;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── Quests ─── */
.pf-bp-quests { display: grid; gap: 8px; }
.pf-bp-quest {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 5px;
  transition: border-color 0.15s;
}
.pf-bp-quest:hover { border-color: var(--pf-border-strong); }
.pf-bp-quest.is-done {
  border-color: rgba(107, 143, 94, 0.65);
  background: rgba(20, 30, 14, 0.45);
}
.pf-bp-quest__cat {
  width: 4px;
  align-self: stretch;
  border-radius: 2px;
  background: var(--pf-text-muted);
}
.pf-bp-quest__cat--EASY { background: #6b8f5e; }
.pf-bp-quest__cat--MEDIUM { background: var(--pf-gold); }
.pf-bp-quest__cat--HARD { background: var(--pf-accent); }
.pf-bp-quest__main { min-width: 0; }
.pf-bp-quest__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text-bright);
  margin: 0 0 2px;
}
.pf-bp-quest__desc {
  font-size: 11px;
  color: var(--pf-text-dim);
  margin: 0 0 8px;
}
.pf-bp-quest__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.pf-bp-quest__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pf-accent) 0%, var(--pf-gold) 100%);
  transition: width 0.4s ease-out;
}
.pf-bp-quest__count {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  color: var(--pf-text-dim);
  letter-spacing: 0.02em;
}
.pf-bp-quest__xp {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.pf-bp-quest__xp b {
  color: var(--pf-gold);
  font-size: 14px;
  font-weight: 700;
}
.pf-bp-quest__xp small {
  font-size: 9px;
  color: var(--pf-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pf-bp-quest.is-done .pf-bp-quest__xp b { color: #9bc28a; }
.pf-bp-quest.is-done .pf-bp-quest__xp::before {
  content: "✓";
  color: #9bc28a;
  font-size: 16px;
}
.pf-bp-quests-empty {
  padding: 14px;
  text-align: center;
  color: var(--pf-text-muted);
  font-size: 12px;
  font-style: italic;
  background: rgba(16, 10, 14, 0.4);
  border: 1px dashed var(--pf-border);
  border-radius: 4px;
}

@media (max-width: 700px) {
  .pf-bp-hero { grid-template-columns: 1fr; text-align: center; }
  .pf-bp-hero__tier { align-self: center; }
  .pf-bp-rung { flex: 0 0 120px; }
}

/* ── Progress bar ───────────────────────────────────────────── */
.pf-progress__row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--pf-text-dim);
}
.pf-progress__row b { color: var(--pf-text); font-weight: 700; }
.pf-bar {
  height: 10px;
  background: var(--pf-bg-3);
  border: 1px solid var(--pf-border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}
.pf-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--pf-accent) 0%, var(--pf-gold) 100%);
  transition: width 0.4s ease-out;
}
.pf-progress__note { font-size: 12px; color: var(--pf-text-dim); margin: 0; }
.pf-tags {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pf-tags li {
  padding: 4px 10px;
  background: rgba(212, 160, 98, 0.1);
  border: 1px solid rgba(212, 160, 98, 0.3);
  border-radius: 3px;
  font-size: 12px;
  color: var(--pf-gold);
}

/* ── Skin layout ────────────────────────────────────────────── */
.pf-skin-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}
.pf-skin-preview { text-align: center; min-width: 0; }
/* ── 3D Skin viewer ─────────────────────────────────────────── */
.pf-skin-viewer {
  position: relative;
  width: 280px;
  height: 404px;
  max-width: 100%;
  margin: 0 auto 14px;
  background:
    radial-gradient(ellipse at center, rgba(178, 40, 63, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(20, 13, 17, 0.95) 0%, rgba(8, 5, 7, 0.95) 100%);
  border: 1px solid var(--pf-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  contain: strict;
}
.pf-skin-viewer:active { cursor: grabbing; }
.pf-skin-viewer canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.pf-skin-viewer__hint {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.pf-skin-viewer.is-touched .pf-skin-viewer__hint { opacity: 0; }

.pf-skin-viewer__controls {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 auto 14px;
  background: rgba(15, 8, 12, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 8px;
}
.pf-skin-btn {
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pf-text-dim);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.pf-skin-btn svg { width: 16px; height: 16px; display: block; }
.pf-skin-btn:hover {
  color: #fdeef2;
  background: rgba(100, 16, 29, 0.35);
}
.pf-skin-btn.is-active {
  color: #fdeef2;
  background: linear-gradient(180deg, #64101d 0%, #29070e 100%);
  border-color: rgba(148, 31, 50, 0.82);
  box-shadow: 0 0 12px rgba(82, 9, 20, 0.4);
}
.pf-skin-btn:focus-visible {
  outline: 2px solid rgba(178, 40, 63, 0.6);
  outline-offset: 1px;
}

/* ── Primary CTA — matches index.html ИГРАТЬ/ВОЙТИ buttons ──── */
.pf-btn-primary {
  color: #fdeef2;
  background: linear-gradient(180deg, #64101d 0%, #29070e 100%);
  border: 1px solid rgba(148, 31, 50, 0.82);
  box-shadow:
    0 0 0 1px rgba(148, 31, 50, 0.18),
    0 0 24px rgba(82, 9, 20, 0.24),
    0 14px 28px rgba(0, 0, 0, 0.36);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.pf-btn-primary:hover {
  border-color: rgba(178, 40, 63, 0.95);
  box-shadow:
    0 0 0 1px rgba(178, 40, 63, 0.28),
    0 0 28px rgba(110, 14, 29, 0.36),
    0 18px 34px rgba(0, 0, 0, 0.42);
  transform: translateY(-1px);
}
.pf-btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* form column wrapper */
.pf-skin-form-col { display: flex; flex-direction: column; gap: 18px; }

/* ── Skin history strip ─────────────────────────────────────── */
.pf-skin-history {
  padding: 14px;
  background: rgba(16, 10, 14, 0.5);
  border: 1px solid var(--pf-border);
  border-radius: 6px;
}
.pf-skin-history__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.pf-skin-history__head small { color: var(--pf-text-muted); font-size: 11px; }
.pf-skin-history__actions { display: flex; align-items: center; gap: 10px; }
.pf-skin-history__clear {
  background: transparent;
  border: 1px solid var(--pf-border);
  color: var(--pf-text-dim);
  width: 26px; height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pf-skin-history__clear svg { width: 14px; height: 14px; display: block; }
.pf-skin-history__clear:hover {
  color: #d99080;
  border-color: rgba(178, 40, 63, 0.6);
  background: rgba(157, 58, 47, 0.12);
}
.pf-skin-history__clear:focus-visible {
  outline: 2px solid rgba(178, 40, 63, 0.6);
  outline-offset: 1px;
}
.pf-skin-history__strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.pf-skin-history__strip::-webkit-scrollbar { display: none; }
.pf-history-item {
  flex: 0 0 56px;
  width: 56px; height: 104px;
  background: var(--pf-bg-3);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-history-item:hover { border-color: var(--pf-border-strong); transform: translateY(-2px); }
.pf-history-item.is-active { border-color: var(--pf-accent); box-shadow: 0 0 10px var(--pf-accent-glow); }
.pf-history-item canvas {
  width: 48px; height: 96px;
  image-rendering: auto;  /* 3D snapshot has smooth model AA + pixelated texture inside */
  display: block;
}
.pf-history-item__date {
  position: absolute;
  bottom: -16px; left: 0; right: 0;
  font-size: 9px;
  text-align: center;
  color: var(--pf-text-muted);
  letter-spacing: 0.04em;
}
.pf-history-item__del {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0, 0, 0, 0.72);
  border: none;
  color: #d99080;
  border-radius: 3px;
  font-size: 14px; line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.pf-history-item:hover .pf-history-item__del,
.pf-history-item:focus-within .pf-history-item__del { opacity: 1; }
.pf-history-item__del:hover {
  background: rgba(157, 58, 47, 0.85);
  color: #fff;
}
.pf-history-item__raw {
  width: 100%; height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
  display: block;
}
.pf-skin-history__empty {
  color: var(--pf-text-muted);
  font-size: 12px;
  font-style: italic;
  padding: 8px 0;
}
.pf-skin-preview strong { display: block; margin-bottom: 4px; }
.pf-skin-preview small { color: var(--pf-text-dim); font-size: 12px; }

/* ── Security tab ───────────────────────────────────────────── */
.sec-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
.sec-shield {
  background: linear-gradient(160deg, rgba(40, 10, 16, 0.9) 0%, rgba(18, 5, 8, 0.95) 100%);
  border: 1px solid rgba(148, 31, 50, 0.35);
  border-radius: var(--pf-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.sec-shield__icon svg {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 18px rgba(148, 31, 50, 0.45));
}
.sec-shield__title {
  font-size: 22px;
  font-weight: 700;
  color: #fdeef2;
  line-height: 1.3;
  margin: 0;
}
.sec-shield__hint {
  font-size: 12px;
  color: rgba(220, 140, 155, 0.6);
  line-height: 1.6;
  margin: 0;
}
.sec-rules {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.sec-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(220, 140, 155, 0.4);
  transition: color 0.25s;
}
.sec-rule svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.25s, stroke 0.25s;
}
.sec-rule.is-ok { color: rgba(110, 190, 120, 0.9); }
.sec-rule.is-ok svg { opacity: 1; stroke: #6dbf7e; }

.sec-form-wrap {
  background: linear-gradient(160deg, rgba(28, 8, 12, 0.85) 0%, rgba(14, 5, 7, 0.95) 100%);
  border: 1px solid rgba(148, 31, 50, 0.3);
  border-radius: var(--pf-radius);
  padding: 32px 28px;
}
.sec-form-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 31, 50, 0.2);
}
.sec-form-head h2 { font-size: 22px; margin: 6px 0 0; font-weight: 700; color: #fdeef2; }

.sec-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -4px;
}
.sec-strength__bar {
  flex: 1;
  height: 4px;
  background: rgba(148, 31, 50, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.sec-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}
.sec-strength__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(220, 140, 155, 0.5);
  min-width: 60px;
  transition: color 0.3s;
}

@media (max-width: 700px) {
  .sec-wrap { grid-template-columns: 1fr; }
  .sec-shield { position: static; flex-direction: row; flex-wrap: wrap; text-align: left; }
  .sec-shield__icon svg { width: 60px; height: 60px; }
}

/* ── Settings tab ───────────────────────────────────────────── */
.cfg-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cfg-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(30, 8, 14, 0.9) 0%, rgba(14, 5, 8, 0.95) 100%);
  border: 1px solid rgba(148, 31, 50, 0.3);
  border-radius: var(--pf-radius);
}
.cfg-header__icon {
  width: 36px; height: 36px;
  color: rgba(200, 100, 120, 0.7);
  flex-shrink: 0;
}
.cfg-header h2 { font-size: 22px; margin: 4px 0 0; font-weight: 700; color: #fdeef2; }

.cfg-group {
  background: linear-gradient(160deg, rgba(24, 7, 11, 0.88) 0%, rgba(12, 4, 6, 0.95) 100%);
  border: 1px solid rgba(148, 31, 50, 0.25);
  border-radius: var(--pf-radius);
  overflow: hidden;
}
.cfg-group__label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 100, 120, 0.5);
  padding: 14px 22px 10px;
  border-bottom: 1px solid rgba(148, 31, 50, 0.12);
}
.cfg-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 31, 50, 0.1);
  transition: background 0.2s;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-row:hover { background: rgba(148, 31, 50, 0.05); }
.cfg-row--danger:hover { background: rgba(80, 10, 10, 0.12); }

.cfg-row__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cfg-row__icon svg { width: 18px; height: 18px; }
.cfg-row__icon--red   { background: rgba(100, 16, 29, 0.4);  color: #d45570; border: 1px solid rgba(148,31,50,0.3); }
.cfg-row__icon--amber { background: rgba(80, 50, 10, 0.4);   color: #c8882a; border: 1px solid rgba(160,110,20,0.3); }
.cfg-row__icon--muted { background: rgba(40, 20, 25, 0.5);   color: rgba(180,100,110,0.5); border: 1px solid rgba(100,40,50,0.2); }

.cfg-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cfg-row__title {
  font-size: 14px;
  font-weight: 600;
  color: #f0d8de;
}
.cfg-row--danger .cfg-row__title { color: rgba(200, 130, 140, 0.6); }
.cfg-row__desc {
  font-size: 11px;
  color: rgba(180, 120, 135, 0.5);
  line-height: 1.5;
}

.cfg-row__btn {
  min-width: 110px !important;
  min-height: 40px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  flex-shrink: 0;
}
.cfg-row__badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 80, 90, 0.5);
  background: rgba(80, 10, 20, 0.3);
  border: 1px solid rgba(100, 30, 40, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* cfg-toggle (заменяет profile-switch в настройках) */
.cfg-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.cfg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cfg-toggle__track {
  width: 44px; height: 24px;
  background: rgba(60, 15, 22, 0.8);
  border: 1px solid rgba(148, 31, 50, 0.4);
  border-radius: 12px;
  position: relative;
  transition: background 0.25s, border-color 0.25s;
}
.cfg-toggle__thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: rgba(200, 100, 120, 0.6);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}
.cfg-toggle input:checked + .cfg-toggle__track {
  background: rgba(80, 160, 90, 0.25);
  border-color: rgba(80, 160, 90, 0.6);
}
.cfg-toggle input:checked + .cfg-toggle__track .cfg-toggle__thumb {
  transform: translateX(20px);
  background: #6dbf7e;
}
.cfg-toggle__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 130, 140, 0.6);
  min-width: 68px;
  transition: color 0.25s;
}
.cfg-toggle input:checked ~ .cfg-toggle__label {
  color: rgba(110, 190, 120, 0.8);
}

@media (max-width: 600px) {
  .cfg-row { flex-wrap: wrap; gap: 12px; }
  .cfg-row__btn { width: 100%; }
}

/* ── Forms ──────────────────────────────────────────────────── */
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(220, 140, 155, 0.75);
  margin-bottom: -6px;
}
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="password"] {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(180deg, rgba(30, 8, 12, 0.92) 0%, rgba(18, 5, 8, 0.96) 100%);
  border: 1px solid rgba(148, 31, 50, 0.45);
  border-radius: 10px;
  color: #fdeef2;
  font-family: "MedievalSharp", cursive;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(80, 10, 20, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.profile-form input[type="text"]::placeholder,
.profile-form input[type="email"]::placeholder,
.profile-form input[type="password"]::placeholder {
  color: rgba(220, 140, 155, 0.35);
  letter-spacing: 0.04em;
}
.profile-form input:focus {
  outline: none;
  border-color: rgba(166, 35, 56, 0.85);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(148, 31, 50, 0.3),
    0 0 18px rgba(110, 12, 26, 0.28);
}
.profile-field { position: relative; }
.profile-field input { padding-right: 84px; }
.profile-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: rgba(60, 10, 18, 0.7);
  border: 1px solid rgba(148, 31, 50, 0.4);
  color: rgba(220, 140, 155, 0.7);
  font-size: 9px;
  font-family: "MedievalSharp", cursive;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.profile-toggle:hover {
  color: #fdeef2;
  border-color: rgba(166, 35, 56, 0.8);
  background: rgba(80, 15, 25, 0.9);
}
.profile-form__note { font-size: 12px; color: var(--pf-text-muted); margin: 4px 0; }
.profile-form__button { align-self: flex-start; margin-top: 8px; }
.profile-form__inline-message { font-size: 13px; margin: 4px 0 0; }
.profile-form__inline-message[data-kind="err"] { color: #d99080; }
.profile-form__inline-message[data-kind="ok"] { color: #9bc28a; }
.profile-form__inline-message[data-kind="info"] { color: var(--pf-text-dim); }

/* ── File picker ────────────────────────────────────────────── */
.profile-file-picker { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-file-picker__input { display: none; }
.profile-file-picker__button {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--pf-border);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: border-color 0.2s;
}
.profile-file-picker__button:hover { border-color: var(--pf-accent); }
.profile-file-picker__name { font-size: 12px; color: var(--pf-text-dim); }

/* ── Settings switch ────────────────────────────────────────── */
.profile-settings-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.profile-settings-box__label { font-size: 13px; font-weight: 600; }
.profile-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.profile-switch input { position: absolute; opacity: 0; pointer-events: none; }
.profile-switch__track {
  width: 44px; height: 22px;
  background: var(--pf-bg-3);
  border: 1px solid var(--pf-border);
  border-radius: 11px;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.profile-switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--pf-text-dim);
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}
.profile-switch input:checked + .profile-switch__track {
  background: rgba(194, 90, 58, 0.3);
  border-color: var(--pf-accent);
}
.profile-switch input:checked + .profile-switch__track .profile-switch__thumb {
  left: 24px;
  background: var(--pf-accent);
}
.profile-switch__text { font-size: 12px; color: var(--pf-text-dim); }

/* ── Admin panel ────────────────────────────────────────────── */
.pf-tab--admin {
  position: relative;
}
.pf-tab--admin::before {
  content: "★";
  position: absolute;
  left: 6px;
  top: 12px;
  font-size: 10px;
  color: var(--pf-accent-soft);
}
.pf-admin-eyebrow {
  color: var(--pf-accent-soft) !important;
}
.pf-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .pf-admin-grid { grid-template-columns: 1fr; }
}
.pf-admin-form { display: flex; flex-direction: column; gap: 8px; }
.pf-admin-coords {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.pf-admin-coords > div { display: flex; flex-direction: column; gap: 4px; }
.pf-admin-form-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.pf-admin-form-actions .action-button { flex: 1; min-width: 140px; }
.pf-admin-emoji-picker {
  margin: 6px 0 0;
  font-size: 12px;
}
.pf-admin-emoji-picker summary {
  cursor: pointer;
  color: var(--pf-text-dim);
  padding: 6px 0;
  user-select: none;
}
.pf-admin-emoji-picker summary:hover { color: var(--pf-text-bright); }
.pf-admin-emoji-grid {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  font-size: 18px;
  line-height: 1.4;
  word-spacing: 6px;
  letter-spacing: 4px;
  user-select: text;
}
.pf-admin-emoji-grid:hover { cursor: copy; }

.pf-admin-list { min-width: 0; }
.pf-marker-group {
  margin-bottom: 16px;
}
.pf-marker-group__head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-text-muted);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--pf-border);
}
.pf-marker-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(16, 10, 14, 0.85);
  border: 1px solid var(--pf-border);
  border-radius: 4px;
  margin-bottom: 6px;
  transition: border-color 0.15s;
}
.pf-marker-row:hover { border-color: var(--pf-border-strong); }
.pf-marker-row__main { min-width: 0; }
.pf-marker-row__label {
  font-size: 14px;
  color: var(--pf-text-bright);
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-marker-row__meta {
  font-size: 11px;
  color: var(--pf-text-muted);
  font-family: 'Courier New', monospace;
}
.pf-marker-row__btn {
  background: transparent;
  border: 1px solid var(--pf-border);
  color: var(--pf-text-dim);
  width: 30px; height: 30px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pf-marker-row__btn svg { width: 14px; height: 14px; }
.pf-marker-row__btn:hover {
  color: var(--pf-text-bright);
  border-color: var(--pf-border-strong);
}
.pf-marker-row__btn--del:hover {
  color: #fff;
  background: rgba(157, 58, 47, 0.7);
  border-color: rgba(178, 40, 63, 0.8);
}

/* ── Toast ──────────────────────────────────────────────────── */
.pf-toast[hidden] { display: none !important; }
.pf-toast {
  position: fixed;
  bottom: 28px; right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 31, 50, 0.5);
  background: linear-gradient(135deg, rgba(28, 8, 12, 0.97) 0%, rgba(16, 4, 8, 0.99) 100%);
  color: #f0d8de;
  font-family: "MedievalSharp", cursive;
  font-size: 13px;
  letter-spacing: 0.04em;
  z-index: 9999;
  max-width: 340px;
  box-shadow:
    0 0 0 1px rgba(80, 10, 20, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(80, 10, 20, 0.2);
  animation: pf-toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.pf-toast svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: rgba(220, 140, 155, 0.8);
}
.pf-toast span { flex: 1; }
.pf-toast--ok {
  border-color: rgba(60, 140, 80, 0.7);
  background: linear-gradient(135deg, rgba(8, 28, 14, 0.97) 0%, rgba(4, 16, 8, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(30, 100, 50, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(20, 80, 35, 0.25);
  color: #d0f0d8;
}
.pf-toast--ok svg { color: #6dbf7e; }
.pf-toast--err {
  border-color: rgba(180, 40, 55, 0.8);
  background: linear-gradient(135deg, rgba(32, 6, 10, 0.97) 0%, rgba(20, 4, 6, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(148, 31, 50, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(110, 12, 26, 0.35);
  color: #fdeef2;
}
.pf-toast--err svg { color: #d45570; }
.pf-toast--info svg { color: rgba(160, 150, 210, 0.9); }
.pf-toast--hiding {
  animation: pf-toast-out 0.35s ease-in both;
}
@keyframes pf-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pf-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* ── Header logout ──────────────────────────────────────────── */
.profile-header__logout {
  background: rgba(157, 58, 47, 0.2);
  border-color: rgba(157, 58, 47, 0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .profile-main { padding: 90px 16px 60px; }
  .pf-topbar { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .pf-topbar__pills { grid-column: 1 / -1; }
  .pf-topbar__avatar { width: 72px; height: 72px; }
  .pf-topbar__name-row h1 { font-size: 22px; }
  .pf-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-row { grid-template-columns: 1fr; }
  .pf-skin-layout { grid-template-columns: 1fr; }
  .pf-skin-viewer { width: 100%; max-width: 280px; }
  .pf-tabs { font-size: 12px; }
  .pf-tab { padding: 12px 14px; }
}
@media (max-width: 500px) {
  .pf-stats-grid { grid-template-columns: 1fr; }
  .pf-topbar__pills { gap: 6px; }
  .pf-pill { min-width: 70px; padding: 6px 10px; }
}

.profile-body,
.profile-body *,
.profile-body input,
.profile-body button,
.profile-body textarea,
.profile-body select {
  font-family: "MedievalSharp", cursive !important;
}

.profile-body *:focus { outline: none; }

/* ── Унифицированные кнопки профиля (hero-стиль) ────────────── */
.profile-body .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 200px;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 18px;
  border: 1px solid rgba(148, 31, 50, 0.82);
  font-family: "MedievalSharp", cursive !important;
  font-weight: 700;
  color: #fdeef2;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: linear-gradient(180deg, #64101d 0%, #29070e 100%);
  box-shadow:
    0 0 0 1px rgba(148, 31, 50, 0.18),
    0 0 24px rgba(82, 9, 20, 0.24),
    0 14px 28px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.profile-body .action-button:hover {
  background: linear-gradient(180deg, #781523 0%, #360913 100%);
  border-color: rgba(166, 35, 56, 0.9);
  box-shadow:
    0 0 0 1px rgba(166, 35, 56, 0.28),
    0 0 34px rgba(110, 12, 26, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.profile-body .action-button:active { transform: translateY(0); }
.profile-body .action-button svg { width: 18px; height: 18px; }

/* ============================================================
   Cosmetics tab — full UI redesign
   ============================================================ */
.pf-card--skin .pf-skin-layout {
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 28px;
}

/* ── Stage holding the 3D viewer ── */
.pf-skin-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 20px 64px;
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(178, 40, 63, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(24, 14, 18, 0.96), rgba(8, 5, 7, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 18px 42px rgba(0, 0, 0, 0.34);
}
.pf-skin-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(178, 40, 63, 0.7), transparent 70%);
}
.pf-skin-stage::after {
  content: "";
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(178, 40, 63, 0.34), transparent 70%);
  filter: blur(3px);
}

/* viewer now transparent — the stage provides the backdrop */
.pf-card--skin .pf-skin-viewer {
  margin: 0;
  background: transparent;
  border: 1px solid rgba(129, 25, 39, 0.2);
  border-radius: 14px;
  z-index: 1;
}
.pf-card--skin .pf-skin-viewer__hint {
  top: 8px;
  bottom: auto;
}

/* control toolbar floats at the bottom of the stage */
.pf-skin-stage .pf-skin-viewer__controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 2;
  background: rgba(10, 6, 9, 0.82);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.pf-skin-file {
  display: inline-block;
  margin: 16px 0 4px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--pf-text-bright);
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(16, 10, 14, 0.7);
}

/* ── Upload form ── */
.pf-skin-upload { gap: 16px; }

.pf-dropzone { display: block; padding: 0; border: 0; background: none; }
.pf-dropzone__area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  border: 1.5px dashed rgba(178, 40, 63, 0.36);
  border-radius: 16px;
  background: rgba(16, 10, 14, 0.5);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.pf-dropzone__area:hover,
.pf-dropzone.is-dragover .pf-dropzone__area {
  border-color: rgba(198, 69, 88, 0.75);
  background: rgba(40, 13, 19, 0.55);
  box-shadow: 0 0 26px rgba(82, 9, 20, 0.24);
}
.pf-dropzone__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #e6a6b2;
  border: 1px solid rgba(178, 40, 63, 0.32);
  background: linear-gradient(180deg, rgba(40, 13, 19, 0.95), rgba(12, 6, 9, 0.98));
  box-shadow: inset 0 0 16px rgba(173, 42, 64, 0.26);
}
.pf-dropzone__icon svg { width: 22px; height: 22px; }
.pf-dropzone__title { color: var(--pf-text-bright); font-size: 14px; font-weight: 600; }
.pf-dropzone__hint { color: var(--pf-text-dim); font-size: 12px; }
.pf-dropzone .profile-file-picker__name {
  margin-top: 8px;
  font-size: 12px;
  color: #d99080;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* spec chips */
.pf-skin-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-skin-specs span {
  padding: 6px 11px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--pf-text-dim);
  border: 1px solid var(--pf-border);
  border-radius: 999px;
  background: rgba(16, 10, 14, 0.6);
}

.pf-skin-upload .profile-form__button { width: 100%; }

/* live-update badge */
.pf-skin-live {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 13px;
  font-size: 12px;
  line-height: 1.4;
  color: #8fcf9f;
  border: 1px solid rgba(107, 143, 94, 0.32);
  border-radius: 12px;
  background: rgba(18, 28, 18, 0.4);
}
.pf-skin-live__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #79c08c;
  box-shadow: 0 0 8px rgba(121, 192, 140, 0.8);
  animation: pfLivePulse 2s ease-in-out infinite;
}
@keyframes pfLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* history header polish */
.pf-card--skin .pf-skin-history {
  padding: 16px;
  border-radius: 14px;
  background: rgba(16, 10, 14, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .pf-skin-live__dot { animation: none; }
}

@media (max-width: 900px) {
  .pf-card--skin .pf-skin-layout { grid-template-columns: 1fr; }
  .pf-skin-stage { padding-bottom: 60px; }
}
