/* GLITCH//CORE — styles. Цвета также переопределяются из config.js */
:root {
  --bg: #08090B;
  --lime: #C6FF00;
  --purple: #B52CFF;
  --text: #F4F4F4;
  --muted: #7d8590;
  --line: rgba(244, 244, 244, .1);
  --k: 1;                       /* множитель интенсивности глитча (JS меняет при hover на арте) */
  --pad: clamp(16px, 3vw, 56px);
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
html, body { margin: 0; overflow-x: hidden; overflow-x: clip; }
body { min-height: 100%; background: var(--bg); }
body {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p, h1 { margin: 0; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- Layout: topbar / stage / strip ---------- */
.app {
  position: relative;
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.topbar, .strip {
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  height: clamp(44px, 6vh, 64px);
  border-color: var(--line); border-style: solid; border-width: 0;
  background: rgba(8, 9, 11, .72);
}
.topbar { border-bottom-width: 1px; }
.strip { border-top-width: 1px; height: clamp(34px, 4.6vh, 48px); gap: clamp(12px, 2vw, 28px); font-size: 11px; color: var(--muted); }

.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-logo { font-family: var(--display); font-size: clamp(18px, 2.2vh + 6px, 26px); letter-spacing: .06em; color: var(--text); }
.brand-logo i { font-style: normal; color: var(--lime); }
.brand-sub { color: var(--muted); font-size: 10px; padding-left: 14px; border-left: 1px solid var(--line); }

.socials { display: flex; align-items: center; height: 100%; }
.soc {
  display: flex; align-items: center; height: 100%;
  padding: 0 clamp(12px, 1.6vw, 24px);
  border-left: 1px solid var(--line);
  text-transform: uppercase; font-size: 11px; color: #aab1ba;
  transition: color .15s, background-color .15s;
}
.soc:hover, .soc:focus-visible { color: var(--bg); background: var(--lime); outline-offset: -2px; }
.status {
  display: flex; align-items: center; gap: 9px;
  height: 100%; padding-left: clamp(12px, 1.6vw, 24px);
  border-left: 1px solid var(--line);
  color: var(--text); font-size: 11px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; background: var(--muted); flex: none; }
.dot-sm { width: 6px; height: 6px; }
.is-live .dot { background: var(--lime); animation: blink 2.4s steps(1) infinite; }
.is-live .strip .dot { background: var(--lime); animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 0%, 86% { opacity: 1 } 90%, 96% { opacity: .25 } }

.strip-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.strip-item:first-child { color: var(--text); }
.strip b { font-weight: 400; color: var(--text); }
.is-live #liveText { color: var(--lime); }
.strip-next b { color: var(--lime); }

/* ---------- Статус эфира: В ЭФИРЕ / НЕ В ЭФИРЕ / статус уточняется ---------- */
.status-label { letter-spacing: .12em; color: var(--muted); }
.status-note { color: var(--muted); opacity: .7; }
.status-note:not(:empty)::before { content: "·"; margin-right: 9px; }
.status-note:empty { display: none; }
.live-chip {
  display: inline-flex; align-items: center; gap: 7px; margin-right: auto;
  padding: 2px 8px; border: 1px solid var(--line);
  font-size: 10px; letter-spacing: .14em; white-space: nowrap; color: var(--muted);
}
.is-unknown .dot { background: transparent; box-shadow: inset 0 0 0 1px var(--muted); }
.is-live .status-label, .is-live .live-chip { color: var(--lime); }
.is-live .status-label { text-shadow: 0 0 10px rgba(198, 255, 0, .55); font-weight: 700; }
.is-live .live-chip { border-color: rgba(198, 255, 0, .55); background: rgba(198, 255, 0, .08); box-shadow: 0 0 14px rgba(198, 255, 0, .22); }
.is-live .status .dot, .is-live .live-chip .dot { animation: live-glow 1.8s ease-in-out infinite; }
.is-live .next { border-color: rgba(198, 255, 0, .55); box-shadow: 0 0 18px rgba(198, 255, 0, .14); }
.is-live .next-k { color: var(--lime); }
@keyframes live-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px 0 rgba(198, 255, 0, .9); }
  50% { opacity: .55; box-shadow: 0 0 10px 3px rgba(198, 255, 0, .55); }
}
@media (max-width: 1280px) { .status-note { display: none; } }

/* ---------- Расписание ---------- */
.sched { margin-top: clamp(8px, 2.2vh, 26px); width: min(100%, clamp(520px, 34vw, 660px)); }
.sched-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.sched-head h2 {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-size: clamp(10px, 1.3vh, 12px); font-weight: 700; letter-spacing: .2em; color: var(--text);
}
.sched-head h2::before { content: ""; width: 8px; height: 8px; background: var(--lime); }
.sched-tz { font-size: 10px; color: var(--muted); white-space: nowrap; }
.sched-days {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.day { position: relative; padding: clamp(7px, 1.3vh, 12px) 2px clamp(6px, 1.1vh, 10px); text-align: center; border-left: 1px solid var(--line); }
.day:first-child { border-left: 0; }
.day-lamp { position: relative; display: block; width: 64%; height: 4px; margin: 0 auto clamp(6px, 1vh, 9px); }
.lamp-core {
  position: absolute; inset: 0; overflow: hidden; background: #15181d;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
.lamp-pulse {
  position: absolute; top: 0; bottom: 0; left: 0; width: 45%; opacity: 0; transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.lamp-pulse.go { animation: lamp-pulse .7s ease-in-out 1; }
@keyframes lamp-pulse { 0% { opacity: 0; transform: translateX(-120%) } 15%, 85% { opacity: .85 } 100% { opacity: 0; transform: translateX(260%) } }
.lamp-glow { display: none; }
.day-name { display: block; font-size: clamp(11px, 1.5vh, 14px); font-weight: 700; letter-spacing: .1em; color: #66707b; }
.day-time { display: block; min-height: 1.3em; margin-top: 3px; font-size: clamp(10px, 1.3vh, 12px); letter-spacing: .04em; color: var(--lime); }

.day.is-on { background: linear-gradient(to bottom, rgba(198, 255, 0, .08), transparent 80%); }
.day.is-on .lamp-core { background: var(--lime); }
.day.is-on .lamp-glow {
  display: block; position: absolute; inset: -1px -2px; opacity: .8;
  box-shadow: 0 0 9px 1px rgba(198, 255, 0, .55), 0 0 22px 2px rgba(198, 255, 0, .2);
  animation: lamp-breath var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes lamp-breath { 0%, 100% { opacity: .65 } 50% { opacity: 1 } }
.day.is-on .day-name { color: var(--text); }
.strip-spacer { flex: 1; }
.strip-link { padding: 4px 6px; color: #aab1ba; transition: color .15s; }
.strip-link:hover, .strip-link:focus-visible { color: var(--lime); }

/* ---------- Stage ---------- */
.stage { position: relative; min-height: 0; overflow: hidden; }

.identity {
  position: relative; z-index: 4;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  max-width: 62%;
  gap: clamp(6px, 1.4vh, 16px);
  pointer-events: none;            /* арт под текстом остаётся доступен для hover */
}
.identity > * { pointer-events: auto; }
.identity > .nick { pointer-events: none; }

.category {
  display: flex; align-items: center; gap: 12px;
  color: var(--lime); font-size: clamp(11px, 1.3vh, 14px);
}
.category .bar { width: 36px; height: 2px; background: var(--lime); }

.nick {
  position: relative;
  font-family: var(--display); font-weight: 400;
  font-size: min(13.5vw, 26vh);
  line-height: .86; letter-spacing: -.005em;
  text-transform: uppercase;
  margin-left: -.04em;
  width: max-content; max-width: 100vw;
}
.nick > span:first-child { position: relative; z-index: 2; display: block; color: var(--text); }
.nick .ghost {
  position: absolute; inset: 0; z-index: 1; display: block;
  opacity: 0; pointer-events: none; will-change: transform, opacity;
}
.nick .ghost-m { color: var(--purple); }
.nick .ghost-g { color: var(--lime); }
.nick .ghost-s { z-index: 3; color: var(--text); }   /* смещённые фрагменты основного текста */

.slogan {
  font-size: clamp(13px, 2vh, 22px); letter-spacing: .22em; font-weight: 700;
  color: var(--text);
}
.rank { color: var(--muted); font-size: clamp(11px, 1.4vh, 14px); }
.rank-chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-left: 2px solid var(--purple); }

.cta { display: flex; gap: 14px; margin-top: clamp(6px, 1.8vh, 20px); flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: clamp(42px, 6vh, 56px); padding: 0 clamp(20px, 2.4vw, 36px);
  font-weight: 700; font-size: clamp(12px, 1.5vh, 14px); letter-spacing: .18em;
  transition: transform .15s, background-color .15s, color .15s, box-shadow .15s, border-color .15s;
}
.btn-label { position: relative; display: block; white-space: nowrap; text-transform: uppercase; }
.btn-label::before, .btn-label::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.btn-primary { background: var(--lime); color: var(--bg); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translate(3px, -2px); background: #d6ff3d;
  box-shadow: -4px 4px 0 var(--purple);
}
.btn-primary:hover .btn-label::before, .btn-primary:focus-visible .btn-label::before { color: var(--purple); animation: btn-rgb .28s steps(2) 1; }
.btn-primary:hover .btn-label::after,  .btn-primary:focus-visible .btn-label::after  { color: #fff; mix-blend-mode: overlay; animation: btn-rgb .28s steps(2) 1 reverse; }
.btn-primary:focus-visible { outline-offset: 5px; clip-path: none; }
@keyframes btn-rgb {
  0% { opacity: 1; transform: translateX(-4px) }
  50% { opacity: 1; transform: translateX(3px) }
  100% { opacity: 0; transform: translateX(0) }
}

.btn-ghost { color: var(--text); border: 1px solid rgba(244,244,244,.28); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--lime); color: var(--lime); }
.btn-ghost:hover .btn-label::before, .btn-ghost:focus-visible .btn-label::before { color: var(--purple); animation: btn-soft .35s steps(3) 1; }
@keyframes btn-soft {
  0% { opacity: .9; transform: translateX(2px); clip-path: inset(0 0 60% 0) }
  50% { opacity: .9; transform: translateX(-2px); clip-path: inset(55% 0 0 0) }
  100% { opacity: 0; transform: none }
}

/* ---------- Hero art ---------- */
.hero-art {
  position: absolute; z-index: 2; right: 0; top: 0; bottom: 0;
  width: 56%;
}
.art-glow {
  position: absolute; left: 8%; right: 0; top: 4%; bottom: 0; z-index: 0;
  background: radial-gradient(closest-side at 52% 42%, rgba(181, 44, 255, .34), rgba(181, 44, 255, 0) 100%);
  animation: glow 9s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .75 } 50% { opacity: 1 } }

.art-stack {
  position: absolute; inset: 0; z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 10%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to top, transparent 0, #000 10%);
  mask-composite: intersect;
  contain: layout paint;
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 60% bottom;
  user-select: none; -webkit-user-drag: none;
}
.base { will-change: filter; }
.ch { opacity: 0; mix-blend-mode: screen; will-change: transform, opacity; }
.ch-m { filter: grayscale(1) brightness(.9) sepia(1) hue-rotate(255deg) saturate(8); }
.ch-g { filter: grayscale(1) brightness(1) sepia(1) hue-rotate(35deg) saturate(8); }

.slices { position: absolute; inset: 0; pointer-events: none; }
.slice { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; }
.slice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 60% bottom; }

.sweep {
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(198, 255, 0, 0), rgba(198, 255, 0, .04) 60%, rgba(198, 255, 0, .11) 98%, rgba(198, 255, 0, 0));
  transform: translateY(-110%); opacity: 0;
  animation: sweep 11s linear 2.2s infinite; pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes sweep {
  0% { transform: translateY(-110%); opacity: 0 }
  4% { opacity: 1 }
  34% { opacity: 1 }
  38%, 100% { transform: translateY(470%); opacity: 0 }
}

.tag {
  position: absolute; z-index: 3; font-size: 10px; color: var(--muted);
  padding: 3px 6px; border: 1px solid var(--line); background: rgba(8, 9, 11, .55);
  animation: float 8s ease-in-out infinite;
}
.tag-a { top: 14%; right: 8%; color: var(--lime); }
.tag-b { top: 46%; left: 14%; animation-delay: -3s; animation-duration: 11s; }
.tag-c { bottom: 12%; right: 6%; color: var(--purple); animation-delay: -5s; animation-duration: 9.5s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* ---------- Background FX (fixed, pointer-events none) ---------- */
.fx { position: fixed; pointer-events: none; z-index: 5; }
.fx-scan { inset: 0; overflow: hidden; }
.fx-scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; height: calc(100% + 8px);
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  animation: scan-drift 5s linear infinite;
}
.fx-scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18vh;
  background: linear-gradient(to bottom, transparent, rgba(244, 244, 244, .025), transparent);
  animation: scan-bar 16s linear infinite;
}
@keyframes scan-drift { to { transform: translateY(4px) } }
@keyframes scan-bar { from { transform: translateY(-20vh) } to { transform: translateY(105vh) } }

.fx-grain {
  inset: -10%; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 25% { transform: translate(-3%, 2%) }
  50% { transform: translate(2%, -3%) } 75% { transform: translate(-2%, -1%) }
}

.fx-flash { left: 0; right: 0; top: 0; height: 3px; opacity: 0; background: var(--lime); will-change: transform, opacity; }

/* ---------- Intro ---------- */
.topbar, .strip { animation: fade .6s .05s both; }
.identity > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.identity > :nth-child(1) { animation-delay: .05s }
.identity > :nth-child(2) { animation-delay: .12s }
.identity > :nth-child(3) { animation-delay: .22s }
.identity > :nth-child(4) { animation-delay: .28s }
.identity > :nth-child(5) { animation-delay: .34s }
.art-stack { animation: art-in .8s .1s both; }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateX(-24px) } }
@keyframes art-in { from { opacity: 0; transform: translateX(30px) } }

/* ---------- Pause when tab hidden ---------- */
body.is-paused *, body.is-paused *::before, body.is-paused *::after { animation-play-state: paused !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero-art { width: 60%; }
  .brand-sub { display: none; }
}

@media (max-width: 760px) {
  .brand-sub, .status, .strip-meta, .strip-next, .strip-id { display: none; }
  .sched { width: 100%; }
  .sched-head h2 { letter-spacing: .14em; }
  .day-time { font-size: 10px; letter-spacing: 0; }
  .soc { padding: 0 10px; font-size: 10px; }
  .topbar { height: 46px; }
  .strip { height: 38px; }
  .hero-art { width: 100%; height: 66%; bottom: auto; }
  .art-stack {
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 35%);
    mask-image: linear-gradient(to top, transparent 0, #000 35%);
  }
  .layer, .slice img { object-position: 50% top; }
  .tag-b, .tag-c { display: none; }
  .tag-a { top: 6%; right: 5%; }
  .identity { max-width: 100%; justify-content: flex-end; padding-bottom: 14px; }
  .nick { font-size: min(21vw, 13vh); }
  .slogan { letter-spacing: .14em; }
  .cta { gap: 10px; }
  .btn { flex: 1; padding: 0 14px; letter-spacing: .12em; }
  .fx-grain { display: none; }
  .fx-scan::after { display: none; }
}

@media (max-width: 760px) and (max-height: 720px) {
  .category, .rank { display: none; }
  .nick { font-size: min(19vw, 12vh); }
}

@media (max-height: 700px) and (min-width: 761px) {
  .rank { display: none; }
}

/* low-height desktop / landscape phones */
@media (max-height: 520px) and (min-width: 761px) {
  .nick { font-size: 24vh; }
  .rank, .category { display: none; }
}

/* ==========================================================
   v2: hero-доработки, следующий стрим, секции, CRT, интро
   ========================================================== */

/* ---------- Hero ---------- */
.slogan { position: relative; width: fit-content; font-size: clamp(15px, 2.4vh, 26px); cursor: default; }
.slogan::before, .slogan::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.slogan:hover::before { color: var(--purple); animation: slog-a .4s steps(4) 1; }
.slogan:hover::after  { color: var(--lime);   animation: slog-b .4s steps(4) 1; }
@keyframes slog-a { 0% { opacity: .9; transform: translateX(-4px); clip-path: inset(0 0 55% 0) } 50% { opacity: .9; transform: translateX(3px); clip-path: inset(40% 0 0 0) } 100% { opacity: 0; transform: none } }
@keyframes slog-b { 0% { opacity: .8; transform: translateX(4px); clip-path: inset(50% 0 0 0) } 50% { opacity: .8; transform: translateX(-3px); clip-path: inset(0 0 45% 0) } 100% { opacity: 0; transform: none } }

.bio-short { max-width: 46ch; font-size: clamp(11px, 1.45vh, 14px); line-height: 1.55; letter-spacing: .03em; color: #9aa3ad; }
@media (max-height: 820px) and (min-width: 761px) { .bio-short { display: none; } }

.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary::after {
  content: ""; position: absolute; left: 0; right: 0; top: 38%; height: 3px; background: var(--purple);
  transform: translateX(-110%); pointer-events: none;
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { animation: slit .38s steps(4) 1; }
@keyframes slit { 0% { transform: translateX(-110%) } 100% { transform: translateX(110%) } }
.btn-ghost { transition: transform .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translate(2px, -2px); box-shadow: -3px 3px 0 rgba(181, 44, 255, .7); }

/* ---------- Расписание v2 ---------- */
.sched-tz b { color: var(--lime); font-weight: 400; }
.next {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: clamp(6px, 1vh, 10px); padding: clamp(6px, 1vh, 10px) 12px;
  border: 1px solid rgba(198, 255, 0, .28); border-left: 3px solid var(--lime);
  background: linear-gradient(to right, rgba(198, 255, 0, .07), transparent);
}
.next-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-k { font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.next-when { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.8vh, 28px); letter-spacing: .04em; color: var(--lime); line-height: 1; white-space: nowrap; }
.next-count { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.next-count span { display: flex; align-items: baseline; gap: 3px; }
.next-count b { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.8vh, 28px); line-height: 1; color: var(--text); min-width: 1.5ch; text-align: right; }
.next-count i { font-style: normal; font-size: 10px; color: var(--muted); }

.day { transition: background-color .2s; }
.day:hover .lamp-core { filter: brightness(1.25); }
.day:hover { background-color: rgba(244, 244, 244, .03); }
.day-name { font-size: clamp(12px, 1.7vh, 15px); }
.day-time { font-size: clamp(11px, 1.5vh, 13px); font-weight: 700; }
.day.is-today::before {
  content: ""; position: absolute; inset: 2px; pointer-events: none;
  border: 1px solid rgba(244, 244, 244, .38);
}
.day.is-today.is-on::before { border-color: var(--lime); }
.day.is-today .day-name::after { content: " •"; color: var(--lime); }
.day:not(.is-on) .day-name { color: #707a86; }

/* ---------- CRT + intro ---------- */
.fx-crt {
  inset: 0; z-index: 7;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .55) 100%);
}
.boot {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; background: var(--bg);
  animation: boot 1s steps(1) forwards;
}
.boot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--lime); opacity: .8;
  animation: boot-line 1s ease-out forwards;
}
@keyframes boot { 0%, 22% { opacity: 1 } 26% { opacity: .35 } 32% { opacity: 1 } 52% { opacity: .5 } 60% { opacity: .15 } 72% { opacity: .5 } 84% { opacity: .1 } 100% { opacity: 0; visibility: hidden } }
@keyframes boot-line { 0% { transform: scaleX(0) } 30% { transform: scaleX(1); opacity: .8 } 100% { transform: scaleX(1); opacity: 0 } }

/* ---------- Секции ---------- */
.sections { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 1500px; margin: 0 auto; }
.sec { padding: clamp(56px, 10vh, 110px) 0 0; scroll-margin-top: 12px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: clamp(22px, 4vh, 40px); border-bottom: 1px solid var(--line); }
.sec-idx { color: var(--lime); font-size: 12px; letter-spacing: .2em; }
.sec-title { position: relative; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.2vw, 76px); line-height: .95; text-transform: uppercase; letter-spacing: .01em; }
.sec-title::before, .sec-title::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sec-title::before { color: var(--purple); }
.sec-title::after { color: var(--lime); }
.sec-head.in .sec-title::before { animation: slog-a .45s steps(4) .1s 1; }
.sec-head.in .sec-title::after  { animation: slog-b .45s steps(4) .1s 1; }
.demo-tag { margin-left: auto; padding: 3px 8px; font-size: 10px; letter-spacing: .16em; color: var(--muted); border: 1px solid var(--line); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* О стримере */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-text { margin: 0; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.75; letter-spacing: .02em; color: #c4cad1; border-left: 2px solid var(--purple); padding-left: 20px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--line); transition: border-color .2s, transform .2s, background-color .2s; }
.facts li:hover { border-left-color: var(--lime); transform: translateX(4px); background: rgba(198, 255, 0, .04); }
.fact-k { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-bottom: 6px; }
.fact-v { display: block; font-family: var(--display); font-size: clamp(20px, 2vw, 30px); line-height: 1.1; color: var(--text); letter-spacing: .02em; }
.facts li:nth-child(2) .fact-v { font-size: clamp(14px, 1.3vw, 19px); font-family: var(--mono); font-weight: 700; line-height: 1.35; }

/* Лучшие моменты */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.clip { position: relative; display: block; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .2s; }
.clip:hover, .clip:focus-visible { transform: scale(1.03); z-index: 3; border-color: var(--lime); box-shadow: -5px 5px 0 rgba(181, 44, 255, .6); }
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background-color: #0d0a14;
  background-image: var(--hero), radial-gradient(circle at 50% 40%, rgba(181, 44, 255, .5), transparent 70%);
  background-repeat: no-repeat; background-size: var(--zoom, 170%) auto, cover; background-position: var(--pos, 60% 8%), center;
}
.thumb::before, .thumb::after { content: ""; position: absolute; inset: 0; background: inherit; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.thumb::before { filter: grayscale(1) sepia(1) hue-rotate(255deg) saturate(8); }
.thumb::after  { filter: grayscale(1) sepia(1) hue-rotate(35deg) saturate(8); }
.clip:hover .thumb::before, .clip:focus-visible .thumb::before { animation: thumb-a .32s steps(3) 1; }
.clip:hover .thumb::after,  .clip:focus-visible .thumb::after  { animation: thumb-b .32s steps(3) 1; }
@keyframes thumb-a { 0% { opacity: .8; transform: translateX(-7px); clip-path: inset(10% 0 60% 0) } 50% { opacity: .8; transform: translateX(5px); clip-path: inset(55% 0 15% 0) } 100% { opacity: 0; transform: none } }
@keyframes thumb-b { 0% { opacity: .7; transform: translateX(6px); clip-path: inset(60% 0 10% 0) } 50% { opacity: .7; transform: translateX(-5px); clip-path: inset(15% 0 55% 0) } 100% { opacity: 0; transform: none } }
.thumb-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 11, .85), transparent 55%); }
.thumb-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid rgba(244, 244, 244, .6); background: rgba(8, 9, 11, .45); transition: background-color .2s, border-color .2s; }
.thumb-play::after { content: ""; position: absolute; left: 18px; top: 13px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--text); }
.clip:hover .thumb-play, .clip:focus-visible .thumb-play { background: var(--lime); border-color: var(--lime); }
.clip:hover .thumb-play::after, .clip:focus-visible .thumb-play::after { border-left-color: var(--bg); }
.thumb-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; font-size: 10px; background: rgba(8, 9, 11, .8); color: var(--lime); }
.clip-title { padding: 12px 14px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }

/* Статистика */
.term { max-width: 760px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.term-bar { display: flex; justify-content: space-between; padding: 9px 16px; font-size: 10px; letter-spacing: .2em; color: var(--muted); border-bottom: 1px solid var(--line); }
.term-id { color: var(--lime); }
.term-body { padding: 18px 16px 20px; font-size: clamp(12px, 1.1vw, 15px); }
.log-line { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; opacity: 0; transition: background-color .15s; }
.log-line:hover { background: rgba(198, 255, 0, .05); }
.term.in .log-line { animation: log-in .35s steps(5) both; animation-delay: calc(var(--i) * .22s + .2s); }
@keyframes log-in { from { opacity: 0; transform: translateX(-8px) } to { opacity: 1 } }
.log-p { color: var(--lime); }
.log-k { color: var(--muted); letter-spacing: .12em; white-space: nowrap; }
.log-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(244, 244, 244, .2); transform: translateY(-4px); }
.log-v { color: var(--text); font-weight: 700; text-align: right; }
.log-cursor { display: inline-block; width: .6em; height: 1.1em; margin-top: 8px; background: var(--lime); animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0 } }

/* Поддержка */
.support { position: relative; max-width: 820px; padding: clamp(22px, 3vw, 40px); border: 1px solid rgba(198, 255, 0, .25); background: linear-gradient(120deg, rgba(181, 44, 255, .1), transparent 60%); }
.support::before { content: ""; position: absolute; left: -1px; top: -1px; width: 28px; height: 28px; border-top: 3px solid var(--lime); border-left: 3px solid var(--lime); }
.support-text { margin: 0 0 22px; max-width: 56ch; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.7; color: #c4cad1; }
.support .cta { margin-top: 0; }
.support-note { margin-top: 18px; font-size: 10px; letter-spacing: .2em; color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(56px, 10vh, 110px); padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.foot i { font-style: normal; color: var(--lime); }
.foot a:hover, .foot a:focus-visible { color: var(--lime); }

.strip-nav { display: flex; gap: clamp(10px, 1.6vw, 22px); }
.strip-nav a { color: #aab1ba; transition: color .15s; }
.strip-nav a:hover, .strip-nav a:focus-visible { color: var(--lime); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .strip-nav a:not(:first-child), .bio-short { display: none; }
  .next { padding: 6px 10px; gap: 8px; }
  .next-count { gap: 8px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 10px 12px; }
  .about-text { padding-left: 14px; }
  .clip:hover, .clip:focus-visible { transform: none; }
  .fx-crt { display: none; }
  .log-k { letter-spacing: .06em; }
}
@media (max-width: 400px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: static variant ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .fx-grain, .fx-flash, .sweep, .boot { display: none; }
  .log-line, .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   «Мои сети»: глитч всей страницы + модальное меню
   ========================================================== */
button.btn { background: none; font-family: inherit; color: var(--text); cursor: pointer; appearance: none; }
button.btn-ghost { border: 1px solid rgba(244, 244, 244, .28); }

.pg-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.pg-bar { position: absolute; left: 0; right: 0; opacity: 0; will-change: transform, opacity; }
.glitching { overflow: hidden; }
/* RGB-раздвоение и рябь всей страницы только на время сбоя */
.glitching .app, .glitching .sections { animation: pg-hit .24s steps(1) 1; }
@keyframes pg-hit {
  0%   { transform: translate3d(0,0,0);       filter: none; }
  8%   { transform: translate3d(-14px,0,0);   filter: drop-shadow(8px 0 0 rgba(181,44,255,.85)) drop-shadow(-8px 0 0 rgba(198,255,0,.7)); }
  16%  { transform: translate3d(10px,3px,0);  filter: drop-shadow(-10px 0 0 rgba(181,44,255,.85)) drop-shadow(10px 0 0 rgba(198,255,0,.7)) contrast(1.3); }
  26%  { transform: translate3d(-6px,-2px,0); filter: hue-rotate(40deg) drop-shadow(6px 0 0 rgba(181,44,255,.8)); }
  38%  { transform: translate3d(18px,0,0);    filter: drop-shadow(-12px 0 0 rgba(198,255,0,.7)) drop-shadow(12px 0 0 rgba(181,44,255,.85)); }
  50%  { transform: translate3d(-9px,2px,0);  filter: saturate(1.6) brightness(.8); }
  62%  { transform: translate3d(7px,0,0);     filter: drop-shadow(5px 0 0 rgba(181,44,255,.8)) drop-shadow(-5px 0 0 rgba(198,255,0,.6)); }
  76%  { transform: translate3d(-3px,0,0);    filter: hue-rotate(-30deg); }
  88%  { transform: translate3d(2px,0,0);     filter: drop-shadow(3px 0 0 rgba(181,44,255,.6)); }
  100% { transform: none; filter: none; }
}

.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 9, 11, .9); }
.modal[hidden] { display: none; }
.modal.open { animation: modal-bg .1s ease-out both; }
@keyframes modal-bg { from { opacity: 0 } }
.modal-panel {
  position: relative; width: min(100%, 460px); padding: 22px 22px 18px;
  background: #0b0c10; border: 1px solid rgba(198, 255, 0, .35);
  box-shadow: -6px 6px 0 rgba(181, 44, 255, .55);
}
.modal-panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 26px; height: 26px; border-top: 3px solid var(--lime); border-left: 3px solid var(--lime); }
.modal.open .modal-panel { animation: panel-in .2s steps(1) both; }
@keyframes panel-in {
  0% { opacity: 0; transform: translateX(-18px) }
  20% { opacity: 1; transform: translateX(14px); clip-path: inset(0 0 55% 0) }
  40% { transform: translateX(-8px); clip-path: inset(40% 0 0 0) }
  60% { transform: translateX(5px); clip-path: none }
  80% { transform: translateX(-2px) }
  100% { transform: none }
}
.modal.closing .modal-panel { animation: panel-out .3s steps(1) both; }
@keyframes panel-out {
  0% { transform: none }
  25% { transform: translateX(12px); clip-path: inset(0 0 50% 0); filter: drop-shadow(6px 0 0 rgba(181,44,255,.8)) }
  50% { transform: translateX(-10px); clip-path: inset(45% 0 0 0) }
  75% { transform: translateX(6px); opacity: .5; clip-path: none }
  100% { opacity: 0; transform: translateX(-14px) }
}
.modal.closing { transition: opacity .3s; opacity: 0; }

.modal-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .04em; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.modal-close:hover, .modal-close:focus-visible { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.modal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.modal-link {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-left: 2px solid var(--purple);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px;
  transition: transform .15s, border-color .15s, background-color .15s, color .15s;
}
.modal-link i { font-style: normal; color: var(--muted); font-weight: 400; letter-spacing: .04em; font-size: 11px; text-transform: none; }
.modal-link .ml-name { position: relative; }
.modal-link .ml-name::before, .modal-link .ml-name::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.modal-link:hover, .modal-link:focus-visible { transform: translateX(6px); border-color: var(--lime); border-left-color: var(--lime); background: rgba(198, 255, 0, .06); color: var(--lime); }
.modal-link:hover .ml-name::before, .modal-link:focus-visible .ml-name::before { color: var(--purple); animation: slog-a .35s steps(4) 1; }
.modal-link:hover .ml-name::after,  .modal-link:focus-visible .ml-name::after  { color: #fff; animation: slog-b .35s steps(4) 1; }
.modal-note { margin: 16px 0 0; font-size: 10px; letter-spacing: .12em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .glitching .app, .glitching .sections { animation: none !important; }
}

/* кнопка «Поддержать» — компактная, лаймовый акцент */
.cta { gap: 10px; }
.btn-support { border-color: rgba(198, 255, 0, .5); color: var(--lime); padding: 0 clamp(14px, 1.6vw, 24px); }
.btn-support:hover, .btn-support:focus-visible { background: rgba(198, 255, 0, .08); }
@media (max-width: 760px) {
  .cta .btn { flex: 1 1 auto; padding: 0 10px; letter-spacing: .08em; font-size: 11px; }
  .cta .btn-primary { flex: 1 1 100%; }
  .cta .btn { height: 42px; }
}

/* ---------- Логотип = ник игрока ---------- */
.brand { align-items: center; gap: 12px; }
.brand::before { content: ""; width: 6px; height: clamp(18px, 2.6vh, 26px); background: var(--lime); transform: skewX(-14deg); flex: none; }
.brand-logo {
  position: relative; font-size: clamp(20px, 2.6vh + 4px, 30px); letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-shadow: -1.5px 0 var(--purple), 1.5px 0 var(--lime); cursor: default;
}
.brand-logo:hover { animation: logo-glitch .35s steps(1) 1; }
@keyframes logo-glitch {
  0%   { text-shadow: -5px 0 var(--purple), 5px 0 var(--lime); transform: translateX(2px) }
  25%  { text-shadow: 4px 0 var(--purple), -4px 0 var(--lime); transform: translateX(-2px) skewX(-6deg) }
  50%  { text-shadow: -3px 1px var(--purple), 3px -1px var(--lime); transform: translateX(1px) }
  75%  { text-shadow: 3px 0 var(--purple), -3px 0 var(--lime); transform: none }
  100% { text-shadow: -1.5px 0 var(--purple), 1.5px 0 var(--lime); transform: none }
}
@media (prefers-reduced-motion: reduce) { .brand-logo:hover { animation: none; } }
/* разовое изменение расписания (перенос / отмена) */
.day.is-changed .day-time { color: var(--purple); }
.day.is-changed:not(.is-on) .day-name { color: #8a6aa0; }
