@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 8px #33ff66, 0 0 16px #33ff66; }
  50% { text-shadow: 0 0 16px #33ff66, 0 0 32px #33ff66, 0 0 48px #33ff66; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.note-active {
  animation: pulse-glow 0.6s ease-in-out infinite;
}

.scanlines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.lcd-screen {
  background: #0a1f0d;
  border: 3px solid #1a3320;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(51, 255, 102, 0.1);
}

.phone-body {
  background: linear-gradient(145deg, #3a3a5e 0%, #2a2a3e 50%, #1e1e32 100%);
  border-radius: 24px;
  box-shadow: 
    8px 8px 24px rgba(0, 0, 0, 0.5),
    -4px -4px 12px rgba(80, 80, 120, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.retro-btn {
  background: linear-gradient(180deg, #4a4a6e 0%, #3a3a5e 40%, #2a2a4e 100%);
  border: 2px solid #5a5a7e;
  border-bottom-color: #1a1a2e;
  border-right-color: #1a1a2e;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.1s;
}

.retro-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  border-top-color: #1a1a2e;
  border-left-color: #1a1a2e;
  border-bottom-color: #5a5a7e;
  border-right-color: #5a5a7e;
}

.retro-btn:hover {
  background: linear-gradient(180deg, #5a5a7e 0%, #4a4a6e 40%, #3a3a5e 100%);
}

.piano-roll-note {
  transition: opacity 0.2s;
}

.note-strip::-webkit-scrollbar {
  height: 6px;
}

.note-strip::-webkit-scrollbar-track {
  background: #0a1f0d;
}

.note-strip::-webkit-scrollbar-thumb {
  background: #1a8033;
  border-radius: 3px;
}

textarea {
  font-family: 'JetBrains Mono', monospace;
}

body {
  background: #1a1a2e;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(51, 255, 102, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 170, 0, 0.02) 0%, transparent 50%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3a3a5e #1a1a2e;
}