/* ponytail: Pure CSS keyframe bars and hand-drawn border-radius; upgrade to Web Audio AnalyserNode / SVG feTurbulence if dynamic spectrum or rough paper displacement needed. */

:root {
  --horizon-border-color: #27272a;
  --primary-text: #f4f4f5;
  --secondary-text: #a1a1aa;
  --equalizer-color: #f4f4f5;
  --bg-overlay-color: rgba(9, 9, 11, 0.85);
  --card-bg: #18181b;
  --card-border: #27272a;
}

body {
  background-color: #09090b;
  color: #f4f4f5;
}

/* Background GIF & backdrop overlay */
#bg-gif {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -20;
  pointer-events: none;
}

#bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-overlay-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: -10;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

/* Clean square card styling */
.sketch-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .sketch-card {
  box-shadow: 2px 3px 2px -1px rgba(0, 0, 0, 0.5);
}

/* Search highlight styling */
mark.search-highlight {
  background-color: #fef08a;
  color: #854d0e;
  padding: 0.1em 0.25em;
  border-radius: 3px;
  font-weight: 600;
}

.dark mark.search-highlight {
  background-color: #854d0e;
  color: #fef9c3;
}

/* Organic border & frame curves */
.organic-border {
  border-radius: 58% 42% 63% 37% / 41% 59% 41% 59%;
  transition: border-radius 0.6s ease-in-out, transform 0.3s ease;
}

.organic-border:hover {
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
}

/* Horizon line divider */
.horizon-divider {
  width: 100%;
  height: 1px;
  background-color: var(--horizon-border-color);
  position: relative;
}

.horizon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-horizon-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

/* Audio equalizer visualizer bars */
.equalizer-container {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.equalizer-bar {
  width: 3px;
  height: 16px;
  background-color: var(--equalizer-color);
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.25);
  animation: equalize 1.2s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.equalizer-bar.playing {
  animation-play-state: running;
}

.equalizer-bar:nth-child(1) {
  animation-duration: 0.9s;
  animation-delay: 0.1s;
}

.equalizer-bar:nth-child(2) {
  animation-duration: 1.1s;
  animation-delay: 0.25s;
}

.equalizer-bar:nth-child(3) {
  animation-duration: 0.8s;
  animation-delay: 0.05s;
}

.equalizer-bar:nth-child(4) {
  animation-duration: 1.2s;
  animation-delay: 0.35s;
}

@keyframes equalize {
  0% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0.5);
  }
}
