body {
  margin: 0;
  background: black;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* === DESKTOP BACKGROUND === */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("relbg.png") center 30% / contain no-repeat;
  filter: brightness(0.6);
  z-index: -1;
  transition: background-image 0.5s ease-in-out;
}

/* === MOBILE BACKGROUND === */
@media (max-width: 768px) {
  .background {
    background: url("relbg-mobile.png") center center / contain no-repeat;
    background-color: black; /* fills borders if aspect ratio doesn't fit */
    filter: brightness(0.5);
  }
}

/* === CREDITS === */
.credits-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.credits {
  max-width: 90vw;
  height: auto;
  animation: scroll-up 80s linear forwards;
}

@keyframes scroll-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(-100%); }
}

/* === FADES === */
.credits-container::before,
.credits-container::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 20%;
  pointer-events: none;
}

.credits-container::before {
  top: 0;
  background: linear-gradient(to bottom, black 0%, transparent 100%);
}

.credits-container::after {
  bottom: 0;
  background: linear-gradient(to top, black 0%, transparent 100%);
}

/* === SKIP BUTTON === */
.skip-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid white;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.skip-button:hover {
  background: white;
  color: black;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .credits {
    max-width: 95vw;
    animation-duration: 40s;
  }

  .skip-button {
    bottom: 15px;
    padding: 8px 18px;
    font-size: 14px;
  }

  .background {
    filter: brightness(0.5);
    background-position: center top;
  }
}
