html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}

body {
  position: relative;
  background: #222 no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  transition: background-image 0.8s ease;
  overflow: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1); /* adjust opacity here */
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}


body.standby {
  background-image: var(--screen);
}

body.play {
  background-image: var(--screen-bg);
}

#screen-ord {
  font-size: 20vh;
  margin: 0;
  line-height: 1;
  animation: pulse 2s ease-in-out infinite;
  order: 1;
  margin-top: -6vh;
}

h1 img {
  width: 200vh;
  margin-bottom: 70px;
  animation: pulse 3s ease-in-out infinite;
}

#screen-song.song {
  font-size: 9vh;
  font-weight: 900;
  width: 140vh;
  text-transform: uppercase;
  order: 2;
  line-height: 8vh;
  margin-bottom: 1vh;
}

#screen-part.part {
  background: #111;
  font-size: 5vh;
  border-radius: 6px;
  padding: 5px 12px 4px 12px;
  order: 3;
}

.part.hidden {
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0;
}

#screen-logo {
  order: 0;
  margin: 0 0 1vh 0;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-align: center;
  line-height: 0;
}

#screen-logo img {
  width: 80vh;
  max-width: 60vw;
  opacity: 0.95;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  animation: none;
}

#screen-logo.hidden {
  display: none;
  opacity: 0;
}

#screen-logo:not(.hidden) {
  display: block;
  opacity: 1;
}

#screen-partners {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
  text-align: center;
  line-height: 0;
}

#screen-partners img {
  max-width: 120vw;
  max-height: 15vh;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.5));
}

#screen-partners.hidden {
  display: none;
  opacity: 0;
}


#screen-ord,
#screen-song,
#screen-part,
#screen-logo {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.fade-out {
  opacity: 0 !important;
  animation: none !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}
