/* أنماط وتأثيرات مخصصة للتحديات والأصوات */
body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* تأثيرات تخريب المندّس والتنبيهات */
.sabotage-glitch-active {
  animation: glitchShake 0.25s infinite alternate ease-in-out;
  filter: hue-rotate(90deg) contrast(1.3);
}

@keyframes glitchShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px) skewX(2deg); }
  50% { transform: translate(3px, -2px) skewY(-2deg); }
  75% { transform: translate(-2px, -3px); }
  100% { transform: translate(2px, 3px); }
}

/* وميض أزرار مفاعل الألوان */
.simon-btn {
  transform: scale(1);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.simon-btn.active-flash {
  filter: brightness(2.2);
  box-shadow: 0 0 28px currentColor;
  transform: scale(0.95);
}

/* أسلاك الكهرباء التفاعلية */
.wire-node {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.wire-node:active {
  transform: scale(0.92);
}
.wire-node.selected {
  outline: 3px solid #00d2d3;
  outline-offset: 3px;
}
.wire-node.connected {
  opacity: 0.85;
  cursor: default;
}

/* صخور النيازك التفاعلية */
.asteroid-rock {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  animation: float 2.5s ease-in-out infinite alternate;
}

/* مقبض رادار التردد */
input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d2d3;
  box-shadow: 0 0 10px #00d2d3;
  cursor: pointer;
}

/* شريط تمرير أنيق */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: #070a12;
}
::-webkit-scrollbar-thumb {
  background: #1a243a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2e3e60;
}