/* L'Intrus — direction artistique espion rétro années 60 — Sebdesign Studio */
body[data-jeu="intrus"] {
  background-color: #E6D8B8;
  background-image: radial-gradient(rgba(120, 90, 40, .10) 1px, transparent 1.2px), linear-gradient(180deg, #EFE3C6, #DCCBA3);
  background-size: 7px 7px, 100% 100%; background-attachment: fixed;
  color: #24211C;
}
body[data-jeu="intrus"] #scene { display: none; }
.int-page { --encre: #24211C; --rouge: #B3261E; --kraft: #D8B877; --papier: #F7F0DE; --bleu: #1F4E79;
  font-family: 'Special Elite', 'Courier New', monospace; gap: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
.int-entete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.int-titre { margin: 0; white-space: nowrap; font-family: 'Special Elite', 'Courier New', monospace; font-weight: 400; font-size: clamp(26px, 8vw, 34px); letter-spacing: .04em; color: var(--encre);
  text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.int-entete-d { display: flex; gap: 6px; align-items: center; }
.int-badge, .int-mini { padding: 5px 8px; white-space: nowrap; border: 1.5px solid var(--encre); border-radius: 3px; background: var(--papier); color: var(--encre); font-family: inherit; font-size: 12px; }
.int-mini { box-shadow: 2px 2px 0 var(--encre); }
.int-feuille { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px 20px; text-align: center;
  background: var(--papier); border: 1px solid rgba(36, 33, 28, .25); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 4px 6px 0 rgba(36, 33, 28, .18);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(31, 78, 121, .12) 27px 28px); }
.int-feuille::before { content: ''; position: absolute; top: -8px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(240, 230, 200, .85); border: 1px solid rgba(0, 0, 0, .08); }
.int-sur { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--rouge); }
.int-gros { margin: 0; font-size: clamp(28px, 9vw, 38px); line-height: 1.1; color: var(--encre); }
.int-texte { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: #3A352C; }
.int-texte b { color: var(--encre); }
.int-attente { margin: 0; text-align: center; font-size: 14px; color: #5A5244; }
.int-btn { width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--encre); border-radius: 4px; background: var(--rouge); color: #FFF6E6;
  font-family: inherit; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 4px 4px 0 var(--encre); }
.int-btn.clair { background: var(--papier); color: var(--encre); }
.int-btn:disabled { opacity: .45; }
.int-btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--encre); }
.int-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.int-duo .int-btn { font-size: 15px; }
.int-lien { align-self: center; padding: 6px 10px; border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--rouge); text-decoration: underline; }

/* Dossier */
.int-dossier { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 190px; margin-top: 14px; padding: 26px 16px 16px;
  border: 0; border-radius: 0 6px 6px 6px; background: linear-gradient(180deg, #E2C487, var(--kraft)); color: var(--encre); font-family: inherit; text-align: center; box-shadow: 4px 6px 0 rgba(36, 33, 28, .25); }
.int-dossier.petit { min-height: 0; padding: 18px 14px 12px; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.int-onglet { position: absolute; top: -18px; left: 0; padding: 3px 14px 2px; border-radius: 6px 6px 0 0; background: #E2C487; font-size: 11px; letter-spacing: .08em; }
.int-consigne { font-size: 16px; }
.int-dossier small { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; color: rgba(36, 33, 28, .65); }
.int-dossier.petit small { display: none; }
.int-dossier.ouvert { background: var(--papier); outline: 2px solid var(--kraft); }
.int-lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--rouge); }
.int-mot { font-size: clamp(30px, 10vw, 44px); line-height: 1.1; color: var(--encre); padding: 4px 10px; background: linear-gradient(180deg, transparent 60%, rgba(179, 38, 30, .18) 60%); }
.int-dossier.petit .int-mot { font-size: 24px; }
.int-tampon { display: inline-block; padding: 4px 12px; border: 3px solid var(--rouge); border-radius: 4px; color: var(--rouge); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-6deg); opacity: .9;
  mix-blend-mode: multiply; animation: int-coup .35s cubic-bezier(.2, 1.6, .4, 1); }
.int-tampon.mini { position: absolute; top: 6px; right: 4px; padding: 1px 5px; border-width: 2px; font-size: 10px; }
.int-tampon.gros { font-size: clamp(20px, 6.4vw, 26px); padding: 6px 14px; border-width: 4px; margin-bottom: 6px; }
.int-tampon.bleu { color: var(--bleu); border-color: var(--bleu); }
@keyframes int-coup { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: .9; } }

/* Fiches suspects */
.int-fiche { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; background: var(--papier); border: 1.5px solid rgba(36, 33, 28, .5);
  border-radius: 3px; color: var(--encre); font-family: inherit; box-shadow: 2px 3px 0 rgba(36, 33, 28, .2); }
.int-photo { width: 52px; height: 60px; display: grid; place-items: center; border: 1.5px solid var(--encre); background: color-mix(in srgb, var(--c) 35%, #EDE3CC); font-size: 24px; filter: sepia(.35); }
.int-fiche-nom { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-fiche.choisie { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge), 3px 4px 0 rgba(36, 33, 28, .25); }
.int-suspects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.int-ordre { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.int-ordre .int-fiche { padding: 6px 4px; box-shadow: none; }
.int-ordre .int-photo { width: 38px; height: 44px; font-size: 18px; }
.int-ordre .int-fiche-nom { font-size: 12px; }
.int-ordre li.fait { opacity: .45; }
.int-ordre li.actif .int-fiche { border-color: var(--rouge); box-shadow: 0 0 0 2px var(--rouge); transform: translateY(-3px); }

.int-pastilles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: #5A5244; }
.int-pastilles i { width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--encre); border-radius: 50%; font-style: normal; opacity: .4; }
.int-pastilles i.oui { opacity: 1; background: var(--encre); color: var(--papier); }

/* Révélation */
.int-mots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.int-mots > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; border: 1.5px dashed rgba(36, 33, 28, .5); }
.int-mots b { font-weight: 400; font-size: 20px; line-height: 1.15; }
.int-mots .intrus { border-color: var(--rouge); }
.int-votes, .int-gains { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.int-votes li { display: grid; grid-template-columns: 90px 1fr 26px; align-items: center; gap: 8px; font-size: 14px; }
.int-votes li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-votes i { height: 14px; width: var(--w); min-width: 3px; background: var(--encre); transition: width .6s; }
.int-votes li.est-intrus span, .int-votes li.est-intrus b { color: var(--rouge); }
.int-votes li.est-intrus i { background: var(--rouge); }
.int-votes b { font-weight: 400; text-align: right; }
.int-gains li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--papier); border-left: 4px solid var(--rouge); font-size: 15px; }
.int-signature { margin: 6px 0 0; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(36, 33, 28, .5); }
