/* elka.css · «Ёлка банды» (elka.js): общее оформление трёх мест — секция #elka на главной, панель «Ёлка банды» в кабинете (.tm-elka)
   и карточка с шторкой в Mini App (.bh-elka, .ek-sheet). Акция банды 1WIN: тёмно-синяя ночь, неон колец ёлки, золото своих и
   синий новичков, металл и стекло, подписи HUD моноширинным. Цвета 1WIN заданы явно (в любой теме это ёлка 1WIN).
   Под картинками чистый фон: у ёлки и игрушек тень, не ореол. Движение только transform и opacity, бесконечное — пока место на
   экране (#elka.is-on у главной, открытая шторка), «меньше движения» гасит всё. Надписи Tektur только заглавными (список в конце).
   Сезонный файл: после праздников его можно убрать вместе с elka.js, хозяева мест без KElka ничего не рисуют. */

/* ---------- токены ---------- */
.ek {
  --ek-gold: var(--gold, #ffc83d); --ek-gold-rgb: var(--gold-rgb, 255, 200, 61);
  --ek-gold-hi: var(--gold-hi, #ffe27a); --ek-gold-lo: var(--gold-lo, #e9a915);
  --ek-blue: var(--p-onewin, #2f8bff); --ek-blue-rgb: var(--p-onewin-rgb, 47, 139, 255);
  --ek-neon: #3cc4ff; --ek-neon-rgb: 60, 196, 255;
  --ek-ink: #eef3ff; --ek-dim: rgba(214, 226, 255, 0.72); --ek-faint: rgba(190, 205, 240, 0.5);
  --ek-glass: rgba(4, 8, 20, 0.72);
  --ek-line: rgba(var(--ek-blue-rgb), 0.24);
  --ek-disp: "Tektur", "Montserrat", "Segoe UI", Arial, sans-serif;
  --ek-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ek-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ek-fir-w: 260px;
  color: var(--ek-ink);
}
.ek *, .ek *::before, .ek *::after { box-sizing: border-box; }
/* сброс списков и абзацев без веса: свои отступы деталей (.ek-next, .ek-src) главнее */
:where(.ek) ul, :where(.ek) ol { margin: 0; padding: 0; list-style: none; }
:where(.ek) p { margin: 0; }
.ek-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ek-i { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ek-k { display: block; font: 700 10.5px/1.3 var(--ek-mono); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(var(--ek-gold-rgb), 0.92); }

/* ---------- ёлка: картинка или петля, игрушки в гнёздах, блик звезды, мерцание, снег, тень на полу ---------- */
.ek-tree { position: relative; display: grid; justify-items: center; align-items: end; padding: 6px 0 calc(var(--ek-fir-w) * 0.05); }
.ek-fir { position: relative; z-index: 1; width: var(--ek-fir-w); aspect-ratio: 640 / 1086; }
.ek-fir-img, .ek-fir-vid { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55)); }
.ek-fir-vid { opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.ek-fir.is-play .ek-fir-vid { opacity: 1; }
.ek-fir.is-play .ek-fir-img { opacity: 0; transition: opacity 0.4s ease 0.25s; }
/* тень на полу и тонкий отсвет нижнего кольца: ёлка стоит, а не висит */
.ek-floor { position: absolute; left: 50%; bottom: 0; z-index: 0; width: calc(var(--ek-fir-w) * 1.22); height: calc(var(--ek-fir-w) * 0.16); border-radius: 50%; transform: translate(-50%, 18%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45) 60%, transparent);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.16); }
/* блик звезды: два тонких луча крестом, вспыхивают по очереди */
.ek-star { position: absolute; left: 50%; top: 7.2%; z-index: 3; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.85; }
.ek-star::before, .ek-star::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 244, 205, 0.95) 50%, transparent); width: 100%; height: 2px; }
.ek-star::after { width: 2px; height: 70%; background: linear-gradient(180deg, transparent, rgba(255, 244, 205, 0.95) 50%, transparent); }
/* мерцание огоньков (у картинки; у петли огоньки мерцают сами) */
.ek-tw { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ek-tw i { position: absolute; width: 1.4%; aspect-ratio: 1; border-radius: 50%; background: #fff4cf; opacity: 0; }
.ek-tw i:nth-child(1) { left: 47%; top: 26%; } .ek-tw i:nth-child(2) { left: 54%; top: 43%; } .ek-tw i:nth-child(3) { left: 39%; top: 60%; }
.ek-tw i:nth-child(4) { left: 61%; top: 62%; } .ek-tw i:nth-child(5) { left: 30%; top: 78%; } .ek-tw i:nth-child(6) { left: 69%; top: 80%; }
.ek-tw i:nth-child(7) { left: 45%; top: 94%; } .ek-tw i:nth-child(8) { left: 58%; top: 31%; }
.ek-fir.is-play .ek-tw { display: none; }
/* снег */
.ek-snow { position: absolute; inset: -6% -14% 0; z-index: 4; overflow: hidden; pointer-events: none; }
.ek-snow i { position: absolute; top: -4%; width: 3px; height: 3px; border-radius: 50%; background: rgba(235, 244, 255, 0.85); opacity: 0; }
.ek-snow i:nth-child(1) { left: 4%; } .ek-snow i:nth-child(2) { left: 12%; width: 2px; height: 2px; } .ek-snow i:nth-child(3) { left: 21%; }
.ek-snow i:nth-child(4) { left: 29%; width: 4px; height: 4px; opacity: 0; } .ek-snow i:nth-child(5) { left: 37%; width: 2px; height: 2px; } .ek-snow i:nth-child(6) { left: 46%; }
.ek-snow i:nth-child(7) { left: 55%; width: 2px; height: 2px; } .ek-snow i:nth-child(8) { left: 63%; width: 4px; height: 4px; } .ek-snow i:nth-child(9) { left: 71%; }
.ek-snow i:nth-child(10) { left: 79%; width: 2px; height: 2px; } .ek-snow i:nth-child(11) { left: 87%; } .ek-snow i:nth-child(12) { left: 95%; width: 2px; height: 2px; }
.ek-snow i:nth-child(13) { left: 17%; width: 2px; height: 2px; } .ek-snow i:nth-child(14) { left: 83%; width: 3px; height: 3px; }

/* игрушки: шар висит на нити в гнезде на стекле между кольцами; у крайних гнёзд ник биркой наружу */
.ek-orns { position: absolute; inset: 0; z-index: 5; }
.ek-o { position: absolute; width: 10.5%; transform: translate(-50%, -50%); }
.ek-o img { display: block; width: 100%; height: auto; transform-origin: 50% 0; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.6)); }
.ek-o::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 46%; margin-left: -0.5px; background: linear-gradient(180deg, transparent, rgba(214, 226, 240, 0.65)); }
.ek-o.s1 { left: 50%; top: 23.5%; }
.ek-o.s2 { left: 41%; top: 40.5%; } .ek-o.s3 { left: 59%; top: 39.5%; }
.ek-o.s4 { left: 33.5%; top: 56.5%; } .ek-o.s11 { left: 50%; top: 55.5%; } .ek-o.s5 { left: 66.5%; top: 57.5%; }
.ek-o.s6 { left: 25.5%; top: 73%; } .ek-o.s12 { left: 42%; top: 74.5%; } .ek-o.s13 { left: 58%; top: 72%; } .ek-o.s7 { left: 74.5%; top: 74%; }
.ek-o.s8 { left: 18%; top: 90%; } .ek-o.s14 { left: 34%; top: 91%; } .ek-o.s10 { left: 50%; top: 89%; } .ek-o.s15 { left: 66%; top: 90.5%; } .ek-o.s9 { left: 82%; top: 89.5%; }
.ek-tag { position: absolute; top: 58%; max-width: 11.5ch; padding: 3px 6px 2px; border-radius: 2px; transform: translateY(-50%);
  font: 700 10px/1.2 var(--ek-mono); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ek-ink);
  background: rgba(3, 6, 16, 0.86); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.55), 0 6px 14px -6px rgba(0, 0, 0, 0.9); }
.ek-o.is-new .ek-tag { box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.6), 0 6px 14px -6px rgba(0, 0, 0, 0.9); }
/* две последние игрушки — свежие: бирка ярче, с отметкой слева */
.ek-o.is-fresh .ek-tag { padding-left: 13px; background: linear-gradient(90deg, rgba(var(--ek-gold-rgb), 0.22), rgba(3, 6, 16, 0.9) 70%); }
.ek-o.is-fresh.is-new .ek-tag { background: linear-gradient(90deg, rgba(var(--ek-neon-rgb), 0.24), rgba(3, 6, 16, 0.9) 70%); }
.ek-o.is-fresh .ek-tag::before { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--ek-gold-hi); }
.ek-o.is-fresh.is-new .ek-tag::before { background: var(--ek-neon); }
.ek-o.s2 .ek-tag, .ek-o.s4 .ek-tag, .ek-o.s6 .ek-tag, .ek-o.s8 .ek-tag { right: calc(100% + 9px); }
.ek-o.s3 .ek-tag, .ek-o.s5 .ek-tag, .ek-o.s7 .ek-tag, .ek-o.s9 .ek-tag { left: calc(100% + 9px); }
/* выноска к бирке: тонкая черта от шара */
.ek-o.has-tag:not(.is-me)::after { content: ""; position: absolute; top: 58%; width: 9px; height: 1px; background: rgba(var(--ek-gold-rgb), 0.6); }
.ek-o.is-new.has-tag:not(.is-me)::after { background: rgba(var(--ek-neon-rgb), 0.7); }
.ek-o.s2::after, .ek-o.s4::after, .ek-o.s6::after, .ek-o.s8::after { right: 100%; }
.ek-o.s3::after, .ek-o.s5::after, .ek-o.s7::after, .ek-o.s9::after { left: 100%; }
/* своя игрушка: крупнее, в прицеле HUD, бирка «ты» золотом под шаром */
.ek-o.is-me { z-index: 2; width: 12.5%; }
.ek-o.is-me .ek-tag { top: auto; bottom: -22px; left: 50%; right: auto; transform: translateX(-50%); padding: 3px 8px 2px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: #1b1300; background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo)); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.9); }
.ek-o.is-me.is-new .ek-tag { color: #00142a; background: linear-gradient(180deg, #bfeaff, var(--ek-neon)); }
.ek-o.is-me::after { content: ""; position: absolute; inset: -18% -22% -6%; pointer-events: none; --c: rgba(var(--ek-gold-rgb), 0.95);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 8px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 8px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 8px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px 8px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 8px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px 8px no-repeat; }
.ek-o.is-me.is-new::after { --c: rgba(var(--ek-neon-rgb), 0.95); }

/* счётчики под ёлкой: свои, новички, огоньки */
.ek-cnt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 400px; border-radius: 5px; background: var(--ek-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ek-cnt li { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 4px 7px; min-width: 0; padding: 9px 6px 8px; }
.ek-cnt li + li { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.07); }
.ek-cnt li small { grid-column: 1 / -1; text-align: center; }
.ek-cnt img { width: 18px; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.ek-cnt .ek-i { width: 18px; height: 18px; color: var(--ek-gold); }
.ek-cnt b { font: 800 17px/1 var(--ek-disp); letter-spacing: 0.02em; color: var(--ek-ink); }
.ek-cnt small { font: 600 9.5px/1 var(--ek-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ek-dim); white-space: nowrap; }

/* ---------- фаза: «Огоньки идут», «Старт 04.12», «Финал 02.01», «Итоги» ---------- */
.ek-ph { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: fit-content; max-width: 100%; padding: 7px 12px 7px 10px; border-radius: 4px;
  background: rgba(var(--ek-neon-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.38); }
.ek-ph-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ek-neon); box-shadow: 0 0 0 3px rgba(var(--ek-neon-rgb), 0.18); }
.ek-ph b { font: 800 13px/1.1 var(--ek-disp); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ek-ink); }
.ek-ph small { font: 600 11px/1.2 var(--ek-mono); letter-spacing: 0.06em; color: var(--ek-dim); }
.ek-ph.is-soon, .ek-ph.is-final { background: rgba(var(--ek-gold-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.45); }
.ek-ph.is-soon .ek-ph-dot, .ek-ph.is-final .ek-ph-dot { background: var(--ek-gold); box-shadow: 0 0 0 3px rgba(var(--ek-gold-rgb), 0.18); }
.ek-ph.is-done { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.ek-ph.is-done .ek-ph-dot { background: var(--ek-faint); box-shadow: none; }

/* ---------- банк и ступени: сумма литым золотом, дорожка к полному банку, у ступени — сколько новичков ---------- */
.ek-bank-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ek-bank-h .ek-k { flex: 1 0 100%; }
.ek-sum { font: 800 clamp(44px, 5vw, 62px)/0.95 var(--ek-disp); letter-spacing: 0.01em; color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--ek-gold-hi) 26%, var(--ek-gold) 58%, var(--ek-gold-lo) 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }
.ek-max { font: 700 12px/1 var(--ek-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ek-dim); }
.ek-track { position: relative; margin-top: 16px; }
.ek-rail { position: absolute; left: 7px; right: 7px; top: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.ek-rail i { display: block; height: 100%; transform: scaleX(var(--w, 0)); transform-origin: 0 50%; transition: transform 1.4s var(--ek-ease) 0.3s;
  background: linear-gradient(90deg, var(--ek-gold-lo), var(--ek-gold-hi)); }
.ek-steps { position: relative; display: flex; justify-content: space-between; gap: 6px; }
.ek-steps li { display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.ek-steps li:first-child { justify-items: start; text-align: left; }
.ek-steps li:last-child { justify-items: end; text-align: right; }
.ek-node { display: block; width: 15px; height: 15px; border-radius: 50%; background: #0a0f1f; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2); }
.ek-steps .is-on .ek-node { background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 3px rgba(var(--ek-gold-rgb), 0.14); }
.ek-steps .is-cur .ek-node { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 4px #0a0f1f, 0 0 0 5.5px rgba(var(--ek-gold-rgb), 0.85); }
.ek-steps .is-next .ek-node { background: #0a0f1f; box-shadow: inset 0 0 0 2px rgba(var(--ek-neon-rgb), 0.85); }
.ek-steps b { font: 800 15px/1 var(--ek-disp); letter-spacing: 0.02em; color: var(--ek-dim); }
.ek-steps .is-on b { color: var(--ek-gold-hi); }
.ek-steps .is-next b { color: var(--ek-ink); }
.ek-steps small { display: inline-flex; align-items: center; gap: 3px; font: 600 10.5px/1 var(--ek-mono); letter-spacing: 0.06em; color: var(--ek-faint); white-space: nowrap; }
.ek-steps small .ek-i { width: 12px; height: 12px; }
.ek-next { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; font: 600 12px/1.35 var(--ek-mono); letter-spacing: 0.03em; color: var(--ek-dim); }
.ek-next .ek-i { width: 15px; height: 15px; color: var(--ek-neon); }
.ek-next b { color: var(--ek-ink); font-weight: 800; }
.ek-next.is-full .ek-i { color: var(--ek-gold); }

/* ---------- как получить: три шага; огоньки значками; призы финала ---------- */
.ek-how { display: grid; gap: 10px; }
.ek-how > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border-radius: 6px; background: var(--ek-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.ek-how-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 5px; color: var(--ek-neon); background: rgba(var(--ek-neon-rgb), 0.08);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.35); }
.ek-how-ic .ek-i { width: 22px; height: 22px; }
.ek-how-ic.is-orn img { width: 26px; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.ek-how > li > div { min-width: 0; display: grid; gap: 5px; }
.ek-how b { font-size: 15px; font-weight: 800; line-height: 1.25; color: var(--ek-ink); }
.ek-how > li > div > span { font-size: 13.5px; line-height: 1.45; color: var(--ek-dim); }
.ek-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ek-src li { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 32px; padding: 4px 9px 4px 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); font-size: 12.5px; line-height: 1.2; color: var(--ek-ink); }
.ek-src .ek-i { width: 15px; height: 15px; color: var(--ek-neon); }
.ek-src b { flex: none; font: 800 12px/1 var(--ek-mono); color: var(--ek-gold); }
.ek-src span { white-space: nowrap; }
.ek-prz { display: grid; gap: 7px; margin-top: 4px; }
.ek-prz li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ek-dim); }
.ek-prz li > img, .ek-prz li > .ek-i { flex: none; }
.ek-prz b { white-space: nowrap; }
.ek-prz em { font-style: normal; font-size: 13px; color: var(--ek-ink); }
.ek-prz img { width: 15px; height: auto; }
.ek-prz .ek-i { width: 16px; height: 16px; color: var(--ek-gold); }
.ek-prz b { font: 800 14px/1 var(--ek-disp); letter-spacing: 0.02em; color: var(--ek-gold-hi); }
.ek-done { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ek-dim); }
.ek-done .ek-i { width: 22px; height: 22px; color: var(--ek-gold); }
.ek-win { display: grid; gap: 6px; }
.ek-win li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 4px; background: var(--ek-glass);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.28); }
.ek-win img { width: 18px; height: auto; }
.ek-win .ek-i { width: 18px; height: 18px; color: var(--ek-gold); }
.ek-win b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ek-win small { font: 600 10.5px/1 var(--ek-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ek-dim); }
.ek-win em { font: 800 15px/1 var(--ek-disp); font-style: normal; color: var(--ek-gold-hi); }

/* ---------- своё: игрушка крупно, огоньки и номера, «Сегодня», что сделать ---------- */
.ek-mine { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; }
.ek-ball { position: relative; display: grid; place-items: end center; width: 92px; height: 128px; }
.ek-thread { position: absolute; left: 50%; top: 0; width: 1px; height: 26px; margin-left: -0.5px; background: linear-gradient(180deg, transparent, rgba(220, 230, 245, 0.75)); }
.ek-ball-img { position: relative; z-index: 1; display: block; width: 92px; height: auto; transform-origin: 50% 0; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.6)); }
.ek-shadow { position: absolute; left: 50%; bottom: -10px; width: 74px; height: 12px; margin-left: -37px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), transparent); }
.ek-ball-ghost { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; color: var(--ek-faint);
  border: 1.5px dashed rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.02); }
.ek-ball-ghost .ek-i { width: 22px; height: 22px; }
.ek-mine.is-none .ek-thread { opacity: 0.4; }
.ek-mine-t { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.ek-mine.is-new .ek-k { color: rgba(var(--ek-neon-rgb), 0.95); }
.ek-mine.is-none .ek-k { color: var(--ek-dim); }
.ek-nick { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 900; line-height: 1.1; letter-spacing: 0.01em; color: var(--ek-ink); }
.ek-mine-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ek-drum { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 9px; border-radius: 3px; font: 700 10.5px/1 var(--ek-mono); letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap; color: var(--ek-gold-hi); background: rgba(var(--ek-gold-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.45); }
.ek-drum .ek-i { width: 15px; height: 15px; }
.ek-drum.is-new { color: #bfeaff; background: rgba(var(--ek-neon-rgb), 0.08); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.5); }
.ek-chance { display: inline-flex; align-items: baseline; gap: 5px; }
.ek-chance small { font: 600 10.5px/1 var(--ek-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ek-dim); }
.ek-chance b { font: 800 18px/1 var(--ek-disp); color: var(--ek-ink); }
.ek-pct { font-family: var(--font, "Montserrat", sans-serif); font-style: normal; font-weight: 800; font-size: 0.86em; margin-left: 1px; }

.ek-lt { display: grid; gap: 10px; min-width: 0; }
.ek-lt-h { display: flex; align-items: baseline; gap: 8px; }
.ek-lt-h .ek-i { width: 26px; height: 26px; align-self: center; color: var(--ek-gold); }
.ek-lt-n { font: 800 44px/0.95 var(--ek-disp); letter-spacing: 0.01em; color: transparent;
  background: linear-gradient(180deg, #fff 0%, var(--ek-gold-hi) 30%, var(--ek-gold) 62%, var(--ek-gold-lo)); -webkit-background-clip: text; background-clip: text; }
.ek-lt-h small { font: 700 11px/1 var(--ek-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ek-dim); }
.ek-nums { display: flex; flex-wrap: wrap; gap: 5px; }
.ek-nums li { padding: 5px 7px 4px; border-radius: 3px; font: 700 11.5px/1 var(--ek-mono); letter-spacing: 0.04em; color: var(--ek-gold-hi);
  background: rgba(var(--ek-gold-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.32); }
.ek-nums li.is-more { color: var(--ek-dim); background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ek-lt-0 { font: 600 11px/1.4 var(--ek-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ek-faint); }

.ek-pips { display: inline-flex; gap: 4px; }
.ek-pips i { display: block; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ek-pips i.on { background: radial-gradient(circle at 35% 30%, #fff6d2, var(--ek-gold) 55%, var(--ek-gold-lo)); box-shadow: none; }
.ek-day { display: grid; gap: 4px; min-width: 0; }
.ek-day-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: 6px; }
.ek-day-h .ek-k { margin-right: auto; color: var(--ek-ink); letter-spacing: 0.18em; }
.ek-day-n { font: 700 11.5px/1 var(--ek-mono); letter-spacing: 0.06em; color: var(--ek-gold-hi); }
.ek-day li { display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ek-d-ic { grid-column: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--ek-faint); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ek-d-ic .ek-i { width: 14px; height: 14px; }
.ek-day li.is-ok .ek-d-ic { color: #04131f; background: var(--ek-neon); box-shadow: none; }
.ek-day li.is-ok .ek-d-ic .ek-i { stroke-width: 2.8; }
.ek-d-t { grid-column: 2; font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--ek-dim); }
.ek-day li.is-ok .ek-d-t { color: var(--ek-ink); }
.ek-d-bar { grid-column: 3; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ek-d-bar b { flex: none; font: 700 11.5px/1 var(--ek-mono); color: var(--ek-ink); white-space: nowrap; }
.ek-d-g { grid-column: 4; font: 800 12px/1 var(--ek-mono); font-style: normal; color: var(--ek-faint); }
.ek-day li.is-ok .ek-d-g { color: var(--ek-gold-hi); }
.ek-bar { position: relative; flex: 1 1 auto; min-width: 34px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.ek-bar i { position: absolute; inset: 0; transform: scaleX(var(--w, 0)); transform-origin: 0 50%; transition: transform 1s var(--ek-ease) 0.2s;
  background: linear-gradient(90deg, var(--ek-gold-lo), var(--ek-gold-hi)); }

.ek-need { display: grid; gap: 8px; }
.ek-need li { display: grid; grid-template-columns: auto 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px;
  background: rgba(var(--ek-gold-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.3); }
.ek-need-n { font: 800 11px/1 var(--ek-mono); color: var(--ek-gold); }
.ek-need-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; color: var(--ek-ink); background: rgba(255, 255, 255, 0.05); }
.ek-need .is-telegram .ek-need-ic { color: #2aabee; } .ek-need .is-kick .ek-need-ic { color: #53fc18; } .ek-need .is-onewin .ek-need-ic, .ek-need .is-play .ek-need-ic { color: var(--ek-neon); }
.ek-need-t { display: grid; gap: 3px; min-width: 0; }
.ek-need-t b { font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--ek-ink); }
.ek-need-t small { font-size: 12px; line-height: 1.3; color: var(--ek-dim); }
/* действие хозяина места (кнопка привязки или «Играть») — строкой во всю ширину под заголовком: колонки узкие, цель нажатия крупная */
.ek-need li > :nth-child(4) { grid-column: 1 / -1; justify-content: center; width: 100%; }

/* «Позвать друга»: каждый новичок поднимает банк */
.ek-inv { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 12px; border-radius: 5px;
  background: linear-gradient(100deg, rgba(var(--ek-neon-rgb), 0.12), rgba(var(--ek-neon-rgb), 0.02)); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.35); }
.ek-inv-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ek-neon); background: rgba(var(--ek-neon-rgb), 0.1); }
.ek-inv-ic .ek-i { width: 20px; height: 20px; }
.ek-inv-t { display: grid; gap: 3px; min-width: 0; }
.ek-inv-t b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.ek-inv-t small { font-size: 12.5px; line-height: 1.35; color: var(--ek-dim); }
.ek-inv-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ek-inv-act > * { flex: 1 1 auto; justify-content: center; }

/* ---------- главное дело: «Повесить игрушку» и «Зажечь N огоньков» (elka.js action) ----------
   Плита на всю ширину места: слева предмет (игрушка парит над полкой, лампочка с лучами), в середине что и зачем, справа крупная кнопка.
   Своя игрушка золотом, игрушка новичка синим неоном, огоньки тёплым золотом. На телефоне кнопка во всю ширину под текстом */
.ek-act { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 14px 16px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(100deg, rgba(var(--ek-gold-rgb), 0.16), rgba(var(--ek-gold-rgb), 0.03) 60%), rgba(4, 8, 18, 0.8);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -22px rgba(0, 0, 0, 0.9); }
.ek-act.is-new { background: linear-gradient(100deg, rgba(var(--ek-neon-rgb), 0.18), rgba(var(--ek-neon-rgb), 0.03) 60%), rgba(4, 8, 18, 0.8);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -22px rgba(0, 0, 0, 0.9); }
.ek-act.is-note { display: block; padding: 10px 14px; background: rgba(4, 8, 18, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ek-act-orn { position: relative; display: grid; place-items: center; width: 58px; height: 70px; }
.ek-act-orn img { position: relative; z-index: 1; width: 52px; height: auto; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)); }
/* полка: тень под парящей игрушкой */
.ek-act-orn i { position: absolute; left: 50%; bottom: 0; width: 44px; height: 8px; margin-left: -22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent); }
.ek-act-bulb { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #1b1300;
  background: radial-gradient(circle at 38% 32%, #fff7d6, var(--ek-gold-hi) 45%, var(--ek-gold-lo)); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 10px 22px -10px rgba(0, 0, 0, 0.8); }
.ek-act-bulb .ek-i { width: 26px; height: 26px; stroke-width: 2.1; }
.ek-act-bulb i { position: absolute; left: 50%; top: 50%; width: 2px; height: 9px; margin: -4.5px 0 0 -1px; border-radius: 1px; background: var(--ek-gold-hi); opacity: 0.8; }
.ek-act-bulb i:nth-of-type(1) { transform: rotate(0deg) translateY(-37px); }
.ek-act-bulb i:nth-of-type(2) { transform: rotate(-42deg) translateY(-37px); }
.ek-act-bulb i:nth-of-type(3) { transform: rotate(42deg) translateY(-37px); }
.ek-act-t { display: grid; gap: 4px; min-width: 0; }
.ek-act-t b { font-size: 16px; font-weight: 900; line-height: 1.2; color: #fff; }
.ek-act-t small { font-size: 12.5px; line-height: 1.35; color: var(--ek-dim); }
.ek-act-w { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-weight: 700; color: var(--ek-gold-hi) !important; }
.ek-act-w .ek-i { width: 15px; height: 15px; }
.ek-act-w b { font: inherit; font-weight: 800; color: inherit; }
.ek-act-msg { grid-column: 1 / -1; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--ek-ink); }
.ek-act-msg.is-bad { color: var(--bad, #ed4163); }
/* кнопка: литое золото у своих и огоньков, синий неон у новичка; по ней пробегает блик */
.ek-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 22px; overflow: hidden; border: 0; border-radius: 6px;
  cursor: pointer; font: 900 15.5px/1 var(--font, "Montserrat", sans-serif); letter-spacing: 0.01em; white-space: nowrap; color: #241600;
  background: linear-gradient(180deg, #ffe58a 0%, #ffc928 48%, #f0a10e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 12px 28px -12px rgba(255, 176, 20, 0.75); transition: transform 0.18s var(--ek-ease); }
.ek-btn.is-new { color: #02162b; background: linear-gradient(180deg, #c9f1ff 0%, #6fd6ff 45%, #2f9bff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 12px 28px -12px rgba(var(--ek-neon-rgb), 0.85); }
.ek-btn img { width: 20px; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
.ek-btn .ek-i { width: 19px; height: 19px; stroke-width: 2.3; }
.ek-btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55) 50%, transparent); transform: translateX(-160%) skewX(-18deg); }
.ek-btn:hover { transform: translateY(-1px); }
.ek-btn:active { transform: translateY(1px); }
.ek-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ek-btn:disabled { cursor: default; opacity: 0.7; transform: none; }
.ek-act.is-busy .ek-btn::after { display: none; }
/* живое, пока место видно: игрушка парит, блик бежит по кнопке, лучи лампочки мерцают */
.term.is-live .ek-act-orn img, .ek-sheet .ek-act-orn img { animation: ek-bob 2.8s ease-in-out infinite; }
.term.is-live .ek-act-orn i, .ek-sheet .ek-act-orn i { animation: ek-shelf 2.8s ease-in-out infinite; }
.term.is-live .ek-btn::after, .ek-sheet .ek-btn::after { animation: ek-sheen 3.4s ease-in-out 0.8s infinite; }
.term.is-live .ek-act-bulb i, .ek-sheet .ek-act-bulb i { animation: ek-ray 1.6s ease-in-out infinite; }
.ek-act-bulb i:nth-of-type(2) { animation-delay: 0.3s !important; } .ek-act-bulb i:nth-of-type(3) { animation-delay: 0.6s !important; }
@keyframes ek-bob { 0%, 100% { transform: translateY(-5px) rotate(-3deg); } 50% { transform: translateY(1px) rotate(3deg); } }
@keyframes ek-shelf { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ek-sheen { 0%, 55% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes ek-ray { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* право есть, игрушка ещё не на ёлке: прозрачный шар парит над пунктирным местом */
.ek-mine.is-can .ek-ball-img { opacity: 0.55; }
.ek-mine.is-can .ek-thread { opacity: 0.25; }
.ek-mine.is-can .ek-ring { opacity: 0.7; border-style: dashed; }
.term.is-live .ek-mine.is-can .ek-ball-img, .ek-sheet .ek-mine.is-can .ek-ball-img { animation: ek-bob 2.8s ease-in-out infinite; }
.ek-mine.is-can .ek-k { color: var(--ek-gold-hi); }
.ek-mine.is-can.is-newk .ek-k { color: #bfeaff; }
.ek-mine-s { font-size: 12px; line-height: 1.35; color: var(--ek-dim); }
/* кольцо места: при падении игрушки — вспышка */
.ek-ring { position: absolute; left: 50%; bottom: 10px; z-index: 0; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%; border: 2px solid rgba(var(--ek-gold-rgb), 0.85); opacity: 0; pointer-events: none; }
.ek-mine.is-newk .ek-ring { border-color: rgba(var(--ek-neon-rgb), 0.9); }
/* только что повесил: шар падает сверху на место, качается и замирает; нить проявляется, кольцо вспыхивает */
.ek-mine.is-drop .ek-ball-img { animation: ek-drop 1.15s cubic-bezier(0.25, 0.7, 0.3, 1) both; }
.ek-mine.is-drop .ek-thread { animation: ek-in 0.5s ease 0.75s both; }
.ek-mine.is-drop .ek-ring { animation: ek-ringfx 0.9s ease-out 0.5s both; }
.ek-o.is-me.is-drop img, .ek-sheet .ek-o.is-me.is-drop img { animation: ek-drop2 1.2s cubic-bezier(0.25, 0.7, 0.3, 1) both; }
.ek-o.is-me.is-drop::after, .ek-o.is-me.is-drop .ek-tag { animation: ek-in 0.5s ease 1s both; }
@keyframes ek-drop { 0% { opacity: 0; transform: translateY(-150%) rotate(-16deg) scale(0.85); } 46% { opacity: 1; transform: translateY(7%) rotate(7deg) scale(1.02); }
  64% { transform: translateY(-5%) rotate(-4deg); } 82% { transform: translateY(2%) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes ek-drop2 { 0% { opacity: 0; transform: translateY(-460%) rotate(-20deg) scale(0.9); } 50% { opacity: 1; transform: translateY(10%) rotate(8deg); }
  68% { transform: translateY(-6%) rotate(-5deg); } 85% { transform: translateY(2%) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes ek-ringfx { 0% { opacity: 0.95; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes ek-in { from { opacity: 0; } to { opacity: 1; } }
/* огоньки зажглись: число вспыхивает, искры разлетаются от лампочки; на ёлке огоньки мигают */
.ek-lt-h { position: relative; }
.ek-spark { position: absolute; left: 13px; top: 50%; width: 0; height: 0; pointer-events: none; }
.ek-spark i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ek-gold-hi); opacity: 0; --r: 0deg; }
.ek-spark i:nth-child(2) { --r: 45deg; } .ek-spark i:nth-child(3) { --r: 90deg; } .ek-spark i:nth-child(4) { --r: 135deg; } .ek-spark i:nth-child(5) { --r: 180deg; }
.ek-spark i:nth-child(6) { --r: 225deg; } .ek-spark i:nth-child(7) { --r: 270deg; } .ek-spark i:nth-child(8) { --r: 315deg; }
.ek-spark i:nth-child(2n) { width: 4px; height: 4px; background: #fff3c4; }
.ek-lt.is-flash .ek-spark i { animation: ek-burst 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.1s both; }
.ek-lt.is-flash .ek-lt-n { animation: ek-pop 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.ek-lt.is-flash .ek-lt-h > .ek-i { animation: ek-pop 0.7s ease both; }
.ek-tree.is-flash .ek-fir.is-play .ek-tw { display: block; }
.ek-tree.is-flash .ek-tw i { animation: ek-tw 0.6s ease-in-out 3 both !important; }
.ek-tree.is-flash .ek-star { animation: ek-glint 0.9s ease-in-out 2 both !important; }
@keyframes ek-burst { 0% { opacity: 1; transform: rotate(var(--r)) translateX(4px) scale(1); } 100% { opacity: 0; transform: rotate(var(--r)) translateX(40px) scale(0.3); } }
@keyframes ek-pop { 0% { transform: scale(0.7); opacity: 0.4; } 45% { transform: scale(1.22); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (max-width: 760px) {
  .ek-act { grid-template-columns: auto minmax(0, 1fr); padding: 12px; }
  .ek-act .ek-btn { grid-column: 1 / -1; width: 100%; }
}

/* ==================================================================================================
   Главная: секция #elka (site.js). Плита в высоту экрана: слева фаза, ёлка, счётчики и кнопка в кабинет, справа правила инфографикой
   ================================================================================================== */
#elka .sec-head h2 em { color: var(--ek-gold, #ffc83d); }
.ek-home { position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); margin-top: 28px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(var(--ek-blue-rgb), 0.08), transparent 40%), linear-gradient(180deg, #0a0f20, #04060d 72%);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-blue-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 80px -40px rgba(0, 0, 0, 0.95); }
/* светодиодная лента по верхней кромке: синий неон к золоту, как у плит банды */
.ek-home::before { content: ""; position: absolute; left: 34px; right: 34px; top: 0; z-index: 2; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--ek-neon) 18%, var(--ek-gold-hi) 50%, var(--ek-neon) 82%, transparent); }
.ek-stage { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px 18px 22px;
  background: linear-gradient(90deg, transparent 60%, rgba(0, 0, 0, 0.25)), repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 3px); }
.ek-stage::after { content: ""; position: absolute; top: 24px; bottom: 24px; right: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(var(--ek-blue-rgb), 0.35), transparent); }
/* ёлка по высоте экрана: плита целиком на одном экране под шапкой сайта (владелец 02.12.2026) */
.ek-home .ek-tree { --ek-fir-w: clamp(180px, calc((100vh - 420px) / 1.78), 240px); --ek-fall: 480px; }
.ek-info { position: relative; z-index: 1; display: grid; align-content: center; gap: 12px; min-width: 0; padding: 20px 22px 20px 20px; }
/* слева фаза, ёлка, счётчики и кнопка в кабинет; справа правила. Сцена не едет за прокруткой (владелец 02.12.2026) */
.ek-stage .cab-cta { margin-top: 2px; justify-content: center; width: 100%; }
.ek-stage .cab-cta .btn { justify-content: center; width: 100%; max-width: 400px; padding-top: 12px; padding-bottom: 12px; font-size: 13.5px; text-wrap: balance; }
.ek-fin { display: grid; gap: 10px; padding: 14px 16px; border-radius: 6px; background: var(--ek-glass); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.3); }
.ek-fin p { font-size: 13.5px; line-height: 1.45; color: var(--ek-dim); }
/* появление: ёлка поднимается из темноты, игрушки повисают по очереди (только при эффектах и пока плита не загорелась) */
.fx .ek-home:not(.is-lit) .ek-fir { opacity: 0; transform: translateY(26px) scale(0.97); }
.fx .ek-home:not(.is-lit) .ek-o img { opacity: 0; transform: translateY(-34%) rotate(-8deg); }
.fx .ek-home:not(.is-lit) .ek-tag, .fx .ek-home:not(.is-lit) .ek-o::after { opacity: 0; }
.fx .ek-home:not(.is-lit) .ek-info > * { opacity: 0; transform: translateY(14px); }
.ek-home .ek-fir { transition: opacity 0.9s ease, transform 1.1s var(--ek-ease); }
.ek-home .ek-o img { transition: opacity 0.5s ease, transform 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); }
.ek-home .ek-tag, .ek-home .ek-o::after { transition: opacity 0.5s ease 0.6s; }
.ek-home .ek-info > * { transition: opacity 0.6s ease, transform 0.8s var(--ek-ease); }
.ek-home .ek-o:nth-child(1) img { transition-delay: 0.5s; } .ek-home .ek-o:nth-child(2) img { transition-delay: 0.58s; } .ek-home .ek-o:nth-child(3) img { transition-delay: 0.66s; }
.ek-home .ek-o:nth-child(4) img { transition-delay: 0.74s; } .ek-home .ek-o:nth-child(5) img { transition-delay: 0.82s; } .ek-home .ek-o:nth-child(6) img { transition-delay: 0.9s; }
.ek-home .ek-o:nth-child(7) img { transition-delay: 0.98s; } .ek-home .ek-o:nth-child(8) img { transition-delay: 1.06s; } .ek-home .ek-o:nth-child(n+9) img { transition-delay: 1.14s; }
.ek-home .ek-info > :nth-child(2) { transition-delay: 0.12s; } .ek-home .ek-info > :nth-child(3) { transition-delay: 0.24s; } .ek-home .ek-info > :nth-child(4) { transition-delay: 0.36s; }
/* живое: игрушки чуть качаются, блик звезды, мерцание, снег — пока секция на экране и вкладка видна */
#elka.is-on .ek-home.is-lit .ek-o img, .ek-sheet .ek-o img { animation: ek-sway 5.6s ease-in-out infinite; }
#elka.is-on .ek-home.is-lit .ek-o:nth-child(2n) img, .ek-sheet .ek-o:nth-child(2n) img { animation-duration: 6.8s; animation-delay: -2.1s; }
#elka.is-on .ek-home.is-lit .ek-o:nth-child(3n) img, .ek-sheet .ek-o:nth-child(3n) img { animation-duration: 6.1s; animation-delay: -3.7s; }
#elka.is-on .ek-star, .ek-sheet .ek-star { animation: ek-glint 3.8s ease-in-out infinite; }
#elka.is-on .ek-star::after, .ek-sheet .ek-star::after { animation: ek-glint2 3.8s ease-in-out infinite; }
#elka.is-on .ek-tw i, .ek-sheet .ek-tw i { animation: ek-tw 2.9s ease-in-out infinite; }
.ek-tw i:nth-child(2) { animation-delay: 0.4s !important; } .ek-tw i:nth-child(3) { animation-delay: 1.1s !important; } .ek-tw i:nth-child(4) { animation-delay: 1.7s !important; }
.ek-tw i:nth-child(5) { animation-delay: 0.8s !important; } .ek-tw i:nth-child(6) { animation-delay: 2.2s !important; } .ek-tw i:nth-child(7) { animation-delay: 1.4s !important; }
.ek-tw i:nth-child(8) { animation-delay: 2.6s !important; }
#elka.is-on .ek-snow i, .ek-sheet .ek-snow i { animation: ek-fall 9s linear infinite; }
.ek-snow i:nth-child(2n) { animation-duration: 12s !important; } .ek-snow i:nth-child(3n) { animation-duration: 10.5s !important; }
.ek-snow i:nth-child(1) { animation-delay: -1s !important; } .ek-snow i:nth-child(2) { animation-delay: -6s !important; } .ek-snow i:nth-child(3) { animation-delay: -3.5s !important; }
.ek-snow i:nth-child(4) { animation-delay: -8s !important; } .ek-snow i:nth-child(5) { animation-delay: -2s !important; } .ek-snow i:nth-child(6) { animation-delay: -5s !important; }
.ek-snow i:nth-child(7) { animation-delay: -9.5s !important; } .ek-snow i:nth-child(8) { animation-delay: -4.2s !important; } .ek-snow i:nth-child(9) { animation-delay: -7.1s !important; }
.ek-snow i:nth-child(10) { animation-delay: -0.4s !important; } .ek-snow i:nth-child(11) { animation-delay: -6.6s !important; } .ek-snow i:nth-child(12) { animation-delay: -3s !important; }
.ek-snow i:nth-child(13) { animation-delay: -10s !important; } .ek-snow i:nth-child(14) { animation-delay: -5.6s !important; }
.ek-ph.is-live .ek-ph-dot { animation: ek-dot 1.8s ease-in-out infinite; }
.fx-sleep .ek *, .fx-sleep .ek *::before, .fx-sleep .ek *::after { animation-play-state: paused !important; }
@keyframes ek-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes ek-glint { 0%, 100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.35; } 45% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@keyframes ek-glint2 { 0%, 100% { opacity: 0.4; } 55% { opacity: 1; } }
@keyframes ek-tw { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 0.95; transform: scale(1.3); } }
@keyframes ek-fall { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 8% { opacity: 0.85; } 90% { opacity: 0.6; } 100% { transform: translate3d(18px, var(--ek-fall, 560px), 0); opacity: 0; } }
@keyframes ek-dot { 50% { transform: scale(0.6); opacity: 0.5; } }

/* ==================================================================================================
   Кабинет: панель «Ёлка банды» (cabinet.js, hud("elka")). Три колонки: игрушка на фоне обложки, огоньки и «Сегодня», что сделать
   и «Позвать друга»; на телефоне одна под другой
   ================================================================================================== */
.ek-cab { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); gap: 14px; align-items: stretch; }
/* главное дело — первой строкой во всю ширину панели */
.ek-cab > .ek-act { grid-column: 1 / -1; }
.ek-cell { position: relative; min-width: 0; display: grid; align-content: start; gap: 14px; padding: 14px; border-radius: 5px; background: rgba(3, 7, 14, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
/* игрушка на фоне обложки: Колыван у неоновой ёлки, приглушённый слева, где стоит шар */
.ek-cell.is-me { overflow: hidden; align-content: space-between; min-height: 300px;
  background: linear-gradient(180deg, rgba(3, 6, 14, 0.15) 0%, rgba(3, 6, 14, 0.35) 34%, rgba(3, 6, 14, 0.9) 58%, rgba(3, 6, 14, 0.97) 100%),
    linear-gradient(90deg, rgba(3, 6, 14, 0.55), transparent 40%), url(media/elka/cover.webp) 77% 100% / auto 122% no-repeat; }
.ek-cell.is-me .ek-mine { align-self: end; }
.ek-cab .ek-bank-h { align-items: baseline; }
.ek-cab .ek-sum { font-size: 34px; }
.ek-cab-bank { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.ek-cab-bank .ek-next { margin: 0; }
.ek-ok { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 5px; font: 700 11px/1.35 var(--ek-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ek-ink); background: rgba(var(--ek-neon-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.3); }
.ek-ok .ek-i { width: 18px; height: 18px; color: var(--ek-neon); }
.tm-elka .tm-btn { white-space: nowrap; }
@media (max-width: 1099px) {
  .ek-cab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ek-cab > .ek-cell:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ek-cab { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ek-cell.is-me { min-height: 280px; background-position: 0 0, 0 0, 74% 60%; background-size: auto, auto, auto 150%; }
}

/* ==================================================================================================
   Mini App: карточка на БАЗЕ (app-home.js) — обложка полосой и строка «игрушка · огоньки · сегодня · банк»; нажатие открывает шторку
   ================================================================================================== */
.bh-elka { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; color: var(--ek-ink);
  border: 1px solid rgba(var(--ek-blue-rgb), 0.45) !important; background: linear-gradient(180deg, #0a1022, #050811) !important; }
.bh-ek-ban { position: relative; display: block; height: 104px; background: url(media/elka/cover.webp) 62% 36% / cover no-repeat; }
.bh-ek-ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 17, 0.92) 0%, rgba(5, 8, 17, 0.55) 46%, rgba(5, 8, 17, 0) 75%),
  linear-gradient(0deg, #070b18 0%, rgba(7, 11, 24, 0) 55%); }
.bh-ek-hd { position: absolute; left: 14px; top: 12px; right: 14px; z-index: 1; display: grid; justify-items: start; gap: 7px; }
.bh-ek-t { font: 800 21px/1 var(--ek-disp); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.bh-ek-t em { font-style: normal; color: var(--ek-gold-hi); }
.bh-ek-hd .ek-ph { padding: 4px 8px; gap: 3px 8px; background: rgba(3, 6, 14, 0.7); }
.bh-ek-hd .ek-ph b { font-size: 10.5px; }
.bh-ek-hd .ek-ph small { font-size: 9.5px; }
.bh-ek-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 14px 13px; }
.bh-ek-me { display: grid; place-items: center; width: 40px; height: 46px; }
.bh-ek-me img { width: 36px; height: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.7)); }
.bh-ek-me img.is-wait { opacity: 0.55; }
.bh-ek-me .ek-ball-ghost { width: 36px; height: 36px; margin: 0; }
.bh-ek-me .ek-ball-ghost .ek-i { width: 15px; height: 15px; }
.bh-ek-mid { display: grid; gap: 6px; min-width: 0; }
.bh-ek-lt { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.bh-ek-lt b { font: 800 24px/1 var(--ek-disp); color: var(--ek-gold-hi); }
.bh-ek-lt small, .bh-ek-day small { font: 700 10px/1.25 var(--ek-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ek-dim); white-space: nowrap; }
.bh-ek-need + .bh-ek-day small { min-width: 0; white-space: normal; letter-spacing: 0.06em; }
.bh-ek-day { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bh-ek-day .ek-pips i { width: 8px; height: 8px; }
.bh-ek-bank { display: grid; justify-items: end; gap: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.bh-ek-bank small { font: 700 9.5px/1 var(--ek-mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--ek-gold-rgb), 0.9); }
.bh-ek-bank b { font: 800 24px/1 var(--ek-disp); color: transparent; background: linear-gradient(180deg, #fff, var(--ek-gold-hi) 35%, var(--ek-gold) 70%, var(--ek-gold-lo));
  -webkit-background-clip: text; background-clip: text; }
.bh-ek-go { position: absolute; right: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff;
  background: rgba(3, 6, 14, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.bh-ek-go .ek-i { width: 16px; height: 16px; }
/* есть дело (повесить, зажечь): кнопкой прямо в строке карточки, кромка карточки золотом */
.bh-elka.is-todo { border-color: rgba(var(--ek-gold-rgb), 0.8) !important; }
.bh-ek-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 7px 11px; overflow: hidden; border-radius: 5px; white-space: nowrap;
  font: 900 13.5px/1 var(--font, "Montserrat", sans-serif); color: #241600; background: linear-gradient(180deg, #ffe58a, #ffc928 48%, #f0a10e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px -10px rgba(255, 176, 20, 0.8); }
.bh-ek-cta.is-new { color: #02162b; background: linear-gradient(180deg, #c9f1ff, #6fd6ff 45%, #2f9bff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px -10px rgba(var(--ek-neon-rgb), 0.9); }
.bh-ek-cta img { width: 15px; height: auto; }
.bh-ek-cta .ek-i { width: 15px; height: 15px; stroke-width: 2.4; }
.bh-ek-cta::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg); animation: ek-sheen 3.4s ease-in-out 1s infinite; }
.bh-ek-need { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ek-gold-hi); }

/* шторка с подробностями: ёлка со своей игрушкой, затем всё своё и банк */
.ek-sheet { display: grid; gap: 16px; padding-bottom: 4px; }
.ek-sheet .ek-tree { --ek-fir-w: 176px; --ek-fall: 340px; margin: 0 -4px; padding-top: 10px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--ek-blue-rgb), 0.1), transparent 60%), linear-gradient(180deg, #0a0f20, #04060d); box-shadow: inset 0 0 0 1px rgba(var(--ek-blue-rgb), 0.25); }
.ek-sheet-top { display: grid; gap: 10px; }
.ek-sheet .ek-sec { display: grid; gap: 12px; padding: 14px; border-radius: 8px; background: var(--ek-glass); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.ek-sheet .ek-sum { font-size: 40px; }
.ek-sheet .ek-ball { width: 78px; height: 110px; }
.ek-sheet .ek-ball-img { width: 78px; }
.ek-sheet .ek-nick { font-size: 19px; }
.ek-sheet .ek-how > li { grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 11px 12px; }
.ek-sheet .ek-how > li > div { display: contents; }
.ek-sheet .ek-how > li > div > :not(b) { grid-column: 1 / -1; }
.ek-sheet .ek-how-ic { width: 34px; height: 34px; }
.ek-sheet .ek-src li { font-size: 12px; }
.ek-sheet .ek-inv-act .btn { flex: 1 1 0; }

/* ---------- «Правила акции» инфографикой (elka.js rules): плитки почти без слов, числа из данных ----------
   Путь в четыре шага со стрелками, кто играет, огонёк = билет, банк столбиками и призы карточками, важное значками. Плотно, чтобы
   на главной ёлка и правила стояли на одном экране (владелец 02.12.2026): на широком экране банк и призы рядом, важное строкой
   значков без плитки. Кабинет и Mini App: свёрнуто в <details> */
.ek-rules { display: grid; gap: 10px; min-width: 0; }
.ek-rl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-width: 0; }
.ek-rl-hd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.ek-rl-hd > .ek-i { width: 18px; height: 18px; color: var(--ek-gold); }
.ek-rl-hd b { font: 800 17px/1.1 var(--ek-disp); letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.ek-rl-hd small { font: 600 11px/1.2 var(--ek-mono); letter-spacing: 0.08em; color: var(--ek-dim); }
.ek-igs { display: grid; gap: 8px; min-width: 0; }
.ek-ig { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 10px 12px 11px; border-radius: 8px; background: var(--ek-glass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.ek-ig-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-width: 0;
  font: 700 10px/1.3 var(--ek-mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(var(--ek-gold-rgb), 0.92); }
/* строка важного: значки без плитки */
.ek-ig.is-fair { padding: 0; background: none; box-shadow: none; }
.ek-ig.is-fair .ek-chips li { padding: 3px 8px; font-size: 11px; }

/* путь: четыре круга со стрелками между ними, номер шага золотой меткой */
.ek-fl { --fl: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ek-fl li { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; text-align: center; }
.ek-fl li + li::before { content: ""; position: absolute; top: calc(var(--fl) / 2 - 1px); left: calc(var(--fl) / 2 + 4px - 50% - 8px); right: calc(50% + var(--fl) / 2 + 9px); height: 2px;
  border-radius: 1px; background: linear-gradient(90deg, rgba(var(--ek-neon-rgb), 0.12), rgba(var(--ek-neon-rgb), 0.75)); }
.ek-fl li + li::after { content: ""; position: absolute; top: calc(var(--fl) / 2 - 5px); right: calc(50% + var(--fl) / 2 + 3px); width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid rgba(var(--ek-neon-rgb), 0.85); }
.ek-fl-ic { position: relative; display: grid; place-items: center; width: var(--fl); height: var(--fl); margin-bottom: 4px; border-radius: 50%; color: var(--ek-neon);
  background: radial-gradient(circle at 50% 32%, rgba(var(--ek-neon-rgb), 0.22), rgba(var(--ek-neon-rgb), 0.04) 72%); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.42); }
.ek-fl-ic .ek-i { width: 20px; height: 20px; }
.ek-fl-ic img { width: 20px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.ek-fl .is-orn .ek-fl-ic { background: radial-gradient(circle at 50% 32%, rgba(var(--ek-gold-rgb), 0.24), rgba(var(--ek-gold-rgb), 0.04) 72%); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.45); }
.ek-fl .is-lit .ek-fl-ic { color: #1b1300; background: radial-gradient(circle at 50% 36%, #fff3c4, var(--ek-gold-hi) 38%, var(--ek-gold-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 18px -4px rgba(var(--ek-gold-rgb), 0.85); }
.ek-fl .is-drum .ek-fl-ic { color: var(--ek-gold-hi); background: radial-gradient(circle at 50% 32%, rgba(var(--ek-gold-rgb), 0.2), rgba(var(--ek-gold-rgb), 0.03) 72%);
  box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.55); }
.ek-fl-n { position: absolute; right: -5px; top: -4px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font: 800 9.5px/1 var(--ek-mono); font-style: normal;
  color: #1b1300; background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo)); box-shadow: 0 0 0 2px #070b18; }
.ek-fl b { font-size: 12.5px; font-weight: 800; line-height: 1.2; color: #fff; }
.ek-fl small { font-size: 11px; line-height: 1.25; color: var(--ek-dim); }

/* кто играет: золотая и синяя игрушка, подарок новичку меткой, условия значками */
.ek-who-row { display: grid; gap: 8px; min-width: 0; }
.ek-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ek-who-c { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 2px; min-width: 0; padding: 9px 10px 8px;
  border-radius: 6px; background: linear-gradient(135deg, rgba(var(--ek-gold-rgb), 0.13), rgba(var(--ek-gold-rgb), 0.02) 70%); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.32); }
.ek-who-c img { grid-row: 1 / span 2; width: 24px; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
.ek-who-c b { font: 800 13.5px/1.1 var(--ek-disp); letter-spacing: 0.05em; color: var(--ek-gold-hi); }
.ek-who-c small { font-size: 11px; line-height: 1.25; color: var(--ek-dim); }
.ek-who-c em { font-style: normal; font-weight: 800; color: #fff; }
.ek-who-c.is-new { background: linear-gradient(135deg, rgba(var(--ek-neon-rgb), 0.13), rgba(var(--ek-neon-rgb), 0.02) 70%); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.34); }
.ek-who-c.is-new b { color: #bfeaff; }
.ek-who-gift { position: absolute; top: -8px; right: 7px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px;
  font: 800 10px/1.2 var(--ek-mono); color: #02162b; background: linear-gradient(180deg, #c9f1ff, #6fd6ff); box-shadow: 0 4px 10px -4px rgba(var(--ek-neon-rgb), 0.9); white-space: nowrap; }
.ek-who-gift .ek-i { width: 11px; height: 11px; stroke-width: 2.4; }
.ek-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ek-chips li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 9px; border-radius: 5px; font-size: 11.5px; font-weight: 700; line-height: 1.25; color: var(--ek-ink);
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ek-chips .ek-i { width: 13px; height: 13px; color: var(--ek-gold); }
.ek-chips.is-need li { border-radius: 999px; }
.ek-chips.is-need .ek-i { color: var(--ek-neon); }

/* огонёк = билет: плитки источников (значок и +1 строкой), лампочки дневного предела в заголовке */
.ek-pips { display: inline-flex; align-items: center; gap: 1px; color: var(--ek-gold); letter-spacing: normal; }
.ek-pips .ek-i { width: 13px; height: 13px; }
.ek-pips small { margin-left: 5px; font: 600 10px/1 var(--ek-mono); letter-spacing: 0.08em; text-transform: none; color: var(--ek-dim); }
.ek-tl { display: flex; flex-wrap: wrap; gap: 6px; }
.ek-tl li { position: relative; flex: 1 1 84px; display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 9px 5px 7px; border-radius: 6px; text-align: center;
  background: rgba(var(--ek-neon-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.22); }
.ek-tl-v { display: inline-flex; align-items: center; gap: 5px; }
.ek-tl .ek-i { width: 17px; height: 17px; color: var(--ek-neon); }
.ek-tl b { font: 800 15px/1 var(--ek-disp); color: var(--ek-gold-hi); }
.ek-tl small { font-size: 10.5px; line-height: 1.2; color: var(--ek-dim); }
.ek-tl-tag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; font: 800 9px/1.3 var(--ek-mono); font-style: normal;
  letter-spacing: 0.06em; color: #1b1300; background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo)); white-space: nowrap; }

/* банк: столбики по ступеням (высота от суммы, классы is-h1…is-h10), набранные золотые, следующая ступень неоновая */
.ek-bk { display: flex; align-items: flex-end; gap: 8px; }
.ek-bk li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ek-bk .is-h1 { --h: 1; } .ek-bk .is-h2 { --h: 2; } .ek-bk .is-h3 { --h: 3; } .ek-bk .is-h4 { --h: 4; } .ek-bk .is-h5 { --h: 5; }
.ek-bk .is-h6 { --h: 6; } .ek-bk .is-h7 { --h: 7; } .ek-bk .is-h8 { --h: 8; } .ek-bk .is-h9 { --h: 9; } .ek-bk .is-h10 { --h: 10; }
.ek-bk b { font: 800 13px/1 var(--ek-disp); letter-spacing: 0.02em; color: var(--ek-dim); }
.ek-bk-c { display: block; width: 100%; max-width: 56px; height: calc(var(--h, 10) * 4.4px); border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ek-bk small { display: inline-flex; align-items: center; gap: 3px; font: 600 10px/1 var(--ek-mono); letter-spacing: 0.04em; color: var(--ek-faint); white-space: nowrap; }
.ek-bk small .ek-i { width: 11px; height: 11px; }
.ek-bk .is-on b { color: var(--ek-gold-hi); }
.ek-bk .is-on .ek-bk-c { background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo) 65%, rgba(var(--ek-gold-rgb), 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 14px -5px rgba(var(--ek-gold-rgb), 0.8); }
.ek-bk .is-cur b { padding: 2px 5px; border-radius: 3px; color: #1b1300; background: linear-gradient(180deg, var(--ek-gold-hi), var(--ek-gold-lo)); }
.ek-bk .is-next b { color: var(--ek-ink); }
.ek-bk .is-next .ek-bk-c { background: linear-gradient(180deg, rgba(var(--ek-neon-rgb), 0.24), rgba(var(--ek-neon-rgb), 0.04)); box-shadow: inset 0 0 0 1.5px rgba(var(--ek-neon-rgb), 0.7); }

/* призы: Звезда и два барабана карточками, главный приз крупно */
.ek-pz { display: flex; gap: 6px; }
.ek-pz li { flex: 1 1 0; display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 8px 4px 7px; border-radius: 6px; text-align: center;
  background: rgba(var(--ek-gold-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.26); }
.ek-pz li > img { width: 18px; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.ek-pz li > .ek-i { width: 19px; height: 19px; color: var(--ek-gold); fill: rgba(var(--ek-gold-rgb), 0.3); }
.ek-pz span { font: 700 9px/1.2 var(--ek-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ek-dim); }
.ek-pz b { font: 800 18px/1 var(--ek-disp); letter-spacing: 0.02em; color: var(--ek-gold-hi); }
.ek-pz small { font-size: 10.5px; line-height: 1.2; color: var(--ek-ink); }
.ek-pz .is-star { background: radial-gradient(circle at 50% 0, rgba(var(--ek-gold-rgb), 0.24), rgba(var(--ek-gold-rgb), 0.04) 72%); box-shadow: inset 0 0 0 1px rgba(var(--ek-gold-rgb), 0.55); }
.ek-pz .is-new { background: rgba(var(--ek-neon-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--ek-neon-rgb), 0.3); }
.ek-pz .is-new b { color: #bfeaff; }

.ek-rl-age { font: 600 10.5px/1.3 var(--ek-mono); letter-spacing: 0.08em; color: var(--ek-faint); }
.ek-rl-age b { color: var(--ek-ink); }
/* широкий экран (главная и кабинет): банк и призы рядом */
@media (min-width: 961px) {
  .ek-home .ek-igs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ek-home .ek-ig:not(.is-bank):not(.is-prizes) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .ek-cab .ek-igs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ek-cab .ek-ig:not(.is-bank):not(.is-prizes) { grid-column: 1 / -1; }
}
/* свёрнуто (кабинет, Mini App): строка «Правила акции» со стрелкой, раскрывается нажатием */
.ek-rules.is-fold { display: block; border-radius: 8px; background: rgba(4, 8, 20, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.ek-rl-sum { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ek-rl-sum::-webkit-details-marker { display: none; }
.ek-rl-sum .ek-rl-hd { flex: 1 1 auto; }
.ek-rl-sum .ek-rl-hd b { font-size: 15px; }
.ek-rl-chev { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ek-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--ek-ease); }
.ek-rl-chev .ek-i { width: 16px; height: 16px; }
.ek-rules.is-fold[open] .ek-rl-chev { transform: rotate(180deg); }
.ek-rules.is-fold > .ek-igs { padding: 2px 10px 0; }
.ek-rules.is-fold > .ek-rl-age { padding: 10px 14px 12px; }
.ek-rules.is-fold[open] > .ek-igs, .ek-rules.is-fold[open] > .ek-rl-age { animation: ek-rlin 0.45s var(--ek-ease) both; }
.ek-cab > .ek-rules { grid-column: 1 / -1; }
@keyframes ek-rlin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* телефон и шторка Mini App: круги пути меньше */
@media (max-width: 520px) {
  .ek-fl { --fl: 36px; gap: 6px; }
  .ek-fl b { font-size: 11.5px; }
  .ek-fl small { font-size: 10.5px; }
  .ek-fl-ic .ek-i { width: 18px; height: 18px; }
  .ek-fl-ic img { width: 18px; }
  .ek-who { gap: 6px; }
  .ek-who-c { column-gap: 8px; padding: 10px 8px 8px; }
  .ek-who-c img { width: 22px; }
  .ek-pz b { font-size: 17px; }
}
@media (max-width: 360px) {
  .ek-who { grid-template-columns: minmax(0, 1fr); }
  .ek-fl small { display: none; }
}

/* ---------- планшет и телефон: главная ---------- */
@media (max-width: 960px) {
  .ek-home { grid-template-columns: minmax(0, 1fr); }
  .ek-stage::after { top: auto; bottom: 0; left: 24px; right: 24px; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ek-blue-rgb), 0.35), transparent); }
  .ek-home .ek-tree { --ek-fir-w: 240px; --ek-fall: 480px; }
  .ek-info { padding: 26px 26px 28px; }
}
@media (max-width: 760px) {
  .ek-home { margin-top: 28px; }
  .ek-stage { padding: 22px 12px 18px; gap: 14px; }
  .ek-home .ek-tree { --ek-fir-w: 206px; --ek-fall: 420px; }
  .ek-info { gap: 18px; padding: 20px 16px 22px; }
  /* шаг на телефоне: значок рядом с заголовком, пояснение и плитки на всю ширину */
  .ek-how > li { grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 11px 12px; }
  .ek-how > li > div { display: contents; }
  .ek-how > li > div > :not(b) { grid-column: 1 / -1; }
  .ek-how-ic { width: 34px; height: 34px; }
  .ek-how-ic .ek-i { width: 19px; height: 19px; }
  .ek-src li { font-size: 12px; }
  .ek-steps b { font-size: 13.5px; }
  .ek-cnt li { padding: 5px 10px 5px 8px; min-height: 34px; }
}
@media (max-width: 350px) {
  .ek-home .ek-tree { --ek-fir-w: 184px; }
  .ek-tag { max-width: 9ch; font-size: 9.5px; }
  .bh-ek-row { gap: 9px; padding-left: 11px; padding-right: 11px; }
  .bh-ek-lt b, .bh-ek-bank b { font-size: 21px; }
}

/* ---------- «меньше движения»: всё стоит, видно сразу ---------- */
@media (prefers-reduced-motion: reduce) {
  .ek *, .ek *::before, .ek *::after { animation: none !important; transition: none !important; }
  .ek-snow, .ek-tw { display: none; }
  .fx .ek-home:not(.is-lit) .ek-fir, .fx .ek-home:not(.is-lit) .ek-o img, .fx .ek-home:not(.is-lit) .ek-info > *,
  .fx .ek-home:not(.is-lit) .ek-tag, .fx .ek-home:not(.is-lit) .ek-o::after { opacity: 1; transform: none; }
}

/* Надписи Tektur (var(--ek-disp)): только заглавными, строчную «д» этот шрифт рисует как латинскую g */
.ek-rl-hd b, .ek-who-c b, .ek-tl b, .ek-bk b, .ek-pz b, .ek-cnt b, .ek-ph b, .ek-sum, .ek-steps b, .ek-prz b, .ek-win em, .ek-chance b, .ek-lt-n, .bh-ek-t, .bh-ek-lt b, .bh-ek-bank b { text-transform: uppercase; }
