html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #eaf4ff;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.slides,
.slide,
.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
}

.slide.is-active {
  opacity: 1;
}

.vignette {
  pointer-events: none;
  /* Ombre derrière le logo + léger dégradé en bas (lisibilité) + assombrissement des bords d'origine */
  background:
    radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.45) 0, rgba(0, 0, 0, 0) 32vmin),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0) 22vmin),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 35%, rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.92) 100%);
}

/* ---------- Petits cadres arrondis (Discord, joueurs) ---------- */

.pill {
  position: fixed;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  padding: 1vmin 1.8vmin;
  border: 1px solid rgba(170, 220, 255, 0.25);
  border-radius: 0.8vmin;
  background: rgba(5, 10, 18, 0.55);
  font-size: 2vmin;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  -webkit-animation: fade-in 1.6s ease-out 1.2s forwards;
  animation: fade-in 1.6s ease-out 1.2s forwards;
}

.icon {
  width: 2.6vmin;
  height: 2.6vmin;
  margin-right: 1.2vmin;
  color: #aedcff;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

@-webkit-keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Haut gauche : logo + titre ---------- */

.brand {
  position: fixed;
  top: 4vmin;
  left: 4vmin;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.logo {
  width: 16vmin;
  height: auto;
  opacity: 0;
  /* Contour sombre (détache le logo du fond) + halo blanc/bleu clair */
  -webkit-filter: brightness(0.87) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(170, 220, 255, 0.4));
  filter: brightness(0.87) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(170, 220, 255, 0.4));
  -webkit-animation: logo-in 1.6s ease-out 0.2s forwards, logo-pulse 4s ease-in-out 1.8s infinite;
  animation: logo-in 1.6s ease-out 0.2s forwards, logo-pulse 4s ease-in-out 1.8s infinite;
}

.brand-text {
  margin-left: 3vmin;
}

.title {
  margin: 0;
  color: #eaf4ff;
  font-family: "Trajan Pro", "Cinzel", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 5.2vmin;
  font-weight: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 22px rgba(170, 220, 255, 0.35);
  opacity: 0;
  -webkit-animation: title-in 1.6s ease-out 0.7s forwards;
  animation: title-in 1.6s ease-out 0.7s forwards;
}

@-webkit-keyframes title-in {
  from { opacity: 0; -webkit-transform: translateX(-1.5vmin); }
  to   { opacity: 1; -webkit-transform: translateX(0); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateX(-1.5vmin); }
  to   { opacity: 1; transform: translateX(0); }
}

@-webkit-keyframes logo-in {
  from { opacity: 0; -webkit-transform: scale(0.92); }
  to   { opacity: 1; -webkit-transform: scale(1); }
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@-webkit-keyframes logo-pulse {
  0%, 100% { opacity: 1; -webkit-filter: brightness(0.87) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(170, 220, 255, 0.4)); }
  50%      { opacity: 1; -webkit-filter: brightness(1.12) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(190, 230, 255, 0.8)); }
}
@keyframes logo-pulse {
  0%, 100% { opacity: 1; filter: brightness(0.87) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(170, 220, 255, 0.4)); }
  50%      { opacity: 1; filter: brightness(1.12) drop-shadow(0 0 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 28px rgba(190, 230, 255, 0.8)); }
}

/* ---------- Haut droite : Discord ---------- */

.discord {
  top: 4vmin;
  right: 4vmin;
}

.discord .icon {
  color: #8ea1ff;
}

/* ---------- Bas gauche : joueurs connectés ---------- */

.players {
  left: 4vmin;
  bottom: 4vmin;
}

.players strong {
  font-weight: 600;
}

#playersMax {
  color: rgba(200, 225, 245, 0.6);
}

/* ---------- Bas centre : fichier en cours ---------- */

.download {
  position: fixed;
  left: 50%;
  bottom: 4vmin;
  width: 64vmin;
  margin-left: -32vmin;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  opacity: 0;
  -webkit-animation: fade-in 1.6s ease-out 1.4s forwards;
  animation: fade-in 1.6s ease-out 1.4s forwards;
}

.download-status {
  font-size: 1.9vmin;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aedcff;
}

.download-file {
  margin-top: 0.6vmin;
  font-family: Consolas, "Lucida Console", monospace;
  font-size: 1.9vmin;
  color: rgba(234, 244, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-bar {
  position: relative;
  height: 2px;
  margin-top: 1.2vmin;
  background: rgba(150, 205, 255, 0.18);
}

.download-fill {
  width: 0;
  height: 100%;
  background: #aedcff;
  box-shadow: 0 0 8px rgba(170, 220, 255, 0.8);
  -webkit-transition: width 0.4s ease-out;
  transition: width 0.4s ease-out;
}

.download-count {
  margin-top: 0.6vmin;
  font-size: 1.5vmin;
  letter-spacing: 0.12em;
  color: rgba(200, 225, 245, 0.6);
}
