/* Mission « Station F » : dialogue avec Yann, étiquette du personnage, pastille de mission.
   S'appuie sur les variables de style.css (--lime, --ink, --gold, --font). */

#dialogue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: .65em; padding: 5em 5vw 5.5vh; pointer-events: none; font-family: var(--font, 'Outfit', sans-serif); font-size: clamp(12px, 1.18vw, 21px); color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,0) 100%); }
.dlg-line { max-width: 44em; min-height: 2.6em; text-align: center; font-weight: 700; font-size: 1.5em; line-height: 1.28; text-shadow: -.045em -.045em 0 rgba(0,0,0,.6), .045em -.045em 0 rgba(0,0,0,.6), -.045em .045em 0 rgba(0,0,0,.6), .045em .045em 0 rgba(0,0,0,.6), 0 .1em .4em rgba(0,0,0,.8); }
.dlg-who { margin-right: .5em; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--lime, #cef355); }
.dlg-who.me { color: var(--gold, #ffd257); }
.dlg-who:empty { display: none; }
.dlg-choices { display: flex; flex-direction: column; align-items: stretch; gap: .4em; width: min(38em, 90vw); pointer-events: auto; }
.dlg-choices:empty { display: none; }
.dlg-choice { display: flex; align-items: center; gap: .7em; padding: .55em .9em; border-radius: .7em; border: 1px solid rgba(255,255,255,.26); background: rgba(12,10,22,.84); color: #fff; font: 700 1.08em/1.25 var(--font, 'Outfit', sans-serif); text-align: left; cursor: pointer; touch-action: manipulation; transition: background .12s, border-color .12s, transform .12s; }
.dlg-choice:hover, .dlg-choice.sel { border-color: var(--lime, #cef355); background: rgba(206,243,85,.2); transform: translateX(.25em); }
.dlg-choice kbd, .dlg-hint kbd { flex: 0 0 auto; min-width: 1.6em; padding: .08em .4em; border-radius: .35em; background: var(--lime, #cef355); color: var(--ink, #1d1c1b); border: 0; font: 900 .9em/1.5 var(--font, 'Outfit', sans-serif); text-align: center; text-shadow: none; }
.dlg-hint { min-height: 1.4em; font-weight: 700; font-size: .82em; opacity: .85; text-shadow: 0 .1em .3em rgba(0,0,0,.8); }
.dlg-hint kbd { display: inline-block; min-width: 1.4em; margin: 0 .1em; }

/* pendant la discussion : bandes de cinéma, et on range ce qui gênerait la lecture */
body.in-dialogue::before, body.in-dialogue::after { content: ''; position: fixed; left: 0; right: 0; height: 7vh; background: #000; z-index: 6; pointer-events: none; animation: dlgBars .45s ease-out; }
body.in-dialogue::before { top: 0; } body.in-dialogue::after { bottom: 0; }
@keyframes dlgBars { from { height: 0; } }
body.in-dialogue #hud .objective, body.in-dialogue #hud .prompt, body.in-dialogue #hud .caption, body.in-dialogue #hud .phone, body.in-dialogue #hud .bl, body.in-dialogue #hud .br, body.in-dialogue .dashcam, body.in-dialogue #touch { opacity: 0; pointer-events: none; transition: opacity .25s; }

/* étiquette au-dessus de Yann */
.npc-label { position: fixed; left: 0; top: 0; z-index: 6; padding: .22em .7em .26em; border-radius: 1em; background: rgba(12,10,22,.8); border: 1px solid rgba(206,243,85,.6); color: #fff; font: 900 clamp(11px, .95vw, 17px)/1.2 var(--font, 'Outfit', sans-serif); letter-spacing: .03em; white-space: nowrap; pointer-events: none; }
.npc-label b { color: var(--lime, #cef355); }

/* pastille de mission, sous le statut */
.mission-chip { display: flex; align-items: baseline; gap: .5em; padding: .32em .75em; border-radius: .6em; background: rgba(12,10,22,.7); border-left: .25em solid var(--lime, #cef355); font-weight: 700; font-size: .86em; line-height: 1.25; }
.mission-chip b { font-weight: 900; letter-spacing: .1em; color: var(--lime, #cef355); }
.mission-chip.done { border-left-color: #fff; opacity: .85; }
.hidden { display: none !important; }

/* à pied : pas de compteur ni de jauges de la voiture, et le téléphone des courses attend dans la voiture */
body.on-foot #hud .phone, body.on-foot #hud .bars, body.on-foot #hud .br .speed, body.on-foot #hud .br .build { display: none !important; }

/* au doigt : le texte de la discussion et le contrat se touchent (avancer, signer) */
@media (pointer: coarse) {
  body.in-dialogue .dlg-line, body.in-dialogue .dlg-hint { pointer-events: auto; touch-action: none; }
  #contract .paper { pointer-events: auto; touch-action: none; }
}
