/* ---------- Effets de peur (effets.md) ---------- */

/* Camille ecrit par-dessus le jeu */
.camille-dit { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 0 28px; background: radial-gradient(ellipse at 50% 45%, rgba(5, 8, 7, .55), rgba(0, 0, 0, .88)); pointer-events: none; animation: fadeIn .6s both; }
.camille-texte { margin: 0; font-family: var(--police-main); font-size: clamp(28px, 8vw, 36px); line-height: 1.2; text-align: center; color: var(--acc); text-shadow: 0 0 18px rgba(143, 240, 184, .45); text-wrap: balance; }

/* 7. Complice : ecran coupe */
.coupure { position: absolute; inset: 0; z-index: 20; background: #000; }

/* 6. Telephone pose : l'ecran s'assombrit lentement */
.voile-pose { position: absolute; inset: 0; z-index: 8; background: #000; pointer-events: none; animation: voilePose 7s ease-in both; }
@keyframes voilePose { from { opacity: 0; } to { opacity: .82; } }

/* 6. Visage colle a l'ecran, une fraction de seconde */
.visage-colle { position: absolute; inset: 0; z-index: 21; display: grid; place-items: center; background: #000; pointer-events: none; }
.visage-colle svg { width: 118%; height: auto; filter: blur(1.2px) contrast(1.3); animation: visageColle .35s ease-out both; }
@keyframes visageColle { from { transform: scale(1.25); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: .95; } }

/* Panneau du maitre du jeu : appareils rattaches */
.maitre-appareils { margin-bottom: 10px; }
.maitre-appareil { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: rgba(232, 220, 192, .75); overflow-wrap: anywhere; }
.maitre-appareil a { color: var(--acc); }
.maitre-appareil .temoin { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: rgba(232, 220, 192, .2); vertical-align: middle; }
.maitre-appareil.present .temoin { background: var(--acc); box-shadow: 0 0 8px var(--acc); }

/* ---------- Appareils rattaches (?role=...) ---------- */
.appareil { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: #000; color: #e8dcc0; font-family: var(--police-systeme); }
.appareil-erreur { max-width: 32ch; text-align: center; line-height: 1.5; opacity: .8; }
.armer { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 28px 24px; border: 1px solid rgba(143, 240, 184, .25); border-radius: 18px; background: transparent; color: rgba(232, 220, 192, .7); font: inherit; cursor: pointer; }
.armer strong { font-family: var(--police-main); font-size: 34px; font-weight: 500; color: var(--acc); }
.hante-temoin { position: fixed; bottom: calc(10px + var(--safe-b, 0px)); left: 0; right: 0; margin: 0; text-align: center; font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .08); }
.complice-etat { margin: 0; font-family: var(--police-systeme); font-size: clamp(64px, 28vw, 160px); font-weight: 700; letter-spacing: .04em; color: rgba(232, 220, 192, .18); }
.complice-etat.vasy { color: var(--acc); text-shadow: 0 0 40px rgba(143, 240, 184, .7); animation: heartbeat .7s infinite; }
.appareil-maitre { place-items: start stretch; align-content: start; overflow-y: auto; }
.appareil-maitre h2 { margin: 18px 0 10px; font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 220, 192, .6); }
.maitre-distant-titre { margin: 0; font-family: var(--police-main); font-size: 30px; color: var(--acc); }
.maitre-presence { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: rgba(232, 220, 192, .45); }
.maitre-presence li::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: rgba(232, 220, 192, .2); vertical-align: middle; }
.maitre-presence li.present { color: #e8dcc0; }
.maitre-presence li.present::before { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.maitre-boutons button.envoye { background: rgba(143, 240, 184, .18); }

/* 3. « 1, 2, 3, Camille » */
.immobile { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 28px; background: rgba(0, 0, 0, .92); animation: fadeIn .5s both; touch-action: none; }
.immobile-texte { margin: 0; font-family: var(--police-main); font-size: clamp(28px, 8vw, 36px); line-height: 1.2; text-align: center; color: var(--acc); text-wrap: balance; }
.immobile-compte { min-height: 1em; margin: 0; font-family: var(--police-main); font-size: 96px; line-height: 1; color: rgba(232, 220, 192, .85); font-variant-numeric: tabular-nums; }
.immobile-point { width: 96px; height: 96px; border-radius: 50%; border: 2px solid rgba(143, 240, 184, .6); box-shadow: 0 0 24px rgba(143, 240, 184, .35), inset 0 0 18px rgba(143, 240, 184, .2); visibility: hidden; animation: heartbeat 1.6s infinite; }
.immobile-point.visible { visibility: visible; }
.immobile-essais { min-height: 1.2em; margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(232, 220, 192, .35); }
.immobile.colere { background: radial-gradient(ellipse, rgba(90, 0, 0, .55), rgba(0, 0, 0, .95)); animation: tremble .12s 6; }
.immobile.colere .immobile-texte { color: #ff8a80; }
.immobile.reussi .immobile-texte { color: #e8dcc0; }

/* 4. Photo souvenir hantee */
.souvenir-compte { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; margin: 0; font-family: var(--police-main); font-size: 140px; color: rgba(255, 255, 255, .9); text-shadow: 0 0 30px rgba(0, 0, 0, .8); pointer-events: none; }
.souvenir-tirage { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: contain; background: #e9dfc6; animation: fadeIn 1.2s both; }
.souvenir-tirage[hidden] { display: none; }
.souvenir-actions .btn-souvenir { padding: 0 22px; }
.souvenir-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }

/* 5. Dessin d'enfant */
.fin-actions { display: flex; flex-direction: column; gap: 10px; }
.fin-actions .btn-souvenir { padding: 0 22px; }
.dessin { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(24px + var(--safe-t)) 18px calc(18px + var(--safe-b)); background: #030404; animation: fadeIn .8s both; }
.dessin-image { flex: 1; min-height: 0; max-width: 100%; object-fit: contain; transform: rotate(1.5deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .8); }
