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

body {
  overflow: hidden;
  background: #020208;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: none;
}

#zen-garden {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

header {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: transparent;
  text-shadow: none;
  transition: all 0.3s ease;
}

header h1.lit {
  background: linear-gradient(90deg, #3399ff, #66bbff, #99ddff, #3399ff);
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: flameText 3s ease infinite;
  text-shadow: 0 0 30px rgba(51, 153, 255, 0.5);
}

@keyframes flameText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.color-picker-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 99;
  pointer-events: none;
}

.color-picker-container:hover .color-picker,
.color-picker.visible {
  opacity: 1;
  visibility: visible;
}

.color-picker {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 20px;
  border-radius: 30px;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.color-toggle-area {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  z-index: 99;
  pointer-events: auto;
}

.color-toggle-area:hover .color-toggle,
.color-toggle-area:hover ~ .color-picker-container .color-picker,
.color-toggle:hover,
.color-toggle:focus {
  opacity: 1;
  visibility: visible;
}

.color-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #222222, #111111);
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 100;
  pointer-events: auto;
  transition: all 0.3s ease;
  opacity: 0;
}

.color-toggle:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.picker-label {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-right: 5px;
}

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-btn:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.color-btn.active {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020208;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid #111;
  border-top-color: #3399ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loading p {
  margin-top: 20px;
  color: #444;
  font-size: 14px;
  letter-spacing: 2px;
}

.flame-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 40px;
  height: 60px;
  transform: translate(-50%, -80%);
}

.flame-cursor .flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 40px;
  background: radial-gradient(ellipse at bottom, #aaffff 0%, #33ccff 30%, #0066ff 60%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.15s infinite alternate;
  filter: blur(1px);
}

.flame-cursor .flame::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 25px;
  background: radial-gradient(ellipse at bottom, #aaffff 0%, #33ccff 50%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 0.1s infinite alternate-reverse;
}

.flame-cursor .glow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(51, 153, 255, 0.5) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.05) rotate(2deg); }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 22px;
  }
  
  .color-picker {
    bottom: 20px;
    padding: 10px 15px;
    gap: 8px;
  }
  
  .color-btn {
    width: 24px;
    height: 24px;
  }
  
  .picker-label {
    font-size: 10px;
  }
}
