:root {
  --anim-black: #000000;
  --anim-red: #d31818;
  --anim-red-strong: #f03030;
  --anim-white: #ffffff;
  --anim-speed-factor: 1.0;
}

.home-landing__subtitle {
  margin-bottom: 18px;
}
.home-landing__desc {
  margin: 18px 0 0;
}

.home-omen {
  --home-omen-speed: calc(7.2s * var(--anim-speed-factor));
  position: relative;
  margin: 0 0 24px;
  padding: 24px 24px 20px;
  border: 2px solid var(--anim-white);
  border-radius: 50px 0 50px 0;
  background:
    linear-gradient(180deg, rgba(170, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%),
    linear-gradient(90deg, var(--anim-black) 0%, rgba(12, 0, 0, 0.98) 100%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    12px 12px 0 var(--anim-red-strong),
    inset 0 0 60px rgba(170, 0, 0, 0.15);
  overflow: hidden;
  isolation: isolate;
  animation: home-omen-shake var(--home-omen-speed) infinite ease-in-out;
}

.home-omen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.03) 0 2px,
      transparent 2px 4px
    );
  animation: home-omen-scanlines 0.1s linear infinite;
}

.home-omen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.98) 0 1px,
      transparent 1px 4px
    );
  opacity: 0.06;
  mix-blend-mode: screen;
  animation: home-omen-static 0.05s steps(1) infinite;
}

.home-omen__rupture {
  position: absolute;
  inset: -4px;
  z-index: 3;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.98) 0 1px,
      rgba(255, 255, 255, 0.92) 1px 2px,
      rgba(0, 0, 0, 0.98) 2px 5px,
      rgba(245, 36, 36, 0.72) 5px 6px,
      rgba(0, 0, 0, 0.98) 6px 10px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.92) 0 1%,
      rgba(0, 0, 0, 0) 1% 5%,
      rgba(244, 54, 54, 0.78) 5% 9%,
      rgba(0, 0, 0, 0) 9% 14%,
      rgba(207, 21, 21, 0.72) 14% 21%,
      rgba(0, 0, 0, 0) 21% 28%,
      rgba(255, 255, 255, 0.88) 28% 29%,
      rgba(0, 0, 0, 0) 29% 36%,
      rgba(162, 8, 8, 0.72) 36% 43%,
      rgba(0, 0, 0, 0) 43% 50%,
      rgba(241, 46, 46, 0.74) 50% 56%,
      rgba(0, 0, 0, 0) 56% 64%,
      rgba(255, 255, 255, 0.9) 64% 65%,
      rgba(0, 0, 0, 0) 65% 74%,
      rgba(188, 14, 14, 0.72) 74% 82%,
      rgba(0, 0, 0, 0) 82% 91%,
      rgba(255, 255, 255, 0.92) 91% 100%
    ),
    linear-gradient(
      180deg,
      transparent 0 11%,
      rgba(255, 255, 255, 0.88) 11% 13%,
      transparent 13% 42%,
      rgba(244, 50, 50, 0.78) 42% 46%,
      transparent 46% 69%,
      rgba(172, 9, 9, 0.7) 69% 73%,
      transparent 73% 88%,
      rgba(255, 255, 255, 0.82) 88% 90%,
      transparent 90% 100%
    );
  opacity: 0;
  filter: blur(0.2px) saturate(2.4) contrast(1.85);
  background-size: 100% 10px, 170px 100%, 100% 100%;
  background-repeat: repeat-y, repeat, no-repeat;
  animation: home-omen-rupture var(--home-omen-speed) infinite steps(1, end);
}

.home-omen__rupture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.4) 0%,
    transparent 30%,
    transparent 70%,
    rgba(0, 255, 255, 0.4) 100%
  );
  mix-blend-mode: screen;
  animation: home-omen-rgb-shift 0.15s steps(1) infinite;
}

.home-omen__label,
.home-omen__title,
.home-omen__verse {
  position: relative;
  z-index: 1;
}

.home-omen__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--anim-white);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  box-shadow: inset 0 0 8px rgba(255, 60, 60, 0.2);
  animation: home-omen-label-glitch 5s steps(1) infinite;
}

.home-omen__title {
  position: relative;
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--anim-white);
  text-shadow: 
    3px 0 var(--anim-red-strong),
    -3px 0 rgba(0, 255, 255, 0.5),
    0 0 20px rgba(240, 48, 48, 0.4);
  animation: 
    home-omen-title-glow 3s ease-in-out infinite,
    home-omen-title-glitch 6s steps(1) infinite;
}

.home-omen__title::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  top: 0;
  color: rgba(255, 0, 0, 0.7);
  text-shadow: 2px 0 var(--anim-red-strong);
  opacity: 0.8;
  animation: home-omen-title-r 4s steps(1) infinite;
  clip-path: inset(0 0 0 0);
}

.home-omen__title::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: rgba(0, 255, 255, 0.7);
  text-shadow: -2px 0 rgba(0, 255, 255, 0.5);
  opacity: 0.8;
  animation: home-omen-title-b 4s steps(1) infinite;
  clip-path: inset(0 0 0 0);
}

.home-omen__verse {
  position: relative;
  margin: 0;
  padding: 14px 18px 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--anim-red);
  color: var(--anim-white);
  box-shadow: 
    inset 0 0 20px rgba(170, 0, 0, 0.15),
    0 0 15px rgba(160, 10, 10, 0.2);
  animation: home-omen-verse-flicker 4s steps(1) infinite;
}

.home-omen__verse::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--anim-red-strong), transparent);
  animation: home-omen-topline 2s ease-in-out infinite;
}

.home-omen__verse p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.home-omen__verse p::first-letter {
  color: #ff6f6f;
  font-size: 1.3em;
}

.home-omen__verse footer {
  display: block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 120, 120, 0.3);
  color: #ffb3b3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}

@keyframes home-omen-shake {
  0%, 82%, 100% { transform: translate(0, 0); }
  84% { transform: translate(-2px, 1px); }
  86% { transform: translate(2px, -1px); }
  88% { transform: translate(-1px, 2px); }
  90% { transform: translate(1px, -2px); }
  92% { transform: translate(-2px, 0); }
}

@keyframes home-omen-scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

@keyframes home-omen-static {
  0%, 100% { opacity: 0.06; }
  50% { opacity: 0.1; }
}

@keyframes home-omen-label-glitch {
  0%, 88%, 100% { transform: translate(0); text-shadow: none; }
  90% { transform: translate(-2px, 0); text-shadow: 2px 0 var(--anim-red-strong); }
  92% { transform: translate(2px, 1px); text-shadow: -2px 0 rgba(0, 255, 255, 0.5); }
  94% { transform: translate(-1px, -1px); }
}

@keyframes home-omen-title-glow {
  0%, 100% {
    text-shadow: 
      3px 0 var(--anim-red-strong),
      -3px 0 rgba(0, 255, 255, 0.5),
      0 0 20px rgba(240, 48, 48, 0.4);
    filter: brightness(1);
  }
  50% {
    text-shadow: 
      3px 0 var(--anim-red-strong),
      -3px 0 rgba(0, 255, 255, 0.5),
      0 0 40px rgba(240, 48, 48, 0.6),
      0 0 60px rgba(240, 48, 48, 0.3);
    filter: brightness(1.1);
  }
}

@keyframes home-omen-title-glitch {
  0%, 88%, 100% { transform: translate(0); }
  90% { transform: translate(-3px, 0); }
  92% { transform: translate(3px, -1px); }
  94% { transform: translate(-2px, 1px); }
}

@keyframes home-omen-title-r {
  0%, 90%, 100% { 
    opacity: 0; 
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
  92% { 
    opacity: 0.7; 
    transform: translate(-3px, 0);
    clip-path: inset(20% 0 40% 0);
  }
  94% { 
    opacity: 0.6; 
    transform: translate(2px, 1px);
    clip-path: inset(60% 0 10% 0);
  }
}

@keyframes home-omen-title-b {
  0%, 91%, 100% { 
    opacity: 0; 
    transform: translate(0);
    clip-path: inset(0 0 0 0);
  }
  93% { 
    opacity: 0.7; 
    transform: translate(3px, 0);
    clip-path: inset(10% 0 50% 0);
  }
  95% { 
    opacity: 0.6; 
    transform: translate(-2px, -1px);
    clip-path: inset(40% 0 30% 0);
  }
}

@keyframes home-omen-rupture {
  0%, 85%, 100% { opacity: 0; transform: translate(0, 0) scale(1); }
  88% { opacity: 0.5; transform: translate(-4px, 0) scale(1.02, 0.98); }
  90% { opacity: 0.7; transform: translate(4px, -2px) scale(0.98, 1.02); }
  92% { opacity: 0.5; transform: translate(-3px, 2px); }
  94% { opacity: 0.3; transform: translate(2px, -1px); }
}

@keyframes home-omen-rgb-shift {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@keyframes home-omen-verse-flicker {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: 0.8; }
  94% { opacity: 0.9; }
  96% { opacity: 0.75; }
}

@keyframes home-omen-topline {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@media (max-width: 767px) {
  .home-omen {
    margin-bottom: 20px;
    padding: 18px 16px 14px;
    box-shadow: 8px 8px 0 var(--anim-red-strong);
    border-radius: 30px 0 30px 0;
  }

  .home-omen__title {
    font-size: 20px;
  }

  .home-omen__verse {
    padding: 12px 14px 14px;
  }

  .home-omen__verse p {
    font-size: 14px;
    line-height: 1.5;
  }

  .home-omen__verse footer {
    font-size: 10px;
  }
}
