/* Concours de déguisement — Halloween chez Adeline et Julien.
   Les couleurs viennent de la maison : la nuit, le violet et le vert des éclairages,
   le rouge de la chambre WANTED, l'orange des citrouilles et l'or des coupes. */

:root {
  --nuit: #0b0910;
  --encre: #15111b;
  --carte: rgba(16, 12, 22, 0.78);
  --carte-bord: rgba(255, 240, 220, 0.10);
  --os: #f4ecdc;
  --os-doux: #cfc4b3;
  --citrouille: #ff7a1a;
  --or: #f0c35a;
  --or-fonce: #b8862b;
  --violet: #a35bff;
  --vert: #43f59a;
  --sang: #d4202f;
  --argent: #d9dde3;
  --bronze: #d08a4e;
  --r: 20px;
  --titre: "Cinzel", Georgia, serif;
  --texte: "Outfit", system-ui, sans-serif;
  --western: "Rye", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--nuit);
  color: var(--os);
  font-family: var(--texte);
  font-size: 18px;
  line-height: 1.35;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Le décor : photo de la maison, brume, grain ---------- */
.decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.decor-img {
  position: absolute; inset: -30px;
  background: #0b0910 center / cover no-repeat;
  opacity: 0; transition: opacity 1.1s ease;
  animation: zoom-lent 38s ease-in-out infinite alternate;
}
.decor-img.visible { opacity: 1; }
@keyframes zoom-lent { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-1.5%); } }
.decor::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 20%, transparent 0%, rgba(11, 9, 16, 0.32) 55%, rgba(11, 9, 16, 0.88) 100%),
    linear-gradient(180deg, rgba(11, 9, 16, 0.15), rgba(11, 9, 16, 0.7));
}
.decor-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: transparent; opacity: 0.92;
}
.brume {
  position: absolute; width: 140vmax; height: 60vmax; left: -20vmax;
  background: radial-gradient(closest-side, rgba(200, 180, 255, 0.10), transparent 70%);
  filter: blur(10px); z-index: 1;
}
.brume.b1 { bottom: -20vmax; animation: brume 26s ease-in-out infinite alternate; }
.brume.b2 { bottom: -28vmax; animation: brume 34s ease-in-out infinite alternate-reverse; opacity: 0.7; }
@keyframes brume { from { transform: translateX(-12vmax); } to { transform: translateX(12vmax); } }
.grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-scene="salle"] { --fond: url("../assets/fond-salle-flou.jpg"); }
body[data-scene="violet"] { --fond: url("../assets/fond-violet-flou.jpg"); }
body[data-scene="vert"] { --fond: url("../assets/fond-vert-flou.jpg"); }
body[data-scene="crane"] { --fond: url("../assets/fond-crane-flou.jpg"); }
body[data-scene="wanted"] { --fond: url("../assets/fond-wanted-flou.jpg"); }
body[data-scene="jardin"] { --fond: url("../assets/fond-jardin-flou.jpg"); }
body[data-scene="bleu"] { --fond: url("../assets/fond-bleu-flou.jpg"); }
body[data-scene="squelette"] { --fond: url("../assets/fond-squelette-flou.jpg"); }

/* ---------- Mise en page ---------- */
#app {
  position: relative; z-index: 3;
  max-width: 520px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(110px + env(safe-area-inset-bottom));
  min-height: 100dvh;
}
.entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.soiree {
  font-family: var(--titre); font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--or); opacity: 0.9;
}
.puce {
  font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--carte-bord); color: var(--os-doux);
}
.carte {
  background: var(--carte); border: 1px solid var(--carte-bord); border-radius: var(--r);
  padding: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.carte + .carte { margin-top: 14px; }
.titre {
  font-family: var(--titre); font-weight: 900; line-height: 1.05; margin: 6px 0 10px;
  font-size: clamp(30px, 9vw, 44px);
  background: linear-gradient(180deg, #fff3cf 0%, var(--or) 45%, var(--or-fonce) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(240, 195, 90, 0.35));
}
.sous-titre { font-family: var(--titre); font-weight: 700; font-size: 22px; margin: 4px 0 8px; color: var(--os); }
.texte-doux { color: var(--os-doux); }
.petit { font-size: 15px; }
.centre { text-align: center; }
.espace { height: 14px; }

/* ---------- Boutons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 60px; padding: 14px 20px; border-radius: 16px; border: 0;
  font-weight: 800; font-size: 19px; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ff9a45, var(--citrouille) 55%, #d85a06);
  color: #1d0d02; box-shadow: 0 8px 24px rgba(255, 122, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, filter 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { filter: grayscale(0.8) brightness(0.6); }
.btn.second { background: rgba(255, 255, 255, 0.06); color: var(--os); border: 1.5px solid rgba(244, 236, 220, 0.35); box-shadow: none; }
.btn.or { background: linear-gradient(180deg, #ffe6a3, var(--or) 50%, var(--or-fonce)); color: #2a1a02; box-shadow: 0 8px 28px rgba(240, 195, 90, 0.4); }
.btn.vert { background: linear-gradient(180deg, #8dffc4, var(--vert) 55%, #16b46a); color: #022615; box-shadow: 0 8px 24px rgba(67, 245, 154, 0.3); }
.btn.danger { background: rgba(212, 32, 47, 0.15); color: #ffb3b9; border: 1.5px solid rgba(212, 32, 47, 0.5); box-shadow: none; }
.btn + .btn { margin-top: 10px; }
.lien { background: none; border: 0; color: var(--os-doux); text-decoration: underline; text-underline-offset: 4px; padding: 12px; font-size: 16px; }

/* ---------- Choix du prénom ---------- */
.noms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nom {
  min-height: 64px; border-radius: 16px; border: 1.5px solid rgba(244, 236, 220, 0.18);
  background: rgba(255, 255, 255, 0.05); font-weight: 700; font-size: 19px; padding: 10px;
}
.nom:active { transform: scale(0.97); }
.nom.pris { opacity: 0.35; text-decoration: line-through; }

/* ---------- Formulaires ---------- */
label.champ { display: block; margin: 14px 0 6px; font-weight: 600; color: var(--os-doux); font-size: 16px; }
input.saisie, textarea.saisie {
  width: 100%; font: inherit; font-size: 19px; color: var(--os);
  background: rgba(0, 0, 0, 0.35); border: 1.5px solid rgba(244, 236, 220, 0.22);
  border-radius: 14px; padding: 14px; outline: none;
}
input.saisie:focus, textarea.saisie:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(240, 195, 90, 0.2); }
textarea.saisie { min-height: 90px; resize: vertical; }

/* ---------- Fiche du candidat ---------- */
.fiche { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.fiche.grande { grid-template-columns: 1fr; text-align: center; }
.photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px;
  background: #221a2b center / cover; border: 1px solid rgba(240, 195, 90, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.5);
}
.fiche.grande .photo { max-width: 300px; margin: 0 auto; }
.photo.vide { display: grid; place-items: center; color: var(--os-doux); font-size: 14px; text-align: center; padding: 10px; }
.prenom { font-family: var(--titre); font-weight: 900; font-size: 30px; line-height: 1.05; }
.personnage { font-style: italic; color: var(--or); font-size: 19px; margin-top: 4px; }
.faitmain { margin-top: 8px; font-size: 15px; color: var(--os-doux); }
.faitmain b { color: var(--os); font-weight: 600; }
.mini { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #221a2b center / cover; flex: none; border: 1px solid rgba(240, 195, 90, 0.3); }

/* ---------- Vote ---------- */
.vote-entete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vote-entete .mini { width: 56px; height: 56px; }
.vote-qui { font-weight: 800; font-size: 20px; line-height: 1.1; }
.vote-qui span { display: block; font-weight: 400; font-style: italic; color: var(--or); font-size: 15px; }
.etapes { display: flex; gap: 6px; margin-left: auto; }
.etapes i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.etapes i.fait { background: var(--or); }
.etapes i.ici { background: var(--citrouille); box-shadow: 0 0 10px var(--citrouille); }
.crit-nom {
  font-family: var(--titre); font-weight: 900; font-size: 34px; margin: 0;
  color: var(--crit, var(--or)); text-shadow: 0 0 24px color-mix(in srgb, var(--crit, var(--or)) 55%, transparent);
}
.crit-question { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.crit-aide { font-size: 14px; color: var(--os-doux); margin-bottom: 12px; }
.crit-show { --crit: #c58cff; }
.crit-creativite { --crit: #6dffb6; }
.crit-frissons { --crit: #ff5a5a; }
.crit-allure { --crit: #ffd27a; }

.barres { display: flex; flex-direction: column; gap: 8px; }
.barre {
  position: relative; display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 10px;
  min-height: 60px; padding: 8px 12px 8px 8px; border-radius: 16px; text-align: left;
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 26%, rgba(10, 8, 14, 0.85)), rgba(10, 8, 14, 0.78));
  transition: transform 0.12s ease, box-shadow 0.25s, background 0.25s;
}
.barre .num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titre); font-weight: 900; font-size: 24px; color: #160d04;
  background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--c);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent);
}
.barre .lib { font-size: 16.5px; font-weight: 600; line-height: 1.2; }
.barre:active { transform: scale(0.98); }
.barre.choisi {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000), color-mix(in srgb, var(--c) 35%, #000));
  box-shadow: 0 0 0 2px var(--c), 0 0 26px color-mix(in srgb, var(--c) 70%, transparent);
  transform: scale(1.02);
}
.n5 { --c: #f0c35a; } .n4 { --c: #ff8a2a; } .n3 { --c: #ff6f61; }
.n2 { --c: #b46cff; } .n1 { --c: #7b5cd6; } .n0 { --c: #d4202f; }
.groupe-titre { font-weight: 800; font-size: 17px; margin: 14px 0 8px; color: var(--crit); letter-spacing: 0.02em; }
.groupe-titre small { font-weight: 400; color: var(--os-doux); }
.barre.compacte { min-height: 54px; }
.barre .lib small { display: block; font-weight: 400; font-size: 14px; color: var(--os-doux); margin-top: 2px; }
.total-crea { text-align: center; margin-top: 12px; font-family: var(--titre); font-size: 22px; color: var(--crit); }
.pasvu { display: block; margin: 10px auto 0; }
.resume { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 18px; margin: 10px 0 16px; }
.resume b { font-family: var(--titre); color: var(--or); }

/* ---------- Bandeau « en piste » ---------- */
.bandeau {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.25), rgba(163, 91, 255, 0.2));
  border: 1px solid rgba(255, 122, 26, 0.5); font-weight: 700; width: 100%; text-align: left;
}
.bandeau .mini { width: 38px; height: 38px; }
.passes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.passe { position: relative; flex: none; border: 0; background: none; padding: 0; }
.passe .mini { width: 52px; height: 52px; }
.passe.fait::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23022615' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 2px solid var(--nuit);
}
.passe.ici .mini { box-shadow: 0 0 0 3px var(--citrouille); }

/* ---------- Podiums ---------- */
.podium-liste { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ligne {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; width: 100%; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid transparent;
}
.ligne .rg {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--titre); font-weight: 900; font-size: 15px; background: rgba(255, 255, 255, 0.1); color: var(--os-doux);
}
.ligne.r1 .rg { background: linear-gradient(180deg, #ffe7a6, var(--or)); color: #2a1a02; }
.ligne.r2 .rg { background: linear-gradient(180deg, #fff, var(--argent)); color: #1b1d21; }
.ligne.r3 .rg { background: linear-gradient(180deg, #f2b98a, var(--bronze)); color: #2a1404; }
.ligne.hors { opacity: 0.5; }
.ligne.sel { border-color: var(--citrouille); box-shadow: 0 0 16px rgba(255, 122, 26, 0.45); }
.ligne .qui { font-weight: 700; flex: 1; }
.ligne .qui small { display: block; font-weight: 400; font-style: italic; color: var(--os-doux); font-size: 14px; }
.ligne .pts { font-family: var(--titre); font-weight: 900; color: var(--or); }
.separateur { font-size: 13px; color: var(--os-doux); text-transform: uppercase; letter-spacing: 0.12em; margin: 8px 0 2px 4px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  max-width: 480px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  background: rgba(20, 14, 26, 0.95); border: 1px solid rgba(240, 195, 90, 0.5); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  font-weight: 700; animation: toast-in 0.35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.toast.sortie { animation: toast-out 0.3s ease both; }
.toast .mini { width: 40px; height: 40px; }
.toast .coupe-ico { width: 34px; height: 34px; flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(0.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(20px); } }

/* ---------- Fenêtre « lequel tu préfères ? » ---------- */
.voile { position: fixed; inset: 0; z-index: 60; background: rgba(5, 3, 8, 0.82); display: grid; place-items: center; padding: 16px; animation: fondu 0.25s both; }
@keyframes fondu { from { opacity: 0; } }
.duel { width: 100%; max-width: 480px; }
.duel-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.duel-choix button { border: 2px solid rgba(240, 195, 90, 0.4); background: rgba(255, 255, 255, 0.05); border-radius: 18px; padding: 10px; }
.duel-choix button:active { transform: scale(0.97); border-color: var(--or); }
.duel-choix .photo { border-radius: 12px; margin-bottom: 8px; }
.duel-choix b { font-size: 18px; }

/* ---------- Tirage au sort ---------- */
.tirage { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tirage .ligne { animation: tombe 0.55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes tombe { from { opacity: 0; transform: translateY(-40px) rotate(-3deg); } }
.roulette { width: 180px; margin: 10px auto; }

/* ---------- Révélation ---------- */
.scene-rev { min-height: 70dvh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.grand {
  font-family: var(--titre); font-weight: 900; font-size: clamp(36px, 11vw, 64px); line-height: 1.02; margin: 0;
  background: linear-gradient(180deg, #fff3cf, var(--or) 50%, var(--or-fonce));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(240, 195, 90, 0.4));
}
.apparait { animation: apparait 0.9s cubic-bezier(.2, 1.2, .3, 1) both; }
.apparait.d1 { animation-delay: 0.5s; } .apparait.d2 { animation-delay: 1.1s; } .apparait.d3 { animation-delay: 1.8s; }
@keyframes apparait { from { opacity: 0; transform: translateY(26px) scale(0.92); filter: blur(6px); } }
.vacille { animation: vacille 2.4s infinite; }
@keyframes vacille { 0%, 100% { opacity: 1; } 42% { opacity: 1; } 44% { opacity: 0.3; } 46% { opacity: 1; } 78% { opacity: 0.85; } }
.tremble { animation: tremble 0.5s infinite; }
@keyframes tremble { 0%, 100% { transform: translate(0); } 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }

/* Avis de recherche, comme ceux de la maison */
.wanted {
  position: relative; margin: 8px auto; width: min(340px, 92%); padding: 18px 18px 22px; color: #3a2210;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(80% 60% at 80% 90%, rgba(120, 70, 20, 0.35), transparent 70%),
    linear-gradient(180deg, #ecd9ac, #d9bd84);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(110, 60, 15, 0.45);
  transform: rotate(-2deg); animation: punaise 0.9s cubic-bezier(.2, 1.4, .4, 1) both;
}
.wanted.sympa { transform: rotate(2deg); }
@keyframes punaise { from { opacity: 0; transform: scale(1.6) rotate(8deg); } }
.wanted::before { content: ""; position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8080, #8b0000); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.wanted h2 { font-family: var(--western); font-weight: 400; font-size: 54px; margin: 6px 0 0; letter-spacing: 0.04em; line-height: 1; }
.wanted .sous { font-family: var(--western); font-size: 17px; letter-spacing: 0.08em; margin-bottom: 10px; }
.wanted .photo { filter: sepia(0.75) contrast(1.1) brightness(0.95); border: 3px solid #3a2210; box-shadow: none; border-radius: 4px; max-width: 220px; margin: 0 auto; }
.wanted .nom-w { font-family: var(--western); font-size: 34px; margin-top: 10px; line-height: 1; }
.wanted .crime { font-size: 16px; margin-top: 8px; font-weight: 600; }
.wanted .citation { font-style: italic; margin-top: 6px; font-size: 16px; }
.wanted .prime { font-family: var(--western); font-size: 19px; margin-top: 10px; border-top: 2px solid rgba(58, 34, 16, 0.5); padding-top: 8px; }

/* Podium final avec les vraies coupes */
.coupes { position: relative; border-radius: 22px; overflow: hidden; margin: 6px auto 0; width: min(380px, 100%); aspect-ratio: 9 / 13; background: url("../assets/coupes.jpg") center 30% / cover; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
.coupes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 16, 0.1), rgba(11, 9, 16, 0.85) 80%); }
.coupes .gagnant { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; text-align: center; }
.coupes .photo { width: 58%; margin: 0 auto 10px; border: 3px solid var(--or); box-shadow: 0 0 40px rgba(240, 195, 90, 0.6); }
.coupe-num { font-family: var(--titre); font-weight: 900; font-size: 20px; color: var(--or); letter-spacing: 0.1em; text-transform: uppercase; }
.points-gros { font-family: var(--titre); font-weight: 900; font-size: 26px; color: var(--os); }

/* Confettis et chauves-souris */
.confetti { position: fixed; top: -20px; z-index: 70; width: 10px; height: 16px; border-radius: 2px; pointer-events: none; animation: tombe-confetti linear forwards; }
@keyframes tombe-confetti { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); } }
.chauve { position: fixed; z-index: 70; width: 28px; height: 16px; pointer-events: none; animation: envol 0.9s ease-out forwards; }
@keyframes envol { from { opacity: 1; transform: translate(0, 0) scale(0.6); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); } }

/* ---------- Résultats ---------- */
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.onglet { flex: 1 1 60px; min-width: 0; min-height: 48px; border-radius: 12px; border: 1.5px solid rgba(244, 236, 220, 0.2); background: rgba(255, 255, 255, 0.04); font-weight: 700; font-size: 15px; padding: 6px; }
.onglet.actif { background: rgba(240, 195, 90, 0.18); border-color: var(--or); color: var(--or); }
.note-ligne { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); margin-bottom: 8px; }
.note-ligne .num { width: 38px; height: 38px; font-size: 19px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--titre); font-weight: 900; color: #160d04; background: var(--c); }
.note-ligne .qui { font-weight: 700; }
.note-ligne .ph { font-style: italic; color: var(--os-doux); font-size: 15px; margin-top: 2px; }
.badge-hc { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(163, 91, 255, 0.25); color: #d8b8ff; margin-left: 6px; font-style: normal; }
.coupe-ico { width: 26px; height: 26px; flex: none; }

/* ---------- Console d'Adeline ---------- */
.console .bloc-etat { display: flex; gap: 10px; align-items: center; }
.grosse-fiche .prenom { font-size: 40px; }
.grosse-fiche .personnage { font-size: 24px; }
.morceau { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(67, 245, 154, 0.1); border: 1px solid rgba(67, 245, 154, 0.35); font-weight: 700; }
.morceau small { display: block; font-weight: 400; color: var(--os-doux); font-size: 13px; }
.compteur { font-family: var(--titre); font-weight: 900; font-size: 30px; color: var(--or); }
.qui-manque { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qui-manque span { font-size: 14px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.qui-manque span.ok { background: rgba(67, 245, 154, 0.18); color: #b9ffd9; }
.invite-ligne { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.invite-ligne .mini { width: 56px; height: 56px; }
.invite-ligne .actions { display: flex; gap: 6px; }
.btn-mini { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid rgba(244, 236, 220, 0.25); background: rgba(255, 255, 255, 0.06); font-weight: 700; font-size: 15px; }
.btn-mini.or { border-color: var(--or); color: var(--or); }
.apercu-etape { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(163, 91, 255, 0.12); border: 1px dashed rgba(163, 91, 255, 0.5); font-size: 15px; }
.case { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 17px; }
.case input { width: 24px; height: 24px; accent-color: var(--citrouille); }

/* ---------- Écran télé ---------- */
.tele #app { max-width: 1280px; padding: 40px; }
.tele .grand { font-size: clamp(60px, 8vw, 120px); }
.tele .wanted { width: 460px; }
.tele .coupes { width: 520px; }
.qr { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; }

/* ---------- Frayeurs ---------- */
.frayeur { position: fixed; inset: 0; z-index: 95; pointer-events: auto; background: #000 center / cover no-repeat; }
.frayeur.rouge { background-color: #b3000e; background-image: none; }
.frayeur.blanc { background-color: #ffffff; background-image: none; }
.frayeur.jaune { background-color: #ffd21f; background-image: none; }
.flashs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flashs .btn { margin: 0; min-height: 56px; }
.btn.f-rouge { background: #b3000e; color: #fff; }
.btn.f-blanc { background: #f4f4f4; color: #111; }
.btn.f-jaune { background: #ffd21f; color: #2a1a02; }
.btn.f-eclair { background: linear-gradient(90deg, #ffffff, #ffd21f); color: #111; }
.frayeur.monstre { animation: secousse 0.17s steps(3) infinite; filter: contrast(1.25) saturate(1.3); }
.frayeur.fin { opacity: 0; transition: opacity 0.3s ease; }
@keyframes secousse {
  0% { transform: scale(1.12) translate(0, 0); }
  33% { transform: scale(1.2) translate(-9px, 7px); }
  66% { transform: scale(1.15) translate(8px, -6px); }
  100% { transform: scale(1.22) translate(0, 0); }
}
.grille-monstres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.grille-monstres button { padding: 0; border: 2px solid rgba(212, 32, 47, 0.5); border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.grille-monstres img { width: 100%; height: 100%; object-fit: cover; }
.btn.peur { background: linear-gradient(180deg, #ff4a4a, #d4202f 55%, #8b0010); color: #fff; box-shadow: 0 8px 28px rgba(212, 32, 47, 0.45); text-transform: uppercase; letter-spacing: 0.04em; }
.rythmes { display: flex; gap: 6px; flex-wrap: wrap; }
.rythmes .btn-mini { flex: 1 1 70px; }
.rythmes .btn-mini.actif { border-color: var(--sang); background: rgba(212, 32, 47, 0.25); color: #ffd0d4; }
.commentaire-cite { font-style: italic; color: var(--os); font-size: 15px; margin-top: 6px; }
.commentaire-cite b { font-style: normal; color: var(--or); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
