/* ===========================================================
   STRIP-QUIZ — une chambre tamisée, des vêtements qui volent
   =========================================================== */
body.strip {
  --theme: #c2185b;
  --theme-2: #ff8a5c;
  --or: #f2c46b;
  --panneau: rgba(40, 12, 22, 0.86);
  background: #1c0a12;
}

/* ---------- Décor : papier peint, lampes de chevet, tête de lit ---------- */
.chambre { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.papier-peint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 170, 120, 0.07) 0 18%, transparent 19%) 0 0 / 46px 46px,
    radial-gradient(circle at 50% 50%, rgba(255, 170, 120, 0.05) 0 8%, transparent 9%) 23px 23px / 46px 46px,
    radial-gradient(700px 500px at 50% 35%, #4a1426, #1c0a12 75%);
}
.lampe { position: absolute; top: 10%; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 90, 0.32), transparent 60%); animation: lampe 5s ease-in-out infinite alternate; }
.lampe.l-gauche { left: -38vmax; }
.lampe.l-droite { right: -38vmax; animation-delay: -2.5s; }
.lampe i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #ffd9a0; box-shadow: 0 0 30px 10px rgba(255, 190, 110, 0.6); }
@keyframes lampe { to { opacity: 0.7; transform: scale(0.95); } }
.tete-de-lit {
  position: absolute;
  left: 50%;
  bottom: -8vh;
  width: min(140vw, 900px);
  height: 34vh;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.35) 0 3px, transparent 4px) 0 0 / 38px 38px,
    linear-gradient(180deg, #5c1a33, #2a0b17);
  box-shadow: inset 0 10px 40px rgba(255, 140, 120, 0.15), 0 -10px 60px rgba(0, 0, 0, 0.5);
  opacity: 0.85;
}

/* ---------- Réglages ---------- */
.logo-strip { display: flex; justify-content: center; gap: 4px; font-size: 2.2rem; }
.logo-strip span { animation: vole 3s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.logo-strip span:nth-child(2) { animation-delay: -1s; }
.logo-strip span:nth-child(3) { animation-delay: -2s; }
@keyframes vole { 50% { transform: translateY(-10px) rotate(-12deg); } }

/* ---------- Jeu ---------- */
.jeu-strip { gap: 10px; }
.tableau { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.joueur-garde {
  --c: var(--p0);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px 6px 4px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  transition: all 0.3s;
}
.joueur-garde.p1 { --c: var(--p1); }
.joueur-garde.actif { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, rgba(0, 0, 0, 0.3)); box-shadow: 0 0 24px -8px var(--c); }
.joueur-garde .perso { flex: none; width: clamp(44px, 8.5dvh, 64px); aspect-ratio: 100 / 130; }
.garde-infos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.garde-infos .nom { font-size: 0.82rem; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.habits { display: flex; flex-wrap: wrap; gap: 2px; }
.habit { font-size: 1.05rem; line-height: 1; transition: opacity 0.4s, transform 0.4s, filter 0.4s; }
.habit.enleve { opacity: 0.16; filter: grayscale(1); transform: scale(0.8); }
.habit.part { animation: part 0.9s ease forwards; }
@keyframes part { 30% { transform: translateY(-14px) rotate(-30deg) scale(1.4); } 100% { opacity: 0.16; filter: grayscale(1); transform: scale(0.8); } }

.carte-q {
  --c: var(--theme-2);
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  background: radial-gradient(400px 200px at 50% 0%, color-mix(in srgb, var(--c) 25%, transparent), transparent 70%), rgba(30, 10, 18, 0.9);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 20px 50px -20px var(--c);
  animation: entree 0.4s ease;
}
.carte-q[hidden] { display: none !important; }
@keyframes entree { from { opacity: 0; transform: translateY(14px); } }
.consigne-q { margin: 0; text-align: center; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.secret { margin: -4px 0 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.carte-q .categorie { align-self: center; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #ffd2c0; }
.question { margin: auto 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, min(6vw, 3.6dvh), 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.question q { quotes: "« " " »"; }
.options { display: grid; gap: 8px; }
.option {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: 600 0.95rem var(--sans);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.option:hover { border-color: var(--c); }
.option:active { transform: scale(0.98); }

/* Rendre le téléphone */
.passe-relais { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; animation: entree 0.4s ease; }
.cadenas-mini { font-size: 3rem; animation: tremble 1.6s ease-in-out infinite; }
@keyframes tremble { 10%, 30% { transform: rotate(-8deg); } 20%, 40% { transform: rotate(8deg); } 50% { transform: none; } }
.passe-relais h2 { font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.4rem); margin: 0; }
.passe-relais p { margin: 0 0 6px; color: var(--muted); max-width: 320px; }
.passe-relais .btn { max-width: 340px; }

/* Révélation */
.revelation { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; animation: entree 0.4s ease; }
.rev-titre { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; }
.rev-titre.bon { color: #5cf09a; text-shadow: 0 0 24px rgba(62, 224, 127, 0.6); }
.rev-titre.rate { color: #ff6b7d; text-shadow: 0 0 24px rgba(255, 77, 94, 0.6); }
.rev-reponses { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.rev-bloc { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); min-width: 0; }
.rev-bloc small { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rev-bloc b { font-size: 0.95rem; overflow-wrap: anywhere; }
.vetement-vole { font-size: 4rem; height: 1.2em; }
.vetement-vole span { display: inline-block; animation: arrache 1.4s cubic-bezier(.2, .8, .3, 1) both; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }
@keyframes arrache { 0% { transform: scale(0.3) rotate(0); opacity: 0; } 30% { transform: scale(1.3) rotate(-15deg); opacity: 1; } 60% { transform: scale(1) rotate(10deg); } 100% { transform: translate(60px, -40px) rotate(380deg) scale(0.9); opacity: 0.9; } }
.rev-sanction { margin: 0; font-size: 1.05rem; font-weight: 700; }
.rev-sanction b { color: var(--theme-2); }
.revelation .btn { max-width: 340px; }

/* ---------- Fin ---------- */
.fin-persos { display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: clamp(120px, 24dvh, 190px); }
.fin-persos .perso { height: 100%; aspect-ratio: 100 / 130; }
.fin h2 { overflow-wrap: anywhere; }
.gage-final { width: 100%; max-width: 380px; padding: 18px; border-radius: 20px; text-align: center; background: radial-gradient(300px 140px at 50% 0%, rgba(255, 138, 92, 0.3), transparent 70%), rgba(30, 10, 18, 0.92); border: 1px solid rgba(255, 138, 92, 0.5); animation: entree 0.5s ease; }
.gage-final p { margin: 10px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }

@media (max-height: 640px) {
  .carte-q { padding: 12px; gap: 8px; }
  .option { min-height: 40px; padding: 8px 12px; font-size: 0.88rem; }
  .options { gap: 6px; }
  .habit { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lampe, .logo-strip span, .cadenas-mini { animation: none; }
}

/* Compactage : 7 vêtements = deux lignes d'icônes, on gagne de la place ailleurs */
.jeu-strip { gap: 8px; }
.habit { font-size: 0.95rem; }
.carte-q { padding: 13px 14px; gap: 8px; }
.options { gap: 7px; }
.option { min-height: 42px; padding: 8px 12px; }
.fin.avec-gage .fin-persos { height: clamp(80px, 14dvh, 130px); }
.fin.avec-gage .f-texte { display: none; }
@media (max-height: 700px) {
  .joueur-garde .perso { width: 40px; }
  .habit { font-size: 0.82rem; }
  .question { font-size: clamp(1.15rem, min(5.4vw, 3.2dvh), 1.6rem); }
  .vetement-vole { font-size: 3rem; }
  .rev-bloc { padding: 8px; }
}
