/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Layout */
body {
  font-family: system-ui, sans-serif;
  background: #000000;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 80px; /* Footer padding */
  position: relative;
  text-align: center;
  overflow: hidden; /* Prevent scroll */
}

/* Logo Animation Container */
.animation-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

.part {
  position: absolute;
  width: 35%;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Spark Position */
#spark-wrap {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  left: calc(50% + 37px);
  top: calc(50% + 55px);
  transform: translate(-50%, -50%) rotate(-15deg);
  opacity: 1;
}

#spark {
  width: 15px;
  height: auto;
  animation: sparkBlink 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 120, 0, 0.9));
}

@keyframes sparkBlink {
  0%, 20% { opacity: 0; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1.08); }
  60% { opacity: 0.65; transform: scale(1.0); }
  80% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.95); }
}

/* Logo Text */
.logo-text {
  margin-top: 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  color: #ddd;
  font-style: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 2s ease-in-out;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-delay: 6s;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Blackout */
.blackout {
  position: fixed;
  inset: 0;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 10;
}

/* Footer */
footer {
  background: #0f1115;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #aab3c2;
  width: 100%;
  flex-shrink: 0;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 20;
}

footer a {
  color: #63d8ff;
  text-decoration: none;
  margin: 0 4px;
}

footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  max-width: 1120px;
  margin: auto;
  padding: 0 16px;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .logo-text { font-size: 18px; }

  .animation-container { max-width: 90vw; }

  .part { width: 65%; }

  footer {
    font-size: 13px;
    padding: 15px 0;
  }
}
