body {
  margin: 0;
  font-family: sans-serif;
  background: #111;
  color: #fff;
  overflow-x: hidden;
}

body.light {
  background: #f0f0f0;
  color: #111;
}

#splash {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-size: 1.5em;
}

.controls {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.controls button {
  padding: 8px 12px;
  font-size: 1.5em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.gallery-row {
  display: flex;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.carousel {
  display: flex;
  gap: 10px;
  animation: scroll linear infinite;
}

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

.cat {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.cat.visible {
  opacity: 1;
}

.cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
