/* Base container */
.nsd-root {
  position: relative;
  min-height: 180px;
  padding: 24px;
  background: #0b0b0e;
  color: #e8e8e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Warning banner */
.nsd-banner {
  text-align: center;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  color: #ff6b6b;
  animation: nsd-pulse 1.2s infinite ease-in-out;
}
@keyframes nsd-pulse {
  0% { opacity: .6; color: #ff5151; }
  50% { opacity: 1; color: #ffb347; }
  100% { opacity: .6; color: #ff5151; }
}

/* Scanlines */
.nsd-scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.035),
    rgba(255,255,255,0.035) 2px,
    rgba(0,0,0,0.05) 2px,
    rgba(0,0,0,0.05) 4px
  );
  mix-blend-mode: overlay;
}

/* Fragment block */
.nsd-fragment {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,99,71,0.08), rgba(0,0,0,0));
  border-left: 2px solid rgba(255, 99, 71, 0.45);
  padding: 14px 16px;
  line-height: 1.5;
  border-radius: 6px;
}

.nsd-fragment-text {
  transition: filter 120ms ease, transform 120ms ease, opacity 200ms ease;
  will-change: filter, transform, opacity;
}

.nsd-flick {
  animation: nsd-flicker 0.2s ease;
}
@keyframes nsd-flicker {
  0% { filter: none; transform: translateX(0); }
  50% { filter: contrast(1.2) brightness(1.02); transform: translateX(0.5px); }
  100% { filter: none; transform: translateX(0); }
}

.nsd-corrupt {
  text-shadow: 0 0 2px rgba(255,120,120,0.5);
  position: relative;
}
.nsd-corrupt::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 60%; height: 1px;
  background: rgba(255, 99, 71, 0.35);
  transform: skewX(-8deg);
}
