/* Legba · скрытый режим оформления «Свидетель профита» (задание владельца 29.09; референс — ролик и логотипы сообщества
   «Свидетель профита» и «Орден профита»; настроение — телекран из «1984» Оруэлла). Идея: логичный, систематичный подход —
   копаем вглубь, не оглядываясь на чужие мнения. Тёмный экран в дыму, белый узкий гротеск капсом (Oswald), красный глаза — действия
   и выбор, мятный и розово-красный — рост и падение, как свечи в ролике; RGB-расслоение — отклик на наведение и щелчок.
   От «Ордена профита» — только золото знака Legba и рамки фокуса. Живой фон — FR11_motion/witness.js.
   Включается ?skin=witness или выбором во вкладке «Оформление», если владелец выдал пользователю (белый список backend — users.SKINS).
   Пометки ФАКТ / ОЦЕНКА / ОЦЕНКА СО СТОРОНЫ, «нет данных», формулировки и данные — без изменений; текст — ≥ 4.5:1. Все цвета режима — здесь. */
@font-face { font-family: "Oswald"; src: url("fonts/oswald/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }   /* SIL OFL, fonts/oswald/OFL.txt */
:root[data-skin="witness"], [data-pv="witness"] {   /* [data-pv] — образец режима во вкладке «Оформление» */
  color-scheme: dark;
  --font-display: "Oswald", "Golos Text", sans-serif;
  --bg: #07090c; --bg-deep: #040507; --surface: #0c1016; --surface-2: #131a23;
  --line: #2a3441; --line-soft: #19212b; --text: #d5dbe4; --head: #f3efe6;
  --muted: #8e99aa; --faint: #808b9b; --nodata-fg: #8e99aa;
  --accent: #e3263b; --accent-hi: #ff5a6b; --on-accent: #ffffff;
  --accent-a10: rgba(227, 38, 59, .10); --accent-a20: rgba(227, 38, 59, .20); --accent-a35: rgba(227, 38, 59, .38);
  --wt-gold: #d6b04c; --wt-bolt: #9fd6ff; --wt-redact: #020304;   /* --wt-redact — «засекреченные» полосы загрузки */
  --chart-line: #f3efe6;                    /* графики цены и баланса — белой линией: красный здесь — выбор, а не падение */
  --chart-unlock: var(--wt-gold);           /* метки разлоков — золотом: линия цены здесь белая */
  --focus: #e2bf5a;
  --r-1: 0; --r-2: 0; --r-3: 0; --r-4: 0; --r-pill: 0;
  --shadow-1: none; --shadow-2: 0 0 0 1px #2a3441, 0 18px 40px rgba(0, 0, 0, .6);
  --scrim: rgba(0, 0, 0, .62);
  --risk: #ff5a6b; --risk-bg: rgba(227, 38, 59, .14);
  --warn: #e2bf5a; --warn-bg: rgba(226, 191, 90, .12);
  --calm: #33d1a0; --calm-bg: rgba(51, 209, 160, .12);
  --delta: #d5dbe4;
  --seg-1: #f3efe6; --seg-2: #e3263b; --seg-3: #8e99aa; --seg-4: #4a5566; --seg-5: #28313d;
  --cn-tx-lo: #2c3642; --cn-tx-mid: #8e99aa; --cn-tx-hi: #f3efe6;
  --cn-nodata: #1a212b; --cn-label: #d8b4fe; --cn-hot: #e3263b; --cn-link: #5d6a7c; --cn-guide: rgba(159, 214, 255, .08);   /* адрес с меткой — лаванда (30.09, ПРЕДЛОЖЕНИЕ): прежний #9fd6ff = --b-ext-fg и --wt-bolt; 9,9:1 на --surface-2 */
  --ri-tx: #e3263b; --ri-tx-infra: #9fd6ff; --ri-link: rgba(142, 153, 170, .4);
  --ri-node: #8e99aa; --ri-node-top: #3c4755; --ri-node-zero: #1a212b;
  --ri-vol: #f3efe6; --ri-cnt: #33d1a0; --ri-band: rgba(227, 38, 59, .12); --ri-hover: rgba(243, 239, 230, .05);
  --flow-in: #33d1a0; --flow-out: #ea4f86; --flow-zero: #2c3642; --flow-empty: #0c1016;
  --flow-in-a: rgba(51, 209, 160, .18); --flow-out-a: rgba(234, 79, 134, .18);
  --rt-node: #8e99aa; --rt-exchange: #6fb7ff; --rt-bridge: #b48cff; --rt-contract: #33d1a0; --rt-popular: #ea4f86;
  --b-fact-fg: #f3efe6; --b-fact-bg: transparent; --b-fact-bd: rgba(243, 239, 230, .75);   /* ФАКТ — контуром (владелец 30.09): белая плашка была ярче чисел */
  --b-est-fg: #ff8a96; --b-est-bg: transparent; --b-est-bd: #e3263b;
  --b-ext-fg: #9fd6ff; --b-ext-bg: transparent; --b-ext-bd: #4f8fbf;
  --nodata-stripe: rgba(243, 239, 230, .05);
  --skin-canvas: #040507; --skin-contour: rgba(159, 214, 255, .05);
  --skin-track: #2a3441; --skin-rail: #19212b; --skin-knob: #f3efe6;
  --skin-hole: rgba(243, 239, 230, .22); --skin-label-glow: 0; --skin-hot-glow: 8;
}
[data-pv="witness"] .pv { border: 1px solid #2a3441; }
[data-pv="witness"] .pv-bar { background: var(--bg-deep); border-bottom-color: #3a1b22; }
[data-pv="witness"] .pv-logo { border-radius: 0; background: var(--wt-gold); }
[data-pv="witness"] .pv-h { font: 600 var(--fs-20)/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
[data-pv="witness"] :is(.pv-sw, .pv-sw::after, .pv-tab) { border-radius: 0; }
[data-pv="witness"] .pv-line { stroke: var(--flow-in); }
[data-pv="witness"] .pv-area { fill: var(--flow-in-a); }

/* ── экран: почти чёрный, строки развёртки поверх всего (не мешают щелчкам) ── */
[data-skin="witness"] body { background: var(--bg); text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 0 10px rgba(0, 0, 0, .6); }
[data-skin="witness"] body::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 3px); }
[data-skin="witness"] ::selection { background: var(--accent); color: #fff; text-shadow: none; }
[data-skin="witness"] :is(.cta, .btn.pri, .wl-btn.pri, .tn-in, .badge, .pills [aria-selected="true"], .pills [aria-pressed="true"], .seg .on, .seg button[aria-pressed="true"], .pc-grp button[aria-pressed="true"], .rng button[aria-pressed="true"], .tn-b:hover) { text-shadow: none; }

/* ── панель навигации: чёрная, красная черта снизу; знак Legba — золотом «Ордена», после слова — красный глаз ── */
[data-skin="witness"] .tnav { background: var(--bg-deep); border-bottom: 1px solid #3a1b22; box-shadow: 0 1px 0 rgba(227, 38, 59, .25); }
[data-skin="witness"] .tn-logo { --accent: var(--wt-gold); font: 600 var(--fs-18)/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
[data-skin="witness"] .tn-logo .w::after { content: ""; display: inline-block; width: 16px; height: 9px; margin-left: 8px; vertical-align: 1px;
  background: radial-gradient(circle at 50% 50%, #0b0e13 0 22%, #e3263b 24% 46%, #f3efe6 48% 100%);
  -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 96%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 96%, transparent 100%); }
[data-skin="witness"] .tn-b.tn-cur { background: transparent; border-color: transparent; box-shadow: inset 0 -2px 0 var(--accent); color: var(--head); }
[data-skin="witness"] .tn-t { font: 500 var(--fs-13)/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }

/* ── заголовки: узкий гротеск капсом; у заголовков карточек — красные «скоростные» линии, как по бокам логотипа;
   у окон Reckoning — короткая красная планка над заголовком, как «секретно» на листах архива (владелец 30.09: «≡» там был отдельным
   элементом строки-флекса и уезжал к краю, а заголовок — в середину) ── */
[data-skin="witness"] :is(.wl h1, .ahead h1, .hp-head h1) { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
[data-skin="witness"] .wl h1 { font-size: clamp(40px, 5vw, 64px); max-width: 14ch; }
[data-skin="witness"] .wl h1 em { color: var(--accent); }
[data-skin="witness"] :is(.tile h2, .win h2, .card h2, .wl-feat h2, .tile h3, .hp-sec > h2) { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--head); }
[data-skin="witness"] .tile h2 { padding-top: 14px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 28px 3px no-repeat; }
[data-skin="witness"] :is(.win h2, .card h2, .wl-feat h2, .hp-sec > h2)::before { content: ""; display: inline-block; flex: none; width: 16px; height: 7px; margin-right: 10px; vertical-align: .18em;
  background: repeating-linear-gradient(180deg, var(--accent) 0 1px, transparent 1px 3px); }
[data-skin="witness"] .answer .k, [data-skin="witness"] .wl-h { font-family: var(--font-mono); letter-spacing: .12em; }
[data-skin="witness"] :is(.answer .n, .wl-tt td.sh) { color: var(--head); }   /* ключевые числа — белым: красный в режиме — выбор и действия */
/* первый экран: заголовок проявляется RGB-расслоением, как логотип в ролике */
[data-skin="witness"] :is(.wl h1, .ahead h1, #answer p) { animation: wt-sync 1s steps(10, end) both; }
@keyframes wt-sync {
  0% { opacity: 0; text-shadow: -12px 0 rgba(255, 42, 74, .9), 12px 0 rgba(42, 216, 255, .9); transform: translateX(-4px); }
  30% { opacity: 1; text-shadow: -6px 0 rgba(255, 42, 74, .8), 6px 0 rgba(42, 216, 255, .8); transform: translateX(3px); }
  60% { text-shadow: -2px 0 rgba(255, 42, 74, .6), 2px 0 rgba(42, 216, 255, .6); transform: none; }
  100% { text-shadow: 0 0 3px rgba(0, 0, 0, .9); }
}

/* ── карточки: тёмная панель, прямые углы, волосяная рамка; наведение — рамка краснеет и расслаивается по цветам ── */
[data-skin="witness"] :is(.tile, .win, .value, .card, .wl-feat, .wl-pv, aside#panel, .rt-card, .rt-pop, .rt-side, .gcard) {
  background-color: rgba(12, 16, 22, .94); border: 1px solid var(--line); transition: box-shadow .16s steps(3), border-color .16s steps(2); }
[data-skin="witness"] :is(.tile, .win, .card, .wl-feat):hover { border-color: var(--accent); box-shadow: -2px 0 0 rgba(42, 216, 255, .35), 2px 0 0 rgba(255, 42, 74, .45); }
[data-skin="witness"] .wl-pvh { background: var(--bg-deep); border-bottom-color: #3a1b22; }
[data-skin="witness"] :is(.chip, .cchip, .lbl, .kinds code, .tag, .st-tag, .badge) { border-radius: 0; }

/* ── кнопки: ведущая — красная, прочие — в рамке; наведение — подпись расслаивается, нажатие — вдавливается ── */
[data-skin="witness"] :is(.cta, .btn, .ghost, .copy, .wl-btn, .open, .hm-btn, .lsn-btn, .tn-in) { font-family: var(--font-display); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; border-radius: 0; }
[data-skin="witness"] :is(.cta, .btn.pri, .tn-in, .wl-btn.pri) { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
[data-skin="witness"] :is(.open, .btn:not(.pri), .hm-btn, .ghost, .copy, .wl-btn:not(.pri), .lsn-btn) { background: transparent; border: 1px solid #3c4755; color: var(--head); }
[data-skin="witness"] :is(.cta, .btn, .ghost, .copy, .wl-btn, .open, .hm-btn, .lsn-btn):not(:disabled):hover { border-color: var(--accent); text-shadow: -1.5px 0 rgba(42, 216, 255, .75), 1.5px 0 rgba(255, 42, 74, .85); }
[data-skin="witness"] :is(.cta, .btn.pri, .wl-btn.pri, .tn-in):hover { background: #c81d31; text-shadow: -1.5px 0 rgba(42, 216, 255, .8), 1.5px 0 rgba(0, 0, 0, .5); }
[data-skin="witness"] :is(.cta, .btn, .ghost, .copy, .wl-btn, .open, .hm-btn, .lsn-btn):active { transform: translateY(1px); }
[data-skin="witness"] :is(.pills, .seg) { border: 1px solid var(--line); border-radius: 0; background: var(--bg-deep); }
[data-skin="witness"] :is(.pills button, .pills a, .seg button, .seg a) { border-radius: 0; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
[data-skin="witness"] :is(.pills [aria-selected="true"], .pills [aria-pressed="true"], .seg .on, .seg button[aria-pressed="true"], .pc-grp button[aria-pressed="true"]) { background: var(--accent); color: #fff; }
[data-skin="witness"] :is(.inp, .sel, .find, .topn input, .rng input[type="date"]) { border-radius: 0; background: var(--bg-deep); border-color: var(--line); color: var(--head); }
[data-skin="witness"] :is(.inp, .sel, .find):focus { border-color: var(--wt-gold); outline: 0; }
[data-skin="witness"] .switch input:checked + .tr { background: var(--accent-a20); border-color: var(--accent); }
[data-skin="witness"] .ghost.danger { color: var(--accent-hi); border-color: var(--accent); }

/* ── ссылки, подсказки, схемы, справочник ── */
/* мелкий красный текст — светлее (#ff5a6b, 6:1): красный заливок (#e3263b) на тёмном даёт только 4.2:1 */
[data-skin="witness"] :is(.since a, .wl-feat .lk a, footer a, a.alink, .hp-tx a, .pc-note a, .linkbtn, details.more summary, .lsn-tx, .tn-bpop .bf a, .tn-bpop .bf button, .wl-feat .ic) { color: var(--accent-hi); text-decoration-color: var(--accent); }
[data-skin="witness"] :is(.tip, .ctip, .htip) { border-radius: 0; border-left: 2px solid var(--accent); background: rgba(4, 5, 7, .96); }
[data-skin="witness"] .vp { background: radial-gradient(ellipse at center, #10151c 0%, var(--bg) 70%); }
[data-skin="witness"] .hp-zoom { border-radius: 0; border-color: var(--line); }
[data-skin="witness"] .hp-toc a[aria-current="true"] { background: var(--accent-a10); box-shadow: inset 2px 0 0 var(--accent); }

/* ── окна Reckoning до данных и мини-окна потоков (владелец 30.09) — «засекреченный лист»: чёрные полосы на месте будущих строк и медленная
   развёртка. #loading убирается после загрузки — с ним уходят и полосы. Сам экран загрузки — ниже, в блоке «загрузка» ── */
@keyframes wt-cur { 50% { opacity: 0; } }
[data-skin="witness"] :is(#loading ~ .board .tile:empty, .mini[aria-busy="true"]) { position: relative; overflow: hidden; min-height: 170px;
  background: linear-gradient(var(--accent), var(--accent)) 24px 22px / 28px 3px no-repeat,
    linear-gradient(var(--wt-redact), var(--wt-redact)) 24px 38px / 32% 14px no-repeat,
    linear-gradient(var(--wt-redact), var(--wt-redact)) 24px 74px / 78% 8px no-repeat,
    linear-gradient(var(--wt-redact), var(--wt-redact)) 24px 92px / 62% 8px no-repeat,
    linear-gradient(var(--wt-redact), var(--wt-redact)) 24px 110px / 70% 8px no-repeat,
    linear-gradient(var(--wt-redact), var(--wt-redact)) 24px 128px / 46% 8px no-repeat,
    rgba(12, 16, 22, .94); }
[data-skin="witness"] .mini[aria-busy="true"] { min-height: 200px; align-content: end; }
[data-skin="witness"] .mini[aria-busy="true"] > p { margin: 0; font: 600 var(--fs-11)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
[data-skin="witness"] :is(#loading ~ .board .tile:empty, .mini[aria-busy="true"])::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(243, 239, 230, .06), transparent); transform: translateX(-100%); animation: wt-sweep 1.8s steps(18) infinite; }
@keyframes wt-sweep { to { transform: translateX(100%); } }

/* ── щелчок — «ЗАФИКСИРОВАНО»: красная рамка прицела сжимается на точке, подпись гаснет (FR11_motion/motion.js) ── */
.mo-fix { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.mo-fix::before { content: ""; position: absolute; inset: 0; border: 2px solid #e3263b; box-shadow: -2px 0 0 rgba(42, 216, 255, .5), 2px 0 0 rgba(255, 42, 74, .6);
  animation: mo-fix .55s steps(6, end) forwards; }
.mo-fix::after { content: "ЗАФИКСИРОВАНО"; position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); white-space: nowrap;
  font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: .14em; color: #ff5a6b; animation: mo-fix-t .9s steps(8, end) forwards; }
@keyframes mo-fix { 0% { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } 70% { transform: scale(.5); opacity: 1; } 100% { transform: scale(.45); opacity: 0; } }
@keyframes mo-fix-t { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ── уменьшить движение: без проявления и расслоения ── */
@media (prefers-reduced-motion: reduce) {
  [data-skin="witness"] :is(.wl h1, .ahead h1, #answer p) { animation: none; }
  [data-skin="witness"] :is(.tile, .win, .card, .wl-feat) { transition: none; }
  [data-skin="witness"] .ldr-t::after { animation: none; }   /* курсор экрана загрузки */
  [data-skin="witness"] :is(#loading ~ .board .tile:empty, .mini[aria-busy="true"])::after { animation: none; display: none; }
}

/* ── загрузка (владелец 30.09; общее — FR2_shell/loader.css): «Свидетель профита» — красная дуга ступенями, в центре кольца глаз телекрана: зрачок обводит экран, изредка моргает; заголовок — капсом с курсором */
[data-skin="witness"] .ldr-em i:nth-child(2) { animation: ldr-spin 1.2s steps(12) infinite; }
/* глаз — два века-дуги (верхнее и нижнее); моргание — веки сходятся к средней линии, зрачок прячется между ними (владелец 01.10: прежняя «шторка» была видна прямоугольником) */
/* веко — дуга круга 34 px, срезанная по линии глаза (хорда 28 px, высота дуги 7,36 px): верхняя и нижняя сходятся острыми уголками — «миндалина» (владелец 01.10) */
[data-skin="witness"] .ldr-em i:nth-child(3), [data-skin="witness"] .ldr-em i:nth-child(5) { display: block; box-sizing: border-box; left: 50%; top: 50%; width: 34px; height: 34px; margin-left: -17px; background: none; box-shadow: none; border: 2px solid var(--head); border-radius: 50%; animation: ldr-lid 4.2s ease-in-out infinite; }
[data-skin="witness"] .ldr-em i:nth-child(3) { margin-top: -7.36px; clip-path: inset(0 0 calc(100% - 7.36px) 0); transform-origin: 50% 7.36px; }   /* верхнее веко: хорда — на средней линии */
[data-skin="witness"] .ldr-em i:nth-child(5) { margin-top: -26.64px; clip-path: inset(calc(100% - 7.36px) 0 0 0); transform-origin: 50% 26.64px; }   /* нижнее веко */
@keyframes ldr-lid { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.06); } }
[data-skin="witness"] .ldr-em i:nth-child(4) { display: block; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: radial-gradient(circle, var(--bg) 0 30%, var(--accent) 34%); animation: ldr-look 3.6s steps(1) infinite, ldr-iris 4.2s ease-in-out infinite; }
@keyframes ldr-look { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateY(-1px); } }
@keyframes ldr-iris { 0%, 90%, 100% { clip-path: inset(0); } 94% { clip-path: inset(50% 0); } }   /* зрачок закрывается вместе с веками */
[data-skin="witness"] .ldr-bar { border-radius: 0; }
[data-skin="witness"] .ldr-bar i { border-radius: 0; box-shadow: none; background: var(--accent); width: 22%; animation: ldr-run 1.6s steps(10) infinite; }
[data-skin="witness"] .ldr-t { font: 600 var(--fs-13)/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--head); }
[data-skin="witness"] .ldr-t::after { content: ""; display: inline-block; width: 8px; height: 13px; margin-left: 8px; vertical-align: -2px; background: var(--accent); animation: wt-cur 1s steps(1) infinite; }
[data-skin="witness"] .ldr-s .ldr-t::after { content: none; }
[data-skin="witness"] .ldr-ph { font: var(--fs-14)/1.45 var(--font-mono); color: var(--text); }
[data-skin="witness"] .ldr-el { font-family: var(--font-mono); letter-spacing: .04em; }
