:root {
  --nuit: #0b1f2e;
  --nuit-2: #12324a;
  --sapin: #1f6b45;
  --sapin-fonce: #134a30;
  --rouge: #c8283c;
  --rouge-fonce: #93192a;
  --or: #f2c14e;
  --or-clair: #ffe39a;
  --creme: #fff8ec;
  --texte: #fdf6e9;
  --texte-doux: #c9d6df;
  --rayon: 18px;
  --titre: 'Mountains of Christmas', 'Georgia', serif;
  --corps: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--corps);
  color: var(--texte);
  background: radial-gradient(ellipse at 50% 110%, #1d4a6b 0%, var(--nuit-2) 35%, var(--nuit) 75%) fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

#neige { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#confettis { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px 48px;
  text-align: center;
}

h1, h2, .titre {
  font-family: var(--titre);
  font-weight: 700;
  color: var(--or-clair);
  text-shadow: 0 2px 0 var(--rouge-fonce), 0 0 24px rgba(242, 193, 78, .35);
  margin: 0 0 8px;
  line-height: 1.05;
}
h1 { font-size: clamp(2.4rem, 9vw, 4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.sous-titre { color: var(--texte-doux); font-size: 1.05rem; margin: 0 0 28px; max-width: 32ch; }

/* Guirlande lumineuse en haut */
.guirlande {
  position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 2;
  display: flex; justify-content: space-around; pointer-events: none;
  border-top: 2px solid rgba(255,255,255,.12);
}
.guirlande span {
  width: 12px; height: 18px; margin-top: 6px; border-radius: 50% 50% 45% 45%;
  background: var(--or); box-shadow: 0 0 12px var(--or);
  animation: clignote 1.6s infinite ease-in-out;
}
.guirlande span:nth-child(3n+1) { background: var(--rouge); box-shadow: 0 0 12px var(--rouge); animation-delay: .4s; }
.guirlande span:nth-child(3n+2) { background: #4fd18b; box-shadow: 0 0 12px #4fd18b; animation-delay: .8s; }
@keyframes clignote { 50% { opacity: .35; box-shadow: none; } }

/* Carte */
.carte {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--rayon);
  padding: 28px 24px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

label { display: block; text-align: left; font-weight: 700; margin: 0 0 8px; color: var(--texte-doux); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1.1rem;
  padding: 14px 16px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.18);
  background: rgba(5, 18, 28, .55); color: var(--texte);
  outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--or); }
#code { text-align: center; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 800; font-size: 1.1rem;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #e0394e, var(--rouge-fonce));
  box-shadow: 0 6px 0 #5e0f1a, 0 12px 24px rgba(0,0,0,.3);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #5e0f1a, 0 6px 12px rgba(0,0,0,.3); }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; }
.btn.plein { width: 100%; margin-top: 18px; }
.btn.vert { background: linear-gradient(180deg, #2c8a5a, var(--sapin-fonce)); box-shadow: 0 6px 0 #0b2e1d, 0 12px 24px rgba(0,0,0,.3); }
.btn.discret { background: transparent; box-shadow: none; color: var(--texte-doux); font-weight: 600; font-size: .95rem; padding: 10px 16px; }
.btn.discret:hover { color: var(--or-clair); }
.btn.petit { font-size: .9rem; padding: 8px 14px; box-shadow: 0 3px 0 #5e0f1a; }

.erreur { color: #ffb3bd; min-height: 1.4em; margin: 12px 0 0; font-weight: 600; }
.cache { display: none !important; }

/* ---------- Scène du cadeau ---------- */
.scene { position: relative; width: 260px; height: 300px; margin: 10px auto 24px; perspective: 800px; }
.halo {
  position: absolute; left: 50%; top: 55%; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: repeating-conic-gradient(from 0deg, rgba(255,227,154,.28) 0 8deg, transparent 8deg 22deg);
  border-radius: 50%; opacity: 0; transform: scale(.2);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%);
          mask: radial-gradient(circle, #000 20%, transparent 68%);
  transition: opacity .6s, transform 1s cubic-bezier(.2,.8,.2,1);
}
.scene.ouvert .halo { opacity: 1; transform: scale(1); animation: tourne 14s linear infinite; }
@keyframes tourne { to { rotate: 360deg; } }

.cadeau { position: absolute; left: 50%; bottom: 0; width: 200px; margin-left: -100px; animation: flotte 3s ease-in-out infinite; }
.scene.tremble .cadeau { animation: tremble .5s ease-in-out infinite; }
.scene.ouvert .cadeau { animation: none; }
@keyframes flotte { 50% { transform: translateY(-8px); } }
@keyframes tremble {
  0%,100% { transform: rotate(0) }
  20% { transform: rotate(-6deg) translateX(-3px) }
  40% { transform: rotate(5deg) translateX(3px) }
  60% { transform: rotate(-4deg) }
  80% { transform: rotate(3deg) }
}

.boite {
  position: relative; height: 150px; border-radius: 6px 6px 12px 12px;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0 6px, transparent 7px) 0 0/40px 40px,
    linear-gradient(180deg, #d9364a, var(--rouge-fonce));
  box-shadow: inset 0 -14px 24px rgba(0,0,0,.25), 0 18px 30px rgba(0,0,0,.4);
}
.boite::before { /* ruban vertical */
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 30px; margin-left: -15px;
  background: linear-gradient(90deg, #d9a32d, var(--or-clair) 50%, #d9a32d);
}
.couvercle {
  position: absolute; left: -12px; right: -12px; bottom: 140px; height: 44px; border-radius: 8px;
  background: linear-gradient(180deg, #e8475b, #b0202f);
  box-shadow: 0 6px 10px rgba(0,0,0,.3);
  transform-origin: 20% 100%;
  z-index: 3;
}
.couvercle::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 30px; margin-left: -15px;
  background: linear-gradient(90deg, #d9a32d, var(--or-clair) 50%, #d9a32d);
}
.noeud { position: absolute; left: 50%; bottom: 38px; width: 0; height: 0; }
.noeud i {
  position: absolute; bottom: 0; width: 52px; height: 38px;
  border: 10px solid var(--or); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: transparent;
}
.noeud i:first-child { right: 2px; transform: rotate(-22deg); transform-origin: right bottom; }
.noeud i:last-child { left: 2px; transform: rotate(22deg); transform-origin: left bottom; }
.noeud b { position: absolute; left: -12px; bottom: -6px; width: 24px; height: 18px; border-radius: 8px; background: var(--or-clair); }
.scene.ouvert .couvercle { animation: saute 1s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes saute {
  0% { transform: translate(0,0) rotate(0); }
  40% { transform: translate(30px,-150px) rotate(-25deg); }
  100% { transform: translate(150px,-40px) rotate(-70deg); opacity: 0; }
}

/* Étiquette avec la roulette de prénoms */
.etiquette {
  position: absolute; left: 50%; bottom: 58px; z-index: 4;
  width: 170px; margin-left: -85px; padding: 10px 8px;
  background: var(--creme); color: var(--rouge-fonce);
  border-radius: 10px; border: 2px dashed #d7b98a;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  transform: rotate(-4deg);
  transition: opacity .3s;
}
.etiquette small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #8a6a3a; font-weight: 800; }
.etiquette .nom { display: block; font-family: var(--titre); font-weight: 700; font-size: 1.7rem; line-height: 1.2; height: 2.1rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.etiquette .nom.tic { animation: tic .09s ease-out; }
@keyframes tic { from { transform: translateY(-40%); opacity: .3; } }
.scene.ouvert .etiquette { opacity: 0; }

/* Révélation */
.revelation { opacity: 0; transform: translateY(30px) scale(.9); transition: opacity .7s .3s, transform .9s .3s cubic-bezier(.2,1.3,.4,1); pointer-events: none; }
.revelation.visible { opacity: 1; transform: none; pointer-events: auto; }
.revelation .intro { font-size: 1.2rem; color: var(--texte-doux); margin: 0 0 6px; }
.revelation .receveur {
  font-family: var(--titre); font-weight: 700;
  font-size: clamp(3.2rem, 15vw, 5.5rem); line-height: 1;
  color: var(--or-clair);
  text-shadow: 0 3px 0 var(--rouge-fonce), 0 0 40px rgba(255,227,154,.6);
  margin: 4px 0 14px;
  word-break: break-word;
}
.revelation .secret { color: var(--texte-doux); font-size: .95rem; max-width: 30ch; margin: 0 auto; }

.pied { margin-top: 26px; }

/* ---------- Admin ---------- */
.admin { align-items: stretch; justify-content: flex-start; max-width: 860px; margin: 0 auto; text-align: left; padding-top: 56px; }
.admin h1 { text-align: center; font-size: clamp(2rem, 7vw, 3rem); }
.admin .carte { max-width: none; margin-bottom: 20px; }
.admin h2 { font-size: 1.7rem; margin-bottom: 14px; }
.ligne { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ligne > select { flex: 1 1 160px; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; vertical-align: middle; }
th { color: var(--texte-doux); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
td code { font-size: 1rem; font-weight: 800; color: var(--or-clair); letter-spacing: .05em; }
.pastille { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.pastille.oui { background: rgba(79,209,139,.18); color: #7be2a8; }
.pastille.non { background: rgba(255,255,255,.08); color: var(--texte-doux); }
.receveur-admin { color: var(--or-clair); font-weight: 700; }
.flou .receveur-admin { filter: blur(7px); user-select: none; }
.aide { color: var(--texte-doux); font-size: .92rem; margin: 6px 0 14px; }
.etat { padding: 12px 16px; border-radius: 12px; background: rgba(242,193,78,.1); border: 1px solid rgba(242,193,78,.3); margin-bottom: 14px; }
.tableau-defile { overflow-x: auto; }
.liste-excl { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.liste-excl li { background: rgba(255,255,255,.08); padding: 6px 6px 6px 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.x { background: none; border: 0; color: #ffb3bd; font-size: 1.1rem; cursor: pointer; padding: 2px 8px; border-radius: 999px; }
.x:hover { background: rgba(255,179,189,.15); }
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--sapin); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s; z-index: 60;
}
#toast.visible { transform: translateX(-50%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}

/* ---------- Mode vidéo (rendu Blender) ---------- */
#mode-video { width: 100%; display: flex; justify-content: center; }
.video-cadre {
  position: relative; width: 100%; max-width: 520px; container-type: inline-size;
  border-radius: var(--rayon); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.video-cadre video { display: block; width: 100%; height: auto; }
.video-nom {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6);
  width: 90%; text-align: center; pointer-events: none;
  font-family: var(--titre); font-weight: 700; line-height: 1;
  font-size: 9cqw; color: var(--or-clair);
  text-shadow: 0 2px 0 var(--rouge-fonce), 0 0 30px rgba(255,227,154,.7);
  opacity: 0; transition: opacity .8s, transform 1s cubic-bezier(.2,1.4,.4,1);
  white-space: nowrap; overflow: hidden; padding: .15em 0;
}
.video-nom.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

td code, .pastille { white-space: nowrap; }
@media (max-width: 560px) {
  .admin .carte { padding: 20px 14px; }
  th, td { padding: 9px 5px; font-size: .9rem; }
  td code { font-size: .85rem; }
}

/* ---------- Choix du prénom ---------- */
#etape-nom { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }
.grille-noms { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; }
.nom-choix {
  font: inherit; font-weight: 800; font-size: 1.15rem; color: var(--texte); cursor: pointer;
  padding: 18px 12px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 2px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, border-color .2s, background .2s;
}
.nom-choix:hover, .nom-choix:focus-visible { transform: translateY(-3px); border-color: var(--or); background: rgba(242,193,78,.14); outline: none; }
.nom-choix span { font-size: .85rem; opacity: .7; }
.pin { text-align: center; font-size: 1.8rem; letter-spacing: .6em; padding-left: calc(16px + .6em); font-weight: 800; }
.espace { margin-top: 16px; }
#etape-code h2 { text-align: center; }
#etape-code .btn.discret { margin-top: 10px; }

/* ---------- Admin : grand jour, envies ---------- */
.grille-reglages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.grille-reglages .fin { display: flex; justify-content: flex-end; }
.grille-reglages input[type="datetime-local"] { color-scheme: dark; }
.envies-admin summary { cursor: pointer; color: var(--or-clair); font-weight: 700; white-space: nowrap; }
.envies-admin p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; min-width: 200px; max-width: 320px; font-size: .9rem; color: var(--texte); }
.btn:disabled.discret { opacity: .45; }

.btn-revoir { margin-top: 18px; font-size: 1rem; padding: 12px 24px; }

/* ---------- Bouton son ---------- */
.btn-son {
  position: fixed; top: 42px; right: 14px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
  background: rgba(5, 18, 28, .6); border: 1px solid rgba(255,255,255,.2); color: #fff;
  backdrop-filter: blur(6px); transition: transform .15s, border-color .2s;
}
.btn-son:hover { transform: scale(1.08); border-color: var(--or); }

/* ---------- Tableau de bord participant ---------- */
.bord { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 16px; margin-top: 28px; text-align: left; }
.carte.large { max-width: none; padding: 22px 20px; }
.bord h3, .carte h3 { font-family: var(--titre); font-size: 1.6rem; color: var(--or-clair); margin: 0 0 6px; line-height: 1.1; }
.bord .aide { margin-top: 0; }
.note { color: var(--texte-doux); font-size: .88rem; }
.ligne.entre { justify-content: space-between; margin-top: 12px; }
#mes-envies { min-height: 150px; font-size: 1rem; line-height: 1.5; }
#mes-envies::placeholder { color: rgba(201,214,223,.55); }
.envies-texte { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 1.05rem; background: rgba(255,248,236,.06); border-left: 3px solid var(--or); border-radius: 8px; padding: 12px 14px; }
.envies-texte.vide { color: var(--texte-doux); font-style: italic; border-left-color: rgba(255,255,255,.2); }

/* Interrupteur « cadeau acheté » */
.interrupteur { display: flex !important; align-items: center; gap: 16px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--texte); margin: 0; }
.interrupteur.cache { display: none !important; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur strong { display: block; font-size: 1.1rem; }
.interrupteur small { display: block; color: var(--texte-doux); font-weight: 400; font-size: .88rem; margin-top: 2px; }
.bascule { flex: none; position: relative; width: 58px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.15); transition: background .25s; }
.bascule::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.interrupteur input:checked + .bascule { background: #2c8a5a; }
.interrupteur input:checked + .bascule::after { transform: translateX(26px); }
.interrupteur input:focus-visible + .bascule { outline: 2px solid var(--or); outline-offset: 3px; }

/* Compte à rebours + infos */
.rebours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 14px; text-align: center; }
.rebours div { background: rgba(5,18,28,.5); border: 1px solid rgba(242,193,78,.25); border-radius: 12px; padding: 10px 4px; }
.rebours b { display: block; font-family: var(--titre); font-size: 2.1rem; color: var(--or-clair); line-height: 1; font-variant-numeric: tabular-nums; }
.rebours small { color: var(--texte-doux); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.rebours .rebours-fin { grid-column: 1 / -1; font-family: var(--titre); font-size: 1.8rem; color: var(--or-clair); margin: 0; }
.infos { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.infos li { display: flex; gap: 10px; align-items: baseline; font-size: 1.05rem; }
.infos li::first-letter { text-transform: uppercase; }

/* Progression du groupe */
.progression { text-align: center; color: var(--texte-doux); margin: 4px 0 0; display: grid; gap: 8px; justify-items: center; }
.progression .barre { display: block; width: min(260px, 80%); height: 8px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; position: relative; }
.progression .barre::after { content: ''; position: absolute; inset: 0; width: var(--p); background: linear-gradient(90deg, var(--sapin), #4fd18b); border-radius: inherit; transition: width .8s; }

/* Grande révélation */
#bloc-revelation { max-width: 560px; text-align: center; }
#bloc-revelation h2 { margin-bottom: 10px; }
.rev-duos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rev-duos li {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.2,1.4,.4,1);
}
.rev-duos li.visible { opacity: 1; transform: none; }
.rev-duos .qui { font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.rev-duos .qui:first-child { text-align: right; }
.rev-duos .qui:last-child { text-align: left; }
.rev-duos .fleche { font-size: .95rem; white-space: nowrap; }
.rev-duos li.moi { border-color: var(--or); background: rgba(242,193,78,.14); }
.rev-duos li.mien { border-color: #4fd18b; background: rgba(79,209,139,.12); }
.rev-perso { margin-top: 22px; }
.rev-perso .intro { font-size: 1.15rem; color: var(--texte-doux); margin: 0; }
.rev-perso .receveur { font-family: var(--titre); font-weight: 700; font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 1; color: var(--or-clair); text-shadow: 0 3px 0 var(--rouge-fonce), 0 0 40px rgba(255,227,154,.6); margin: 6px 0 10px; animation: apparait .9s cubic-bezier(.2,1.4,.4,1); }
.rev-perso .verdict { font-weight: 700; font-size: 1.1rem; margin: 0; }
@keyframes apparait { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 560px) {
  .btn-son { top: 40px; right: 10px; width: 42px; height: 42px; }
  .rebours b { font-size: 1.7rem; }
}

/* Accueil : compte à rebours + invitation à choisir son prénom */
.accueil-rebours { width: 100%; max-width: 460px; margin: 6px 0 26px; padding: 16px 18px 6px; text-align: center; }
.accueil-rebours h3 { margin: 0; font-size: 1.5rem; }
.invite-nom { text-align: center; margin: 0 0 22px; }
.invite-question {
  font-family: var(--titre); font-weight: 700; color: var(--or-clair);
  font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1; margin: 0 0 6px;
  text-shadow: 0 2px 0 var(--rouge-fonce), 0 0 22px rgba(242, 193, 78, .4);
}
.invite-action {
  display: inline-block; margin: 0; padding: 10px 22px; border-radius: 999px;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, rgba(200, 40, 50, .85), rgba(140, 20, 30, .85));
  border: 2px solid rgba(242, 193, 78, .55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 18px rgba(242, 193, 78, .25);
  animation: invite-pulse 2.4s ease-in-out infinite;
}
.invite-action span:first-child { display: inline-block; animation: invite-doigt 1.2s ease-in-out infinite; }
@keyframes invite-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes invite-doigt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .invite-action, .invite-action span:first-child { animation: none; } }

/* Tirage pas encore ouvert : la liste d'envies passe en premier et brille */
.bord .a-remplir { order: -1; border-color: var(--or); box-shadow: 0 0 0 2px rgba(242,193,78,.35), 0 0 26px rgba(242,193,78,.25); }
#btn-tirer:disabled { opacity: .75; cursor: not-allowed; }

/* Admin : ouverture du tirage */
.ouverture { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.manquants { color: var(--texte-doux); font-size: .92rem; margin: 6px 0 0; }
