/* ⚠ 2026-10-28 (гацаа): `[style*="…"]` сонгуурыг kpi/dark-tag.js-ийн `data-dkN` тэмдэг болгосон (tools/gen_dark_tag.py) —
   дүрэм, дараалал, тодорхой байдал хэвээр. Энэ файлыг демогоос дахин хуулбал `python tools/gen_dark_tag.py`-г ДАХИН ажиллуул. */
/* ═══════════════════════════════════════════════════════════════════
   ДЕМО — «КИНО АУРА» (2026-10-22). Хэрэглэгч: «Өгний хүчтэй аура оруулмаар байна, яг л кино шиг маш гоё үзэмжтэй».
   ⚠ Жишиг зургийн өнгө, бүтцийг ХЭВЭЭР — неон/солонго БИШ. Зөвхөн гэрэл, гүн, хөдөлгөөн:
   эзлэхүүнт гэрлийн туяа · хөвөх тоосонцор · зөөлөн өнгөт гэрэл (мөс/ногоовтор/лаванда) · захын сүүдэр (виньет) ·
   дүрийн ар талын гэрэл · хальт гялбах гэрэл · кино эхлэх мэт гарч ирэх · багана ургах.
   ref-theme.css-ийн ДАРАА. cine.js чимэглэлийн DOM нэмнэ (aria-hidden, дарагдахгүй). ⚠ ЗӨВХӨН харагдац.
   ═══════════════════════════════════════════════════════════════════ */
:root { --cn-ice: 221, 239, 246; --cn-teal: 142, 194, 194; --cn-lav: 169, 171, 214; --cn-warm: 243, 227, 207; }

/* дэвсгэрийг <html>-д (canvas) — кино тайз z-index:-1-ээр бүх агуулгын ДООР */
html.cine {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.22'/%3E%3C/svg%3E"),
    radial-gradient(1100px 700px at 18% -5%, #B3C4CE 0%, rgba(179, 196, 206, 0) 60%),
    linear-gradient(165deg, #A6B9C5 0%, #95AABA 50%, #869DAE 100%) !important;
  background-attachment: fixed !important; min-height: 100%;
}
html.cine body { background: transparent !important; }

/* ── 1. КИНО ТАЙЗ: зөөлөн өнгөт гэрэл + эзлэхүүнт туяа + тоосонцор + виньет ── */
.cine-stage { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cine-stage .glow { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform, opacity; mix-blend-mode: soft-light; }
.cine-stage .g1 { width: 60vw; height: 60vw; left: -16vw; top: -24vw; background: radial-gradient(circle, rgba(var(--cn-ice), .95), rgba(var(--cn-ice), 0) 66%); animation: cnDrift1 34s ease-in-out infinite alternate; mix-blend-mode: screen; opacity: .55; }
.cine-stage .g2 { width: 48vw; height: 48vw; right: -14vw; top: 10vh; background: radial-gradient(circle, rgba(var(--cn-lav), .9), rgba(var(--cn-lav), 0) 66%); animation: cnDrift2 40s ease-in-out infinite alternate; opacity: .7; }
.cine-stage .g3 { width: 54vw; height: 54vw; left: 20vw; bottom: -30vw; background: radial-gradient(circle, rgba(var(--cn-teal), .9), rgba(var(--cn-teal), 0) 66%); animation: cnDrift3 46s ease-in-out infinite alternate; opacity: .75; }
@keyframes cnDrift1 { to { transform: translate(10vw, 8vh) scale(1.15); } }
@keyframes cnDrift2 { to { transform: translate(-12vw, 14vh) scale(.9); } }
@keyframes cnDrift3 { to { transform: translate(12vw, -10vh) scale(1.12); } }
/* эзлэхүүнт гэрлийн туяа — зүүн дээд буланд цонхоор орж буй гэрэл шиг, аажуу хөдөлнө */
.cine-stage .beams { position: absolute; left: -20vw; top: -30vh; width: 90vw; height: 150vh; transform-origin: 0 0; transform: rotate(-28deg);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 6vw, rgba(255, 255, 255, .10) 7vw, rgba(255, 255, 255, .02) 9vw, rgba(255, 255, 255, 0) 12vw);
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%); mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
  filter: blur(14px); mix-blend-mode: screen; animation: cnBeams 22s ease-in-out infinite alternate; opacity: .9; }
@keyframes cnBeams { from { transform: rotate(-30deg) translateX(-2vw); opacity: .65; } to { transform: rotate(-24deg) translateX(4vw); opacity: 1; } }
/* хөвөх тоосонцор — гэрэлд тусах тоос шиг */
.cine-stage .mote { position: absolute; bottom: -10px; width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%); filter: blur(.4px);
  animation: cnMote var(--d, 22s) linear infinite; animation-delay: var(--dl, 0s); opacity: 0; }
@keyframes cnMote { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: var(--o, .7); } 85% { opacity: var(--o, .7); } 100% { transform: translate(var(--dx, 40px), -105vh); opacity: 0; } }
/* виньет — кадрын зах бараан, гол нь гэрэлтэй (зөвхөн дэвсгэрт) */
.cine-stage .vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(20, 34, 48, .38) 100%); }

/* ── 2. БАННЕР — дүрийн ар талын гэрэл, гэрлийн туяа, гялбах гэрэл, гэрлийн бөмбөлөг ── */
.cine-hero-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; border-radius: inherit; overflow: hidden; }
.cine-hero-fx .halo { position: absolute; left: 10px; bottom: 6px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--cn-ice), .55) 0%, rgba(var(--cn-teal), .25) 38%, rgba(var(--cn-teal), 0) 68%); filter: blur(8px); animation: cnBreath 6s ease-in-out infinite; }
.cine-hero-fx .rays { position: absolute; left: -60px; top: -120px; width: 520px; height: 520px; transform-origin: 50% 50%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .16) 8deg, rgba(255, 255, 255, 0) 16deg, rgba(255, 255, 255, 0) 26deg, rgba(255, 255, 255, .12) 32deg, rgba(255, 255, 255, 0) 40deg, rgba(255, 255, 255, 0) 52deg, rgba(255, 255, 255, .14) 58deg, rgba(255, 255, 255, 0) 66deg, rgba(255, 255, 255, 0) 360deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 70%); mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 70%);
  filter: blur(3px); mix-blend-mode: screen; animation: cnRays 18s ease-in-out infinite alternate; }
@keyframes cnRays { from { transform: rotate(-8deg); opacity: .7; } to { transform: rotate(10deg); opacity: 1; } }
.cine-hero-fx .bokeh { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  animation: cnBokeh var(--d, 9s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); }
@keyframes cnBokeh { from { transform: translate(0, 0) scale(.9); opacity: .25; } to { transform: translate(var(--dx, 12px), -16px) scale(1.15); opacity: .7; } }
.cine-hero-fx .sweep { position: absolute; top: -30%; bottom: -30%; width: 22%; left: -30%; transform: skewX(-20deg); z-index: 3;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); animation: cnSweep 9s ease-in-out 1.8s infinite; }
@keyframes cnSweep { 0% { left: -30%; } 22%, 100% { left: 130%; } }
@keyframes cnBreath { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }
/* дүр — зөөлөн гэрэлт хүрээ + амьсгалах мэт хөвөлт */
.page[data-page="dashboard"] > .page-header::before,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x)::before {
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .38)) drop-shadow(0 0 22px rgba(var(--cn-ice), .45)) !important;
  animation: cnFloat 6s ease-in-out infinite !important;
}
.page[data-page="dashboard"] > .page-header::after,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x)::after { animation: cnFloat 7s ease-in-out .8s infinite reverse !important; }
@keyframes cnFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.page[data-page="dashboard"] > .page-header h1,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x) h1 { text-shadow: 0 0 22px rgba(var(--cn-ice), .45), 0 2px 6px rgba(0, 0, 0, .35) !important; }
.page[data-page="dashboard"] > .page-header,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x) {
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 1px 0 rgba(255, 255, 255, .45),
              0 22px 40px -18px rgba(20, 36, 52, .7), 0 0 60px -14px rgba(var(--cn-ice), .55) !important;
}

/* ── 3. ХАВТАН, КАРТ — хальт гялбах гэрэл, хулганыг дагах гэрэл, хөвөх ── */
.dash-act, .page div[data-dk3636] { overflow: hidden; }
.dash-act::after, .page div[data-dk3636]::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 30%; left: -50%; transform: skewX(-18deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0)); animation: cnSweep 8s ease-in-out infinite;
}
.page div[data-dk3636] { position: relative; }
.dash-act:nth-child(2)::after { animation-delay: .5s; } .dash-act:nth-child(3)::after { animation-delay: 1s; } .dash-act:nth-child(4)::after { animation-delay: 1.5s; }
.dash-act { transition: transform .4s cubic-bezier(.2, .9, .3, 1.25), box-shadow .4s ease; }
.dash-act:hover { transform: translateY(-5px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(30, 50, 70, .14), 0 22px 34px -14px rgba(28, 46, 64, .6), 0 0 34px -6px rgba(var(--cn-ice), .75) !important; }
.dash-act > div:first-child { transition: transform .45s cubic-bezier(.2, .9, .3, 1.4); }
.dash-act:hover > div:first-child { transform: translateY(-3px) rotate(-6deg) scale(1.08); }
.card { background-image: radial-gradient(460px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%), var(--r-card) !important; transition: box-shadow .35s ease; }
.card.cine-hot { box-shadow: 0 22px 40px -18px rgba(28, 46, 64, .6), 0 0 40px -10px rgba(var(--cn-ice), .65), inset 0 2px 0 rgba(255, 255, 255, .5) !important; }
.card:has(> .dash-acts) { background-image: none !important; }

/* ── 4. ЦЭС — аватарын амьсгалах гэрэл, идэвхтэй мөрийн гэрэлт хүрээ ── */
.sidebar .logo-mark { position: relative; overflow: visible !important; }
.sidebar .logo-mark::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(var(--cn-ice), .45), rgba(var(--cn-teal), .18) 45%, rgba(var(--cn-teal), 0) 70%); animation: cnBreath 5s ease-in-out infinite; }
.sidebar .nav-item.active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -3px 5px rgba(50, 80, 100, .35), 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 16px -6px rgba(0, 0, 0, .55), 0 0 26px -4px rgba(var(--cn-ice), .6) !important; }
.sidebar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; border-radius: inherit; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 0%, rgba(var(--cn-ice), .16), rgba(var(--cn-ice), 0) 70%); }

/* ── 5. ГРАФИК — багана доороос ургана, цагираг эргэлдэн гарч ирнэ ── */
.clay-col-fill { transform-origin: 50% 100%; animation: cnGrow 1.3s cubic-bezier(.2, .9, .25, 1.1) both; }
.clay-col:nth-child(2) .clay-col-fill { animation-delay: .12s; } .clay-col:nth-child(3) .clay-col-fill { animation-delay: .24s; }
.clay-col:nth-child(4) .clay-col-fill { animation-delay: .36s; } .clay-col:nth-child(5) .clay-col-fill { animation-delay: .48s; }
@keyframes cnGrow { from { transform: scaleY(0); filter: brightness(1.4); } to { transform: scaleY(1); filter: none; } }
.clay-col-fill { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .16), 0 8px 12px -6px rgba(20, 40, 60, .45), 0 0 18px -4px color-mix(in oklab, var(--c) 60%, transparent) !important; }
.clay-donut-svg { animation: cnSpin 1.3s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes cnSpin { from { transform: rotate(-120deg) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.clay-donut, .clay-gauge { filter: drop-shadow(0 10px 12px rgba(28, 46, 64, .32)) drop-shadow(0 0 16px rgba(var(--cn-ice), .45)) !important; }

/* ── 6. КИНО ЭХЛЭХ МЭТ ГАРЧ ИРЭХ — бүдгээс тод, доороос дээш ── */
.cine-in { animation: cnIn .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--ci, 0) * 70ms); }
@keyframes cnIn { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.btn { transition: transform .2s ease, filter .2s ease; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .cine-stage *, .cine-hero-fx *, .cine-in, .dash-act::after, .clay-col-fill, .clay-donut-svg,
  .page[data-page="dashboard"] > .page-header::before, .page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x)::before { animation: none !important; }
}
/* ⚠ 2026-10-28 (хэрэглэгч «ямар ч гацалтгүй бүх зүйл маш хурдан ажилладаг байх ёстой»): ТАСРАЛТГҮЙ чимэглэлийн хөдөлгөөнийг зогсоосон.
   Дэвсгэр «шилэн» картуудын ард хөдлөхөөр кадр бүрт картын ар талыг дахин бүдгэрүүлж, ЮУ Ч хийгээгүй үед ч видео карт ~70%, хөтөч ~35%
   завгүй байв (Intel-ийн суурилагдсан видео карт; scratchpad dt/perf_trace.js MODE=idle — зогсооход 80 дахин бага). Элементүүд байрандаа
   (зогссон агшинд) харагдсаар; ачаалал, хариу үйлдлийн хөдөлгөөн (гарч ирэх, hover, график, ачааллын эргэлт) хэвээр.
   Хөдөлгөөнийг буцаах бол энэ блокийг (мөн skin-jungle.css, look-cyan.css-ийн төгсгөлийнхийг) устга. */
.cine-stage .g1, .cine-stage .g2, .cine-stage .g3, .cine-stage .beams, .cine-stage .mote,
.cine-hero-fx .halo, .cine-hero-fx .rays, .cine-hero-fx .bokeh, .cine-hero-fx .sweep,
.dash-act::after, .page div[data-dk3636]::after, .sidebar .logo-mark::after { animation-play-state: paused !important; }
.page[data-page="dashboard"] > .page-header::before,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x)::before,
.page[data-page="dashboard"] > .page-header::after,
.page[data-page="dashboard"] > div:first-child:where([data-jg-h1]):not(jg-x)::after { animation-play-state: paused !important; }
