.instruction-page {
  padding-top: 96px;
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

.instruction-page::before {
  content: "";
  position: fixed;
  inset: -16% -10%;
  height: 130vh;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(124, 58, 237, 0.34), transparent 62%),
    radial-gradient(ellipse 60% 45% at 84% 20%, rgba(56, 189, 248, 0.2), transparent 65%),
    radial-gradient(ellipse 80% 50% at 50% 95%, rgba(124, 58, 237, 0.15), transparent 70%);
  filter: blur(46px);
  opacity: 0.86;
  pointer-events: none;
  z-index: 0;
}

.instruction-page .container,
.instruction-hero,
.instruction-content {
  position: relative;
  z-index: 1;
}

.instruction-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.instruction-decor--rings {
  right: -130px;
  top: 180px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow:
    inset 0 0 0 44px rgba(124, 58, 237, 0.08),
    inset 0 0 0 98px rgba(124, 58, 237, 0.05);
  animation: instructionSpin 24s linear infinite;
}

.instruction-decor--grid {
  left: -80px;
  top: 420px;
  width: 320px;
  height: 320px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 50%, black 48%, transparent 88%);
  opacity: 0.32;
}

.instruction-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.instruction-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.95);
  animation: instructionFloat 6s ease-in-out infinite alternate;
}

.instruction-particles span:nth-child(1) { top: 140px; left: 14%; animation-delay: -0.4s; }
.instruction-particles span:nth-child(2) { top: 280px; right: 16%; animation-delay: -1.1s; }
.instruction-particles span:nth-child(3) { bottom: 280px; left: 24%; animation-delay: -1.8s; }
.instruction-particles span:nth-child(4) { bottom: 160px; right: 22%; animation-delay: -0.9s; }
.instruction-particles span:nth-child(5) { top: 520px; left: 46%; animation-delay: -1.3s; }

.instruction-hero {
  text-align: center;
  padding: 56px 0 26px;
}

.instruction-lead {
  margin: 16px auto 0;
  max-width: 760px;
}

.instruction-content {
  padding: 24px 0 72px;
}

.instruction-grid {
  display: grid;
  gap: 20px;
}

.instruction-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.instruction-card-head {
  display: grid;
  gap: 10px;
}

.instruction-video-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0f172a;
}

.instruction-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
}

.instruction-card-actions {
  display: flex;
  justify-content: flex-start;
}

@keyframes instructionSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes instructionFloat {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.4; }
  100% { transform: translate3d(0, -14px, 0) scale(1.2); opacity: 1; }
}

@media (max-width: 767px) {
  .instruction-page {
    padding-top: 76px;
  }

  .instruction-card {
    padding: 16px;
  }

  .instruction-decor--rings,
  .instruction-decor--grid,
  .instruction-particles {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instruction-decor--rings,
  .instruction-particles span {
    animation: none;
  }
}
