@import url("./base.css");

.scene-attack {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.scene-attack::before {
  border-image: linear-gradient(45deg, rgba(255, 69, 69, 0.2), transparent, rgba(255, 189, 89, 0.25)) 1;
}

.scene-attack .scene-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 69, 69, 0.18), rgba(255, 189, 89, 0.08));
  border: 1px solid rgba(255, 69, 69, 0.35);
  box-shadow: 0 0 35px rgba(255, 69, 69, 0.2);
}

.scene-attack .eyebrow.warning {
  color: var(--accent-warning);
}

.breach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.75rem;
  margin: 0 auto;
  padding: 1rem;
  width: min(320px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 69, 69, 0.08), rgba(255, 189, 89, 0.04));
  position: relative;
}

.breach-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 69, 69, 0.35);
  pointer-events: none;
}

.breach-node {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 189, 89, 0.4);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(255, 189, 89, 0.25), rgba(0, 0, 0, 0.8));
  box-shadow: inset 0 0 10px rgba(255, 189, 89, 0.25);
}

.breach-node::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: ping 4s infinite;
}

.breach-node.flare {
  animation: flare 3s infinite;
  border-color: rgba(255, 69, 69, 0.7);
  box-shadow: 0 0 20px rgba(255, 69, 69, 0.45);
}

@keyframes ping {
  0% {
    transform: scale(0.4);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes flare {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 69, 69, 0.75));
  }

  50% {
    filter: drop-shadow(0 0 16px rgba(255, 189, 89, 0.95));
  }
}

.attack-log {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
  padding: 1.25rem 1.5rem;
  font-family: "Fira Mono", monospace;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: inset 0 0 30px rgba(255, 69, 69, 0.1);
  position: relative;
}

.attack-log::before {
  content: "┌ breach log ┐";
  position: absolute;
  top: 0.35rem;
  right: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.4);
}

.radar-overlay {
  position: absolute;
  inset: 10% 5% auto;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255, 69, 69, 0.25);
  filter: drop-shadow(0 0 20px rgba(255, 69, 69, 0.15));
  pointer-events: none;
  overflow: hidden;
}

.radar-overlay::before,
.radar-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.radar-overlay::before {
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: scale(0.7);
}

.radar-overlay::after {
  border: 1px solid rgba(255, 255, 255, 0.04);
  transform: scale(0.4);
}

body.mode-attack .viewport {
  box-shadow: 0 0 50px rgba(255, 69, 69, 0.15);
}