/* «Катка в дотку» — афиша гранд-финала.
 *
 * Отдельная страница: своя палитра, свой ритм, ничего общего с остальным
 * сайтом кроме шрифтов. Instrument Serif здесь не используется намеренно —
 * в нём нет кириллицы, и русский текст в нём молча уехал бы в фолбэк. */

:root {
  --k-black: #08060A;
  --k-ink:   #140A0D;
  --k-red:   #E11020;
  --k-hot:   #FF2D3D;
  --k-ember: #FF7A2C;
  --k-bone:  #F6EDE9;
  --k-ash:   #8A7A78;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.k-page {
  background: var(--k-black);
  color: var(--k-bone);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ---------- арена ---------- */

.k-stage { position: relative; min-height: 100svh; overflow: hidden; }

.k-arena {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.k-arena .crowd { fill: #FF6A5A; }

/* лучи качаются вразнобой — свет на арене никогда не стоит ровно */
.beam { mix-blend-mode: screen; animation: sway 9s ease-in-out infinite; }
.b0 { animation-duration: 7.5s; }
.b1 { animation-duration: 9.5s;  animation-delay: -1.2s; }
.b2 { animation-duration: 8.2s;  animation-delay: -3.0s; }
.b3 { animation-duration: 10.4s; animation-delay: -0.6s; }
.b4 { animation-duration: 8.8s;  animation-delay: -2.4s; }
.b5 { animation-duration: 7.9s;  animation-delay: -4.1s; }
@keyframes sway {
  0%, 100% { transform: rotate(-2.6deg); opacity: 0.72; }
  50%      { transform: rotate(2.6deg);  opacity: 1; }
}

/* дымка над сценой */
.k-haze {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% 12%, rgba(255, 60, 50, 0.30), transparent 70%),
    radial-gradient(90% 60% at 50% 92%, rgba(225, 16, 32, 0.22), transparent 72%);
}
.k-vig {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(8, 6, 10, 0.92) 100%);
}
/* плёночное зерно, чтобы красное не выглядело пластиковым */
.k-grain {
  position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: 0.14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.5'/></svg>");
  animation: grain 0.7s steps(3) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}


/* ---------- дорисовка: эгида, пиро, конфетти, вспышки в зале ---------- */

/* эгида дышит — это приз, а не декорация */
.aegis { animation: aegis 6s ease-in-out infinite; transform-origin: 800px 294px; }
@keyframes aegis {
  0%, 100% { opacity: 0.88; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.022); }
}

/* пиро бьёт с краёв сцены короткими залпами, а не горит ровно */
.pyro { mix-blend-mode: screen; opacity: 0; animation: pyro 6.5s ease-out infinite; }
.p0 { animation-delay: 0s; }
.p1 { animation-delay: 0.18s; }
.p2 { animation-delay: 0.1s; }
.p3 { animation-delay: 0.28s; }
@keyframes pyro {
  0%   { opacity: 0; transform: scaleY(0.15); }
  6%   { opacity: 1; transform: scaleY(1.04); }
  16%  { opacity: 0.55; transform: scaleY(0.92); }
  30%  { opacity: 0; transform: scaleY(0.5); }
  100% { opacity: 0; transform: scaleY(0.15); }
}

/* вспышки телефонов в зале — редкие и вразнобой */
.crowd-flash .fl { fill: #FFF3E2; opacity: 0; animation: flash 5s ease-in-out infinite; }
.crowd-flash .f0 { animation-delay: -0.4s; } .crowd-flash .f1 { animation-delay: -1.7s; }
.crowd-flash .f2 { animation-delay: -2.6s; } .crowd-flash .f3 { animation-delay: -3.3s; }
.crowd-flash .f4 { animation-delay: -4.1s; } .crowd-flash .f5 { animation-delay: -0.9s; }
@keyframes flash {
  0%, 88%, 100% { opacity: 0; }
  91%           { opacity: 0.95; }
  95%           { opacity: 0.2; }
}

/* конфетти сыплется и крутится */
.confetti .cf { animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes fall {
  from { transform: translateY(-140px); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 0.85; }
  to   { transform: translateY(760px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aegis, .pyro, .crowd-flash .fl, .confetti .cf { animation: none !important; }
  .pyro { opacity: 0.35; }
}

/* ---------- вёрстка поверх ---------- */

.k-wrap {
  position: relative; z-index: 4;
  max-width: 1180px; margin: 0 auto; padding: 34px 26px 0;
  min-height: 100svh; display: flex; flex-direction: column;
}

.k-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.2em; color: var(--k-ash);
  border-bottom: 1px solid rgba(246, 237, 233, 0.14);
  padding-bottom: 14px;
}
.k-top b { color: var(--k-hot); font-weight: 600; }
.k-live { display: inline-flex; align-items: center; gap: 8px; color: var(--k-bone); }
.k-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--k-hot);
  box-shadow: 0 0 12px var(--k-hot); animation: live 1.6s ease-in-out infinite;
}
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.k-head { padding: clamp(26px, 5vw, 54px) 0 0; }
.k-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.26em; color: var(--k-hot);
  margin-bottom: 18px;
}

/* заголовок — главный объект страницы */
.k-title {
  font-family: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.035em; line-height: 0.88;
  font-size: clamp(40px, 9.2vw, 132px);
  text-transform: uppercase;
  color: var(--k-bone);
  text-shadow: 0 0 40px rgba(255, 45, 61, 0.45), 0 6px 0 rgba(8, 6, 10, 0.55);
}
.k-title .hot {
  display: block;
  background: linear-gradient(96deg, var(--k-hot) 0%, var(--k-red) 46%, var(--k-ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 34px rgba(225, 16, 32, 0.6));
}
.k-rule {
  height: 3px; margin: clamp(20px, 3vw, 34px) 0;
  background: linear-gradient(90deg, var(--k-hot), var(--k-red) 40%, transparent 92%);
}

/* тело — журнальная колонка */
.k-body { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); }
.k-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.2em; color: var(--k-ash);
  padding-top: 9px; border-top: 2px solid var(--k-red);
}
.k-lede {
  font-size: clamp(17px, 2.5vw, 27px); line-height: 1.42; font-weight: 500;
  color: var(--k-bone); text-wrap: balance;
}
.k-lede em { font-style: normal; color: var(--k-hot); font-weight: 700; }
.k-lede .dim { color: var(--k-ash); }

/* печать «вацао нима» */
.k-stamp {
  align-self: flex-start; margin-top: clamp(22px, 3.5vw, 40px);
  transform: rotate(-7deg);
  border: 3px solid var(--k-hot); border-radius: 8px;
  padding: 9px 16px 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(13px, 2vw, 19px); font-weight: 600; letter-spacing: 0.16em;
  color: var(--k-hot);
  box-shadow: 0 0 26px rgba(255, 45, 61, 0.30), inset 0 0 22px rgba(255, 45, 61, 0.14);
  opacity: 0.92;
}

.k-spacer { flex: 1; min-height: 24px; }

/* ---------- смех во всю ширину ---------- */

.k-laugh {
  position: relative; z-index: 4;
  overflow: hidden;
  border-top: 1px solid rgba(246, 237, 233, 0.14);
  background: linear-gradient(180deg, transparent, rgba(225, 16, 32, 0.14));
  padding: clamp(10px, 1.6vw, 20px) 0 clamp(14px, 2.4vw, 30px);
}
.k-laugh-line {
  display: block; white-space: nowrap;
  font-family: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(46px, 13vw, 190px); line-height: 1;
  background: linear-gradient(92deg, var(--k-red), var(--k-hot) 34%, var(--k-ember) 62%, var(--k-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(225, 16, 32, 0.55));
  animation: shove 14s linear infinite;
}
@keyframes shove {
  from { transform: translateX(0); }
  to   { transform: translateX(-34%); }
}

.k-foot {
  position: relative; z-index: 4;
  max-width: 1180px; margin: 0 auto; padding: 16px 26px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.18em; color: var(--k-ash);
}
.k-foot a { color: var(--k-hot); text-decoration: none; border-bottom: 1px solid currentColor; }

@media (max-width: 720px) {
  .k-body { grid-template-columns: 1fr; gap: 14px; }
  .k-label { border-top: none; border-left: 2px solid var(--k-red); padding: 0 0 0 10px; }
  .k-wrap { padding: 22px 18px 0; }
  .k-foot { padding: 14px 18px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .beam, .k-grain, .k-laugh-line, .k-live i { animation: none !important; }
}
