/* SPDX-License-Identifier: GPL-3.0-or-later */
@font-face { font-family: "H1"; font-weight: 700; font-display: block; src: url(assets/fonts/oswald-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "H1"; font-weight: 700; font-display: block; src: url(assets/fonts/oswald-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "H2"; font-weight: 700; font-display: block; src: url(assets/fonts/inter-tight-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "H2"; font-weight: 700; font-display: block; src: url(assets/fonts/inter-tight-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "H3"; font-weight: 700; font-display: block; src: url(assets/fonts/russo-one-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "H3"; font-weight: 700; font-display: block; src: url(assets/fonts/russo-one-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "H4"; font-weight: 700; font-display: block; src: url(assets/fonts/tektur-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "H4"; font-weight: 700; font-display: block; src: url(assets/fonts/tektur-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: block; src: url(assets/fonts/inter-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: block; src: url(assets/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: block; src: url(assets/fonts/inter-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: block; src: url(assets/fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: block; src: url(assets/fonts/inter-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 800; font-display: block; src: url(assets/fonts/inter-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: block; src: url(assets/fonts/jetbrains-mono-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: block; src: url(assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: #b99bff;
  --acc: 185, 155, 255;
  --ink: #eef2f7;
  --dim: #8a96a8;
  --head: "H2";
  --hs: 1;
  --track: -0.02em;
  --case: uppercase;
}
body.font-1 { --head: "H1"; --hs: 1.16; --track: 0.01em; }
body.font-3 { --head: "H3"; --hs: 0.92; --track: 0; }
body.font-4 { --head: "H4"; --hs: 0.98; --track: 0; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; cursor: none; }
body.idle-cursor { cursor: default; }
#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
#stage { position: relative; width: 1920px; height: 1080px; flex: none; overflow: hidden; background: #000; transform-origin: 50% 50%;
  font-family: "Inter", sans-serif; color: var(--ink); }
#cam { position: absolute; inset: 0; will-change: transform; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.hd { font-family: var(--head), "Inter", sans-serif; font-weight: 700; letter-spacing: var(--track); }

#glow { background: radial-gradient(ellipse 70% 45% at 50% 108%, rgba(var(--acc), 0.55), rgba(var(--acc), 0.14) 45%, transparent 75%); opacity: 0; }
#beam { background: radial-gradient(ellipse 35% 60% at 50% 46%, rgba(var(--acc), 0.16), transparent 70%); opacity: 0; }
#spark { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px 6px rgba(var(--acc), 0.8), 0 0 80px 30px rgba(var(--acc), 0.25); opacity: 0; }
#line { position: absolute; left: 50%; top: 50%; height: 2px; width: 0; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #fff 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 22px 4px rgba(var(--acc), 0.55); opacity: 0; }

#boot { position: absolute; left: 96px; bottom: 90px; font: 500 22px/1.65 "JetBrains Mono", monospace; color: #7d8a9c; opacity: 0; white-space: pre; }
#boot b { color: var(--accent); font-weight: 500; }

#mark { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -330px 0 0 -280px; opacity: 0; will-change: transform, opacity; }
#mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
#eye { opacity: 0; filter: drop-shadow(0 0 26px rgba(var(--acc), 0.9)); }
#word { position: absolute; left: 0; right: 0; top: 770px; text-align: center; font-size: calc(130px * var(--hs)); line-height: 1; opacity: 0; }
#word .os { color: var(--accent); }
#tag { position: absolute; left: 0; right: 0; top: 925px; text-align: center; font: 600 24px/1 "Inter", sans-serif; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--dim); opacity: 0; }
#tag::before, #tag::after { content: ""; display: inline-block; width: 64px; height: 1px; margin: 0 22px; vertical-align: middle;
  background: currentColor; opacity: 0.6; }

#desk { background: url(assets/shots/desktop.webp) center / cover no-repeat; opacity: 0;
  -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 var(--r, 0px), transparent calc(var(--r, 0px) + 160px));
  mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 var(--r, 0px), transparent calc(var(--r, 0px) + 160px)); }

.card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; padding: 0 120px; }
.card h1 { font-size: calc(140px * var(--hs)); line-height: 1.02; text-transform: var(--case); }
.card h1 em { font-style: normal; color: var(--accent); }
.card p { margin-top: 34px; font: 600 34px/1.35 "Inter", sans-serif; color: #b9c3d1; max-width: 1300px; }
.card .small { margin-top: 26px; font: 600 22px/1.4 "Inter", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }

.glitch { position: relative; }
.glitch.on::before, .glitch.on::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: 0; white-space: pre-line; }
.glitch.on::before { color: #ff3b6b; transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); mix-blend-mode: screen; }
.glitch.on::after { color: var(--accent); transform: translate(6px, -2px); clip-path: inset(58% 0 8% 0); mix-blend-mode: screen; }
.glitch.on.b::before { clip-path: inset(40% 0 30% 0); transform: translate(9px, 0); }
.glitch.on.b::after { clip-path: inset(5% 0 75% 0); transform: translate(-9px, 0); }

.feat { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.feat .shot { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.feat .shade { position: absolute; inset: 0; }
.feat.left .shade { background: linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.12) 62%, transparent 75%); }
.feat.right .shade { background: linear-gradient(270deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0.12) 62%, transparent 75%); }
.feat.bottom .shade { background: linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.86) 24%, rgba(0, 0, 0, 0.4) 42%, transparent 60%); }
.feat .txt { position: absolute; max-width: 780px; }
.feat.left .txt { left: 110px; top: 50%; transform: translateY(-50%); }
.feat.right .txt { right: 110px; top: 50%; transform: translateY(-50%); text-align: right; }
.feat.bottom .txt { left: 110px; bottom: 96px; max-width: 1500px; }
.feat .kicker { font: 500 22px/1 "JetBrains Mono", monospace; letter-spacing: 0.18em; color: var(--accent); text-transform: uppercase; }
.feat h2 { margin-top: 22px; font-size: calc(100px * var(--hs)); line-height: 1.0; text-transform: var(--case); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.feat p { margin-top: 26px; font: 600 32px/1.36 "Inter", sans-serif; color: #c8d1dd; }
.feat .chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.feat.right .chips { justify-content: flex-end; }
.chip { padding: 12px 22px; border-radius: 999px; font: 600 24px/1 "Inter", sans-serif; color: #fff; background: rgba(var(--acc), 0.16);
  border: 1px solid rgba(var(--acc), 0.5); opacity: 0; transform: translateY(14px); }

#games .streaks { position: absolute; inset: -20%; background:
  repeating-linear-gradient(115deg, transparent 0 120px, rgba(var(--acc), 0.08) 120px 124px, transparent 124px 260px),
  radial-gradient(ellipse 60% 50% at 70% 60%, rgba(var(--acc), 0.25), transparent 70%); will-change: transform; }

#grid { display: grid; grid-template-columns: repeat(6, 200px); gap: 54px 62px; justify-content: center; align-content: center;
  position: absolute; inset: 0; padding-top: 70px; }
.ico { text-align: center; opacity: 0; transform: translateY(26px) scale(0.92); }
.ico img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.ico span { display: block; margin-top: 16px; font: 600 22px/1.25 "Inter", sans-serif; color: #c8d1dd; }
#gridhead { position: absolute; left: 0; right: 0; top: 70px; text-align: center; opacity: 0; }
#gridhead h2 { font-size: calc(72px * var(--hs)); line-height: 1; text-transform: var(--case); }
#gridhead em { font-style: normal; color: var(--accent); }
#ticker { position: absolute; left: 0; right: 0; bottom: 64px; white-space: nowrap; font: 600 30px/1 "Inter", sans-serif; color: var(--accent);
  opacity: 0; will-change: transform; }
#ticker i { font-style: normal; color: #4a5566; margin: 0 28px; }

#nums { display: flex; justify-content: center; align-items: flex-start; gap: 90px; position: absolute; inset: 0; padding-top: 400px; }
.num { text-align: center; opacity: 0; }
.num b { display: block; font-size: calc(124px * var(--hs)); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.num b sup { font-size: 0.45em; color: var(--accent); vertical-align: top; margin-left: 4px; }
.num b .v { display: inline; font: inherit; color: inherit; }
.num > span { display: block; margin: 20px auto 0; font: 600 26px/1.3 "Inter", sans-serif; color: var(--dim); max-width: 340px; }

#req h1 { font-size: calc(104px * var(--hs)); }
#req .rows { margin-top: 56px; display: grid; grid-template-columns: auto auto; gap: 22px 70px; text-align: left; }
#req .k { font: 500 24px/1.2 "JetBrains Mono", monospace; letter-spacing: 0.12em; color: var(--accent); text-transform: uppercase; padding-top: 12px; }
#req .v { font: 800 46px/1.15 "Inter", sans-serif; }
#req .v small { display: block; margin-top: 6px; font: 600 24px/1.2 "Inter", sans-serif; color: var(--dim); }
#req .row-k, #req .row-v { opacity: 0; transform: translateX(-24px); }

#final .logo { width: 300px; height: 300px; position: relative; margin-bottom: 26px; }
#final .logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
#final .logo .e { filter: drop-shadow(0 0 22px rgba(var(--acc), 0.95)); }
#final h1 { font-size: calc(160px * var(--hs)); text-transform: none; }
#final .rel { margin-top: 36px; font-size: calc(52px * var(--hs)); line-height: 1; text-transform: var(--case); }
#final .rel em { color: var(--accent); font-style: normal; }
#final .site { margin-top: 30px; font: 500 30px/1 "JetBrains Mono", monospace; color: #c8d1dd; letter-spacing: 0.04em; }
#final .note { margin-top: 34px; font: 600 23px/1.45 "Inter", sans-serif; color: var(--dim); max-width: 1180px; }
#fine { position: absolute; left: 120px; right: 120px; bottom: 30px; font: 400 15px/1.5 "Inter", sans-serif; color: #5d6878; text-align: center; opacity: 0; }

#flash { background: #fff; opacity: 0; }
#grain { width: 100%; height: 100%; opacity: 0.075; mix-blend-mode: overlay; image-rendering: pixelated; }
#scan { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); opacity: 0.32; }
#vignette { background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75) 100%); }
#bars-top, #bars-bot { position: absolute; left: 0; right: 0; height: 0; background: #000; }
#bars-top { top: 0; }
#bars-bot { bottom: 0; }

#gate { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: #000; color: #6b7686; font: 600 20px/1.5 "Inter", sans-serif; cursor: pointer; z-index: 10; text-align: center; }
#gate .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 22px 6px rgba(var(--acc), 0.6);
  animation: pulse 1.6s ease-in-out infinite; }
#gate kbd, #hud kbd { font: 500 15px/1 "JetBrains Mono", monospace; padding: 4px 8px; border-radius: 6px; border: 1px solid #2a3240; color: #9aa6b8; }
#gate.gone { display: none; }
#hud { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9; font: 600 15px/1 "Inter", sans-serif; color: #6b7686;
  background: rgba(10, 12, 16, 0.85); border: 1px solid #1d2430; border-radius: 999px; padding: 12px 18px; display: none; gap: 14px; align-items: center; }
#hud.show { display: flex; }
#bar { position: fixed; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); z-index: 9; opacity: 0; }
#bar.show { opacity: 0.8; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { #grain { display: none; } }
