/* ==========================================================================
   Arcade — основные стили
   Структура:
     1. Переменные и сброс
     2. Фоновые слои (звёзды, сияние, курсор, сканлайны)
     3. Шапка и навигация
     4. Кнопки
     5. Герой-блок (солнце, сетка, глитч-заголовок)
     6. Бегущая строка
     7. Секции
     8. Карточки игр
     9. Карточки публикаций
    10. Страница публикации и 404
    11. Подвал
    12. Анимации появления
    13. Адаптивность и reduced motion
   ========================================================================== */

/* ---------- 1. Переменные и сброс ---------- */

/* Регистрируем свойство угла, чтобы его можно было анимировать (вращающаяся рамка) */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Базовая палитра из ТЗ */
  --bg: #1a1a2e;
  --bg-2: #16213e;
  --bg-3: #0f3460;
  --accent: #e94560;

  /* Неоновые акценты */
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --violet: #b388ff;
  --gold: #ffd166;
  --lime: #7cff6b;

  --text: #eef1ff;
  --muted: #a3abd1;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(22, 33, 62, 0.55);

  --font-logo: "Orbitron", "Russo One", system-ui, sans-serif;
  --font-head: "Russo One", "Orbitron", system-ui, sans-serif;
  --font-body: "Exo 2", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(233, 69, 96, 0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(15, 52, 96, 0.9), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Атрибут hidden должен побеждать display: flex/grid у компонентов */
[hidden] {
  display: none !important;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.main {
  flex: 1;
  position: relative;
  z-index: 2;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- 2. Фоновые слои ---------- */

/* Холст со звёздами рисуется скриптом main.js */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Медленно переливающееся «северное сияние» */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(255, 46, 136, 0.16), transparent 70%),
    radial-gradient(35% 30% at 80% 60%, rgba(0, 229, 255, 0.12), transparent 70%),
    radial-gradient(30% 30% at 50% 90%, rgba(179, 136, 255, 0.12), transparent 70%);
  filter: blur(40px);
  animation: aurora 24s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-3%, 4%, 0) rotate(-6deg) scale(1.02); }
}

/* Пятно света за курсором; позицию задаёт скрипт через CSS-переменные */
.cursor-glow {
  --x: -500px;
  --y: -500px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.16), rgba(0, 229, 255, 0.06) 40%, transparent 70%);
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s;
}

.cursor-glow.is-active {
  opacity: 1;
}

/* Лёгкий эффект ЭЛТ-монитора */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- 3. Шапка и навигация ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1.1rem 0;
  transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

/* После прокрутки шапка становится «стеклянной» */
.topbar--scrolled {
  padding: 0.6rem 0;
  background: rgba(26, 26, 46, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 40px rgba(0, 0, 0, 0.35);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand__logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.6));
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__logo {
  transform: rotate(-12deg) scale(1.1);
}

.brand__name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, #fff, var(--pink) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand--small .brand__logo {
  width: 28px;
  height: 28px;
}

.brand--small .brand__name {
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 0.4rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 10px var(--pink);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav__link:hover::after {
  width: 40%;
}

/* Кнопка «Установить» (PWA) — появляется, когда браузер разрешает установку */
.nav__install {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.nav__install:hover {
  background: rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 20px -4px var(--cyan);
  transform: translateY(-1px);
}

.nav__install-icon {
  color: var(--cyan);
  font-size: 1.1em;
  line-height: 1;
}

/* Кнопка мобильного меню (видна только на узких экранах) */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}

.burger__line,
.burger__line::before,
.burger__line::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease), background 0.2s;
}

.burger__line {
  top: 50%;
  transform: translate(-50%, -50%);
}

.burger__line::before,
.burger__line::after {
  content: "";
  left: 0;
}

.burger__line::before { transform: translateY(-7px); }
.burger__line::after { transform: translateY(7px); }

.burger[aria-expanded="true"] .burger__line { background: transparent; }
.burger[aria-expanded="true"] .burger__line::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line::after { transform: rotate(-45deg); }

/* ---------- 4. Кнопки ---------- */

.btn {
  --btn-color: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.8rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* Блик, пробегающий по кнопке при наведении */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn__icon {
  display: inline-grid;
  place-items: center;
  font-size: 0.75em;
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(4px) scale(1.15);
}

.btn--primary {
  background: linear-gradient(120deg, var(--pink), var(--accent) 50%, #ff7a59);
  box-shadow: 0 10px 30px -8px rgba(233, 69, 96, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px -10px rgba(233, 69, 96, 0.95), 0 0 0 4px rgba(233, 69, 96, 0.18);
}

.btn--small {
  padding: 0.65rem 1.3rem;
  font-size: 0.85rem;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 0 30px -6px var(--cyan);
}

.btn--play {
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  background: var(--btn-color);
  box-shadow: 0 8px 24px -8px var(--btn-color);
}

.btn--play:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 34px -8px var(--btn-color), 0 0 0 4px color-mix(in srgb, var(--btn-color) 25%, transparent);
}

/* ---------- 5. Герой-блок ---------- */

.hero {
  /* Высота «земли» (сетка под горизонтом). Контент никогда на неё не заходит */
  --ground: clamp(150px, 24vh, 230px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem 0 calc(var(--ground) + 2rem);
  overflow: hidden;
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ретро-солнце с полосами, как в синтвейве */
.hero__sun {
  position: absolute;
  left: 50%;
  bottom: var(--ground);
  z-index: 1;
  width: min(56vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold) 0%, #ff8a5b 35%, var(--pink) 65%, #a0127a 100%);
  transform: translate(-50%, 50%);
  /* Маска: полосы как у ретро-солнца, нижняя половина скрыта — солнце «садится» за горизонт */
  -webkit-mask: linear-gradient(180deg, #000 0 27%, transparent 27% 29%, #000 29% 34%, transparent 34% 37%, #000 37% 41%, transparent 41% 45%, #000 45% 47.5%, transparent 47.5%);
  mask: linear-gradient(180deg, #000 0 27%, transparent 27% 29%, #000 29% 34%, transparent 34% 37%, #000 37% 41%, transparent 41% 45%, #000 45% 47.5%, transparent 47.5%);
  opacity: 0.5;
  animation: sun-pulse 6s ease-in-out infinite;
}

@keyframes sun-pulse {
  50% { opacity: 0.68; }
}

/* Светящаяся линия горизонта */
.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--ground);
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), var(--pink), transparent);
  box-shadow: 0 0 20px var(--pink), 0 0 60px var(--pink);
}

/* Бесконечная перспективная сетка «пола» */
.hero__grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  z-index: 1;
  height: var(--ground);
  perspective: 300px;
  overflow: hidden;
  /* Линии плавно проявляются от горизонта к зрителю */
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.35), #000 70%);
  mask: linear-gradient(180deg, rgba(0, 0, 0, 0.35), #000 70%);
}

.hero__grid::before {
  content: "";
  position: absolute;
  inset: -300% 0 0;
  background-image:
    linear-gradient(rgba(255, 46, 136, 0.7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.55) 2px, transparent 2px);
  background-size: 60px 60px;
  transform: rotateX(70deg);
  transform-origin: 50% 100%;
  animation: grid-move 1.6s linear infinite;
}

@keyframes grid-move {
  to { background-position: 0 60px; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid rgba(124, 255, 107, 0.3);
  border-radius: 999px;
  background: rgba(124, 255, 107, 0.06);
  color: #c9ffc2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  animation: rise 1s var(--ease) both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(124, 255, 107, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(124, 255, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 255, 107, 0); }
}

.hero__logo {
  width: clamp(80px, 12vw, 120px);
  margin-bottom: 0.5rem;
  animation: float 5s ease-in-out infinite, rise 1s 0.1s var(--ease) both;
  filter: drop-shadow(0 0 25px rgba(233, 69, 96, 0.75)) drop-shadow(0 0 60px rgba(0, 229, 255, 0.35));
}

@keyframes float {
  50% { transform: translateY(-12px) rotate(-4deg); }
}

/* Главный заголовок: градиент, неоновое свечение и глитч */
.hero__title {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(3.6rem, 15vw, 10.5rem);
  line-height: 1;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* компенсируем letter-spacing у последней буквы */
  animation: rise 1s 0.2s var(--ease) both;
}

.glitch {
  position: relative;
  color: #fff;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 22px var(--pink),
    0 0 48px var(--accent),
    0 0 90px rgba(233, 69, 96, 0.7);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-shadow: none;
}

.glitch::before {
  color: var(--cyan);
  mix-blend-mode: screen;
  animation: glitch-a 3.2s infinite steps(1);
}

.glitch::after {
  color: var(--pink);
  mix-blend-mode: screen;
  animation: glitch-b 2.7s infinite steps(1);
}

@keyframes glitch-a {
  0%, 86%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  87% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, -2px); }
  89% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 1px); }
  91% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 2px); }
  93% { clip-path: inset(75% 0 5% 0); transform: translate(6px, 0); }
}

@keyframes glitch-b {
  0%, 80%, 100% { clip-path: inset(0 0 100% 0); transform: none; }
  81% { clip-path: inset(65% 0 10% 0); transform: translate(6px, 2px); }
  83% { clip-path: inset(15% 0 70% 0); transform: translate(-5px, -1px); }
  85% { clip-path: inset(40% 0 35% 0); transform: translate(4px, -2px); }
}

.hero__tagline {
  min-height: 1.6em;
  margin: 1.4rem 0 0.6rem;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
  animation: rise 1s 0.35s var(--ease) both;
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 0.12em;
  margin-left: 0.15em;
  vertical-align: baseline;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__desc {
  max-width: 620px;
  margin: 0 0 2.2rem;
  color: #c4cae8;
  text-shadow: 0 1px 12px rgba(26, 26, 46, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  animation: rise 1s 0.45s var(--ease) both;
}

.hero__actions {
  animation: rise 1s 0.55s var(--ease) both;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  animation: rise 1s 0.7s var(--ease) both;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 130px;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
}

.stat__value {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 46, 136, 0.7);
}

.stat__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Индикатор прокрутки «мышка» */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 3;
  transform: translateX(-50%);
  padding: 0.5rem;
}

.hero__mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  position: relative;
}

.hero__mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 0; transform: translate(-50%, -4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- 6. Бегущая строка ---------- */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid rgba(233, 69, 96, 0.35);
  background: linear-gradient(90deg, rgba(233, 69, 96, 0.14), rgba(15, 52, 96, 0.5), rgba(233, 69, 96, 0.14));
  transform: rotate(-1.5deg) scale(1.03);
  box-shadow: 0 0 40px rgba(233, 69, 96, 0.25);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
}

.marquee__track span:nth-of-type(3n + 1) {
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 12px var(--pink);
}

.marquee__track i {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 7. Секции ---------- */

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(15, 52, 96, 0.35) 20%, rgba(15, 52, 96, 0.35) 80%, transparent);
}

.section--page {
  padding-top: 9rem;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section__kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-logo);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.section__title {
  position: relative;
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  background: linear-gradient(90deg, #fff 0%, #ffd1dc 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(233, 69, 96, 0.45));
}

/* Неоновая черта под заголовком */
.section__title::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 1.1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 16px var(--pink);
}

.section__lead {
  margin: 1.2rem 0 0;
  color: var(--muted);
}

.section__more {
  margin-top: 3rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s var(--ease);
}

.back-link:hover {
  color: var(--cyan);
  transform: translateX(-4px);
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

/* ---------- 8. Карточки игр ---------- */

/* Flex, а не grid: неполный последний ряд встаёт по центру */
.games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  perspective: 1200px;
}

.games-grid > .game-card {
  flex: 0 1 370px;
  min-width: min(100%, 330px);
}

/* Цветовые темы карточек: класс задаётся полем accent модели Game */
.game-card { --c: var(--accent); --c2: var(--pink); }
.game-card--pink { --c: var(--accent); --c2: var(--pink); }
.game-card--cyan { --c: var(--cyan); --c2: #3d7bff; }
.game-card--violet { --c: var(--violet); --c2: #7c4dff; }
.game-card--gold { --c: var(--gold); --c2: #ff8a5b; }
.game-card--lime { --c: var(--lime); --c2: #00c9a7; }

.game-card {
  /* --rx/--ry — наклон, --mx/--my — позиция блика; задаются из main.js */
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  --lift: 0px;
  position: relative;
  padding: 2px; /* толщина «рамки» */
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.8);
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
  isolation: isolate;
}

/* Вращающаяся неоновая рамка — видна при наведении */
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), var(--c), var(--c2), transparent 40%, transparent 60%, var(--c2), var(--c));
  opacity: 0;
  transition: opacity 0.5s;
  animation: spin 4s linear infinite;
}

/* Мягкое цветное свечение под карточкой */
.game-card::after {
  content: "";
  position: absolute;
  inset: 12% 8% -6%;
  z-index: -2;
  border-radius: inherit;
  background: var(--c);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.5s;
}

@keyframes spin {
  to { --angle: 360deg; }
}

.game-card:hover,
.game-card:focus-within {
  --lift: -12px;
  box-shadow: 0 40px 70px -25px rgba(0, 0, 0, 0.9), 0 0 50px -10px var(--c);
}

.game-card:hover::before,
.game-card:focus-within::before {
  opacity: 1;
}

.game-card:hover::after,
.game-card:focus-within::after {
  opacity: 0.45;
}

/* Во время наклона мышью убираем задержку, чтобы карточка следовала за курсором */
.game-card.is-tilting {
  transition: transform 0.12s linear, box-shadow 0.5s var(--ease);
}

.game-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  padding: 2rem;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    linear-gradient(180deg, #1d2547 0%, #141b36 100%);
}

/* Сетка-узор на фоне карточки */
.game-card__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 70%);
  mask: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

/* Блик, следующий за курсором */
.game-card__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.game-card:hover .game-card__glare {
  opacity: 1;
}

.game-card__tag {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 2.2rem auto 1.6rem;
  transform: translateZ(50px);
  transition: transform 0.6s var(--ease);
}

/* Светящаяся «орбита» вокруг иконки */
.game-card__icon::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent);
  animation: orbit 18s linear infinite;
}

.game-card__icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border-radius: 50%;
  background: var(--c);
  filter: blur(30px);
  opacity: 0.45;
  transition: opacity 0.5s;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.game-card__icon img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.game-card__emoji {
  font-size: 5rem;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.game-card:hover .game-card__icon {
  transform: translateZ(80px) scale(1.08) rotate(-6deg);
}

.game-card:hover .game-card__icon::after {
  opacity: 0.8;
}

.game-card__title {
  position: relative;
  z-index: 2;
  margin: 0 0 0.6rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  text-align: center;
  transform: translateZ(30px);
}

.game-card__desc {
  position: relative;
  z-index: 2;
  flex: 1;
  margin: 0 0 1.6rem;
  color: var(--muted);
  text-align: center;
}

.game-card__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  transform: translateZ(20px);
}

.game-card__domain {
  overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--c) 70%, #fff);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card .btn--play {
  --btn-color: var(--c);
  flex-shrink: 0;
}

/* Тёмный текст на светлых акцентах ради контраста */
.game-card--gold .btn--play,
.game-card--lime .btn--play,
.game-card--cyan .btn--play,
.game-card--violet .btn--play {
  color: #10142a;
}

/* Карточка-заглушка «Скоро» */
.game-card--locked {
  --c: #5a6699;
  --c2: #3b4675;
  background: none;
}

.game-card--locked .game-card__inner {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  background: rgba(20, 27, 54, 0.45);
  backdrop-filter: blur(6px);
  justify-content: center;
}

.game-card--locked:hover {
  --lift: -6px;
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.8);
}

.game-card--locked:hover::before {
  opacity: 0;
}

.game-card__icon--locked {
  font-family: var(--font-logo);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.35);
  animation: flicker 4s infinite;
}

.game-card--locked .game-card__title {
  color: rgba(255, 255, 255, 0.65);
}

.game-card--locked .game-card__footer {
  justify-content: center;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.3; }
}

/* Анимированное многоточие */
.dots::after {
  content: "";
  animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ---------- 9. Карточки публикаций ---------- */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 370px));
  justify-content: center;
  gap: 1.8rem;
}

.post-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 37, 71, 0.85), rgba(20, 27, 54, 0.85));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9), 0 0 40px -12px var(--cyan);
}

.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.post-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}

.post-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card__cover img {
  transform: scale(1.08);
}

/* Обложка по умолчанию: градиент с первой буквой заголовка */
.post-card__cover--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 46, 136, 0.5), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0, 229, 255, 0.4), transparent 50%),
    linear-gradient(135deg, var(--bg-3), var(--bg-2));
}

.post-card__glyph {
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 30px var(--pink);
  transition: transform 0.8s var(--ease);
}

.post-card:hover .post-card__glyph {
  transform: scale(1.15) rotate(-6deg);
}

.post-card__kind {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.75);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.6rem 1.7rem;
}

.post-card__date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-card__title {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
}

.post-card__excerpt {
  flex: 1;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card__more {
  font-weight: 700;
  color: var(--cyan);
}

.post-card__more span {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.post-card:hover .post-card__more span {
  transform: translateX(6px);
}

/* ---------- 10. Страница публикации и 404 ---------- */

.article {
  max-width: 820px;
  padding: 9rem 0 6rem;
}

.article__head {
  margin-bottom: 2.5rem;
}

/* Хлебные крошки: Главная › Статьи › Заголовок */
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "›";
  margin: 0 0.6rem;
  color: var(--accent);
}

.breadcrumbs__item:last-child {
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs a {
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.article__kind {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-logo);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
}

.article__title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  text-shadow: 0 0 30px rgba(233, 69, 96, 0.45);
}

.article__date {
  color: var(--muted);
}

.article__cover {
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.article__cover img {
  width: 100%;
}

.article__body {
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 33, 62, 0.6);
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  line-height: 1.8;
}

.article__body p {
  margin: 0 0 1.2em;
}

.article__body p:last-child {
  margin-bottom: 0;
}

/* Подзаголовки статьи: неоновая черта слева */
.article__body h2,
.article__body h3 {
  margin: 2em 0 0.7em;
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
}

.article__body h2 {
  position: relative;
  padding-left: 1rem;
  font-size: 1.55rem;
  color: #fff;
}

.article__body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), var(--cyan));
  box-shadow: 0 0 12px var(--pink);
}

.article__body h3 {
  font-size: 1.2rem;
  color: var(--cyan);
}

.article__body > :first-child {
  margin-top: 0;
}

/* Списки с неоновыми маркерами-ромбами */
.article__body ol,
.article__body ul {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.article__body li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1.6rem;
}

.article__body li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: rotate(45deg);
}

/* Нумерованные шаги — неоновые кружки с номером */
.article__body ol {
  counter-reset: step;
}

.article__body ol li {
  counter-increment: step;
  padding-left: 2.4rem;
}

.article__body ol li::before {
  content: counter(step);
  left: 0;
  top: 0.15em;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-family: var(--font-logo);
  font-size: 0.8rem;
  color: #fff;
  transform: none;
}

.article__body strong {
  color: #fff;
}

.article__body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.article__body a:hover {
  color: #fff;
  text-decoration-color: var(--pink);
}

.gameover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 8rem 0 4rem;
  text-align: center;
}

.gameover__code {
  margin: 0;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(6rem, 25vw, 14rem);
  line-height: 1;
}

/* Для слов длиннее «404» (например, PAUSE на офлайн-странице) */
.gameover__code--word {
  font-size: clamp(3.5rem, 16vw, 9rem);
}

.gameover__title {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-logo);
  letter-spacing: 0.3em;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
  animation: blink 1.2s steps(1) infinite;
}

.gameover__text {
  margin: 0 0 2rem;
  color: var(--muted);
}

/* ---------- 11. Подвал ---------- */

.footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: rgba(15, 20, 40, 0.6);
  backdrop-filter: blur(10px);
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__text,
.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- PWA: предложение установить приложение ---------- */

/* Компактная строка внизу экрана: иконка, текст, кнопка, крестик */
.install-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.55rem 0.55rem 0.7rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 18px;
  background: rgba(22, 33, 62, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 30px -14px var(--cyan);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.install-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.install-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.install-toast__text {
  min-width: 0;
}

.install-toast__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  line-height: 1.25;
  color: #fff;
}

.install-toast__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.install-toast__share {
  color: var(--cyan);
}

.install-toast__accept {
  flex-shrink: 0;
}

.install-toast__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.install-toast__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- 12. Анимации появления при прокрутке ---------- */

/* Скрываем элементы только если работает JS (класс .js ставит boot.js) */
.js .reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 0.9s var(--ease), translate 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Пасхалка: код Konami включает «режим вечеринки» */
.party .main,
.party .hero__sun {
  animation: party-hue 2s linear infinite;
}

@keyframes party-hue {
  to { filter: hue-rotate(360deg); }
}

.confetti {
  position: fixed;
  top: -20px;
  z-index: 60;
  width: 10px;
  height: 14px;
  pointer-events: none;
  animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
  to { transform: translate3d(var(--drift, 0), 110vh, 0) rotate(720deg); }
}

/* ---------- 13. Адаптивность ---------- */

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .burger {
    display: block;
  }

  /* Выпадающее мобильное меню */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 0.8rem 1rem;
  }

  .nav__install {
    justify-content: center;
    margin: 0.4rem 0 0;
    padding: 0.8rem 1rem;
  }

  /* На телефоне — одна строка во всю ширину, описание прячем */
  .install-toast {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    max-width: none;
    gap: 0.6rem;
  }

  .install-toast__text {
    flex: 1;
  }

  .install-toast__desc[data-install-desc] {
    display: none;
  }

  .install-toast__icon {
    width: 36px;
    height: 36px;
  }

  .hero {
    --ground: clamp(110px, 16vh, 150px);
    padding-top: 6.5rem;
  }

  .hero__sun {
    width: 86vw;
  }

  .hero__scroll {
    bottom: 1rem;
  }

  /* Три равные колонки, чтобы плашки не переносились */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: 100%;
    max-width: 400px;
  }

  .stat {
    min-width: 0;
    padding: 0.8rem 0.3rem;
  }

  .stat__value {
    font-size: 1.3rem;
  }

  .stat__label {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .game-card__inner {
    min-height: 0;
    padding: 1.6rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 420px) {
  .game-card__footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .game-card .btn--play {
    justify-content: center;
  }
}

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}
