/* SynthBeat Design System Stylesheet - Sapphire Blue Edition */

@layer utilities {
  body {
    background-color: #030712;
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(11, 17, 41, 0.8) 0%, rgba(3, 7, 18, 1) 80%),
      linear-gradient(rgba(0, 210, 255, 0.01) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 210, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
  }
}

.glass-panel {
  background: rgba(11, 17, 41, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.glass-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

/* Card Glows */
.card-osu2jam:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 210, 255, 0.2), inset 0 0 15px rgba(0, 210, 255, 0.05);
}

.card-viewer:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2), inset 0 0 15px rgba(59, 130, 246, 0.05);
}

.card-rivals:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2), inset 0 0 15px rgba(6, 182, 212, 0.05);
}

.card-database:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.2), inset 0 0 15px rgba(168, 85, 247, 0.05);
}

/* Side lanes */
.lane-container {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  display: none;
}

@media (min-width: 1280px) {
  .lane-container {
    display: block;
  }
}

.lane-left {
  left: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.lane-right {
  right: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.lane-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.03);
}

.falling-note {
  position: absolute;
  width: 18px;
  height: 6px;
  border-radius: 1px;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { top: -20px; opacity: 0; }
  5% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

@keyframes success-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.parsed-success {
  animation: success-pulse 1s ease-out;
}

/* Floating rising notes inside synthesiser lanes */
.rising-note {
  position: absolute;
  width: 90%;
  left: 5%;
  height: 8px;
  border-radius: 2px;
  animation: floatUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    bottom: 10px;
    opacity: 1;
    transform: scaleY(1.2);
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: scaleY(0.6);
  }
}

.bg-yellow-450 {
  background-color: #eab308;
}