:root {
  color-scheme: light dark;
  
  /* Couleurs Mode Clair */
  --bg-gradient: radial-gradient(circle at center, #ff2a6d 0%, #ff758c 35%, #fce4ec 75%, #f3e5f5 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: #ffffff;
  --text-title: #d81b60;
  --text-desc: #6a1b9a;
  --text-list: #4a148c;
  --shadow: rgba(216, 27, 96, 0.15);
  --logo-shadow: drop-shadow(0 8px 12px rgba(216, 27, 96, 0.2));
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Couleurs Mode Sombre */
    --bg-gradient: radial-gradient(circle at center, #4a001f 0%, #280015 40%, #12000a 100%);
    --card-bg: rgba(20, 15, 20, 0.92);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-title: #ff4081;
    --text-desc: #e1bee7;
    --text-list: #f3e5f5;
    --shadow: rgba(0, 0, 0, 0.6);
    /* Halo néon/rose autour du logo pour adoucir les bords blancs */
    --logo-shadow: drop-shadow(0 0 20px rgba(255, 64, 129, 0.45));
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-list);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 16px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 20px 24px;
  border-radius: 24px;
  box-shadow: 0 12px 32px var(--shadow);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 2px solid var(--card-border);
}

.logo-container {
  margin-top: -5px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.logo {
  width: 140px;
  height: 140px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  filter: var(--logo-shadow);
  animation: float 3s ease-in-out infinite !important;
  display: block;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

h1 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-title);
  letter-spacing: -0.5px;
}

.description {
  font-size: 0.85rem;
  color: var(--text-desc);
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.rules-list {
  text-align: left;
  padding: 0;
  list-style: none;
  margin-bottom: 20px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.rules-list li {
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  color: var(--text-list);
  font-weight: 500;
}

.rules-list li::before {
  content: "❌";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
}

.rules-list li.info::before {
  content: "📌";
}

.rules-list li.check::before {
  content: "👥";
}

button {
  background: linear-gradient(135deg, #ff2a5f 0%, #d81b60 100%);
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  font-size: 0.95rem;
  border-radius: 16px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(216, 27, 96, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

button:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(216, 27, 96, 0.25);
}

@media (hover: hover) {
  button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(216, 27, 96, 0.45);
  }
  
}