/* ================================================================
   ÉCLIPSE DES DESTINS — Feuille de style principale
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600&family=IM+Fell+English:ital@0;1&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --violet-deep:    #0d0720;
  --violet-dark:    #1a0e3a;
  --violet-mid:     #2d1060;
  --violet-glow:    #6b2fa0;
  --violet-bright:  #9b50d4;
  --violet-pale:    #c8a8ff;
  --violet-mist:    rgba(150, 80, 200, 0.25);
  --gold:           #d4a848;
  --gold-light:     #f0d080;
  --gold-glow:      rgba(212, 168, 72, 0.4);
  --white-soft:     rgba(255, 248, 255, 0.92);
  --text-sub:       rgba(200, 170, 240, 0.85);
  --text-muted:     rgba(160, 120, 210, 0.65);
  --glow-purple:    0 0 20px rgba(155, 80, 212, 0.6), 0 0 40px rgba(100, 40, 160, 0.3);
  --glow-gold:      0 0 15px rgba(212, 168, 72, 0.5), 0 0 30px rgba(212, 168, 72, 0.2);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Cinzel', serif;
  background: var(--violet-deep);
  color: var(--white-soft);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23c8a8ff' opacity='0.8'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%23fff'/%3E%3C/svg%3E") 10 10, crosshair;
}

/* ── Couche étoilée ──────────────────────────────────────────── */
.stars-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.star-dot {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min-op, 0.2); transform: scale(1); }
  50%       { opacity: var(--max-op, 1);  transform: scale(1.4); }
}

.shooting-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shooting-star {
  position: absolute; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0));
  animation: shoot var(--dur, 4s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes shoot {
  0%   { transform: translateX(-100px) translateY(0) rotate(-30deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateX(1600px) translateY(600px) rotate(-30deg); opacity: 0; }
}

/* ── Screens ─────────────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0; z-index: 1;
  overflow: hidden;
  animation: fadeIn 1.2s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Backgrounds ─────────────────────────────────────────────── */
.bg-accueil, .bg-creation {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-accueil  { background-image: url('bg_accueil.png'); }
.bg-creation { background-image: url('bg_creation.png'); }

.bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(5,2,20,0.55) 100%);
}
.dark-overlay {
  background: radial-gradient(ellipse at center, rgba(5,2,20,0.2) 0%, rgba(5,2,20,0.7) 100%);
}

/* ── Page Accueil — Objets flottants ─────────────────────────── */
.floating-objects { position: absolute; inset: 0; pointer-events: none; }
.float-obj {
  position: absolute;
  animation: floatY 6s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(155, 80, 212, 0.6));
}
.float-obj.clock  { animation-duration: 7s, 4s; }
.float-obj.photo  { animation-duration: 5.5s, 3.5s; animation-delay: 1s, 0.5s; }
.float-obj.mask   { animation-duration: 6.5s, 5s; animation-delay: 0.5s, 1s; }
.float-obj.key    { animation-duration: 8s, 4.5s; animation-delay: 1.5s, 0.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-18px) rotate(2deg); }
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(155,80,212,0.5)); }
  50%       { filter: drop-shadow(0 0 20px rgba(155,80,212,0.9)) drop-shadow(0 0 40px rgba(200,140,255,0.3)); }
}

.photo-frame {
  width: 75px; height: 75px;
  background: rgba(30,10,70,0.8);
  border: 2px solid rgba(200,168,255,0.6);
  box-shadow: 0 0 15px rgba(155,80,212,0.5), inset 0 0 10px rgba(100,40,160,0.3);
  padding: 4px;
  transform: rotate(-8deg);
}
.photo-inner { width: 100%; height: 100%; overflow: hidden; }

/* ── Contenu central Accueil ─────────────────────────────────── */
.content-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: min(520px, 90vw);
}

.title-block { margin-bottom: 2.5rem; }

.title-deco {
  font-size: 1rem; color: var(--gold);
  letter-spacing: 0.5em;
  animation: glowGold 3s ease-in-out infinite;
}
@keyframes glowGold {
  0%,100% { text-shadow: 0 0 8px var(--gold); }
  50%      { text-shadow: 0 0 20px var(--gold-light), 0 0 40px var(--gold); }
}
.top-deco { margin-bottom: 0.5rem; }
.bottom-deco { margin-top: 0.3rem; }

.game-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 0 30px rgba(200,150,255,0.8), 0 0 60px rgba(150,80,212,0.5), 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1;
}
.title-letter {
  display: inline-block;
  animation: letterFloat 4s ease-in-out infinite;
}
.title-letter:nth-child(1) { animation-delay: 0s; }
.title-letter:nth-child(2) { animation-delay: 0.1s; }
.title-letter:nth-child(3) { animation-delay: 0.2s; }
.title-letter:nth-child(4) { animation-delay: 0.3s; }
.title-letter:nth-child(5) { animation-delay: 0.4s; }
.title-letter:nth-child(6) { animation-delay: 0.5s; }
.title-letter:nth-child(7) { animation-delay: 0.6s; }
@keyframes letterFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.title-sub {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 0.4rem;
}
.sub-line {
  flex: 1; height: 1px; max-width: 60px;
  background: linear-gradient(90deg, transparent, var(--violet-pale));
}
.title-sub .sub-line:last-child {
  background: linear-gradient(90deg, var(--violet-pale), transparent);
}
.sub-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.45em;
  color: var(--violet-pale);
  text-shadow: 0 0 10px rgba(200,168,255,0.6);
}

.tagline {
  margin-top: 0.8rem;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-sub);
  text-shadow: 0 0 15px rgba(150,80,200,0.5);
  letter-spacing: 0.03em;
}

/* ── Menu principal ──────────────────────────────────────────── */
.main-menu {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem;
}

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  width: 100%; max-width: 340px;
  padding: 0.85rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--white-soft);
  text-decoration: none;
  background: rgba(30, 10, 60, 0.45);
  border: 1px solid rgba(180, 130, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.menu-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(155,80,212,0), rgba(155,80,212,0.25));
  opacity: 0; transition: opacity 0.35s;
}
.menu-btn:hover { 
  border-color: rgba(200,160,255,0.7);
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.8);
  box-shadow: 0 0 20px rgba(155,80,212,0.4), inset 0 0 15px rgba(100,40,160,0.2);
  transform: translateY(-1px);
}
.menu-btn:hover::before { opacity: 1; }

.primary-btn {
  background: rgba(80, 30, 140, 0.55);
  border-color: rgba(200, 160, 255, 0.55);
  box-shadow: 0 0 15px rgba(155,80,212,0.3);
}
.primary-btn:hover {
  background: rgba(100, 40, 170, 0.7);
  box-shadow: 0 0 30px rgba(155,80,212,0.6), 0 0 60px rgba(100,40,160,0.3);
}

.disabled-btn {
  opacity: 0.4; pointer-events: none; cursor: not-allowed;
}

.btn-star {
  color: var(--gold);
  font-size: 0.7rem;
  text-shadow: var(--glow-gold);
  animation: starPulse 2s ease-in-out infinite;
}
@keyframes starPulse {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

.bottom-moon {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  opacity: 0.7;
  animation: moonFloat 5s ease-in-out infinite;
}
@keyframes moonFloat {
  0%,100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(-5px); opacity: 1; }
}

/* ── Coins ───────────────────────────────────────────────────── */
.options-corner {
  position: absolute; bottom: 1.5rem; left: 1.8rem;
  z-index: 20;
}
.options-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Cinzel', serif; font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.options-link:hover { color: var(--violet-pale); }
.options-link svg { opacity: 0.7; }

.version-tag {
  position: absolute; bottom: 1.5rem; right: 1.8rem;
  font-size: 0.65rem; letter-spacing: 0.15em;
  color: var(--text-muted);
  z-index: 20;
}

/* ================================================================
   PAGE CRÉATION
   ================================================================ */
.creation-wrapper {
  position: absolute; inset: 0; z-index: 10;
  overflow-y: auto;
  padding: 2rem 2rem 4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(155,80,212,0.4) transparent;
}
.creation-wrapper::-webkit-scrollbar { width: 4px; }
.creation-wrapper::-webkit-scrollbar-track { background: transparent; }
.creation-wrapper::-webkit-scrollbar-thumb { background: rgba(155,80,212,0.4); border-radius: 2px; }

.creation-header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: slideDown 0.8s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.creation-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.25em;
  color: var(--white-soft);
  text-shadow: 0 0 25px rgba(200,150,255,0.7), 0 0 50px rgba(150,80,212,0.4);
  margin: 0.5rem 0;
}
.creation-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--text-sub);
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.header-ornament {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  color: var(--gold);
}
.ornament-line {
  height: 1px; width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ── Sections formulaire ─────────────────────────────────────── */
.creation-form {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2rem;
  animation: fadeIn 1s ease 0.3s both;
}

.form-section {
  background: rgba(15, 5, 40, 0.55);
  border: 1px solid rgba(155, 80, 212, 0.25);
  border-radius: 2px;
  padding: 1.8rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200,160,255,0.1);
  transition: border-color 0.3s;
}
.form-section:hover { border-color: rgba(155, 80, 212, 0.45); }

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--violet-pale);
  text-shadow: 0 0 10px rgba(200,168,255,0.5);
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-title span { color: var(--gold); margin: 0 0.5rem; }

/* ── Inputs ──────────────────────────────────────────────────── */
.form-grid.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .form-grid.two-col { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--text-sub);
}

.input-wrapper { position: relative; }

.magic-input {
  width: 100%;
  background: rgba(20, 8, 50, 0.6);
  border: 1px solid rgba(155, 80, 212, 0.35);
  border-radius: 1px;
  padding: 0.75rem 1rem;
  font-family: 'IM Fell English', serif;
  font-size: 1rem;
  color: var(--white-soft);
  outline: none;
  transition: all 0.3s;
  letter-spacing: 0.04em;
}
.magic-input::placeholder { color: rgba(160, 120, 210, 0.4); font-style: italic; }
.magic-input:focus {
  border-color: rgba(200, 150, 255, 0.7);
  box-shadow: 0 0 15px rgba(155,80,212,0.3), inset 0 0 10px rgba(80,30,140,0.2);
}
.input-glow {
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,80,212,0), transparent);
  transition: background 0.3s;
}
.magic-input:focus ~ .input-glow {
  background: linear-gradient(90deg, transparent, rgba(200,150,255,0.8), transparent);
  box-shadow: 0 0 10px rgba(155,80,212,0.6);
}

/* ── Carousel Origines ───────────────────────────────────────── */
.origins-carousel {
  display: flex; align-items: center; gap: 1rem;
}

.carousel-arrow {
  background: rgba(30,10,70,0.5);
  border: 1px solid rgba(155,80,212,0.35);
  color: var(--violet-pale);
  width: 60px; height: 60px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
  font-size: 1.1rem;
  border-radius: 50%;
  position: relative; overflow: hidden;
}
.carousel-arrow:hover {
  border-color: rgba(200,160,255,0.7);
  box-shadow: 0 0 15px rgba(155,80,212,0.4);
  background: rgba(80,30,140,0.5);
}
.arrow-moon {
  font-size: 1.4rem; line-height: 1;
  color: rgba(200,168,255,0.5);
  position: absolute;
  animation: moonRotate 8s linear infinite;
}
.left-arrow .arrow-moon  { transform: scaleX(-1); }
@keyframes moonRotate {
  from { opacity: 0.3; } to { opacity: 0.7; }
}

.origin-display {
  flex: 1; text-align: center;
  padding: 1rem;
  min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.origin-icon {
  font-size: 2.5rem;
  animation: originFloat 3s ease-in-out infinite;
}
@keyframes originFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}
.origin-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  color: var(--white-soft);
  text-shadow: 0 0 15px rgba(200,150,255,0.5);
}
.origin-desc {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: var(--text-sub);
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.5;
}
.origin-stats {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  margin-top: 0.3rem;
}
.stat-pill {
  background: rgba(155,80,212,0.2);
  border: 1px solid rgba(155,80,212,0.4);
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--violet-pale);
  border-radius: 20px;
}

/* ── Affinités ───────────────────────────────────────────────── */
.affinity-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 600px) { .affinity-grid { grid-template-columns: repeat(2, 1fr); } }

.affinity-card {
  background: rgba(20,8,50,0.5);
  border: 1px solid rgba(155,80,212,0.25);
  padding: 1.2rem 0.8rem;
  text-align: center; cursor: pointer;
  transition: all 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  border-radius: 2px;
  position: relative; overflow: hidden;
}
.affinity-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(155,80,212,0), rgba(155,80,212,0.15));
  opacity: 0; transition: opacity 0.3s;
}
.affinity-card:hover, .affinity-card:has(input:checked) {
  border-color: rgba(200,160,255,0.7);
  box-shadow: 0 0 20px rgba(155,80,212,0.4);
  transform: translateY(-2px);
}
.affinity-card:hover::before,
.affinity-card:has(input:checked)::before { opacity: 1; }
.affinity-card:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,72,0.3);
}

.affinity-icon { font-size: 1.8rem; }
.affinity-name {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  letter-spacing: 0.15em; color: var(--violet-pale);
}
.affinity-desc {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 0.72rem; color: var(--text-muted); line-height: 1.4;
}

/* ── Serments ────────────────────────────────────────────────── */
.oath-choices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 700px) { .oath-choices { grid-template-columns: 1fr; } }

.oath-card {
  background: rgba(20,8,50,0.5);
  border: 1px solid rgba(155,80,212,0.25);
  padding: 1.5rem 1rem; text-align: center; cursor: pointer;
  transition: all 0.3s; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  position: relative; overflow: hidden;
}
.oath-card:hover, .oath-card:has(input:checked) {
  border-color: rgba(200,160,255,0.7);
  box-shadow: 0 0 25px rgba(155,80,212,0.4);
}
.oath-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(60,30,10,0.3);
}

.oath-ornament { font-size: 1.5rem; opacity: 0.8; }
.oath-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem; color: var(--white-soft);
  text-shadow: 0 0 10px rgba(200,150,255,0.4);
}
.oath-text {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 0.8rem; color: var(--text-sub); line-height: 1.5;
}

/* ── Bougies ─────────────────────────────────────────────────── */
.candles { position: fixed; bottom: 0; pointer-events: none; z-index: 5; width: 100%; }
.candle { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; }
.left-candle  { left: 3%; }
.right-candle { right: 3%; }

.candle-body {
  width: 12px; height: 80px;
  background: linear-gradient(180deg, #e8dcc8, #c8b898, #a09070);
  border-radius: 2px 2px 0 0;
  box-shadow: -2px 0 4px rgba(0,0,0,0.3);
}
.flame {
  width: 10px; height: 20px;
  background: radial-gradient(ellipse at bottom, #fff8d0, #ffa020 40%, #ff4000 80%, transparent);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  animation: flicker 0.3s ease-in-out infinite alternate;
  margin-bottom: -2px;
  filter: blur(0.5px);
}
@keyframes flicker {
  0%   { transform: scaleX(1) scaleY(1) rotate(-2deg); opacity: 0.9; }
  100% { transform: scaleX(0.85) scaleY(1.1) rotate(2deg); opacity: 1; }
}

/* ── Boutons actions ─────────────────────────────────────────── */
.form-actions {
  display: flex; gap: 1rem; justify-content: center; align-items: center;
  padding: 1rem 0 2rem;
}

.action-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 2rem;
  font-family: 'Cinzel', serif; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.3em;
  text-decoration: none; cursor: pointer;
  border: 1px solid; border-radius: 1px;
  transition: all 0.35s ease;
}
.confirm-btn {
  background: rgba(80,30,140,0.55);
  border-color: rgba(200,160,255,0.55);
  color: var(--white-soft);
  box-shadow: 0 0 15px rgba(155,80,212,0.3);
}
.confirm-btn:hover {
  background: rgba(100,40,170,0.7);
  box-shadow: 0 0 30px rgba(155,80,212,0.6), 0 0 60px rgba(100,40,160,0.3);
  transform: translateY(-2px);
}
.cancel-btn {
  background: rgba(20,8,50,0.4);
  border-color: rgba(100,60,160,0.35);
  color: var(--text-muted);
}
.cancel-btn:hover {
  border-color: rgba(155,80,212,0.5);
  color: var(--violet-pale);
}

/* ── Options ─────────────────────────────────────────────────── */
.options-panel {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: rgba(15,5,40,0.55);
  border: 1px solid rgba(155,80,212,0.25);
  padding: 2rem;
  backdrop-filter: blur(12px);
  max-width: 500px; margin: 0 auto;
}
.option-row {
  display: flex; align-items: center; gap: 1rem;
}
.opt-label {
  font-family: 'Cinzel', serif; font-size: 0.75rem;
  letter-spacing: 0.15em; color: var(--text-sub);
  flex: 1;
}
.opt-value {
  font-family: 'IM Fell English', serif;
  color: var(--gold); min-width: 35px; text-align: right;
}
.magic-range {
  flex: 2; -webkit-appearance: none;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-bright), rgba(155,80,212,0.2));
  border-radius: 2px; outline: none;
}
.magic-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), var(--gold));
  box-shadow: 0 0 8px rgba(212,168,72,0.6);
  cursor: pointer;
}

.toggle-switch {
  width: 50px; height: 26px;
  background: rgba(155,80,212,0.2);
  border: 1px solid rgba(155,80,212,0.4);
  border-radius: 13px;
  cursor: pointer; position: relative;
  transition: all 0.3s;
}
.toggle-switch.on {
  background: rgba(155,80,212,0.5);
  border-color: rgba(200,160,255,0.7);
}
.toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-pale), var(--violet-glow));
  transition: left 0.3s;
  box-shadow: 0 0 6px rgba(155,80,212,0.5);
}
.toggle-switch.on .toggle-knob { left: 27px; }

/* ── Choix passés ────────────────────────────────────────────── */
.choices-list {
  max-width: 500px; margin: 2rem auto 0;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.choice-entry {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(15,5,40,0.5);
  border: 1px solid rgba(155,80,212,0.2);
  padding: 1rem 1.5rem;
  backdrop-filter: blur(8px);
}
.choice-num {
  color: var(--gold); font-size: 0.75rem;
  letter-spacing: 0.15em; white-space: nowrap;
}
.choice-text {
  font-family: 'IM Fell English', serif; font-style: italic;
  color: var(--text-sub); font-size: 0.9rem;
}
.empty-choices {
  text-align: center; padding: 3rem;
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,2,20,0.8);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal-box {
  background: rgba(20,8,50,0.9);
  border: 1px solid rgba(155,80,212,0.5);
  box-shadow: 0 0 40px rgba(155,80,212,0.3), 0 0 80px rgba(100,40,160,0.2);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 400px; width: 90%;
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.modal-ornament { font-size: 2.5rem; margin-bottom: 1rem; }
.modal-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem; color: var(--white-soft);
  text-shadow: 0 0 15px rgba(200,150,255,0.5);
  margin-bottom: 0.8rem;
}
.modal-text {
  font-family: 'IM Fell English', serif; font-style: italic;
  color: var(--text-sub); margin-bottom: 2rem; line-height: 1.5;
}
.modal-actions { display: flex; gap: 1rem; justify-content: center; }
