* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  display: block;
  image-rendering: auto;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

canvas.rendering {
  opacity: 0.95;
}

.notification {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
  display: none;
}

#saveIndicator {
  top: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

#progress {
  top: 60px;
  width: 300px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#progressBar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  background: linear-gradient(90deg, #fabf0f 0%, #60cab6 50%, #fabf0f 100%);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  border-radius: 2px;
  width: 0%;
  transition: width 0.05s linear;
  will-change: width, transform;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

#progressDetail {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
