* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: white;
  background:
    radial-gradient(circle at center, rgba(39, 108, 184, 0.25), transparent 35%),
    linear-gradient(180deg, #182b45 0%, #0a1320 100%);
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.logo img {
  width: 320px;
  max-width: 85%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

.lobby {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 140px 40px 120px;
}

.player-slot {
  text-align: center;
}

.character,
.empty-slot {
  width: 200px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-slot {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

.platform {
  width: 220px;
  height: 58px;
  margin: -20px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,255,0.60), rgba(0,240,255,0.15), transparent 70%);
  animation: pulse 2s infinite ease-in-out;
}

.controls {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  background: rgba(7, 14, 24, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}

.controls h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

select,
button {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
}

select {
  min-width: 220px;
  background: #ffffff;
  color: #111;
}

.buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

button {
  background: #12a8ff;
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

#playBtn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 260px;
  max-width: 28vw;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.15s ease, filter 0.15s ease;
}

#playBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

#playBtn:active {
  transform: scale(0.96);
}

.campaign-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(7px);
}

.campaign-modal.hidden {
  display: none;
}

.campaign-panel {
  width: min(560px, 94vw);
  padding: 22px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(7, 14, 24, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.campaign-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.campaign-header p {
  margin: 0;
  color: #ffd54a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#closeCampaignBtn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 900;
}

.campaign-panel h1 {
  margin: 10px 0 18px;
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
}

.chapter-list {
  display: grid;
  gap: 10px;
}

.chapter-card {
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.chapter-card span {
  color: #12a8ff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.chapter-card strong {
  color: white;
  font-size: 18px;
}

.chapter-card.locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.chapter-card.locked span::after {
  content: " verrouille";
  color: #ffd54a;
}

.save-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
}
