:root { color-scheme: dark light; }
* { box-sizing: border-box; }
body { 
  margin: 0; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; 
  background: #0a0a0a; 
  color: #ececec;
  overflow: hidden;
}

main { 
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

#app-container {
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
}

.hidden {
  display: none !important;
}

/* Initial state styles */
#initial-state {
  display: flex;
  justify-content: center;
  align-items: center;
}

#reg-gif {
  cursor: pointer;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Active state styles */
#active-state {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gif-container {
  position: relative;
  display: inline-block;
}

#gif-canvas {
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Marquee container positioned at the bottom */
#marquee-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  padding: 10px 0;
  transition: opacity 0.5s ease;
}

#news-marquee {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
  color: #ff0000;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

#news-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
  flex-wrap: nowrap;
}

#news-links:hover {
  animation-play-state: paused;
}

#news-links .marquee-segment {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

#news-links .marquee-message {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: inherit;
  font-weight: inherit;
}

#news-links a {
  display: inline-flex;
  align-items: center;
  color: #ff0000;
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
}

#news-links a:hover {
  color: #ff4444;
  text-decoration: underline;
}

/* Canvas text is rendered directly, no CSS needed for text overlays */

/* Responsive design */
@media (max-width: 768px) {
  #news-marquee {
    font-size: 12px;
    height: 35px;
  }
  
  #news-links a {
    font-size: 12px;
    padding: 0 8px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 10px;
  }
  
  #news-marquee {
    font-size: 11px;
    height: 30px;
  }
  
  #marquee-container {
    padding: 8px 0;
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
