/* =====================================================================
   КОД К СЕБЕ — интерфейс «Микрокосм / Макрокосм»
   HUD-кокпит: индиго-поле с точечной сеткой, тонкие циановые линии,
   орбиты, сегментные шкалы, розовый — только для активного и тревоги.
   ===================================================================== */

:root {
  --void: #04061a;
  --bg-1: #070a24;
  --bg-2: #0b1036;
  --bg-3: #121a4c;
  --fill-a: rgba(15, 24, 70, .9);
  --fill-b: rgba(7, 11, 38, .94);
  --line: rgba(110, 200, 255, .14);
  --line-2: rgba(110, 214, 255, .32);
  --line-3: rgba(150, 236, 255, .7);
  --text: #e4f3ff;
  --text-2: #b4c6e4;
  --muted: #7587b3;
  --faint: #45547e;
  --cyan: #5ef2ff;
  --cyan-2: #b8f7ff;
  --cyan-3: #2bb4e6;
  --steel: #1f6d9c;
  --steel-2: #15416a;
  --pink: #ff3f97;
  --pink-2: #ff8cc6;
  --magenta: #ff4fd8;
  --violet: #8f6bff;
  --amber: #ffcf6b;
  --red: #ff3268;
  --red-2: #ff7d9b;
  --blue: #4d7cff;
  --blue-2: #9db6ff;
  /* совместимость с токенами тренажёров */
  --matrix: var(--cyan);
  --matrix-2: var(--cyan-2);
  --matrix-dim: var(--steel);
  --man: var(--cyan);
  --boy: var(--pink);
  --mask: var(--violet);
  --holo: linear-gradient(115deg, #2bb4e6, #5ef2ff 45%, #b8f7ff 70%, #5ef2ff);
  --glow-g: 0 0 10px rgba(94, 242, 255, .45), 0 0 34px rgba(94, 242, 255, .16);
  --glow-r: 0 0 12px rgba(255, 63, 151, .55), 0 0 40px rgba(255, 63, 151, .2);
  --glow-b: 0 0 12px rgba(143, 107, 255, .55), 0 0 40px rgba(143, 107, 255, .2);
  --radius: 3px;
  --radius-s: 2px;
  --cut: 14px;
  --display: "Tektur", "Exo 2", system-ui, sans-serif;
  --ui: "Exo 2", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --chamfer: polygon(0 0, calc(100% - var(--c, 14px)) 0, 100% var(--c, 14px), 100% 100%, var(--c, 14px) 100%, 0 calc(100% - var(--c, 14px)));
  /* та же форма, но кольцо в 1px: внешний контур минус внутренний (evenodd) */
  --chamfer-ring: polygon(evenodd,
    0 0, calc(100% - var(--c, 14px)) 0, 100% var(--c, 14px), 100% 100%, var(--c, 14px) 100%, 0 calc(100% - var(--c, 14px)), 0 0,
    1px 1px, 1px calc(100% - var(--c, 14px) - .4px), calc(var(--c, 14px) + .4px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(var(--c, 14px) + .4px), calc(100% - var(--c, 14px) - .4px) 1px, 1px 1px);
  --glass-a: rgba(16, 28, 84, .42);
  --glass-b: rgba(6, 10, 38, .58);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.62; -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 90% at 50% 45%, #0c1240 0%, #070a24 52%, #04061a 100%) fixed, var(--void);
}
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-2); }
b, strong { font-weight: 600; color: #fff; }
code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
button { font: inherit; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(94, 242, 255, .28); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--steel-2); border: 2px solid var(--void); }

/* =====================================================================
   КОСМОС: туманность, звёзды, сетка, орбиты, полоса света, рамка
   ===================================================================== */
.cosmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cosmos-nebula { position: absolute; inset: -15%;
  background:
    radial-gradient(34% 40% at 14% 62%, rgba(150, 40, 150, .22), transparent 70%),
    radial-gradient(28% 30% at 22% 30%, rgba(90, 40, 170, .16), transparent 70%),
    radial-gradient(30% 32% at 88% 70%, rgba(40, 70, 190, .18), transparent 70%),
    radial-gradient(22% 20% at 80% 22%, rgba(30, 130, 200, .10), transparent 70%);
  animation: drift 70s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.04); } }
#fx-space { position: absolute; inset: 0; }
.cosmos-grid { position: absolute; inset: 0; opacity: .9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112'%3E%3Cpath d='M56 51v10M51 56h10' stroke='%2378b4ff' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(120, 170, 255, .16) .8px, transparent 1.3px);
  background-size: 112px 112px, 14px 14px;
  -webkit-mask: radial-gradient(90% 80% at 50% 45%, #000 40%, transparent 100%); mask: radial-gradient(90% 80% at 50% 45%, #000 40%, transparent 100%); }
.cosmos-band { position: absolute; left: -10%; right: -10%; top: 46%; height: 220px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(70, 110, 255, .12) 25%, rgba(150, 190, 255, .16) 50%, rgba(70, 110, 255, .12) 75%, transparent);
  filter: blur(28px); animation: band 18s ease-in-out infinite alternate; }
@keyframes band { from { opacity: .55; } to { opacity: 1; } }
.cosmos-orbits { position: absolute; left: 50%; top: 46%; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%); opacity: .5; overflow: visible; }
.cosmos-orbits * { vector-effect: non-scaling-stroke; }
.cosmos-orbits g { transform-box: view-box; transform-origin: 0 0; }
.cosmos-orbits .o1 { animation: spin 420s linear infinite; }
.cosmos-orbits .o2 { animation: spin 300s linear infinite reverse; }
.cosmos-orbits .o3 { animation: spin 220s linear infinite; }
.cosmos-orbits .o4 { animation: spin 160s linear infinite reverse; }
.cosmos-orbits circle, .cosmos-orbits path { fill: none; stroke: rgba(110, 200, 255, .22); stroke-width: 1; }
.cosmos-orbits .thick { stroke: rgba(110, 200, 255, .12); stroke-width: 10; }
.cosmos-orbits .ticks { stroke: rgba(110, 200, 255, .28); stroke-width: 6; }
.cosmos-orbits .pinkarc { stroke: rgba(255, 63, 151, .45); stroke-width: 8; }
.cosmos-orbits text { fill: rgba(140, 210, 255, .2); font-family: var(--display); font-size: 8px; letter-spacing: .45em; }
.cosmos-vignette { position: absolute; inset: 0; background: radial-gradient(110% 85% at 50% 45%, transparent 55%, rgba(2, 3, 14, .78) 100%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* рамка-прицел по краям экрана */
.hud-frame { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.hud-frame i { position: absolute; display: block; }
.hud-frame .t, .hud-frame .b { left: 50%; width: 120px; height: 18px; transform: translateX(-50%);
  background:
    linear-gradient(var(--line-2), var(--line-2)) 0 50% / 30px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 100% 50% / 30px 1px no-repeat,
    linear-gradient(rgba(150,236,255,.5), rgba(150,236,255,.5)) 46px 0 / 1px 100% no-repeat,
    linear-gradient(rgba(150,236,255,.5), rgba(150,236,255,.5)) 60px 0 / 1px 100% no-repeat,
    linear-gradient(rgba(150,236,255,.5), rgba(150,236,255,.5)) 74px 0 / 1px 100% no-repeat; }
.hud-frame .t { top: 6px; } .hud-frame .b { bottom: 6px; }
.hud-frame .l, .hud-frame .r { top: 50%; width: 14px; height: 90px; transform: translateY(-50%);
  background: linear-gradient(var(--line-2), var(--line-2)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 50% / 60% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; }
.hud-frame .l { left: 8px; } .hud-frame .r { right: 8px; transform: translateY(-50%) scaleX(-1); }

.shell { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100vh; }

/* переходы между страницами: «приближение» */
.wrap { animation: arrive .55s var(--ease) backwards; }
@keyframes arrive { from { opacity: 0; transform: scale(.985) translateY(6px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.warping .wrap { transition: opacity .28s ease, transform .3s ease, filter .3s ease; opacity: 0; transform: scale(1.035); filter: blur(8px); }

/* =====================================================================
   ТИПОГРАФИКА
   ===================================================================== */
.display, h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 5vw, 60px); line-height: 1.02; letter-spacing: .01em; margin: 10px 0 16px; }
.holo-text {
  background: linear-gradient(180deg, #e9fcff 0%, #8fe6ff 48%, #3fb6ea 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(94, 242, 255, .35));
}
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: .01em; }
h3 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.28; margin: 6px 0 8px; letter-spacing: .01em; }
.label {
  font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 9px;
}
.label::before { content: ""; width: 12px; height: 2px; background: currentColor; opacity: .75; box-shadow: 0 0 6px currentColor; flex: none; }
.label.plain::before { content: none; }
.lead { font-size: 17px; color: var(--text-2); max-width: 64ch; }
.sub-display { font-family: var(--ui); font-weight: 500; font-size: 15px; letter-spacing: .06em; color: var(--cyan); margin: -4px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.big { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1.1; margin: 4px 0 10px; color: var(--cyan-2); }
.fine { font-family: var(--ui); font-size: 12px; color: var(--muted); margin: 14px 0 0; letter-spacing: .04em; }
.anchor-text { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--cyan-2); margin: 6px 0; text-shadow: 0 0 18px rgba(94, 242, 255, .35); }
.caret::after { content: "▍"; color: var(--cyan); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.micro { font-family: var(--ui); font-size: 9px; line-height: 1.75; letter-spacing: .16em; text-transform: uppercase; color: rgba(140, 200, 255, .55); }
.micro b { color: var(--cyan); font-weight: 600; }
.glitch { position: relative; }

/* =====================================================================
   КАРКАС
   ===================================================================== */
.wrap { width: min(1240px, 100% - 48px); margin: 0 auto; flex: 1; padding: 30px 0 80px; }
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-family: var(--ui); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; background: rgba(4, 6, 26, .7); backdrop-filter: blur(8px); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.section-head { margin: 54px 0 20px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line) 30%, transparent); }
.section-head h2 { margin: 6px 0 0; }
.mt { margin-top: 24px; }

/* =====================================================================
   ПАНЕЛЬ (.holo): срезанные углы, линия-рамка, угловые засечки, блик
   ===================================================================== */
/* стекло: полупрозрачная заливка с размытием фона; рамка — отдельное кольцо по контуру среза (::before) */
.holo {
  --c: var(--cut);
  position: relative; isolation: isolate; padding: 24px 26px;
  background:
    linear-gradient(180deg, rgba(160, 225, 255, .09), transparent 30%),
    radial-gradient(120% 80% at 0% 0%, rgba(110, 200, 255, .08), transparent 55%),
    linear-gradient(160deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  clip-path: var(--chamfer);
  transition: background .3s, transform .3s var(--ease);
}
.holo::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; clip-path: var(--chamfer-ring);
  background: linear-gradient(135deg, rgba(200, 245, 255, .6), var(--line-2) 30%, rgba(110, 214, 255, .16) 65%, var(--line-2));
  transition: background .3s; }
.holo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 0 0 / 2px 18px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 18px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100% / 2px 18px no-repeat;
  opacity: .8; transition: background-size .45s var(--ease), opacity .3s; }
.holo:hover::before { background: linear-gradient(135deg, rgba(220, 250, 255, .85), rgba(140, 228, 255, .6) 40%, rgba(140, 228, 255, .35)); }
.holo:hover::after { background-size: 30px 2px, 2px 30px, 30px 2px, 2px 30px; opacity: 1; }
.holo > .glare { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 242, 255, .09), transparent 45%); }
.holo:hover > .glare { opacity: 1; }
.holo.flat:hover::before { background: linear-gradient(135deg, rgba(200, 245, 255, .6), var(--line-2) 30%, rgba(110, 214, 255, .16) 65%, var(--line-2)); }
.holo.flat:hover::after { background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px; }
.hud-corners { position: relative; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* появление: всплытие + разворот угловых засечек */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity .7s ease, transform .75s var(--ease), filter .7s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.holo.reveal::after { background-size: 0 2px, 2px 0, 0 2px, 2px 0; }
.holo.reveal.in::after { background-size: 18px 2px, 2px 18px, 18px 2px, 2px 18px; transition-delay: .25s; }

/* =====================================================================
   ШАПКА / HUD
   ===================================================================== */
.top-wrap { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(4, 6, 26, .95), rgba(4, 6, 26, .75)); backdrop-filter: blur(14px); }
.top-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.top { width: min(1240px, 100% - 48px); margin: 0 auto; display: flex; align-items: center; gap: 26px; padding: 11px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark .orb { fill: none; stroke: var(--cyan); stroke-width: 1.2; opacity: .75; }
.brand-mark .e1 { transform-origin: 20px 20px; animation: spin 7s linear infinite; }
.brand-mark .e2 { transform-origin: 20px 20px; animation: spin 11s linear infinite reverse; }
.brand-mark .nuc { fill: var(--pink); filter: drop-shadow(0 0 4px var(--pink)); }
.brand-mark .el { fill: var(--cyan-2); }
.brand-text { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .12em; line-height: 1.1; text-transform: uppercase; }
.brand-text small { display: block; font-family: var(--ui); letter-spacing: .22em; font-weight: 500; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { position: relative; color: var(--muted); font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--cyan); box-shadow: var(--glow-g); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--cyan-2); }
.nav a.on::after { transform: scaleX(1); }
.hud { margin-left: auto; display: flex; align-items: center; gap: 16px; font-family: var(--ui); }
.hud-level { text-align: right; line-height: 1.15; }
.hud-level .k { font-size: 9.5px; letter-spacing: .26em; color: var(--muted); text-transform: uppercase; }
.hud-level strong { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--cyan-2); letter-spacing: .04em; }
.hud-xp { width: 150px; }
.seg { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; height: 8px; }
.seg i { background: rgba(94, 242, 255, .1); transform: skewX(-20deg); transition: background .4s, box-shadow .4s; }
.seg i.on { background: var(--cyan); box-shadow: 0 0 6px rgba(94, 242, 255, .7); }
.xpnum { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; }
.xpnum b { color: var(--cyan); font-weight: 600; }
.hud-streak { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pink-2); font-weight: 600; }
.hud-streak .pulse { width: 7px; height: 7px; background: var(--pink); box-shadow: 0 0 10px var(--pink); transform: rotate(45deg); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: rotate(45deg) scale(.7); } }
.hud-btn { width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); }
.hud-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hud-btn .wave { opacity: 0; transition: opacity .2s; }
.hud-btn.on { color: var(--cyan); }
.hud-btn.on .wave { opacity: 1; }
.hud-btn.on .x { opacity: 0; }
.hud-user { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: var(--cyan-2); font-family: var(--display); font-size: 14px; font-weight: 600; }
.hud-user svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hud-user .ring-bg { fill: rgba(10, 18, 56, .9); stroke: var(--line-2); stroke-width: 1; }
.hud-user .ring-fg { fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-dasharray: 100; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 3px var(--cyan)); }
.hud-user:hover { color: #fff; }
.hud-user span { position: relative; }

/* мобильная навигация */
.mnav { display: none; }

/* =====================================================================
   КНОПКИ, ПОЛЯ, МЕТКИ, ШКАЛЫ
   ===================================================================== */
.btn {
  --c: 9px;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border: 0; background: rgba(150, 228, 255, .42); color: var(--cyan-2); clip-path: var(--chamfer);
  -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%);
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  transition: background .25s, color .25s, transform .1s;
}
/* стеклянная кнопка: внешний слой — светящаяся кромка, внутренний — полупрозрачная заливка с бликом сверху */
.btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(120, 200, 255, .22), rgba(14, 26, 72, .38) 55%, rgba(10, 18, 56, .48)); transition: background .25s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34%; left: -60%; z-index: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); transform: skewX(-22deg); transition: left .55s var(--ease); }
.btn:hover { background: rgba(184, 247, 255, .75); color: #fff; }
.btn:hover::before { background: linear-gradient(180deg, rgba(94, 242, 255, .32), rgba(30, 80, 160, .3) 55%, rgba(14, 26, 72, .4)); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:disabled:hover { background: var(--line-2); color: var(--cyan-2); }
/* главное действие: то же стекло, окрашенное в акцент (--pink; на экране цвета — цвет зоны) */
.btn-red { background: color-mix(in srgb, var(--pink) 70%, transparent); color: #fff; }
.btn-red::before { background: linear-gradient(180deg, color-mix(in srgb, var(--pink) 42%, transparent), color-mix(in srgb, var(--pink) 18%, rgba(10, 14, 50, .35)) 60%, color-mix(in srgb, var(--pink) 10%, rgba(10, 14, 50, .45))); }
.btn-red:hover { background: color-mix(in srgb, var(--pink) 90%, #fff); }
.btn-red:hover::before { background: linear-gradient(180deg, color-mix(in srgb, var(--pink) 58%, transparent), color-mix(in srgb, var(--pink) 28%, rgba(10, 14, 50, .3))); }
.btn-ghost { background: rgba(150, 228, 255, .2); color: var(--text-2); }
.btn-ghost::before { background: rgba(8, 12, 40, .32); }
.btn-ghost:hover { background: var(--line-3); }
.btn-danger { background: rgba(255, 50, 104, .55); color: var(--red-2); }
.btn-danger::before { background: rgba(30, 6, 24, .8); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { --c: 7px; padding: 8px 14px; font-size: 11px; letter-spacing: .14em; }
.btn.pulse { animation: btnPulse 1.4s ease-in-out infinite; }
@keyframes btnPulse { 50% { background: var(--pink); color: #fff; } }
.link { background: none; border: 0; color: var(--cyan); padding: 0; text-decoration: underline; text-underline-offset: 3px; font-family: var(--ui); font-size: inherit; }

.input, .textarea {
  width: 100%; padding: 12px 15px; background: rgba(5, 9, 32, .82); color: var(--text); border: 0; outline: none;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 rgba(94, 242, 255, .18); border-radius: 0;
  font-family: var(--sans); font-size: 14.5px; transition: box-shadow .2s;
}
.input:focus, .textarea:focus { box-shadow: inset 0 0 0 1px var(--cyan), inset 0 -2px 0 var(--cyan), 0 0 22px rgba(94, 242, 255, .12); }
.input::placeholder, .textarea::placeholder { color: #4a5a86; }
.textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.input.big { font-family: var(--display); font-weight: 500; font-size: 20px; padding: 15px 18px; letter-spacing: .02em; }
.row .input { flex: 1 1 200px; width: auto; }
.range { width: 100%; accent-color: var(--cyan); }
.kbd { font-family: var(--ui); font-weight: 600; font-size: 11px; padding: 2px 7px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cyan); }

.bar { position: relative; height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, rgba(31, 109, 156, .3), rgba(94, 242, 255, .7)); box-shadow: 0 0 10px rgba(94, 242, 255, .4); transition: width 1s var(--ease); position: relative; }
.bar i::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 14px; background: #e6fbff; box-shadow: 0 0 10px #fff; border-radius: 2px; opacity: .85; }

.chip { display: inline-flex; gap: 6px; align-items: center; font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .16); color: var(--muted); background: rgba(8, 12, 40, .5); }
.chip.ok { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--cyan); }
.chip.ok::before { content: ""; width: 6px; height: 6px; background: var(--cyan); transform: rotate(45deg); box-shadow: 0 0 6px var(--cyan); }
.chip.red { color: var(--pink-2); box-shadow: inset 0 0 0 1px rgba(255, 63, 151, .4); }
.chip.cyan { color: var(--cyan-2); box-shadow: inset 0 0 0 1px rgba(94, 242, 255, .3); background: rgba(31, 109, 156, .14); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dot { width: 6px; height: 6px; background: currentColor; display: inline-block; transform: rotate(45deg); box-shadow: 0 0 6px currentColor; }

/* =====================================================================
   ГЕЙДЖ, ЭКВАЛАЙЗЕР, ПЛИТКИ
   ===================================================================== */
.gauge { display: block; width: 100%; height: auto; overflow: visible; }
.gauge .g-rim { fill: none; stroke: var(--line-2); stroke-width: 1; }
.gauge .g-arc { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(94, 242, 255, .8)); stroke-dasharray: 600; stroke-dashoffset: 600; }
.gauge.in .g-arc { animation: drawArc 1.4s var(--ease) .2s forwards; }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
.gauge .g-dash { fill: none; stroke: rgba(110, 200, 255, .3); stroke-width: 1; stroke-dasharray: 1.5 4; }
.gauge .g-ticks { fill: none; stroke: rgba(110, 200, 255, .32); stroke-width: 4; stroke-dasharray: .6 3.4; }
.gauge .sg { fill: rgba(94, 242, 255, .1); }
.gauge .sg.on { fill: var(--cyan); }
.gauge.in .sg.on { animation: segOn .4s ease both; animation-delay: calc(var(--i) * 22ms + .15s); }
@keyframes segOn { from { fill: rgba(94, 242, 255, .1); } 60% { fill: #fff; } to { fill: var(--cyan); } }
.gauge .sg.head { fill: var(--pink); animation: headPulse 1.3s ease-in-out infinite; }
@keyframes headPulse { 50% { fill: rgba(255, 63, 151, .25); } }
.gauge .g-disc { stroke: var(--line-2); stroke-width: 1; }
.gauge .g-knob .k-bg { fill: #0d2a4c; }
.gauge .g-knob .k-rim { fill: none; stroke: #040a20; stroke-width: 2.4; }
.gauge text { text-anchor: middle; fill: var(--text); }
.gauge .g-lab { font-family: var(--ui); font-weight: 600; font-size: 8.5px; letter-spacing: .26em; fill: var(--cyan); text-transform: uppercase; }
.gauge .g-val { font-family: var(--display); font-weight: 600; font-size: 25px; fill: var(--cyan-2); filter: drop-shadow(0 0 6px rgba(94, 242, 255, .6)); }
.gauge .g-sub { font-family: var(--ui); font-weight: 500; font-size: 8px; letter-spacing: .18em; fill: var(--muted); }
.gauge.pinkval .g-val { fill: var(--pink-2); filter: drop-shadow(0 0 6px rgba(255, 63, 151, .7)); }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.spin-rev { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite reverse; }

.eq { display: grid; gap: 4px; }
.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.eq-bars i { flex: 1; height: calc(var(--h) * 100%); background: linear-gradient(180deg, var(--cyan-2), var(--cyan) 60%, rgba(94, 242, 255, .35)); box-shadow: 0 0 6px rgba(94, 242, 255, .35); transform-origin: bottom; transform: scaleY(.05); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 40ms); position: relative; }
.eq-bars i:not(.on) { background: rgba(94, 242, 255, .18); box-shadow: none; }
.eq-bars i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: rgba(255, 140, 200, .55); mix-blend-mode: screen; opacity: .0; }
.eq-bars i.on:last-child::after { opacity: .9; }
.eq.in .eq-bars i { transform: scaleY(1); }
.eq-x { display: flex; gap: 3px; }
.eq-x span { flex: 1; text-align: center; font-family: var(--ui); font-size: 9px; letter-spacing: .05em; color: var(--faint); }
.eq-cap { display: flex; justify-content: space-between; gap: 10px; font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.eq-cap b { color: var(--cyan); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile, .stat {
  --c: 10px; position: relative; isolation: isolate; clip-path: var(--chamfer); padding: 0 0 12px; text-align: center;
  background: linear-gradient(180deg, rgba(31, 109, 156, .5) 0 23px, rgba(10, 18, 56, .44) 23px);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.tile::before, .stat::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--chamfer-ring); background: var(--line-2); }
.tile .k, .stat .k { display: block; height: 23px; line-height: 23px; font-family: var(--ui); font-weight: 600; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(200, 240, 255, .85); }
.tile b, .stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; margin-top: 10px; color: var(--cyan-2); text-shadow: 0 0 14px rgba(94, 242, 255, .45); }
.tile small, .stat small { display: block; font-family: var(--ui); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: 6px; padding: 0 6px; }
.tile.alert b { color: var(--pink-2); text-shadow: 0 0 14px rgba(255, 63, 151, .5); }
.stat.holo { padding: 0 0 12px; }
.stat.holo::after { display: none; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* =====================================================================
   ВХОД: макрокосм → микрокосм
   ===================================================================== */
.page-login .wrap { padding: 0; width: 100%; }
.gate { position: relative; min-height: calc(100vh - 60px); display: grid; grid-template-columns: 1fr minmax(320px, 560px) 1fr; align-items: center; gap: 30px; padding: 30px max(24px, 4vw); }
.gate-side { display: grid; gap: 16px; align-content: center; }
.gate-side.r { justify-items: end; text-align: right; }
.gate-core { position: relative; display: grid; justify-items: center; text-align: center; }
.gate-globe { position: relative; width: min(500px, 82vw); aspect-ratio: 1; }
.gate-globe canvas { width: 100%; height: 100%; display: block; }
.gate-globe svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gate-globe svg * { vector-effect: non-scaling-stroke; }
.gate-globe .r1 { animation: spin 50s linear infinite; transform-origin: 0 0; transform-box: view-box; }
.gate-globe .r2 { animation: spin 34s linear infinite reverse; transform-origin: 0 0; transform-box: view-box; }
.gate-globe circle, .gate-globe path { fill: none; stroke: var(--line-2); }
.gate-globe .tk { stroke: rgba(110, 200, 255, .38); stroke-width: 6; }
.gate-globe .pk { stroke: var(--pink); stroke-width: 6; opacity: .75; }
.gate-globe text { fill: rgba(150, 220, 255, .45); font-family: var(--display); font-size: 2.3px; letter-spacing: .55em; }
.gate-title { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 92px); line-height: .95; letter-spacing: .02em; margin: 6px 0 10px; }
.gate-lines { min-height: 64px; font-family: var(--ui); font-weight: 500; font-size: 15px; letter-spacing: .06em; color: var(--text-2); }
.gate-lines p { margin: 0; }
.gate-lines .hl { color: var(--cyan-2); }
.gate-form { width: min(420px, 100%); margin: 18px auto 0; display: grid; gap: 12px; }
.gate-form .btn { width: 100%; }
.gate .boot { font-family: var(--ui); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); text-align: left; }
.gate .boot .bar { margin-top: 8px; }
.gate.zoom .gate-globe { transition: transform 1s cubic-bezier(.6, 0, .4, 1), opacity 1s; transform: scale(5); opacity: 0; }
.gate.zoom .gate-side, .gate.zoom .gate-title, .gate.zoom .gate-lines, .gate.zoom .gate-form { transition: opacity .4s; opacity: 0; }
.gate-axis { position: absolute; left: 50%; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); pointer-events: none; }

/* =====================================================================
   КАРТА: кокпит с ядром
   ===================================================================== */
.cockpit { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 26px; align-items: start; margin-top: 6px; }
.cockpit-l, .cockpit-r { display: grid; gap: 16px; }
.cockpit-l .tiles { grid-template-columns: repeat(3, 1fr); }
.core-tip span { display: block; }
.pilot h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 8px 0 4px; }
.pilot .motto { font-size: 13.5px; color: var(--text-2); margin: 10px 0 0; }
.pilot .gauge { width: 210px; margin: 14px auto 4px; }
.core-wrap { position: relative; width: 100%; max-width: 660px; margin: 0 auto; aspect-ratio: 1; }
.core { width: 100%; height: 100%; display: block; overflow: visible; }
.core * { vector-effect: non-scaling-stroke; }
.core .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.core .ring.dash { stroke-dasharray: 2 6; }
.core .ring.faint { stroke: var(--line); }
.core .ticks { fill: none; stroke: rgba(110, 200, 255, .3); stroke-width: 8; }
.core .r-cw { transform-box: view-box; transform-origin: 0 0; animation: spin 90s linear infinite; }
.core .r-ccw { transform-box: view-box; transform-origin: 0 0; animation: spin 140s linear infinite reverse; }
.core .marc-bg { fill: none; stroke: rgba(94, 242, 255, .12); stroke-width: 12; }
.core .marc { fill: none; stroke: var(--cyan); stroke-width: 12; stroke-dasharray: 1000; stroke-dashoffset: 1000; filter: drop-shadow(0 0 5px rgba(94, 242, 255, .6)); }
.core.in .marc { animation: drawArc 1.6s var(--ease) forwards; animation-delay: calc(.3s + var(--i) * 90ms); }
.core .mod:hover .marc-bg { stroke: rgba(94, 242, 255, .3); }
.core .mlabel { fill: rgba(170, 225, 255, .78); font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .3em; }
.core .mod:hover .mlabel, .core .mod.cur .mlabel { fill: var(--cyan-2); }
.core .node circle.n-bg { fill: #0a1240; stroke: var(--line-3); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.core .node text { text-anchor: middle; font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--cyan-2); }
.core .node.done circle.n-bg { fill: var(--cyan); stroke: #fff; }
.core .node.done text { fill: #04102a; }
.core .node.cur circle.n-bg { stroke: var(--pink); stroke-width: 2; }
.core .node .halo { fill: none; stroke: var(--pink); stroke-width: 1.5; opacity: 0; }
.core .node.cur .halo { animation: halo 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.core .node:hover circle.n-bg { fill: #16307a; stroke: var(--cyan); }
.core .node.done:hover circle.n-bg { fill: var(--cyan-2); }
.core .tseg { fill: rgba(94, 242, 255, .12); }
.core .tseg.on { fill: var(--cyan); }
.core.in .tseg.on { animation: segOn .45s ease both; animation-delay: calc(var(--i) * 14ms + .4s); }
.core .pinkseg { fill: var(--pink); opacity: .85; animation: headPulse 2s ease-in-out infinite; }
.core .pointer line { stroke: var(--cyan); stroke-width: 1.2; opacity: .8; }
.core .pointer path { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.core .pointer { transform-box: view-box; transform-origin: 0 0; transform: rotate(var(--a)); }
.core.in .pointer { animation: aim 1.8s var(--ease) both; }
@keyframes aim { from { transform: rotate(calc(var(--a) - 150deg)); opacity: 0; } to { transform: rotate(var(--a)); opacity: 1; } }
.core .disc { fill: url(#coreDisc); stroke: var(--line-3); stroke-width: 1.5; }
.core .glowc { fill: url(#coreGlow); animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
.core .c-lab { text-anchor: middle; font-family: var(--ui); font-weight: 600; font-size: 9px; letter-spacing: .32em; fill: var(--cyan); }
.core .c-val { text-anchor: middle; font-family: var(--display); font-weight: 700; font-size: 26px; fill: var(--pink-2); filter: drop-shadow(0 0 8px rgba(255, 63, 151, .8)); letter-spacing: .04em; }
.core .c-sub { text-anchor: middle; font-family: var(--ui); font-weight: 500; font-size: 10px; letter-spacing: .2em; fill: var(--text-2); }
.core .inner-txt { fill: rgba(150, 215, 255, .6); font-family: var(--display); font-size: 9px; letter-spacing: .55em; }
.core .electron { fill: var(--cyan-2); filter: drop-shadow(0 0 4px var(--cyan)); }
.core .e-orbit { transform-box: view-box; transform-origin: 0 0; }
.core .e-orbit.a { animation: spin 6s linear infinite; }
.core .e-orbit.b { animation: spin 9s linear infinite reverse; }
.core-sweep { position: absolute; left: 50%; top: 50%; width: 57%; height: 57%; margin: -28.5% 0 0 -28.5%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(94, 242, 255, .02) 300deg, rgba(94, 242, 255, .14) 356deg, rgba(200, 250, 255, .7) 359deg, transparent 360deg);
  animation: spin 8s linear infinite;
  -webkit-mask: radial-gradient(closest-side, transparent 61%, #000 62%, #000 97%, transparent 100%); mask: radial-gradient(closest-side, transparent 61%, #000 62%, #000 97%, transparent 100%); }
.core-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); padding: 8px 12px; min-width: 160px; text-align: center; opacity: 0; transition: opacity .2s; }
.core-tip.on { opacity: 1; }
.core-tip b { display: block; font-family: var(--display); font-size: 14px; }
.core-tip span { font-family: var(--ui); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.next-step { display: grid; gap: 10px; color: inherit; }
.next-step:hover { color: inherit; }
.next-step h3 { margin: 2px 0 0; font-size: 18px; }
.next-step .btn { justify-self: start; margin-top: 4px; }
.daily-text { font-family: var(--display); font-weight: 500; font-size: 17px; margin: 10px 0 14px; line-height: 1.38; }
.daily.is-done .daily-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--steel); }

.modlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modrow { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 16px; color: var(--text); }
.modrow:hover { color: var(--text); }
.modrow .num { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--cyan); text-shadow: 0 0 12px rgba(94, 242, 255, .45); }
.modrow h3 { margin: 0; font-size: 15.5px; }
.modrow p { margin: 2px 0 8px; font-size: 12px; color: var(--muted); font-family: var(--ui); letter-spacing: .04em; }
.modrow.done .num { color: var(--cyan-2); }
.modrow.cur .num { color: var(--pink-2); text-shadow: 0 0 12px rgba(255, 63, 151, .55); }

/* карточки модулей / тренажёров */
.card-link { display: flex; flex-direction: column; color: var(--text); min-height: 210px; }
.card-link:hover { color: var(--text); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.code { font-family: var(--ui); font-weight: 600; font-size: 11px; letter-spacing: .26em; color: var(--cyan); text-transform: uppercase; }
.card-link h3 { font-size: 20px; margin: 0 0 4px; }
.card-link .sub { font-family: var(--ui); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; color: var(--cyan); margin: 0 0 10px; }
.card-link .bar { margin-top: auto; }
.cta { margin-top: auto; padding-top: 14px; font-family: var(--ui); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.sim-icon { --c: 8px; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--cyan-2); clip-path: var(--chamfer);
  background: radial-gradient(circle at 50% 30%, rgba(94, 242, 255, .25), rgba(10, 18, 56, .9)); box-shadow: inset 0 0 0 1px var(--line-3); margin-bottom: 2px; }

/* артефакты */
.badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.badge { padding: 12px 6px; text-align: center; opacity: .38; display: grid; gap: 7px; justify-items: center; filter: grayscale(1); transition: opacity .3s; }
.badge.has { opacity: 1; filter: none; }
.badge-icon { width: 46px; height: 46px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: grid; place-items: center; font-family: var(--display); font-size: 13px; font-weight: 700;
  color: #eafcff; text-shadow: 0 0 8px rgba(94, 242, 255, .9); background: linear-gradient(160deg, rgba(184, 247, 255, .5), rgba(43, 180, 230, .2) 60%, rgba(43, 180, 230, .32)); }
.badge:not(.has) .badge-icon { background: var(--steel-2); color: var(--muted); }
.badge.has .badge-icon { filter: drop-shadow(0 0 8px rgba(94, 242, 255, .6)); }
.badge-name { font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.badge-desc { font-size: 11px; color: var(--muted); line-height: 1.35; }
.rules { padding-left: 0; list-style: none; margin: 12px 0 0; color: var(--text-2); display: grid; gap: 10px; font-size: 14px; }
.rules li { padding-left: 18px; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border: 1px solid var(--cyan); transform: rotate(45deg); }

/* =====================================================================
   МОДУЛЬ, ПРОГРАММА, ПРОФИЛЬ
   ===================================================================== */
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: 10px 0 4px; }
.hero .gauge { max-width: 230px; justify-self: end; }
.crumbs { display: flex; gap: 10px; font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs span { opacity: .4; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }
.step { display: grid; grid-template-columns: 78px 1fr auto; gap: 22px; align-items: center; margin-bottom: 12px; color: var(--text); }
.step:hover { color: var(--text); }
.step.is-outline { opacity: .72; }
.step-num { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--cyan); line-height: 1; text-shadow: 0 0 14px rgba(94, 242, 255, .45); }
.step-body h3 { margin: 4px 0 4px; }
.step-xp { font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: .14em; color: var(--cyan-2); white-space: nowrap; }
.outcomes { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; color: var(--text-2); }
.outcomes li { padding-left: 18px; position: relative; }
.outcomes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border: 1px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 6px rgba(94, 242, 255, .5); }
.curr-module { margin-bottom: 20px; }
.curr-head { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: start; }
.curr-num { font-family: var(--display); font-size: 46px; font-weight: 600; color: var(--cyan); line-height: 1; text-shadow: 0 0 16px rgba(94, 242, 255, .5); }
.curr-lessons { margin-top: 18px; display: grid; gap: 8px; }
.curr-lesson { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 13px 16px; background: rgba(8, 14, 46, .6); box-shadow: inset 2px 0 0 var(--line-2); transition: box-shadow .25s, background .25s; }
.curr-lesson:hover { box-shadow: inset 3px 0 0 var(--cyan); background: rgba(16, 28, 80, .6); }
.curr-lesson .n { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--cyan); padding-top: 2px; }
.curr-lesson h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 15px; }
.curr-lesson p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.curr-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.curr-meta h5 { margin: 0 0 8px; font-family: var(--ui); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
.curr-meta ul { margin: 0; padding-left: 0; list-style: none; font-size: 13px; color: var(--text-2); display: grid; gap: 5px; }
.curr-meta li::before { content: "◇ "; color: var(--cyan); }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 30px; }
.log { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.log th { text-align: left; font-family: var(--ui); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.log td { padding: 10px; border-bottom: 1px solid var(--line); }
.log code { color: var(--text-2); }
.log-wrap { overflow-x: auto; }

/* =====================================================================
   УРОК: табы, конспект, тест, ролевая
   ===================================================================== */
.lesson-head { margin-bottom: 24px; }
.tabs { display: flex; gap: 0; margin-bottom: 26px; overflow-x: auto; border-bottom: 1px solid var(--line-2); max-width: 100%; }
.tab { position: relative; background: none; border: 0; color: var(--muted); padding: 12px 18px; font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); box-shadow: var(--glow-g); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab.on { color: var(--cyan-2); }
.tab.on::after { transform: scaleX(1); }
.tab:not(.on):hover { color: var(--text); }
.pane { display: none; }
.pane.on { display: block; animation: arrive .45s var(--ease) backwards; }
.next-hint { margin-top: 20px; color: var(--muted); font-size: 13px; font-family: var(--ui); letter-spacing: .04em; }
.theses { display: grid; gap: 12px; }
.thesis { display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.thesis-num { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--cyan); line-height: 1; padding-top: 4px; text-shadow: 0 0 14px rgba(94, 242, 255, .45); }
.thesis h3 { margin-top: 0; font-size: 19px; }
.thesis p { margin: 0; color: var(--text-2); }
.thesis .src { margin-top: 10px; font-family: var(--ui); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.quiz-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.quiz-top .bar { flex: 1; }
.quiz-q { font-size: 22px; margin: 6px 0 20px; }
.quiz-answers, .rp-options { display: grid; gap: 8px; }
.ans, .opt {
  --c: 10px; text-align: left; border: 0; padding: 14px 18px; display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; color: var(--text);
  position: relative; isolation: isolate; background: var(--line); clip-path: var(--chamfer); transition: background .2s, transform .2s var(--ease);
}
.ans::before, .opt::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--chamfer); background: rgba(9, 15, 48, .92); transition: background .2s; }
.ans:hover, .opt:hover { background: var(--cyan); transform: translateX(4px); }
.ans:hover::before, .opt:hover::before { background: rgba(18, 36, 96, .95); }
.ans i, .opt i { font-style: normal; font-family: var(--display); font-weight: 600; color: var(--cyan); font-size: 14px; min-width: 22px; }
.ans.right { background: var(--cyan); }
.ans.right::before { background: rgba(14, 60, 100, .95); }
.ans.wrong { background: var(--pink); }
.ans.wrong::before { background: rgba(70, 12, 50, .95); }
.ans:disabled { cursor: default; transform: none; }
.ans:disabled:not(.right):not(.wrong) { opacity: .4; }
.explain { margin-top: 18px; padding: 16px 20px; border-left: 2px solid var(--cyan); background: linear-gradient(90deg, rgba(31, 109, 156, .22), rgba(8, 12, 40, .6)); animation: arrive .4s var(--ease); }
.explain p { margin: 8px 0 14px; color: var(--text-2); }
.explain.bad { border-left-color: var(--pink); background: linear-gradient(90deg, rgba(255, 63, 151, .14), rgba(8, 12, 40, .6)); }
.explain.bad .label { color: var(--pink-2); }
.explain.blue { border-left-color: var(--violet); background: linear-gradient(90deg, rgba(143, 107, 255, .16), rgba(8, 12, 40, .6)); }
.explain.blue .label { color: #c2b2ff; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.lg { font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; }
.lg-boy { color: var(--pink-2); box-shadow: inset 0 0 0 1px rgba(255, 63, 151, .5); }
.lg-mask { color: #c2b2ff; box-shadow: inset 0 0 0 1px rgba(143, 107, 255, .5); }
.lg-man { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--line-2); }
.rp-meter { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rp-meter .bar { flex: 1; }
.chat { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 78%; padding: 12px 16px; line-height: 1.45; animation: arrive .35s var(--ease); }
.msg.her { background: rgba(143, 107, 255, .12); box-shadow: inset 2px 0 0 var(--violet); justify-self: start; }
.msg.me { background: rgba(94, 242, 255, .08); box-shadow: inset -2px 0 0 var(--cyan); justify-self: end; }
.msg.me.boy { background: rgba(255, 63, 151, .1); box-shadow: inset -2px 0 0 var(--pink); }
.msg.me.mask { background: rgba(143, 107, 255, .1); box-shadow: inset -2px 0 0 var(--violet); }
.msg.inner { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-style: italic; max-width: 100%; justify-self: stretch; }
.msg.scene { background: transparent; box-shadow: none; color: var(--cyan); font-family: var(--ui); letter-spacing: .1em; font-size: 12px; text-transform: uppercase; max-width: 100%; justify-self: stretch; padding: 4px 0; }
.msg .who { display: block; font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.msg.action { font-style: italic; }
.typing { justify-self: start; display: flex; gap: 4px; padding: 14px 16px; background: rgba(143, 107, 255, .08); }
.typing i { width: 6px; height: 6px; background: var(--violet); transform: rotate(45deg); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; } }
.rp-inner { font-family: var(--ui); font-size: 14px; letter-spacing: .02em; color: var(--cyan-2); margin: 8px 0 16px; }
.rp-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.rp-breakdown div { padding: 14px; text-align: center; background: rgba(8, 12, 40, .6); box-shadow: inset 0 0 0 1px var(--line); }
.rp-breakdown b { display: block; font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 1; margin-bottom: 6px; }

/* =====================================================================
   ШОРТСЫ: лента с кадром по центру
   ===================================================================== */
.clips-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.clips-head p { margin: 0; max-width: 70ch; }
.reel { position: relative; }
.reel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.reel-count { font-family: var(--display); font-size: 16px; color: var(--muted); }
.reel-count b { color: var(--cyan-2); font-weight: 600; }
.reel-pips { display: flex; gap: 5px; }
.reel-pips i { width: 18px; height: 4px; background: rgba(94, 242, 255, .16); cursor: pointer; transform: skewX(-24deg); transition: background .3s, box-shadow .3s; }
.reel-pips i.ok { background: var(--steel); }
.reel-pips i.on { background: var(--cyan); box-shadow: var(--glow-g); }
.reel-stage { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 6px; }
.reel-nav { --c: 8px; width: 46px; height: 64px; display: grid; place-items: center; border: 0; clip-path: var(--chamfer); background: rgba(31, 109, 156, .28); color: var(--cyan); transition: background .2s, color .2s; position: relative; z-index: 2; }
.reel-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.reel-nav:hover { background: var(--cyan); color: #05122e; }
.reel-items { display: grid; }
.reel-item { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 340px) minmax(0, 1fr); gap: 0; align-items: center;
  transition: opacity .42s ease, transform .42s var(--ease), filter .42s; }
.reel-item.in-r { opacity: 0; transform: translateX(60px) scale(.94); filter: blur(6px); transition: none; }
.reel-item.in-l { opacity: 0; transform: translateX(-60px) scale(.94); filter: blur(6px); transition: none; }
.reel-item.out-l { opacity: 0; transform: translateX(-60px) scale(.94); filter: blur(6px); pointer-events: none; }
.reel-item.out-r { opacity: 0; transform: translateX(60px) scale(.94); filter: blur(6px); pointer-events: none; }
.reel-center { grid-column: 2; display: grid; justify-items: center; }
.reel-center .vp { width: 100%; }
.reel-side { position: relative; display: flex; align-items: center; }
.reel-side.l { grid-column: 1; justify-content: flex-end; }
.reel-side.r { grid-column: 3; justify-content: flex-start; }
.reel-side .holo { width: min(100%, 330px); padding: 20px 22px; }
.reel-side .wire { flex: none; width: 30px; height: 1px; background: var(--line-3); position: relative; }
.reel-side .wire::before { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); box-shadow: var(--glow-g); }
.reel-side.l .wire::before { right: -3px; }
.reel-side.r .wire::before { left: -3px; }
.reel-info .clip-h { margin: 8px 0 10px; font-size: 18px; }
.reel-info .ctx { font-size: 13.5px; color: var(--text-2); margin: 0 0 10px; }
.quote { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--pink); font-size: 13.5px; color: var(--cyan-2); font-style: italic; }
.clip-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-family: var(--ui); font-weight: 600; font-size: 10.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.rank { display: inline-flex; gap: 3px; }
.rank i { width: 7px; height: 7px; background: var(--steel-2); transform: rotate(45deg); }
.rank i.on { background: var(--pink); box-shadow: 0 0 5px rgba(255, 63, 151, .7); }
.clip-orig { font-family: var(--ui); font-size: 10.5px; color: var(--faint); letter-spacing: .04em; display: block; }
.reel-take { display: grid; gap: 14px; }
.reel-take .clip-q { display: grid; gap: 8px; }
.reel-take .clip-q p { margin: 0; }
.reel-take .clip-save { justify-self: start; }
.reel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.decrypt-box { position: relative; padding: 12px 14px; background: rgba(5, 9, 32, .7); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; overflow: hidden; }
.decrypt-box p { margin: 6px 0 0; transition: filter .9s var(--ease), opacity .9s; }
.decrypt-box .lock-note { display: none; }
.decrypt-box.locked p { filter: blur(6px); opacity: .55; user-select: none; }
.decrypt-box.locked .lock-note { display: grid; place-items: center; position: absolute; inset: 22px 0 0; font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan-2); }
.decrypt-box.unlocked { animation: unlock 1s ease; }
@keyframes unlock { 0% { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 30px rgba(94, 242, 255, .35); } 100% { box-shadow: inset 0 0 0 1px var(--line); } }
.reel-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 6px; margin-top: 10px; scrollbar-width: thin; justify-content: safe center; }
.reel-thumb { --c: 8px; flex: none; width: 92px; padding: 0; border: 0; background: var(--line); clip-path: var(--chamfer); position: relative; isolation: isolate; text-align: left; opacity: .7; transition: opacity .2s, background .2s, transform .25s var(--ease); }
.reel-thumb img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; padding: 1px; clip-path: var(--chamfer); filter: saturate(.7) brightness(.75); }
.reel-thumb span { position: absolute; left: 6px; right: 6px; bottom: 6px; font-family: var(--ui); font-size: 9.5px; font-weight: 600; line-height: 1.25; color: #fff; text-shadow: 0 1px 6px #000; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-thumb.ok::after { content: ""; position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); box-shadow: var(--glow-g); }
.reel-thumb:hover { opacity: 1; transform: translateY(-3px); }
.reel-thumb.on { opacity: 1; background: var(--cyan); transform: translateY(-4px); }
.reel-thumb.on img { filter: none; }
/* лайтбокс библиотеки */
.reel.is-lightbox { position: fixed; inset: 0; z-index: 80; display: grid; align-content: center; padding: 30px 20px; background: rgba(3, 5, 22, .9); backdrop-filter: blur(10px); overflow-y: auto; animation: arrive .35s var(--ease); }
.reel-close { position: fixed; top: 18px; right: 22px; z-index: 3; width: 44px; height: 44px; border: 0; background: rgba(31, 109, 156, .3); color: var(--cyan); font-size: 18px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.reel-close:hover { background: var(--cyan); color: #05122e; }
body.lb-open { overflow: hidden; }

/* сетка постеров библиотеки */
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.poster { --c: 12px; position: relative; isolation: isolate; display: block; padding: 0; border: 0; background: var(--line-2); clip-path: var(--chamfer); text-align: left; color: var(--text); transition: background .25s, transform .3s var(--ease); }
.poster img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; padding: 1px; clip-path: var(--chamfer); filter: saturate(.75) brightness(.7); transition: filter .4s, transform .6s var(--ease); }
.poster::after { content: ""; position: absolute; inset: 1px; clip-path: var(--chamfer); background: linear-gradient(180deg, transparent 40%, rgba(4, 6, 26, .95)); pointer-events: none; }
.poster .p-body { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: grid; gap: 6px; }
.poster .p-body b { font-family: var(--display); font-weight: 500; font-size: 14px; line-height: 1.25; }
.poster .p-meta { display: flex; gap: 8px; align-items: center; font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }
.poster .p-play { position: absolute; z-index: 1; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--cyan); background: rgba(4, 6, 26, .5); }
.poster .p-play::before { content: ""; border-left: 9px solid var(--cyan); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.poster.ok .p-play { background: var(--cyan); }
.poster.ok .p-play::before { border-left-color: #05122e; }
.poster:hover { background: var(--cyan); transform: translateY(-4px); }
.poster:hover img { filter: none; }

/* плеер кадра (.vp) */
.vp { position: relative; padding: 8px; background: linear-gradient(180deg, #0c1640, #050925); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-2); border-radius: 26px; isolation: isolate; }
.vp::before { content: ""; position: absolute; inset: -10px; border-radius: 34px; border: 1px solid var(--line); pointer-events: none; }
.vp::after { content: ""; position: absolute; inset: -10px; border-radius: 34px; pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) 50% 0 / 60px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 50% 100% / 60px 2px no-repeat; opacity: .9; }
.vp-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 19px; overflow: hidden; background: #000; }
.vp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.vp-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 16%, transparent 78%, rgba(0, 0, 0, .6)); transition: opacity .4s; }
.vp.playing .vp-screen::after { opacity: .5; }
.vp-big { position: absolute; z-index: 2; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; border: 0; background: rgba(5, 10, 36, .5); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1.5px var(--cyan), 0 0 30px rgba(94, 242, 255, .35); display: grid; place-items: center; transition: transform .2s, opacity .3s; }
.vp-big::before { content: ""; border-left: 22px solid var(--cyan); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; filter: drop-shadow(0 0 6px var(--cyan)); }
.vp-big::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(94, 242, 255, .5); animation: spin 12s linear infinite; }
.vp-big:hover { transform: scale(1.06); }
.vp.playing .vp-big { opacity: 0; pointer-events: none; }
.vp-hud { position: absolute; z-index: 2; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .2em; color: var(--cyan-2); text-transform: uppercase; text-shadow: 0 0 6px #000; pointer-events: none; }
.vp-rec::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--pink); transform: rotate(45deg); vertical-align: 1px; }
.vp.playing .vp-rec::before { animation: blink 1.2s steps(1) infinite; }
.vp-ctrl { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.vp:hover .vp-ctrl, .vp:focus-within .vp-ctrl, .vp:not(.playing) .vp-ctrl { opacity: 1; transform: none; }
.vp-btn { border: 0; background: rgba(4, 8, 30, .6); backdrop-filter: blur(6px); color: var(--text-2); padding: 6px 8px; font-family: var(--ui); font-weight: 600; font-size: 11px; line-height: 1; min-width: 30px; }
.vp-btn:hover { color: #fff; }
.vp-btn.on { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--line-2); }
.vp-btn.off { color: var(--pink-2); }
.vp-bar { flex: 1; height: 16px; position: relative; cursor: pointer; }
.vp-bar::before, .vp-bar i, .vp-bar b { content: ""; position: absolute; left: 0; top: 6px; height: 4px; }
.vp-bar::before { right: 0; background: rgba(255, 255, 255, .18); }
.vp-bar b { background: rgba(255, 255, 255, .26); width: 0; }
.vp-bar i { background: linear-gradient(90deg, var(--steel), var(--cyan)); box-shadow: 0 0 8px var(--cyan); width: 0; z-index: 1; }
.vp-subs { min-height: 62px; padding: 10px 12px 4px; display: grid; place-items: center; text-align: center; }
.vp-subs p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text-2); font-weight: 500; }
.vp-subs span { opacity: .4; transition: opacity .12s, color .12s; }
.vp-subs span.lit { opacity: 1; }
.vp-subs span.now { color: #fff; text-shadow: 0 0 12px rgba(94, 242, 255, .85); }
.vp.nocc .vp-subs { visibility: hidden; }
.vp:fullscreen { padding: 0; border-radius: 0; display: grid; grid-template-rows: 1fr auto; background: #000; }
.vp:fullscreen .vp-screen { aspect-ratio: auto; height: 100%; border-radius: 0; }
.vp:fullscreen video { object-fit: contain; }
.vp:fullscreen .vp-subs p { font-size: 24px; }

/* фрагменты подкастов (YouTube, 16:9) */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.clip { display: grid; grid-template-rows: auto 1fr; }
.clip.holo { padding: 0; }
.clip-screen { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin: 1px 1px 0; }
.clip-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.6); transition: filter .4s, transform .6s; }
.clip:hover .clip-screen img { filter: saturate(.9) brightness(.8); transform: scale(1.04); }
.clip-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(4, 6, 26, .9)); }
.clip-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.clip-play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 66px; height: 66px; border-radius: 50%; border: 0; background: rgba(4, 8, 30, .45); box-shadow: inset 0 0 0 1.5px var(--cyan), var(--glow-g); display: grid; place-items: center; transition: transform .2s; }
.clip-play::before { content: ""; border-left: 18px solid var(--cyan); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.clip-play:hover { transform: scale(1.08); }
.clip-hud { position: absolute; z-index: 1; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; font-family: var(--ui); font-weight: 600; font-size: 10px; letter-spacing: .18em; color: var(--cyan-2); text-transform: uppercase; text-shadow: 0 0 6px #000; }
.clip-title { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.25; text-shadow: 0 2px 12px #000; }
.clip-body { padding: 16px 20px 20px; display: grid; gap: 12px; align-content: start; }
.clip-body .ctx { font-size: 13.5px; color: var(--text-2); margin: 0; }
.clip-h { font-family: var(--display); }

/* =====================================================================
   ТРЕНАЖЁРЫ (каркас)
   ===================================================================== */
.sim { position: relative; min-height: 420px; }
.sim-screen { display: none; }
.sim-screen.on { display: block; animation: arrive .45s var(--ease); }
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sim-instr { color: var(--text-2); margin: 0 0 18px; max-width: 72ch; }
.sim-stats { display: flex; gap: 22px; margin-top: 14px; color: var(--muted); font-family: var(--ui); font-size: 12.5px; letter-spacing: .06em; flex-wrap: wrap; }
.sim-stats b { color: var(--cyan-2); }
.stage-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; counter-reset: st; }
.stage-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.stage-list li p { margin: 2px 0 0; }
.stage-n { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--cyan); line-height: 1; padding-top: 2px; text-shadow: 0 0 12px rgba(94, 242, 255, .45); }
.canvas-wrap { position: relative; background: rgba(4, 7, 28, .75); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.canvas-wrap canvas { display: block; width: 100%; height: auto; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.result-stats div { padding: 14px; background: linear-gradient(180deg, rgba(31, 109, 156, .2), rgba(8, 12, 40, .6)); box-shadow: inset 0 0 0 1px var(--line); }
.result-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--cyan-2); text-shadow: 0 0 12px rgba(94, 242, 255, .45); }
.result-stats span { font-family: var(--ui); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.big-count { font-family: var(--display); font-size: 64px; font-weight: 500; color: var(--cyan-2); text-shadow: var(--glow-g); line-height: 1; }
.stone { background: rgba(8, 14, 46, .7); border: 0; box-shadow: inset 0 0 0 1px rgba(150, 200, 255, .18); color: var(--text); padding: 10px 16px; font-family: var(--ui); font-weight: 500; font-size: 14px; letter-spacing: .02em; transition: box-shadow .15s, background .15s, transform .1s; }
.stone:hover { box-shadow: inset 0 0 0 1px var(--cyan); transform: translateY(-1px); }
.stone.picked { background: rgba(31, 109, 156, .35); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px rgba(94, 242, 255, .25); color: var(--cyan-2); }
.stone.small { font-size: 12.5px; padding: 6px 12px; cursor: default; }

/* =====================================================================
   ИСТОРИИ (карточки)
   ===================================================================== */
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.story-card { --c: 18px; position: relative; display: grid; min-height: 440px; overflow: hidden; color: var(--text); isolation: isolate; clip-path: var(--chamfer); background: var(--line-2); transition: background .3s, transform .4s var(--ease); }
.story-card:hover { color: var(--text); background: var(--cyan); transform: translateY(-4px); }
.story-bg { position: absolute; inset: 1px; z-index: -2; clip-path: var(--chamfer); background-size: cover; background-position: center; filter: saturate(.75) brightness(.5) hue-rotate(-8deg); transition: transform 1.4s var(--ease); }
.story-card:hover .story-bg { transform: scale(1.06); }
.story-card::after { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--chamfer); background: linear-gradient(180deg, rgba(4, 6, 26, .15), rgba(6, 9, 36, .7) 45%, rgba(4, 6, 26, .97)), linear-gradient(90deg, rgba(40, 20, 90, .25), transparent 60%); }
.story-her { position: absolute; top: 22px; right: 22px; width: 118px; aspect-ratio: 3 / 4; overflow: hidden; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.story-her::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line-3); clip-path: inherit; }
.story-her img { width: 100%; height: 100%; object-fit: cover; }
.story-body { align-self: end; padding: 26px 26px 24px; }
.story-body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 6px 0 4px; }
.story-body .sub-display { margin: 0 0 10px; }
.story-body .muted { max-width: 52ch; }
.story-body > .label, .story-body > h2, .story-body > .sub-display { margin-right: 150px; }
.page-story .mnav { display: none; }
.page-story .shell { padding-bottom: 0; }

/* =====================================================================
   ТОСТЫ, МОДАЛКА
   ===================================================================== */
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 90; }
.toast { --c: 10px; position: relative; isolation: isolate; clip-path: var(--chamfer); background: var(--line-3); padding: 12px 16px 12px 20px; min-width: 240px; max-width: 340px; color: var(--text); animation: toastin .4s var(--ease); }
.toast::before { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: var(--chamfer); background: linear-gradient(90deg, rgba(31, 109, 156, .5), rgba(6, 10, 36, .97) 40%); }
.toast::after { content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 3px; background: var(--cyan); box-shadow: var(--glow-g); }
.toast b { display: block; font-family: var(--display); font-weight: 600; color: var(--cyan-2); font-size: 14px; }
.toast small { display: block; color: var(--text-2); font-size: 12px; margin-top: 2px; }
@keyframes toastin { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { position: fixed; inset: 0; background: rgba(3, 5, 22, .8); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 95; animation: arrive .35s var(--ease); }
.modal-card { max-width: 480px; text-align: center; padding: 40px 44px; }
.modal-card .label { justify-content: center; }
.modal-card h2 { font-size: 34px; margin: 12px 0; }
.modal-card p { color: var(--text-2); margin-bottom: 22px; }

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1180px) {
  .cockpit { grid-template-columns: 1fr 1fr; }
  .cockpit-c { grid-column: 1 / -1; order: -1; }
  .hud-level, .hud-xp { display: none; }
  .modlist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .reel-item { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .reel-center { grid-column: 1; grid-row: 1; width: min(340px, 82vw); }
  .reel-side.l, .reel-side.r { grid-column: 1; justify-content: center; width: 100%; }
  .reel-side .holo { width: min(100%, 560px); }
  .reel-side .wire { display: none; }
  .reel-stage { grid-template-columns: 1fr; }
  .reel-nav { position: absolute; top: calc(min(340px, 82vw) * .89); z-index: 4; }
  .reel-nav.prev { left: 0; } .reel-nav.next { right: 0; }
}
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero, .grid-2 { grid-template-columns: 1fr; }
  .hero .gauge { justify-self: start; }
  .nav { display: none; }
  .badges { grid-template-columns: repeat(5, 1fr); }
  .curr-meta { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; }
  .gate-side { display: none; }
  .stories { grid-template-columns: 1fr; }
  .mnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(4, 6, 26, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { position: relative; text-align: center; font-family: var(--ui); font-weight: 600; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 2px; }
  .mnav a.on { color: var(--cyan-2); }
  .mnav a.on::after { content: ""; position: absolute; left: 20%; right: 20%; top: -7px; height: 2px; background: var(--cyan); box-shadow: var(--glow-g); }
  .shell { padding-bottom: 60px; }
  #toasts { bottom: 76px; }
  .hud-frame { display: none; }
}
@media (max-width: 720px) {
  .wrap, .top { width: min(100% - 32px, 1240px); }
  .holo { padding: 20px 18px; }
  .cockpit { grid-template-columns: 1fr; }
  .grid-3, .modlist { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .step { grid-template-columns: 52px 1fr; }
  .step-xp { grid-column: 2; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .rp-breakdown { grid-template-columns: 1fr; }
  .msg { max-width: 92%; }
  .curr-head { grid-template-columns: 1fr; }
  .thesis { grid-template-columns: 1fr; gap: 6px; }
  .core .mlabel { display: none; }
  .story-body > .label, .story-body > h2, .story-body > .sub-display { margin-right: 100px; }
  .story-her { width: 88px; }
  .posters { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .gauge .g-arc, .core .marc { stroke-dashoffset: 0; }
}
@keyframes appear { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.reel.is-lightbox > .reel-head, .reel.is-lightbox > .reel-stage { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; }
.reel-pips { flex-wrap: wrap; justify-content: center; }
.gate-axis { display: none; }
.gate-globe::before { content: ""; position: absolute; left: 50%; top: -4%; bottom: -4%; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); pointer-events: none; }

/* ---------- семь цветов: меню ---------- */
.spectrum { width: min(1240px, 100% - 48px); margin: 0 auto; display: flex; gap: 4px; padding-bottom: 4px; }
.spectrum a { flex: 1; position: relative; height: 12px; }
.spectrum a::before, .spectrum a i { content: ""; position: absolute; left: 0; top: 4px; height: 4px; border-radius: 2px; }
/* без радуги: сегменты — нейтральное стекло, цвет проступает только в прогрессе, на текущем цвете и при наведении */
.spectrum a::before { right: 0; background: rgba(160, 225, 255, .1); box-shadow: inset 0 0 0 1px rgba(160, 225, 255, .08); transition: background .3s; }
.spectrum a:hover::before { background: color-mix(in srgb, var(--zc) 30%, transparent); }
.spectrum a i { width: var(--p); background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 20%, transparent), color-mix(in srgb, var(--zc) 60%, transparent)); box-shadow: 0 0 8px color-mix(in srgb, var(--zc) 35%, transparent); }
.spectrum a.soon::before { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--zc) 40%, transparent) 0 4px, transparent 4px 8px); }
.spectrum a span { position: absolute; top: 14px; left: 0; font-family: var(--ui); font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--zc); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.spectrum a:hover span { opacity: 1; }

/* кольцо: одно стекло с лёгким оттенком каждого сектора; цвет раскрывается на текущем и при наведении */
.core .mod .marc-bg { stroke: color-mix(in srgb, var(--zc) 10%, rgba(160, 225, 255, .08)); }
.core .mod:hover .marc-bg, .core .mod.cur .marc-bg { stroke: color-mix(in srgb, var(--zc) 30%, transparent); }
.core .mod .marc { stroke: color-mix(in srgb, var(--zc) 65%, transparent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--zc) 60%, transparent)); }
.core .mod .mlabel { fill: rgba(190, 230, 255, .55); }
.core .mod:hover .mlabel, .core .mod.cur .mlabel { fill: var(--zc); }
.core .mod .node text { fill: rgba(220, 240, 255, .8); }
.core .mod:hover .node text, .core .mod.cur .node text, .core .mod .node.done text { fill: #fff; }
.core .mod .node.done circle.n-bg { fill: color-mix(in srgb, var(--zc) 34%, rgba(8, 14, 52, .4)); stroke: var(--zc); }
.core .mod .node.cur circle.n-bg { stroke: var(--zc); }
.core .mod .node .halo { stroke: var(--zc); }
.core .mod:hover .node circle.n-bg { stroke: var(--zc); }
.core .tseg.on { fill: rgba(184, 247, 255, .55); }
.core .pointer line { stroke: var(--zc, var(--cyan)); }
.core .pointer path { fill: var(--zc, var(--cyan)); filter: drop-shadow(0 0 6px var(--zc, var(--cyan))); }

.belt { padding: 18px 18px 8px; }
.belt-sub { margin: 4px 0 10px; font-family: var(--ui); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.crow { padding: 12px 0 14px; border-top: 1px solid var(--line); }
.crow .cname { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--text); }
.crow .cname:hover { color: #fff; }
.crow .cdot { width: 10px; height: 10px; flex: none; transform: rotate(45deg); background: color-mix(in srgb, var(--zc) 38%, rgba(160, 225, 255, .1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 70%, transparent); }
.crow.cur .cdot { animation: cdotPulse 1.8s ease-in-out infinite; }
.crow.soon .cdot { background: transparent; }
.crow p { margin: 3px 0 8px 20px; font-family: var(--ui); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.crow .bar { margin-left: 20px; }
.crow .bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 20%, transparent), color-mix(in srgb, var(--zc) 60%, transparent)); box-shadow: 0 0 8px color-mix(in srgb, var(--zc) 35%, transparent); }
.crow .cmods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 20px; }
.crow .cmods a { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; padding: 4px 9px; color: var(--text-2); background: rgba(160, 225, 255, .05); box-shadow: inset 0 0 0 1px rgba(160, 225, 255, .14); backdrop-filter: blur(6px); transition: background .25s, box-shadow .25s, color .25s; }
.crow .cmods a:hover { background: color-mix(in srgb, var(--zc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 45%, transparent); color: #fff; }
.crow .cmods span { font-size: 12px; color: var(--muted); }
@keyframes cdotPulse { 50% { box-shadow: inset 0 0 0 1px var(--zc), 0 0 14px color-mix(in srgb, var(--zc) 60%, transparent); } }

.hero-stats.four { grid-template-columns: repeat(4, 1fr); }
/* чип цвета: нейтральное стекло, цвет — только точкой и при наведении */
.chip.spec { color: var(--text-2); background: rgba(160, 225, 255, .05); box-shadow: inset 0 0 0 1px rgba(160, 225, 255, .14); backdrop-filter: blur(6px); }
.chip.spec::before { content: ""; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: color-mix(in srgb, var(--zc) 70%, transparent); }
.chip.spec:hover { background: color-mix(in srgb, var(--zc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 45%, transparent); color: #fff; }
.color-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; margin: 26px 0 14px; padding: 16px 20px; box-shadow: inset 2px 0 0 color-mix(in srgb, var(--zc) 55%, transparent), inset 0 0 0 1px rgba(160, 225, 255, .08); background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 10%, rgba(12, 22, 70, .3)), rgba(12, 22, 70, .12) 70%); backdrop-filter: blur(10px); scroll-margin-top: 110px; }
.color-head .cnum { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1; color: color-mix(in srgb, var(--zc) 60%, #fff); text-shadow: 0 0 18px color-mix(in srgb, var(--zc) 45%, transparent); }
.color-head .label { color: color-mix(in srgb, var(--zc) 70%, #fff); }
.color-head h2 { margin: 4px 0; }
.color-head .cq { margin: 0; color: var(--text-2); font-style: italic; }
.color-head .cpct { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--zc); }
.curr-module[style*="--zc"] .curr-num, .curr-module[style*="--zc"] .curr-lesson .n { color: var(--zc); text-shadow: 0 0 16px color-mix(in srgb, var(--zc) 50%, transparent); }
.color-head h2 a { color: inherit; }
.color-head h2 a:hover, .color-head a.cpct:hover { color: var(--zc); }
.chip.spec.on { background: color-mix(in srgb, var(--zc) 30%, transparent); color: #fff; }
.spectrum a.on::before { background: color-mix(in srgb, var(--zc) 40%, transparent); }
.unit-q { font-family: var(--display); font-size: 19px; line-height: 1.4; color: var(--cyan-2); margin: 4px 0 14px; }
.unit-themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.unit-themes .chip { color: var(--cyan-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 40%, transparent); }
/* экран цвета: акценты HUD перекрашены в цвет зоны (см. layout.php), на светлых заливках — тёмный текст */
body[data-zone] .holo-text { background: linear-gradient(180deg, #fff 0%, var(--cyan-2) 48%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--cyan) 35%, transparent)); }
body[data-zone] .gauge .g-arc { filter: drop-shadow(0 0 4px var(--cyan)); }
body[data-zone] .gauge .g-ticks { stroke: color-mix(in srgb, var(--cyan) 32%, transparent); }
body[data-zone] .gauge .sg { fill: color-mix(in srgb, var(--cyan) 10%, transparent); }

/* ---------- ядро: наведение перестраивает кольцо ---------- */
/* наведение — на весь сектор 1/7 (.hit), декор поверх кольца событий не ловит; выезжает только .mod-body,
   поэтому зона наведения стоит на месте и не мигает на краю */
.core > :not(a), .core-sweep, .core-tip { pointer-events: none; }
.core .mod { transition: opacity .35s; }
.core .mod .hit { fill: var(--zc); fill-opacity: 0; pointer-events: all; transition: fill-opacity .45s; }
.core .mod.hot .hit { fill-opacity: .1; filter: blur(16px); }
.core .mod .mod-body { transition: transform .55s var(--ease); animation: modIn .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + .15s); }
@keyframes modIn { from { opacity: 0; transform: translate(calc(var(--dx) * -2.5), calc(var(--dy) * -2.5)); } }
.core.focus .mod:not(.hot) { opacity: .3; }
.core .mod.hot .mod-body { transform: translate(var(--dx), var(--dy)); }
.core .mod.hot .mlabel { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--zc) 70%, transparent)); }
.core .mod.hot .node { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--zc) 60%, transparent)); }

/* цветной свет за ядром при наведении: мягкое пятно, тонированный столб и дорожки */
.core-bloom { position: absolute; inset: 6%; z-index: -1; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle, color-mix(in srgb, var(--hz, #5ef2ff) 26%, transparent) 0%, color-mix(in srgb, var(--hz, #5ef2ff) 10%, transparent) 45%, transparent 68%); filter: blur(24px); }
.core-wrap.hz .core-bloom { opacity: 1; }
.core-wrap.hz::before { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hz) 20%, transparent) 35%, color-mix(in srgb, var(--hz) 32%, transparent) 50%, transparent 52%); }
.core-wrap.hz .core-traces path { stroke: color-mix(in srgb, var(--hz) 42%, transparent); }
.core-wrap.hz .core-traces circle { fill: color-mix(in srgb, var(--hz) 70%, transparent); }
.core-traces path, .core-traces circle { transition: stroke .6s, fill .6s; }
.core .marc-bg { transition: stroke .3s, stroke-width .45s var(--ease); }
.core .mod.hot .marc-bg { stroke: color-mix(in srgb, var(--zc) 30%, transparent); stroke-width: 22; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--zc) 55%, transparent)) drop-shadow(0 0 28px color-mix(in srgb, var(--zc) 30%, transparent)); }
.core .mod.hot .mlabel { opacity: 1; }
.core .mod.hot .node .halo { opacity: 1; animation: halo 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.core .mod .node circle.n-bg { fill: color-mix(in srgb, var(--zc) 14%, rgba(8, 14, 52, .55)); stroke: color-mix(in srgb, var(--zc) 55%, transparent); }
.core .mod.hot .node circle.n-bg { fill: color-mix(in srgb, var(--zc) 30%, rgba(8, 14, 52, .5)); stroke: var(--zc); }
.core .tseg { transition: fill .3s, opacity .3s; }
.core .tseg.hl { fill: var(--zc); opacity: 1; }
.core .pointer { transition: transform .7s var(--ease); }
.core .cursegs { transform-box: view-box; transform-origin: 0 0; transform: rotate(var(--a)); transition: transform .7s var(--ease); }
.core .cursegs .pinkseg { transition: fill .3s; }
.core .c-val, .core .c-sub { transition: fill .3s; }
.core .ring.gold { fill: none; stroke: var(--amber); stroke-width: 1.4; opacity: .75; filter: drop-shadow(0 0 6px rgba(255, 207, 107, .8)); }
.crow { transition: background .3s, box-shadow .3s; }
.pilot-spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; margin-top: 14px; padding: 12px 14px; color: var(--text);
  background: linear-gradient(90deg, color-mix(in srgb, var(--zc, var(--cyan)) 16%, transparent), rgba(10, 18, 60, .3)); box-shadow: inset 2px 0 0 var(--zc, var(--cyan)), inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s; }
.pilot-spec:hover { color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--zc, var(--cyan)) 28%, transparent), rgba(10, 18, 60, .35)); }
.pilot-spec b { font-family: var(--display); font-size: 15px; font-weight: 600; }
.pilot-spec.empty { grid-template-columns: 1fr; }
.pilot-lock { display: block; margin-top: 10px; font-family: var(--ui); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pilot-lock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; background: #35D07F; transform: rotate(45deg); box-shadow: 0 0 6px #35D07F; vertical-align: 1px; }
.crow.hot { background: linear-gradient(90deg, color-mix(in srgb, var(--zc) 16%, transparent), transparent 80%); box-shadow: inset 2px 0 0 var(--zc); }

/* дорожки платы и световой столб за ядром (по референсу) */
.core-wrap { isolation: isolate; }
.cockpit-l, .cockpit-r { position: relative; z-index: 1; } /* стеклянные панели над дорожками — дорожки видны сквозь размытие */
.core-wrap::before { content: ""; position: absolute; left: 50%; top: -38%; width: 120px; height: 120%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(94, 242, 255, .16) 35%, rgba(184, 247, 255, .22) 50%, transparent 52%);
  filter: blur(22px); }
.core-wrap::after { content: ""; position: absolute; left: 50%; top: -30%; width: 2px; height: 80%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(184, 247, 255, .55) 60%, transparent); filter: blur(1px); }
.core-traces { position: absolute; inset: -38%; width: 176%; height: 176%; z-index: -1; pointer-events: none; overflow: visible; }
.core-traces path { fill: none; stroke: rgba(94, 200, 255, .26); stroke-width: 1.3; stroke-dasharray: 6 9 40 9; animation: trace 6s linear infinite; animation-delay: calc(var(--i) * -0.37s); }
.core-traces circle { fill: rgba(150, 230, 255, .55); filter: drop-shadow(0 0 4px rgba(94, 242, 255, .7)); }
@keyframes trace { to { stroke-dashoffset: -128; } }
@media (max-width: 720px) {
  .spectrum { width: calc(100% - 32px); }
  .hero-stats.four { grid-template-columns: repeat(2, 1fr); }
  .color-head { grid-template-columns: 40px 1fr; padding: 14px 14px; }
  .color-head .cnum { font-size: 32px; }
  .color-head > :last-child { grid-column: 2; justify-self: start; }
}

/* ================= бой с демоном: карточка на странице цвета ================= */
.demon-card { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; text-decoration: none; color: inherit; --dc: var(--pink); }
.demon-card .demon-sigil { display: grid; place-items: center; height: 130px; }
.demon-card .demon-sigil svg { height: 100%; fill: color-mix(in srgb, var(--dc) 55%, transparent); filter: drop-shadow(0 0 16px var(--dc)); animation: demon-float 4s ease-in-out infinite; }
.demon-card .demon-sigil rect { fill: #fff; opacity: .85; }
.demon-card h3 { margin: 6px 0 4px; font-family: var(--display); font-weight: 400; }
.demon-card.is-locked { opacity: .6; }
.demon-card.is-locked .demon-sigil svg { filter: grayscale(.8) drop-shadow(0 0 6px var(--dc)); }
.demon-card.is-won .demon-sigil svg { opacity: .25; filter: blur(2px); animation: none; }
.demon-card.is-won .label { color: var(--cyan); }
@keyframes demon-float { 50% { transform: translateY(-5px); } }
@media (max-width: 560px) { .demon-card { grid-template-columns: 1fr; } .demon-card .demon-sigil { height: 100px; } }
.daily .daily-meta { margin: 4px 0 10px; }

/* плашка безопасности урока */
.m-safety { margin-top: 12px; box-shadow: inset 2px 0 0 var(--amber, #ffcf6b); }
.m-safety .label { color: var(--amber, #ffcf6b); }
.m-safety p { margin: 6px 0 0; }

/* ещё практики урока */
.m-extras summary { cursor: pointer; }
.m-extras-kind { margin: 18px 0 8px; }
.m-extras .grid-2 { gap: 12px; }

/* мои замеры (самопроверки) */
.assess-list { display: grid; gap: 10px; margin-top: 10px; }
.assess-row { display: grid; grid-template-columns: minmax(160px, 1.2fr) 2fr auto; gap: 12px; align-items: center; }
.assess-row span { display: grid; gap: 2px; }
.assess-pct { font-family: var(--display); font-weight: 500; color: var(--cyan); min-width: 4.5em; text-align: right; }
.assess-pct i { font-style: normal; font-size: 12px; }
.assess-pct i.up { color: var(--cyan); }
.assess-pct i.down { color: var(--pink); }
@media (max-width: 560px) { .assess-row { grid-template-columns: 1fr auto; } .assess-row .bar { grid-column: 1 / -1; } }

/* метафора урока и инструмент КПТ */
.m-metaphor { margin-bottom: 16px; }
.m-metaphor p { margin: 4px 0 0; }
.m-metaphor-q { margin-top: 12px !important; font-family: var(--display); color: var(--cyan); }
.m-cbt .m-cbt-ex p { margin: 4px 0; font-size: 14px; }
.m-cbt-form { display: grid; gap: 10px; margin-top: 10px; }
.m-cbt-form label { display: grid; gap: 4px; }
.m-cbt-form label > span { font-size: 13px; color: var(--muted); }

/* мои шлюзы */
.gates .gate { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.gates .gate p { margin: 4px 0; }
.gates .gate .row { gap: 8px; align-items: center; }

/* 200 улыбок */
.smiles .row { gap: 8px; align-items: center; }
.smiles-n { font-size: 1.6em; }
.smiles-bar { height: 4px; background: rgba(255,255,255,.08); margin: 10px 0 6px; }
.smiles-bar i { display: block; height: 100%; background: var(--yellow, #ffd23f); box-shadow: 0 0 8px var(--yellow, #ffd23f); }

/* страница «Валентина Сон» */
.val-hero .val-chips { gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.val-hero { grid-template-columns: 1fr 1fr; }
.val-hero .val-holo { justify-self: stretch; min-width: 0; overflow: hidden; }
@media (max-width: 860px) { .val-hero { grid-template-columns: 1fr; } }
.val-sec { margin-top: 42px; }
.val-sec > .label { display: block; margin-bottom: 14px; }
.val-sec > .lead { margin: 0 0 18px; }
.val-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.val-card h3, .val-step h3 { margin: 0; font-size: 17px; }
.val-card p, .val-step p { margin: 0; }
.val-src { margin-top: auto !important; opacity: .7; }
.val-game { text-decoration: none; color: inherit; }
.val-game .btn { align-self: flex-start; margin-top: auto; }
.val-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.val-step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 20px; align-items: start; }
.val-n { font-family: Tektur, sans-serif; font-size: 26px; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); line-height: 1; }
@media (max-width: 760px) { .val-steps { grid-template-columns: 1fr; } .val-sec { margin-top: 30px; } }

/* ================= лендинг «Код к Себе» и шапка сайта ================= */
.site-top .site-cta { margin-left: auto; }
.site-top .nav { margin-left: 28px; }
.site-mnav { display: none; }
@media (max-width: 860px) { .site-top .nav { display: none; } .site-mnav { display: flex; } }
.land-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; min-height: min(78vh, 760px); padding: 20px 0 10px; }
.land-title { font-size: clamp(48px, 8vw, 104px); line-height: .95; margin: 10px 0 14px; letter-spacing: .01em; }
.land-sub { font-family: Tektur, sans-serif; font-size: clamp(19px, 2.2vw, 26px); color: var(--cyan-2, #bff3ff); margin: 0 0 12px; text-shadow: 0 0 18px rgba(116, 225, 242, .35); }
.land-btns { gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }
.land-stats { max-width: 520px; }
.land-robot { position: relative; min-width: 0; }
.land-robot .hero3d { width: 100%; height: min(70vh, 640px); }
.land-hint { text-align: center; opacity: .6; margin-top: -6px; }
.land-portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 10px; }
.land-portal { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; color: var(--text); text-decoration: none; transition: transform .2s; }
.land-portal:hover { transform: translateY(-4px); }
.land-portal h2 { margin: 0; font-family: Tektur, sans-serif; font-size: 28px; }
.land-portal p { margin: 0; }
.land-go { margin-top: auto; padding-top: 8px; color: var(--cyan); font-family: Tektur, sans-serif; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.land-sec { margin-top: 80px; scroll-margin-top: 90px; }
.land-sec > .label { display: block; margin-bottom: 8px; }
.land-h2 { font-family: Tektur, sans-serif; font-size: clamp(30px, 4vw, 46px); margin: 0 0 12px; line-height: 1.05; }
.land-sec > .lead { margin: 0 0 24px; }
.land-wheel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.land-color { position: relative; padding: 20px 20px 18px; border-top: 2px solid var(--zc); }
.land-color::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--zc) 16%, transparent), transparent 60%); pointer-events: none; }
.land-color h3 { margin: 4px 0 6px; font-size: 22px; color: var(--zc); text-shadow: 0 0 14px color-mix(in srgb, var(--zc) 50%, transparent); }
.land-color h3 small { font-size: 12px; color: var(--muted); text-shadow: none; text-transform: uppercase; letter-spacing: .1em; margin-left: 6px; }
.land-color p { margin: 0 0 10px; font-size: 14px; }
.land-num { font-family: Tektur, sans-serif; font-size: 12px; color: var(--muted); letter-spacing: .14em; }
.land-num::before { content: 'ЦВЕТ '; }
.land-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.land-items li { font-size: 12px; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--zc) 45%, transparent); color: color-mix(in srgb, var(--zc) 75%, #fff); background: color-mix(in srgb, var(--zc) 8%, transparent); }
.land-steps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; border: 1px solid var(--line); background: rgba(8, 14, 40, .45); backdrop-filter: blur(6px); }
.land-step { padding: 18px 14px; border-right: 1px solid var(--line); position: relative; }
.land-step:last-child { border-right: 0; }
.land-step b { font-family: Tektur, sans-serif; font-size: 24px; color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.land-step h3 { font-size: 14px; margin: 8px 0 6px; }
.land-step p { font-size: 12.5px; margin: 0; }
.land-swag-row { margin: 18px 0 6px; }
.land-swag-label { display: inline-flex; align-items: center; gap: 8px; font-family: Tektur, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--zc); }
.land-swag-label i { width: 22px; height: 2px; background: var(--zc); box-shadow: 0 0 8px var(--zc); }
.land-swag { margin: 10px 0 0; }
.land-swag .vt-tile:not([data-vault]) { cursor: default; }
.land-val { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; }
.land-val-holo { min-width: 0; }
.land-final { text-align: center; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 30px; }
.land-final .lead { margin: 0 auto; }
@media (max-width: 1100px) { .land-steps { grid-template-columns: repeat(3, 1fr); } .land-step:nth-child(3n) { border-right: 0; } .land-step { border-bottom: 1px solid var(--line); } }
@media (max-width: 860px) {
  .land-hero, .land-val { grid-template-columns: 1fr; min-height: 0; }
  .land-robot .hero3d { height: 440px; }
  .land-portals { grid-template-columns: 1fr; }
  .land-sec { margin-top: 56px; }
}
@media (max-width: 520px) { .land-steps { grid-template-columns: 1fr 1fr; } .land-step:nth-child(3n) { border-right: 1px solid var(--line); } .land-step:nth-child(2n) { border-right: 0; } }

/* голографические фото (assets/img/holo, монохром в цвете зоны) */
.holo-pic { position: relative; margin: 0; overflow: hidden; background: #03051a; }
.holo-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.holo-pic::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(150, 240, 255, .045) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 50%, rgba(3, 5, 26, .7)); }
.m-legend { overflow: hidden; }
.m-legend-pic { margin: -18px -22px 14px; aspect-ratio: 3 / 1; }
.m-metaphor-pic { margin: 10px 0 14px; aspect-ratio: 3 / 1; border: 1px solid var(--line); }
.color-pic { aspect-ratio: 4 / 1; margin: 6px 0 22px; border: 1px solid var(--line); }
.land-portal { overflow: hidden; }
.land-pic { margin: -26px -24px 6px; aspect-ratio: 2 / 1; }
.land-color { overflow: hidden; }
.land-color-pic { margin: -20px -20px 12px; aspect-ratio: 5 / 2; opacity: .9; }
.land-final { position: relative; overflow: hidden; }
.land-final-pic { position: absolute; inset: 0; z-index: 0; opacity: .45; }
.land-final > :not(.land-final-pic) { position: relative; z-index: 1; }
@media (max-width: 760px) { .color-pic { aspect-ratio: 5 / 2; } .m-legend-pic, .m-metaphor-pic { aspect-ratio: 2 / 1; } }

/* ===== v3: сайт вокруг Валентины — живые фото, регалии, закрытые награды, заявка ===== */
.val-first { grid-template-columns: 1.15fr .85fr; }
.val-hero-photo { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); aspect-ratio: 2 / 3; overflow: hidden;
  border: 1px solid rgba(116, 225, 242, .35); box-shadow: 0 0 0 6px rgba(4, 6, 26, .6), 0 0 60px -10px rgba(116, 225, 242, .45);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.val-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.val-hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(180deg, transparent, rgba(4, 6, 26, .92));
  display: flex; flex-direction: column; gap: 2px; }
.val-hero-photo figcaption b { font-family: Tektur, sans-serif; font-size: 20px; }
.val-hero-photo figcaption span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.val-creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 34px 0 10px; border: 1px solid var(--line); background: var(--line); }
.val-cred { background: rgba(8, 14, 40, .78); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(6px); }
.val-cred b { font-family: Tektur, sans-serif; color: var(--cyan); font-size: 15px; letter-spacing: .02em; }
.val-cred span { font-size: 13px; color: var(--text-2); }
.holo-pic.val-real::after { background: linear-gradient(180deg, transparent 60%, rgba(3, 5, 26, .6)); }
.holo-pic.val-real img { object-position: center 30%; }
.swag-open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 14px; }
.swag-card { flex-direction: column; min-height: 190px; }
.swag-locked { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.swag-q { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed color-mix(in srgb, var(--ic, #8a9cff) 45%, transparent); background: rgba(8, 12, 34, .7);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.swag-q span { font-family: Tektur, sans-serif; font-size: 40px; line-height: 1; color: color-mix(in srgb, var(--ic, #8a9cff) 70%, #fff); text-shadow: 0 0 16px var(--ic, #8a9cff); animation: swagq 3.2s ease-in-out infinite; }
.swag-q small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.swag-q.is-bonus { --ic: #ffd27f; }
.swag-q:nth-child(3n) span { animation-delay: -1.1s; } .swag-q:nth-child(3n+1) span { animation-delay: -2.2s; }
@keyframes swagq { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.val-story { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.val-gallery { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / 1; }
.val-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--line); }
.val-gallery .g1 { grid-row: 1 / 3; }
.val-badge { display: block; width: 160px; margin: 16px 0 6px; opacity: .92; }
.lead-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; padding: 30px; margin: 70px 0 10px; scroll-margin-top: 90px; }
.lead-side { display: flex; flex-direction: column; gap: 10px; }
.lead-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(116, 225, 242, .5); box-shadow: 0 0 30px -6px rgba(116, 225, 242, .6); }
.lead-h { font-family: Tektur, sans-serif; font-size: clamp(26px, 3vw, 36px); margin: 0; }
.lead-points { margin: 6px 0 0; padding-left: 1.1em; color: var(--text-2); font-size: 14px; }
.lead-points li { margin: 4px 0; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.lead-form .input { width: 100%; font: inherit; color: var(--text); background: rgba(4, 8, 28, .8); border: 1px solid var(--line-2, rgba(116,225,242,.3)); padding: 10px 12px; }
.lead-form textarea.input { resize: vertical; }
.lead-form .input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 14px -4px var(--cyan); }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 12px !important; }
.lead-consent input { margin-top: 2px; }
.lead-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-msg { min-height: 1.2em; margin: 0; font-size: 14px; }
.lead-msg.ok { color: #5FE0AE; } .lead-msg.err { color: #FF7A85; }
@media (max-width: 860px) {
  .val-first, .val-story, .lead-box { grid-template-columns: 1fr; }
  .val-creds { grid-template-columns: 1fr 1fr; }
  .swag-open { grid-template-columns: 1fr 1fr; }
  .lead-row { grid-template-columns: 1fr; }
  .lead-box { padding: 20px; }
}
@media (max-width: 520px) { .val-creds, .swag-open { grid-template-columns: 1fr; } }

/* v4: цитаты Валентины */
.val-quote { margin: 14px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--cyan); font-size: 18px; line-height: 1.5; color: var(--text); }
.val-quote.small { font-size: 15px; color: var(--text-2); }
.val-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
