/* Заглушка ognivo.dev: тёмный фон, моноширинный шрифт, пиксельный огонёк. Без скриптов. */
:root {
  color-scheme: dark;
  --bg: #0e0f11;
  --fg: #d7dbe0;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, "DejaVu Sans Mono", Menlo, monospace;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}
main { display: grid; justify-items: center; gap: clamp(20px, 5vh, 40px); }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); font-weight: 500; letter-spacing: 0.32em; margin-right: -0.32em; }

/* Огонёк и свет от него. */
.fire { position: relative; width: min(56vw, 280px); }
.fire::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(closest-side, rgba(255, 138, 42, 0.26), rgba(255, 138, 42, 0.08) 55%, transparent);
  animation: glow 1.9s ease-in-out infinite alternate;
}
.art { position: relative; display: block; width: 100%; height: auto; }
.cR { fill: #e8451a; }
.cO { fill: #ff8a2a; }
.cY { fill: #ffd24a; }
.cE { fill: #ffffff; }
.cP { fill: #1a1206; }
.cM { fill: #8a2c0c; }
.cL { fill: #5a4032; }
.cl { fill: #3a2a20; }
.ce { fill: #ff6a2a; }

/* Языки пламени: три кадра по очереди. Без анимации виден первый. */
.fb, .fc { opacity: 0; }
.tip { animation: frame 0.54s step-end infinite; }
.fb { animation-delay: -0.36s; }
.fc { animation-delay: -0.18s; }
@keyframes frame { 0% { opacity: 1; } 33.34% { opacity: 0; } 100% { opacity: 0; } }

/* Моргание: веки закрывают глаза на мгновение раз в несколько секунд. */
.lid { opacity: 0; animation: blink 4.6s step-end infinite; }
@keyframes blink { 0% { opacity: 0; } 95% { opacity: 1; } 98% { opacity: 0; } }

/* Искры поднимаются и гаснут. */
.sp { opacity: 0; animation: rise 2.4s linear infinite; }
.s2 { animation-delay: -0.7s; animation-duration: 3.1s; }
.s3 { animation-delay: -1.5s; animation-duration: 2.7s; }
.s4 { animation-delay: -2s; animation-duration: 3.5s; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(3px); }
  15% { opacity: 1; }
  70% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-3px); }
}
@keyframes glow { from { opacity: 0.65; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }

/* Система просит меньше движения: пламя мерцает и моргает как обычно (это смена кадров на месте),
   свечение меняет только яркость, а искры, которые летят, не показываются. */
@keyframes glow-still { from { opacity: 0.65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fire::before { animation-name: glow-still; }
  .sp { animation: none; }
}
