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

body {
  overflow: hidden;
  background: transparent;
  width: 100vw;
  height: 100vh;
}

#scene-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

#particles-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

#scene-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}

.label {
  font-size: 24px;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

.main-text {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.countdown {
  font-size: 48px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

#progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  z-index: 20;
  display: none;
}

#progress-fill {
  height: 100%;
  width: 0%;
  transition: width 1s linear;
}

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

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: currentColor; }
}

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

@keyframes rotate-gradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes border-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Animation classes */
.anim-fade-in-up { animation: fadeInUp 1s ease-out forwards; }
.anim-fade-in-down { animation: fadeInDown 1s ease-out forwards; }
.anim-pulse { animation: pulse 2s ease-in-out infinite; }
.anim-glow { animation: glow-pulse 2s ease-in-out infinite; }
.anim-float { animation: float 3s ease-in-out infinite; }
.anim-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background transparent mode */
body.bg-transparent {
  background: transparent !important;
}
body.bg-transparent #bg-canvas {
  display: none;
}
