/* ==========================================================================
   boran — Liquid Celluloid & Shaders
   A darkroom pool of molten light, analog glass refraction, and organic light leaks.
   ========================================================================== */

:root {
  --color-void: #030305;
  --color-bone: #ede5d5;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-void);
  color: var(--color-bone);
  cursor: crosshair;
}

/* Fullscreen WebGL Canvas */
.gl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* Whisper-Quiet Sound Toggle */
.sound-control {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 10;
  cursor: pointer;
  padding: 8px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.sound-control:hover {
  opacity: 0.85;
}

.sound-glyph {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.sound-bar {
  width: 1.5px;
  height: 100%;
  background-color: var(--color-bone);
  border-radius: 1px;
  transition: height 0.3s ease;
}

.sound-bar:nth-child(1) { height: 35%; }
.sound-bar:nth-child(2) { height: 75%; }
.sound-bar:nth-bar:nth-child(3) { height: 45%; }

.sound-active .sound-bar:nth-child(1) {
  animation: barPulse1 1.2s ease-in-out infinite;
}
.sound-active .sound-bar:nth-child(2) {
  animation: barPulse2 0.9s ease-in-out infinite 0.15s;
}
.sound-active .sound-bar:nth-child(3) {
  animation: barPulse3 1.4s ease-in-out infinite 0.3s;
}

@keyframes barPulse1 {
  0%, 100% { height: 25%; }
  50% { height: 85%; }
}
@keyframes barPulse2 {
  0%, 100% { height: 80%; }
  50% { height: 35%; }
}
@keyframes barPulse3 {
  0%, 100% { height: 30%; }
  50% { height: 95%; }
}
