/* Alerte! Coupable parmi nous! — signature « dossier d'enquête » : nuit bleu encre, ruban de police jaune,
   fil rouge d'indice, papier kraft, machine à écrire. */
:root {
  --nuit: #0E1320; --nuit-2: #151C2E; --nuit-3: #1E2740; --encre: #F4ECDD; --gris: #A9B0C2;
  --ruban: #FFD400; --rouge: #E0312B; --rouge-f: #B4211C; --papier: #EFE4CC; --papier-2: #E2D3B2; --kraft: #C8A878; --brun: #2B1E12;
  --r: 14px; --ombre: 0 18px 50px rgba(0,0,0,.45);
  --t-titre: "Anton", "Impact", sans-serif; --t-corps: "Figtree", system-ui, sans-serif; --t-dossier: "Special Elite", "Courier New", monospace; --t-main: "Caveat", cursive;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--encre); font: 400 17px/1.6 var(--t-corps); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--ruban); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ruban); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--t-titre); font-weight: 400; line-height: 1.02; letter-spacing: .01em; margin: 0 0 .4em; text-transform: uppercase; }
.dossier { font-family: var(--t-dossier); letter-spacing: .02em; }
.enveloppe { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Boutons */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.4em; border: 0; border-radius: 999px; font-weight: 800; text-decoration: none; letter-spacing: .02em; transition: transform .18s, box-shadow .18s, background .18s; min-height: 48px; }
.bt-ruban { background: var(--ruban); color: #14110A; box-shadow: 0 6px 0 #B89600, 0 14px 30px rgba(255,212,0,.25); }
.bt-ruban:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #B89600, 0 18px 36px rgba(255,212,0,.32); }
.bt-ruban:active { transform: translateY(4px); box-shadow: 0 2px 0 #B89600; }
.bt-rouge { background: var(--rouge); color: #fff; box-shadow: 0 6px 0 var(--rouge-f); }
.bt-rouge:hover { transform: translateY(-2px); }
.bt-ligne { background: transparent; color: var(--encre); border: 2px solid rgba(244,236,221,.35); }
.bt-ligne:hover { border-color: var(--ruban); color: var(--ruban); }
.bt-petit { padding: .55em 1em; min-height: 40px; font-size: .92em; }

/* Ruban de police */
.ruban { background: repeating-linear-gradient(-45deg, var(--ruban) 0 26px, #14110A 26px 34px); height: 10px; }
.bande { position: relative; background: var(--ruban); color: #14110A; font: 400 clamp(18px, 2.4vw, 26px)/1 var(--t-titre); text-transform: uppercase; white-space: nowrap; overflow: hidden; padding: .55em 0; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.bande::before, .bande::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, #14110A 0 18px, transparent 18px 30px); }
.bande::before { top: 4px; } .bande::after { bottom: 4px; }
.bande-fil { display: inline-flex; gap: 1.2em; animation: defile 28s linear infinite; }
.bande-fil span::after { content: "✕"; margin-left: 1.2em; font-size: .7em; vertical-align: .15em; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Pastille / tampon */
.tampon { display: inline-block; font: 400 .82rem/1 var(--t-dossier); text-transform: uppercase; letter-spacing: .12em; color: var(--rouge); border: 2px solid currentColor; padding: .45em .7em .35em; border-radius: 4px; transform: rotate(-4deg); }
.etiquette { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--t-corps); text-transform: uppercase; letter-spacing: .14em; color: var(--ruban); }
.etiquette::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 4px rgba(224,49,43,.25); animation: gyro 1.6s infinite; }
@keyframes gyro { 50% { box-shadow: 0 0 0 9px rgba(224,49,43,0); background: #FF6A5A; } }

/* Papier */
.papier { background: var(--papier); color: var(--brun); border-radius: 4px; box-shadow: var(--ombre); position: relative; background-image: radial-gradient(rgba(120,90,40,.12) 1px, transparent 1px); background-size: 7px 7px; }
.trombone { position: absolute; top: -14px; left: 22px; width: 22px; height: 52px; border: 3px solid #9AA3B2; border-radius: 12px; transform: rotate(8deg); }

/* ======================= Épreuves ======================= */
.ep { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 14px; background: rgba(5,7,14,.82); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; overflow-y: auto; }
.ep.vu { opacity: 1; } .ep.sort { opacity: 0; }
.ep-cadre { width: min(720px, 100%); max-height: calc(100dvh - 28px); overflow-y: auto; background: var(--nuit-2); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; box-shadow: var(--ombre); padding: 20px clamp(16px, 4vw, 30px) 28px; transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ep.vu .ep-cadre { transform: none; }
.ep-tete { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; margin-bottom: 8px; }
.ep-tete h2 { grid-column: 1; font-size: clamp(28px, 5vw, 42px); margin: 0; }
.ep-type { grid-column: 1; display: inline-flex; gap: .45em; align-items: center; font: 700 .75rem/1 var(--t-corps); text-transform: uppercase; letter-spacing: .14em; color: var(--ruban); }
.ep-type svg, .ep-icone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ep-x { grid-column: 2; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nuit-3); font-size: 18px; }
.ep-intro { color: var(--gris); margin: .2em 0 1em; }
.ep-btn { background: var(--ruban); color: #14110A; border: 0; border-radius: 999px; padding: .8em 1.4em; font-weight: 800; min-height: 46px; box-shadow: 0 5px 0 #B89600; }
.ep-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #B89600; }
.ep-btn:disabled { opacity: .5; }
.ep-lien { background: none; border: 0; color: var(--ruban); text-decoration: underline; padding: .6em 0; }
.ep-msg { min-height: 1.4em; color: var(--ruban); margin: .5em 0 0; font-weight: 700; }
.ep-q { font-size: 1.1rem; } .ep-q.grand { font: 400 clamp(20px, 3.2vw, 28px)/1.3 var(--t-dossier); }
.ep-mj { margin-top: 1em; padding: .8em 1em; border-left: 4px solid var(--rouge); background: rgba(224,49,43,.08); font-size: .92rem; color: var(--gris); }
.ep-aide { background: none; border: 1px dashed rgba(255,255,255,.3); border-radius: 999px; padding: .4em .9em; margin-top: .6em; color: var(--gris); }
.ep-aide-t { color: var(--ruban); font-style: italic; }
.ep-apres { margin-top: 18px; padding: 18px 18px 8px; border-radius: 12px; background: var(--papier); color: var(--brun); position: relative; animation: tombe .45s cubic-bezier(.2,.9,.3,1.3); }
.ep-apres blockquote { margin: 0 0 .8em; font-style: italic; }
.ep-tampon { position: absolute; top: -14px; right: 14px; background: var(--rouge); color: #fff; font: 400 .9rem/1 var(--t-titre); text-transform: uppercase; padding: .5em .8em; transform: rotate(3deg); letter-spacing: .06em; }
@keyframes tombe { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } }
.ep-ok { font: 400 1.6rem/1 var(--t-titre); color: #5BD38A; text-transform: uppercase; padding: .4em 0; }
.ep-rep label { display: grid; gap: 6px; font-weight: 700; }
.ep-rep input { font: inherit; font-size: 1.15rem; padding: .8em 1em; border-radius: 12px; border: 2px solid rgba(255,255,255,.15); background: var(--nuit); color: var(--encre); min-height: 50px; }
.ep-rep input:focus { border-color: var(--ruban); outline: 0; }
.ep-rep .ep-btn { margin-top: 10px; }
.non { animation: non .35s; }
@keyframes non { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* Téléphone (textos) */
.tel { max-width: 380px; margin: 0 auto; background: #05070C; border-radius: 34px; padding: 14px 12px 16px; border: 3px solid #2A3248; box-shadow: inset 0 0 0 2px #000; }
.tel-tete { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid #1B2133; }
.tel-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--rouge); font-weight: 800; }
.tel-fil { height: min(52vh, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 4px; }
.bulle { max-width: 80%; padding: .55em .85em; border-radius: 18px; font-size: .98rem; line-height: 1.35; animation: tombe .25s; }
.bulle small { display: block; font-size: .7em; opacity: .6; margin-top: 2px; text-align: right; }
.bulle.eux { background: #262D40; align-self: flex-start; border-bottom-left-radius: 5px; }
.bulle.moi { background: #2F7BF6; align-self: flex-end; border-bottom-right-radius: 5px; }
.bulle.frappe { display: flex; gap: 4px; padding: .8em .9em; }
.bulle.frappe i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: frappe 1s infinite; }
.bulle.frappe i:nth-child(2) { animation-delay: .15s; } .bulle.frappe i:nth-child(3) { animation-delay: .3s; }
@keyframes frappe { 30% { opacity: 1; transform: translateY(-3px); } }
.tel-suite { width: 100%; margin-top: 6px; }

/* Vocal */
.vocal { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--nuit); border-radius: 18px; padding: 16px; }
.vocal-de { grid-column: 1 / -1; font-weight: 800; }
.vocal-play { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ruban); color: #14110A; font-size: 22px; }
.vocal-onde { display: flex; align-items: center; gap: 3px; height: 54px; }
.vocal-onde i { flex: 1; height: var(--h); background: var(--gris); border-radius: 3px; opacity: .5; }
.vocal.joue .vocal-onde i { background: var(--ruban); opacity: 1; animation: onde .7s ease-in-out infinite alternate; }
.vocal.joue .vocal-onde i:nth-child(3n) { animation-delay: .2s; } .vocal.joue .vocal-onde i:nth-child(3n+1) { animation-delay: .4s; }
@keyframes onde { to { transform: scaleY(.35); } }
.vocal-tr { grid-column: 1 / -1; justify-self: start; }
.vocal-texte { grid-column: 1 / -1; margin: 0; padding: .8em 1em; border-left: 3px solid var(--ruban); color: var(--gris); font-style: italic; }

/* Cellulaire (clavier) */
.cell { max-width: 320px; margin: 0 auto; text-align: center; }
.cell-num { display: block; min-height: 1.6em; font: 400 2rem/1.4 var(--t-titre); letter-spacing: .06em; }
.cell-clavier { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0; }
.cell-clavier button { aspect-ratio: 1; max-width: 78px; width: 100%; justify-self: center; border-radius: 50%; border: 0; background: var(--nuit-3); font: 700 1.5rem/1 var(--t-corps); }
.cell-clavier button:active { background: var(--ruban); color: #000; }
.cell-act { display: flex; justify-content: center; gap: 22px; align-items: center; }
.cell-app { width: 70px; height: 70px; border-radius: 50%; border: 0; background: #27B65E; color: #fff; display: grid; place-items: center; }
.cell-app svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.cell-eff { background: none; border: 0; font-size: 1.5rem; width: 54px; height: 54px; }
.cell.appel .cell-app { animation: gyro 1.2s infinite; background: var(--rouge); }

/* Lampe de poche */
.lampe { position: relative; border-radius: 14px; overflow: hidden; background: #000; touch-action: none; }
.lampe canvas { display: block; width: 100%; cursor: none; }
.lampe-aide { color: var(--gris); font-size: .9rem; margin: .7em 0 0; text-align: center; }
.lampe .lampe-aide { position: absolute; left: 0; right: 0; bottom: 8px; pointer-events: none; text-shadow: 0 1px 3px #000; }

/* Cadenas */
.cad { max-width: 440px; margin: 10px auto 0; text-align: center; }
.cad-anse { width: 46%; height: 90px; margin: 0 auto -14px; border: 18px solid #8F99A8; border-bottom: 0; border-radius: 90px 90px 0 0; transition: transform .5s cubic-bezier(.3,1.6,.5,1); transform-origin: 85% 100%; }
.cad.ouvert .cad-anse { transform: translateY(-26px) rotate(-14deg); }
.cad-corps { background: linear-gradient(160deg, #E6B93C, #A87914); color: #261B05; border-radius: 22px; padding: 20px 16px 16px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), var(--ombre); }
.cad-q { font-weight: 700; margin: 0 0 12px; }
.cad-roues { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.roue { display: grid; background: #1C1408; border-radius: 12px; overflow: hidden; width: 56px; touch-action: none; }
.roue button { background: none; border: 0; color: #E6B93C; padding: 6px 0; font-size: .9rem; }
.roue output { font: 400 2.2rem/1.3 var(--t-titre); color: #fff; background: linear-gradient(#0008, transparent 30%, transparent 70%, #0008); }
.cad .ep-msg { color: #261B05; }

/* Fouille */
.fouille-img { position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.fouille-loupe { position: absolute; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%; border: 4px solid #C49A3A; box-shadow: 0 8px 20px #000a; background-repeat: no-repeat; pointer-events: none; opacity: 0; transition: opacity .15s; }
.fouille-img.loupe .fouille-loupe { opacity: 1; }
@media (hover: none) { .fouille-loupe { display: none; } }
.fouille-liste { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fouille-liste button { width: 100%; text-align: left; border: 1px solid rgba(255,255,255,.12); background: var(--nuit); border-radius: 12px; padding: .7em 1em; }
.fouille-liste button.vu { border-color: var(--ruban); }
.fouille-liste b::before { content: "☐ "; } .fouille-liste .vu b::before { content: "☑ "; color: var(--ruban); }
.fouille-liste span { display: block; color: var(--gris); margin-top: 4px; }

/* Boîte à musique */
.boite { position: relative; height: 170px; display: grid; place-items: center; }
.boite-mani { width: 130px; height: 100px; border-radius: 12px; border: 0; background: linear-gradient(#7A4A22, #4A2A12); box-shadow: inset 0 0 0 6px #A06A34, var(--ombre); position: relative; }
.boite-mani span { position: absolute; right: -34px; top: 34px; width: 40px; height: 8px; background: #C9A24A; border-radius: 4px; transform-origin: 0 50%; }
.boite-mani span::after { content: ""; position: absolute; right: -6px; top: -12px; width: 12px; height: 22px; border-radius: 6px; background: #E9D9B0; }
.boite.joue .boite-mani span { animation: mani 1s linear infinite; }
@keyframes mani { to { transform: rotate(360deg); } }
.boite-notes span { position: absolute; bottom: 60%; color: var(--ruban); font-size: 1.6rem; animation: note 1.6s ease-out forwards; }
@keyframes note { to { transform: translateY(-90px) rotate(20deg); opacity: 0; } }

/* Défi */
.defi { text-align: center; }
.defi-chrono { position: relative; width: 170px; margin: 10px auto; }
.defi-chrono svg { transform: rotate(-90deg); }
.defi-chrono circle { fill: none; stroke: var(--nuit-3); stroke-width: 10; }
.defi-chrono .defi-arc { stroke: var(--ruban); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.defi-chrono output { position: absolute; inset: 0; display: grid; place-items: center; font: 400 2.6rem/1 var(--t-titre); }
.defi.fini .defi-chrono output { color: var(--rouge); }
.defi-bts { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; align-items: center; }

/* Documents */
.doc { padding: 26px 24px; border-radius: 4px; color: #2A2115; box-shadow: var(--ombre); }
.doc p { margin: 0 0 .8em; }
.doc-lettre, .doc-testament { background: #F3EAD3; font: 400 1.35rem/1.35 var(--t-main); }
.doc-testament { border: 10px double #A8875A; }
.doc-note { background: #FFE98A; font: 400 1.45rem/1.3 var(--t-main); transform: rotate(-1.2deg); max-width: 460px; margin: 0 auto; }
.doc-recu { background: #fff; font: 400 .95rem/1.5 var(--t-dossier); max-width: 330px; margin: 0 auto; border-top: 10px dotted #ddd; border-bottom: 10px dotted #ddd; }
.doc-journal { background: #E9E3D4; font: 400 1rem/1.45 Georgia, serif; columns: 2 220px; column-gap: 24px; }
.doc-journal p:first-child { column-span: all; font: 400 1.9rem/1.05 var(--t-titre); text-transform: uppercase; border-bottom: 3px double #2A2115; padding-bottom: .3em; }
.doc-carte { background: #FBF7EE; font: 400 1.3rem/1.35 var(--t-main); border: 1px solid #D9C9A8; border-radius: 10px; max-width: 480px; margin: 0 auto; }

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

/* ======================= Énigmes des jeux d'évasion ======================= */
.doc-photo { background: #E9E4D8; color: #222; font: 400 1rem/1.5 var(--t-dossier); max-width: 420px; margin: 0 auto; padding: 20px 20px 46px; box-shadow: var(--ombre); filter: grayscale(.3); transform: rotate(1deg); border: 1px solid #cfc7b4; }
.panneau-boite { display: flex; justify-content: center; gap: 12px; padding: 22px 16px; margin: 12px auto; max-width: 420px; background: linear-gradient(#5b6170, #3a3f4b); border-radius: 10px; box-shadow: inset 0 0 0 4px #2a2e38, var(--ombre); }
.inter { width: 52px; height: 96px; border-radius: 8px; border: 0; background: #1b1e26; position: relative; display: grid; justify-items: center; }
.inter span { position: absolute; left: 12px; right: 12px; top: 52px; height: 34px; border-radius: 6px; background: linear-gradient(#ddd, #999); transition: top .15s; }
.inter.haut span { top: 10px; }
.inter small { position: absolute; bottom: -22px; color: var(--gris); }
.panneau.allume .panneau-boite { box-shadow: inset 0 0 0 4px #2a2e38, 0 0 60px rgba(255,212,0,.5); }
.panneau .ep-btn { display: block; margin: 30px auto 0; }
.cadran { width: min(240px, 70%); display: block; margin: 8px auto; }
.cadran circle:first-child { fill: #F1E7CF; stroke: #6b4a22; stroke-width: 6; }
.cadran line { stroke: #2b1e12; stroke-width: 4; stroke-linecap: round; }
.cadran .aig-h { stroke-width: 7; } .cadran .aig-m { stroke-width: 4; stroke: #8a1b16; } .cadran .axe { fill: #2b1e12; }
.horloge-bts { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.horloge-bts div { display: grid; grid-template-columns: 44px 60px 44px; align-items: center; text-align: center; gap: 4px; }
.horloge-bts span { grid-column: 1 / -1; color: var(--gris); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.horloge-bts button { height: 44px; border-radius: 50%; border: 0; background: var(--nuit-3); font-size: 1.4rem; touch-action: none; }
.horloge-bts output { font: 400 1.8rem/1 var(--t-titre); }
.horloge .ep-btn { display: block; margin: 16px auto 0; }
.glyphe { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.glyphe circle { fill: currentColor; stroke: none; }
.crypto-page { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 22px; background: #E8DCC0; color: #2a1b0c; border-radius: 4px; box-shadow: var(--ombre); }
.mot-code { display: inline-flex; gap: 2px; }
.cle-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; padding: 16px; background: #c9a24a; color: #2a1b0c; border-radius: 10px; box-shadow: inset 0 0 0 3px #8a6a20; }
.cle-grille div { display: grid; justify-items: center; gap: 2px; } .cle-grille b { font: 400 1.1rem/1 var(--t-titre); }
.radio-boite { background: linear-gradient(#6b4423, #3f2612); border-radius: 18px; padding: 18px; box-shadow: var(--ombre); display: grid; gap: 12px; }
.radio-ecran { position: relative; height: 58px; border-radius: 8px; background: #1c1208; box-shadow: inset 0 0 12px #000; overflow: hidden; }
.radio.allumee .radio-ecran { background: radial-gradient(#5a3b10, #1c1208); }
.radio-graduation { display: flex; justify-content: space-between; padding: 8px 10px; color: #d9b36a; font: 400 .8rem var(--t-dossier); }
.radio-aiguille { position: absolute; top: 4px; bottom: 4px; width: 3px; background: var(--rouge); margin-left: -1px; transition: left .05s; }
.radio-freq { text-align: center; font: 400 1.6rem/1 var(--t-titre); color: #f0d08a; }
.radio input { width: 100%; accent-color: var(--ruban); height: 34px; }
.radio-tr blockquote { margin: 12px 0 0; padding: .7em 1em; border-left: 3px solid var(--ruban); color: var(--gris); font-style: italic; }
.radio-tr small { display: block; font-style: normal; color: var(--ruban); }
.ampoule { width: 150px; height: 150px; margin: 10px auto; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a3a3a, #111); box-shadow: inset 0 -8px 20px #000; display: grid; place-items: center; transition: background .05s, box-shadow .05s; }
.ampoule.on { background: radial-gradient(circle at 40% 35%, #fff8d8, #ffcf40 60%, #b98400); box-shadow: 0 0 80px 20px rgba(255,207,64,.55); }
.morse { text-align: center; }
.miroir-photo { position: relative; max-width: 420px; margin: 0 auto; padding: 16px 16px 60px; background: #f2efe6; box-shadow: var(--ombre); transform: rotate(-1.5deg); }
.miroir-givre { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, #9fb2c0, #50606d); border-radius: 50% 50% 46% 46%; padding: 20px; filter: contrast(1.1); }
.miroir-givre p { transform: scaleX(-1); font: 400 clamp(20px, 4.5vw, 32px)/1.3 var(--t-main); color: rgba(255,255,255,.88); text-align: center; text-shadow: 0 0 6px rgba(255,255,255,.6); margin: 0; }
.miroir-photo > span { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font: 400 1.4rem var(--t-main); color: #555; }
.miroir .ep-btn { display: block; margin: 18px auto 0; }
.tuiles-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 420px; margin: 10px auto 0; }
.tuiles-grille button { aspect-ratio: 1; border: 0; padding: 0; background-size: 300% 300%; transform: rotate(var(--r)); transition: transform .25s; border-radius: 4px; box-shadow: 0 2px 6px #0008; }
.tuiles.fini .tuiles-grille { gap: 0; }
.appel { position: fixed; inset: 0; z-index: 200; background: linear-gradient(#1a0606, #000); color: #fff; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 60px 20px 50px; animation: tombe .3s; }
.appel-haut { display: grid; text-align: center; gap: 6px; } .appel-haut small { color: #bbb; } .appel-haut b { font: 400 2.6rem/1 var(--t-titre); text-transform: uppercase; } .appel-haut span { color: #999; }
.appel-av { align-self: center; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: #3a0d0d; font: 400 4rem var(--t-titre); animation: gyro 1.4s infinite; }
.appel.en-ligne .appel-av { animation: none; filter: blur(1px); background: #120303; }
.appel-bts { display: flex; gap: 80px; }
.appel-bts button { width: 76px; height: 76px; border-radius: 50%; border: 0; color: #fff; font-size: 1.6rem; display: grid; place-items: center; }
.appel-non { background: #d9342b; } .appel-oui { background: #27B65E; }
.appel-oui svg { width: 32px; height: 32px; fill: currentColor; }

.morse-ruban { min-height: 2.4em; margin: 6px auto 0; max-width: 520px; padding: 10px 14px; border-radius: 10px; background: #0b0d14; color: var(--ruban); font: 400 1.5rem/1.5 var(--t-dossier); letter-spacing: .12em; white-space: pre-wrap; text-align: center; }
.morse-ruban.complet { border: 1px solid rgba(255,212,0,.5); }

/* Sursauts plein écran (jeux 18+) */
.sursaut { position: fixed; inset: 0; z-index: 400; background: #000; display: grid; place-items: center; animation: sursaut-tremble .06s infinite; }
.sursaut canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sursaut.sort { opacity: 0; transition: opacity .3s; }
@keyframes sursaut-zoom { from { transform: scale(.55); } to { transform: scale(1.25); } }
@keyframes sursaut-tremble { 50% { transform: translate(6px, -4px); } }
.standard-panneau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 460px; margin: 10px auto; padding: 18px; background: linear-gradient(#3b3226, #1f1a12); border-radius: 14px; }
.standard-panneau button { aspect-ratio: 1; border-radius: 50%; border: 4px solid #6b5a3a; background: #2a2116; display: grid; place-items: center; position: relative; }
.standard-panneau span { width: 60%; height: 60%; border-radius: 50%; background: #4a3d29; transition: background .08s, box-shadow .08s; }
.standard-panneau button.on span { background: #ffe08a; box-shadow: 0 0 30px 10px rgba(255,200,80,.6); }
.standard-panneau small { position: absolute; bottom: -20px; color: var(--gris); font-size: .75rem; }
.standard-bts { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.standard-etat { color: var(--ruban); font-weight: 700; }
.dicta-boite { max-width: 420px; margin: 0 auto; padding: 18px; border-radius: 16px; background: linear-gradient(#2c2c2c, #151515); display: grid; gap: 14px; }
.dicta-bobines { display: flex; justify-content: space-around; }
.dicta-bobines span { width: 90px; height: 90px; border-radius: 50%; border: 10px solid #444; background: radial-gradient(#111 25%, #3a2f25 26%); }
.dicta.joue .dicta-bobines span { animation: mani 1.2s linear infinite; }
.dicta-bts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
