* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background: black;
}

video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.video-background iframe {
  position: absolute;
  top: 50%; left: 50%;
  height: 100vh;
  width: 177.78vh;
  transform: translate(-50%, -50%);
  z-index: 0;
}

@media (min-aspect-ratio: 16/9) {
  .video-background iframe {
    width: 100vw;
    height: 56.25vw;
  }
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.access-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(19, 19, 19, 0.85);
  padding: 2rem 2.5rem;
  border: 3px solid #ffffff;
  box-shadow: 5px 5px 0 white;
  gap: 1.2rem;
  width: 100%;
  max-width: 580px;
}

.rules {
  color: white;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

#name-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
}

#name-input {
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
  border: 3px solid #ffffff;
  background-color: #131313;
  color: white;
  width: 100%;
  max-width: 300px;
  box-shadow: 5px 5px 0 white;
  outline: none;
  text-align: center;
  text-transform: uppercase;
}

.vote-selects {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 220px;
}

.vote-col label {
  color: white;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vote-col select {
  font-size: 1rem;
  padding: 0.8rem 0.6rem;
  border: 3px solid #ffffff;
  background-color: #131313;
  color: white;
  width: 100%;
  box-shadow: 5px 5px 0 white;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
  appearance: none;
  text-align: center;
}

.styled-button {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  background-color: #131313;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 5px 5px 0 white;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 260px;
}

.styled-button:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 white;
}

.question {
  color: white;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.5;
  width: 100%;
}

#vote-message {
  text-align: center;
  font-weight: bold;
  color: white;
  font-size: 0.95rem;
  min-height: 1.2em;
}

/* Tablette */
@media (max-width: 600px) {
  .access-box {
    padding: 1.5rem 1.2rem;
  }

  .vote-selects {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .vote-col {
    max-width: 100%;
    width: 100%;
  }

  .vote-col select {
    font-size: 1rem;
  }
}

/* Mobile petit */
@media (max-width: 380px) {
  .access-box {
    padding: 1rem 0.8rem;
    gap: 0.9rem;
  }

  .rules {
    font-size: 0.8rem;
  }

  .question {
    font-size: 1rem;
  }

  .styled-button {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}