body {
  margin: 0;
  padding: 40px;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, #1a1a1a 0%, #050505 60%, #000 100%);
  font-family: 'Bangers', cursive;
  color: #ff7a00;
  text-align: center;
}

.sharingan-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 750px;
  height: 750px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: spinSharingan 5s linear infinite, pulseSharingan 2.5s ease-in-out infinite;
}

/* cercle principal */
.sharingan-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #000 0 7%, transparent 7% 100%),
    radial-gradient(circle at center, transparent 0 16%, #2b0000 16% 18%, transparent 18% 100%),
    radial-gradient(circle at center, transparent 0 34%, #5e0000 34% 37%, transparent 37% 100%),
    radial-gradient(circle at center, #d10000 0 42%, #7a0000 42% 62%, transparent 62% 100%);
  box-shadow:
    0 0 30px rgba(255, 0, 0, 0.45),
    0 0 80px rgba(255, 0, 0, 0.25),
    inset 0 0 40px rgba(0, 0, 0, 0.9);
}

/* tomoe */
.sharingan-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, #000 0 4.5%, transparent 4.5%),
    radial-gradient(circle at 20% 68%, #000 0 4.5%, transparent 4.5%),
    radial-gradient(circle at 80% 68%, #000 0 4.5%, transparent 4.5%);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
  animation: spinTomoe 2.5s linear infinite reverse;
}

h1,
.video-container {
  position: relative;
  z-index: 1;
}

h1 {
  margin-top: 20px;
  font-size: 4rem;
  letter-spacing: 3px;
  color: #ff7a00;
  text-shadow:
    0 0 8px #ff7a00,
    0 0 18px #ff4500,
    0 0 28px #ff0000;
}

video {
  background: #000;
}

/* rotation principale */
@keyframes spinSharingan {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

/* contre-rotation des tomoe */
@keyframes spinTomoe {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.03);
  }
}

/* pulsation rouge */
@keyframes pulseSharingan {
  0% {
    opacity: 0.22;
    filter: blur(0px);
  }
  50% {
    opacity: 0.42;
    filter: blur(1.5px);
  }
  100% {
    opacity: 0.22;
    filter: blur(0px);
  }
}

.video-container {
  position: relative;
  width: 700px;
  max-width: 90%;
  margin: 30px auto 0;
  aspect-ratio: 16 / 9;
}

video,
canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  border: 4px solid #ff7a00;
  border-radius: 14px;
  box-shadow:
    0 0 20px rgba(255, 122, 0, 0.8),
    0 0 40px rgba(255, 69, 0, 0.5);
  display: block;
  box-sizing: border-box;
}

canvas {
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

video {
  z-index: 1;
  object-fit: cover;
}