* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

/* Start button */
#start-btn {
  padding: 20px 48px;
  background: transparent;
  border: 1px solid #333;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

#start-btn:hover {
  border-color: #fff;
  color: #fff;
}

/* Main UI container */
#main-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Visualizer orb */
#visualizer {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #222 0%, #0a0a0a 100%);
  box-shadow: 
    0 0 60px rgba(255, 255, 255, 0.03),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.05s ease-out, box-shadow 0.1s ease-out;
  will-change: transform, box-shadow;
}

#visualizer.breathing {
  animation: breathe 4s ease-in-out infinite;
}

#visualizer.active {
  box-shadow: 
    0 0 80px rgba(255, 255, 255, 0.15),
    0 0 120px rgba(255, 255, 255, 0.05),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Status text */
#status {
  margin-top: 48px;
  font-size: 14px;
  color: #444;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

#status.connected {
  color: #666;
}

/* Next button */
#next-btn {
  margin-top: 32px;
  padding: 12px 36px;
  background: transparent;
  border: 1px solid #222;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

#next-btn:hover:not(:disabled) {
  border-color: #444;
  color: #666;
}

#next-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Online count */
#online-count {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-size: 12px;
  color: #333;
  text-transform: lowercase;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #visualizer {
    width: 150px;
    height: 150px;
  }
  
  #status {
    margin-top: 40px;
    font-size: 13px;
  }
  
  #next-btn {
    margin-top: 28px;
    padding: 14px 40px;
  }
  
  #online-count {
    bottom: 16px;
    right: 16px;
  }
}
