/* Compléments d'interface : téléphone du chauffeur (offres de courses), autoradio, appairage du téléphone-manette.
   S'appuie sur les variables de style.css (--lime, --ink, --danger, --gold, --font). */

/* ───────────── Téléphone du chauffeur ─────────────
   Un smartphone qui monte du bas de l'écran, à droite, juste au-dessus de la radio. Son écran montre un fond de carte
   sur lequel se posent les demandes de courses, chacune dans le style de sa plateforme. */
.phone { position: relative; order: -1; width: 17.8em; margin-bottom: .55em; padding: .42em; border-radius: 2.15em; background: linear-gradient(160deg, #26262c, #0b0b0e 30%, #0b0b0e 70%, #1d1d22); box-shadow: 0 .9em 2.6em rgba(0,0,0,.55), inset 0 0 0 .1em #3a3a42, inset 0 0 0 .2em #000; text-shadow: none; pointer-events: none; transform-origin: 100% 100%; animation: phoneUp .42s cubic-bezier(.2,1.25,.4,1); }
@keyframes phoneUp { from { transform: translateY(55%) rotate(3deg); opacity: 0; } }
.phone::before { content: ''; position: absolute; left: 50%; top: .78em; width: 4.4em; height: 1em; margin-left: -2.2em; border-radius: 1em; background: #000; z-index: 3; }
.phone::after { content: ''; position: absolute; right: -.14em; top: 5.2em; width: .14em; height: 2.6em; border-radius: 0 .1em .1em 0; background: #34343b; }
.phone-screen { position: relative; overflow: hidden; border-radius: 1.75em; padding: 2.15em .5em .55em; min-height: 13em;
  background-color: #e7eae5;
  background-image:
    linear-gradient(118deg, transparent 44%, #fff 44%, #fff 47.5%, transparent 47.5%),
    linear-gradient(28deg, transparent 28%, #fff 28%, #fff 30.5%, transparent 30.5%),
    linear-gradient(74deg, transparent 63%, #fbfbfb 63%, #fbfbfb 65%, transparent 65%),
    linear-gradient(152deg, transparent 12%, #fff 12%, #fff 13.6%, transparent 13.6%),
    radial-gradient(circle at 16% 80%, #cfe3c4 0 13%, transparent 14%),
    radial-gradient(circle at 88% 20%, #cfe3c4 0 10%, transparent 11%),
    linear-gradient(165deg, transparent 72%, #c3d9ee 72%, #c3d9ee 79%, transparent 79%); }
.phone-status { position: absolute; left: 0; right: 0; top: 0; height: 2.1em; padding: .55em 1.05em 0; display: flex; align-items: center; gap: .32em; color: #111; font: 700 .72em/1 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; }
.phone-clock { margin-right: auto; font-variant-numeric: tabular-nums; }
.phone-sig { display: inline-flex; align-items: flex-end; gap: .1em; height: .8em; }
.phone-sig i { width: .16em; background: #111; border-radius: .05em; }
.phone-sig i:nth-child(1) { height: 35%; } .phone-sig i:nth-child(2) { height: 55%; } .phone-sig i:nth-child(3) { height: 78%; } .phone-sig i:nth-child(4) { height: 100%; }
.phone-bat { position: relative; width: 1.55em; height: .72em; border: .09em solid #111; border-radius: .2em; }
.phone-bat::after { content: ''; position: absolute; right: -.22em; top: 25%; width: .12em; height: 50%; background: #111; border-radius: 0 .1em .1em 0; }
.phone-bat i { position: absolute; left: .06em; top: .06em; bottom: .06em; width: 72%; background: #111; border-radius: .1em; }
.phone-top { display: flex; align-items: center; gap: .45em; margin: .1em 0 .35em; padding: .32em .7em; border-radius: 2em; background: rgba(255,255,255,.92); color: #111; box-shadow: 0 .15em .5em rgba(0,0,0,.14); font: 800 .74em/1.1 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: .02em; }
.phone-dot { flex: 0 0 auto; width: .6em; height: .6em; border-radius: 50%; background: #1fa84a; box-shadow: 0 0 0 .18em rgba(31,168,74,.25); }
.phone-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-time { font-variant-numeric: tabular-nums; color: #2f6fed; }
.phone-bar { height: .24em; margin: 0 .5em .4em; border-radius: 1em; background: rgba(0,0,0,.14); overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 100%; border-radius: 1em; background: #111; }
.phone-body { display: flex; flex-direction: column; gap: .4em; }
.phone-foot { margin-top: .45em; padding: .3em .5em; border-radius: 1em; background: rgba(255,255,255,.85); color: #222; text-align: center; font: 600 .66em/1.2 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; }
.phone-foot:empty { display: none; }
.phone-foot kbd { font-size: .95em; background: #111; color: #fff; border-color: #111; }

/* Cartes d'offres : une carte par plateforme, dans l'esprit de son appli chauffeur (noms en texte, sans logo). */
.offer { position: relative; display: flex; flex-direction: column; gap: .3em; padding: .6em .7em .65em; border-radius: .95em; overflow: hidden; pointer-events: auto; cursor: pointer; touch-action: manipulation; font: 500 .8em/1.25 -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: 0 .3em 1em rgba(0,0,0,.45); transition: transform .12s, box-shadow .15s; animation: offerIn .35s ease-out backwards; }
.offer:nth-child(2) { animation-delay: .06s; }
.offer:nth-child(3) { animation-delay: .12s; }
.offer:hover { transform: translateX(-.3em); box-shadow: 0 0 0 .2em var(--lime), 0 .3em 1em rgba(0,0,0,.45); }
.offer svg { flex: 0 0 auto; width: 1em; height: 1em; fill: currentColor; }
@keyframes offerIn { from { transform: translateX(1.4em); } }

/* — carte blanche — */
.offer.uber { background: #fff; color: #000; }
.u-top { display: flex; align-items: center; gap: .55em; }
.u-pill { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35em; padding: .22em .75em .22em .5em; border-radius: 2em; background: #000; color: #fff; overflow: hidden; }
.u-pill b { font-weight: 600; font-size: 1.02em; }
.u-pill::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: calc((1 - var(--t, 1)) * 100%); background: rgba(255,255,255,.45); }
.u-fare { flex: 1; min-width: 0; font-weight: 800; font-size: 1.7em; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.u-key { flex: 0 0 auto; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: .5em; background: #efefef; font-weight: 700; font-size: 1.02em; }
.u-note { display: flex; align-items: baseline; gap: .6em; font-size: .9em; }
.u-note b { font-weight: 600; white-space: nowrap; }
.u-note span { color: #5e5e5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-route { position: relative; display: flex; flex-direction: column; gap: .16em; padding: .34em 0 .1em; border-top: 1px solid #e6e6e6; }
.u-route::before { content: ''; position: absolute; left: .32em; top: 1.15em; bottom: .85em; width: .1em; background: #000; }
.u-leg { position: relative; display: flex; align-items: baseline; gap: .45em; padding-left: 1.25em; white-space: nowrap; }
.u-leg::before { content: ''; position: absolute; left: .12em; top: .42em; width: .5em; height: .5em; border-radius: 50%; background: #000; }
.u-leg + .u-leg::before { border-radius: 0; }
.u-leg b { flex: 0 0 auto; font-weight: 700; }
.u-leg span { min-width: 0; color: #5e5e5e; overflow: hidden; text-overflow: ellipsis; }
.u-btn { margin-top: .15em; padding: .48em; border-radius: .6em; background: #2f6fed; color: #fff; font-weight: 600; font-size: 1.05em; text-align: center; }
.offer.uber:hover .u-btn { background: #1f5bd6; }

/* — panneau vert — */
.offer.bolt { background: #4a9b63; color: #fff; }
.offer.bolt::before { content: ''; position: absolute; left: 0; top: 0; height: .22em; width: calc(var(--t, 1) * 100%); background: rgba(255,255,255,.9); }
.offer.bolt.full::before { display: none; }
.b-head { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.b-head b { font-weight: 800; font-size: 1.42em; line-height: 1.1; white-space: nowrap; }
.offer.bolt i { font-style: normal; opacity: .5; }
.b-key { flex: 0 0 auto; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: .5em; background: rgba(0,0,0,.22); font-weight: 700; font-size: 1.02em; }
.b-route { position: relative; display: flex; flex-direction: column; gap: .16em; }
.b-route::before { content: ''; position: absolute; left: .32em; top: 1em; bottom: 1em; width: .1em; background: #1d3a27; }
.b-leg { position: relative; display: flex; align-items: baseline; gap: .4em; padding-left: 1.35em; white-space: nowrap; }
.b-leg::before { content: ''; position: absolute; left: .02em; top: .34em; width: .42em; height: .42em; border-radius: 50%; border: .15em solid #1d3a27; }
.b-leg span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.b-leg b { flex: 0 0 auto; font-weight: 700; }
.b-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-who em { font-style: normal; color: #ffd84a; }
.b-chips { display: flex; flex-wrap: wrap; gap: .32em; }
.b-chips span { display: inline-flex; align-items: center; gap: .32em; padding: .26em .55em; border-radius: .32em; background: #cf3a40; font-weight: 700; white-space: nowrap; }
.b-btn { margin-top: .05em; padding: .32em; border-radius: .5em; background: rgba(0,0,0,.13); font-weight: 700; font-size: 1.05em; text-align: center; }
.offer.bolt:hover .b-btn { background: rgba(0,0,0,.26); }

/* — les deux boutons d'une demande : refuser (discret), accepter (celui de la plateforme) — */
.o-act { display: flex; gap: .4em; margin-top: .15em; }
.o-act > * { flex: 2; margin-top: 0; cursor: pointer; }
.o-act kbd { margin: 0 0 0 .3em; font-size: .72em; vertical-align: .08em; opacity: .75; }
.o-act .o-no { flex: 1.15; padding: .48em .3em; border-radius: .6em; font-weight: 600; font-size: 1.05em; text-align: center; white-space: nowrap; background: rgba(0,0,0,.08); color: inherit; }
.offer.uber .o-no { background: #efefef; color: #111; }
.offer.uber .o-no:hover { background: #dedede; }
.offer.bolt .o-no { background: rgba(0,0,0,.16); }
.offer.bolt .o-no:hover { background: rgba(0,0,0,.3); }
.offer.bolt .o-act .b-btn { padding: .48em .3em; background: #fff; color: #1d3a27; }
.offer.bolt .o-act .b-btn:hover { background: #eaf5ee; }
.offer.vip .o-no { background: rgba(201,164,76,.16); color: #f1d892; }
.offer.vip .o-no:hover { background: rgba(201,164,76,.3); }
.offer:hover { transform: none; }
@media (pointer: coarse) { .o-act kbd { display: none; } }

/* — demande VIP : carte noire, liseré or — */
.offer.vip { background: linear-gradient(160deg, #17150f, #0a0a0c 60%); color: #f6efdc; box-shadow: inset 0 0 0 .09em #c9a44c, 0 .3em 1em rgba(0,0,0,.5); }
.offer.vip:hover { box-shadow: inset 0 0 0 .09em #e8c874, 0 0 0 .2em #c9a44c, 0 .3em 1em rgba(0,0,0,.5); }
.v-top { display: flex; align-items: center; gap: .55em; }
.v-pill { position: relative; flex: 0 0 auto; padding: .2em .7em; border-radius: 2em; background: #c9a44c; color: #0a0a0c; font-weight: 800; font-size: .95em; letter-spacing: .06em; overflow: hidden; white-space: nowrap; }
.v-pill::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: calc((1 - var(--t, 1)) * 100%); background: rgba(10,10,12,.5); }
.v-fare { flex: 1; min-width: 0; font-weight: 800; font-size: 1.7em; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #f1d892; }
.v-key { flex: 0 0 auto; display: grid; place-items: center; width: 1.85em; height: 1.85em; border-radius: .5em; background: rgba(201,164,76,.22); color: #f1d892; font-weight: 700; font-size: 1.02em; }
.v-note { display: flex; flex-direction: column; gap: .05em; font-size: .9em; }
.v-note b { font-weight: 700; white-space: nowrap; }
.v-note span { color: #c9a44c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-route { position: relative; display: flex; flex-direction: column; gap: .16em; padding: .34em 0 .1em; border-top: 1px solid rgba(201,164,76,.35); }
.v-leg { position: relative; display: flex; align-items: baseline; gap: .45em; padding-left: 1.25em; white-space: nowrap; }
.v-leg::before { content: ''; position: absolute; left: .12em; top: .42em; width: .46em; height: .46em; border-radius: 50%; background: #c9a44c; }
.v-leg b { flex: 0 0 auto; font-weight: 700; }
.v-leg span { min-width: 0; color: #b9b3a2; overflow: hidden; text-overflow: ellipsis; }
.v-btn { margin-top: .15em; padding: .48em; border-radius: .6em; background: #c9a44c; color: #0a0a0c; font-weight: 700; font-size: 1.05em; text-align: center; }
.offer.vip:hover .v-btn { background: #e8c874; }
.offer.full .v-leg { flex-wrap: wrap; row-gap: 0; white-space: normal; opacity: .45; }
.offer.full .v-leg.now { opacity: 1; }
.offer.full .v-leg b { flex: 1 0 100%; }

/* — échange de voitures chez le loueur : écran au noir, une ligne de texte — */
.vip-fade { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #050506; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.vip-fade.on { opacity: 1; }
.vip-fade span { max-width: 80vw; color: #f1d892; font-weight: 700; font-size: clamp(16px, 2.2vw, 28px); letter-spacing: .02em; text-align: center; }
.mission-chip.vip { border-left-color: #c9a44c; }
.mission-chip.vip b { color: #f1d892; }
.mission-chip.vip.hidden { display: none; }

/* — course en cours : la carte complète de la plateforme, l'étape du moment mise en avant — */
.phone.mode-ride, .phone.mode-search, .phone.mode-paused { font-size: .86em; }
.phone.mode-ride .phone-bar, .phone.mode-search .phone-bar, .phone.mode-paused .phone-bar { display: none; }
.phone.mode-search .phone-screen, .phone.mode-paused .phone-screen { min-height: 9.5em; }
.phone.mode-ride .phone-body { margin-top: 2.2em; }
.phone.mode-ride .offer { pointer-events: none; cursor: default; animation: none; }
.offer.full .u-leg, .offer.full .b-leg { flex-wrap: wrap; row-gap: 0; white-space: normal; opacity: .5; }
.offer.full .u-leg.now, .offer.full .b-leg.now { opacity: 1; }
.offer.full .u-leg b { flex: 1 0 100%; }
.offer.full .u-route::before { top: 1.1em; bottom: 2em; }
.phone.mode-search .phone-dot { animation: blink 1s steps(1) infinite; }
.phone.mode-paused .phone-dot { background: var(--danger); box-shadow: 0 0 0 .18em rgba(255,59,78,.25); }
.phone-msg { display: flex; flex-direction: column; gap: .25em; margin-top: 1.2em; padding: .7em .8em .75em; border-radius: .95em; background: #fff; color: #111; box-shadow: 0 .3em 1em rgba(0,0,0,.25); font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Arial, sans-serif; }
.phone-msg b { font-weight: 800; font-size: .98em; }
.phone-msg span { font-weight: 500; font-size: .78em; line-height: 1.35; color: #555; }
.phone.mode-paused .phone-msg { border-left: .3em solid var(--danger); }

/* écrans tactiles (le jeu joué directement sur un téléphone ou une tablette) : les offres en bandeau, en haut */
@media (pointer: coarse) {
  .br .phone, .phone { position: fixed; order: 0; top: 13%; right: auto; left: 50%; bottom: auto; margin: 0; transform: translateX(-50%); width: min(88vw, 54em); animation: none; }
  .phone::before, .phone::after, .phone-status { display: none; }
  .phone-screen { padding-top: .5em; min-height: 0; }
  .phone.mode-offers .phone-body { flex-direction: row; align-items: stretch; }
  .phone.mode-offers .offer { flex: 1; min-width: 0; padding: .45em .5em; font-size: .72em; }
  .phone.mode-offers .u-note span, .phone.mode-offers .b-who, .phone.mode-offers .v-note span { display: none; }
  .phone.mode-offers .u-btn, .phone.mode-offers .b-btn, .phone.mode-offers .v-btn { margin-top: auto; }
  .phone-foot { display: none; }
  .phone.mode-ride, .phone.mode-search, .phone.mode-paused { width: min(70vw, 17em); }
  .phone.mode-ride .phone-body, .phone-msg { margin-top: 0; }
}
/* … et tenus à la verticale (au doigt seulement : une fenêtre d'ordinateur plus haute que large garde le téléphone en bas à droite) */
@media (pointer: coarse) and (max-aspect-ratio: 1/1) {
  .br .phone, .phone { top: 21%; width: 92vw; }
  .phone.mode-offers .phone-body { flex-direction: column; }
  .phone.mode-offers .offer { font-size: .8em; }
  .phone.mode-offers .u-note span, .phone.mode-offers .b-who, .phone.mode-offers .v-note span { display: block; }
}

/* ───────────── Autoradio ───────────── */
.radio-chip { display: flex; align-items: center; gap: .45em; margin-bottom: .35em; padding: .25em .5em .25em .6em; border-radius: 2em; background: rgba(12,10,22,.62); border: 1px solid rgba(255,255,255,.16); font-size: .78em; font-weight: 900; letter-spacing: .08em; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.radio-chip kbd { margin: 0; }
.radio-eq { display: inline-flex; align-items: flex-end; gap: .12em; height: .9em; }
.radio-eq i { width: .18em; border-radius: .1em; background: var(--lime); transform-origin: bottom; animation: radioEq .7s ease-in-out infinite; }
.radio-eq i:nth-child(1) { height: 45%; }
.radio-eq i:nth-child(2) { height: 100%; animation-delay: .15s; }
.radio-eq i:nth-child(3) { height: 65%; animation-delay: .3s; }
.radio-chip.off { opacity: .6; }
.radio-chip.off .radio-eq i { animation: none; height: 20%; background: #fff; }
@keyframes radioEq { 50% { transform: scaleY(.35); } }
.radio-chip { pointer-events: auto; cursor: pointer; }
.radio-chip:hover { border-color: var(--lime); }

/* ───────────── Roue des radios ─────────────
   Un voile gris sur tout le jeu, les huit logos en cercle autour de la voiture (le centre de la roue est un peu sous
   le milieu de l'écran, là où se tient la voiture), le nom de la station et le titre au-dessus. */
.rw { --rw-r: min(22.5vh, 31vw); --rw-d: min(11.8vh, 17vw); position: fixed; inset: 0; z-index: 9; background: rgba(22,22,26,.58); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, visibility 0s linear .16s; font-family: 'Outfit', system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: none; }
.rw.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .16s ease; }
.rw.on.pass { pointer-events: none; }
.rw-ring { position: absolute; left: 50%; top: 56.5%; width: 0; height: 0; }
.rw-st { position: absolute; display: grid; place-items: center; width: var(--rw-d); height: var(--rw-d); padding: 0; border-radius: 50%; border: max(1px, .2vh) solid rgba(255,255,255,.5); background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.44), rgba(235,238,245,.24) 70%); box-shadow: 0 .5vh 1.6vh rgba(0,0,0,.35), inset 0 0 1.2vh rgba(255,255,255,.18); cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease, opacity .12s ease; -webkit-tap-highlight-color: transparent; }
.rw-st img { width: 86%; height: 86%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 .25vh .5vh rgba(0,0,0,.4)); }
.rw-st em { display: none; position: absolute; left: 50%; bottom: -.9vh; transform: translateX(-50%); padding: .1em .6em; border-radius: 2em; background: rgba(10,10,14,.85); color: #fff; font-style: normal; font-weight: 700; font-size: max(9px, 1.25vh); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.rw-st.empty img { opacity: .5; filter: grayscale(.7); }
.rw-st.empty em { display: block; }
.rw-st.cur { border-color: var(--lime, #cef355); box-shadow: 0 0 0 .45vh var(--lime, #cef355), 0 .5vh 1.6vh rgba(0,0,0,.4); }
.rw-st.hot { transform: scale(1.17); background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.72), rgba(240,242,248,.5) 70%); z-index: 2; }
.rw-st.hot:not(.cur) { box-shadow: 0 0 0 .35vh #fff, 0 .8vh 2.4vh rgba(0,0,0,.45); }
.rw-info { position: absolute; left: 50%; top: 11.5%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .25em; width: min(92vw, 60em); text-align: center; color: #fff; text-shadow: 0 .15em .5em rgba(0,0,0,.6); pointer-events: none; }
.rw-name { font-weight: 900; font-size: clamp(20px, 4.2vh, 46px); letter-spacing: .06em; line-height: 1.05; }
.rw-track { min-height: 1.3em; font-weight: 700; font-size: clamp(13px, 2.4vh, 24px); color: var(--lime, #cef355); }
.rw-tag { font-style: normal; font-weight: 500; font-size: clamp(11px, 1.8vh, 18px); opacity: .8; }
.rw-hint { position: absolute; left: 50%; bottom: 9.5%; transform: translateX(-50%); width: max-content; max-width: 94vw; padding: .35em .9em; border-radius: 2em; background: rgba(10,10,14,.55); color: #fff; font-weight: 600; font-size: clamp(11px, 1.7vh, 16px); text-align: center; pointer-events: none; }
.rw-hint:empty { display: none; }
.rw-hint kbd { margin: 0 .1em; }
@media (pointer: coarse) { .rw-hint kbd { display: none; } }
/* écrans plus hauts que larges : la roue se resserre et reste entière */
@media (max-aspect-ratio: 1/1) { .rw { --rw-r: min(30vw, 22vh); --rw-d: min(19vw, 12vh); } .rw-info { top: 9%; } }

/* ───────────── Appairage du téléphone-manette ───────────── */
.pair-btn { margin-left: .6em; }
#screen-pause .pair-btn { margin-left: 0; }
#pairing { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 1em; background: rgba(8,6,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: clamp(12px, 1.15vw, 19px); }
.pair-card { position: relative; width: 44em; max-width: 96vw; max-height: 94vh; overflow: auto; padding: 1.6em 1.8em 1.3em; border-radius: 1.1em; background: rgba(18,15,30,.97); border: 1px solid rgba(206,243,85,.45); box-shadow: 0 1.5em 4em rgba(0,0,0,.6); }
.pair-card h2 { font-weight: 900; font-size: 1.9em; line-height: 1.05; padding-right: 1.6em; }
.pair-lead { margin: .4em 0 1em; font-weight: 500; opacity: .85; }
.pair-close { position: absolute; top: .7em; right: .8em; width: 2em; height: 2em; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 700 1.2em/1 var(--font); cursor: pointer; }
.pair-row { display: flex; gap: 1.4em; align-items: flex-start; }
.pair-qr { flex: 0 0 auto; width: 15em; padding: .6em; border-radius: .9em; background: #fff; }
.pair-qr canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.pair-noqr { display: block; padding: 1em .4em; color: var(--ink); font-weight: 700; font-size: .85em; }
.pair-side { flex: 1; min-width: 0; }
.pair-steps { display: flex; flex-direction: column; gap: .45em; margin: 0 0 .9em 1.2em; font-weight: 500; font-size: .92em; line-height: 1.35; }
.pair-steps b { font-weight: 900; }
.pair-url { padding: .5em .7em; border-radius: .6em; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); font: 700 .95em ui-monospace, Menlo, Consolas, monospace; word-break: break-all; user-select: all; -webkit-user-select: all; }
.pair-code { margin-top: .5em; font-weight: 500; font-size: .85em; opacity: .9; }
.pair-code b { font-weight: 900; font-size: 1.2em; letter-spacing: .2em; color: var(--lime); }
.pair-alt { margin-top: .7em; padding: 0; border: 0; background: none; color: #fff; opacity: .75; font: 500 .82em var(--font); text-decoration: underline; cursor: pointer; }
.pair-status { display: flex; align-items: center; gap: .6em; margin-top: 1.1em; padding: .6em .8em; border-radius: .7em; background: rgba(255,255,255,.06); font-weight: 700; line-height: 1.35; }
.pair-dot { flex: 0 0 auto; width: .75em; height: .75em; border-radius: 50%; background: #888; }
.pair-dot.wait { background: var(--gold); animation: blink 1s steps(1) infinite; }
.pair-dot.on { background: var(--lime); box-shadow: 0 0 .7em var(--lime); }
.pair-dot.off { background: var(--danger); }
@media (max-width: 760px) {
  .pair-row { flex-direction: column; align-items: center; }
  .pair-btn { margin: .6em 0 0; display: block; }
}

/* ───────────── Dashcam : vignette de la caméra d'habitacle (le rendu 3D est posé pile sous ce cadre) ───────────── */
.dashcam { left: 1.8%; top: 38%; width: 20.5%; min-width: 15em; aspect-ratio: 16 / 9; border-radius: .3em; box-shadow: 0 0 0 .13em rgba(255,255,255,.9), 0 .5em 1.6em rgba(0,0,0,.5); font: 700 .62em/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; color: #fff; text-shadow: 0 0 .25em #000, 0 .08em 0 #000; }
.dashcam > span { position: absolute; white-space: nowrap; }
.dc-rec { left: .7em; top: .6em; display: flex; align-items: center; gap: .4em; color: #ff5a68; }
.dc-rec i { width: .7em; height: .7em; border-radius: 50%; background: #ff3b4e; animation: blink 1s steps(1) infinite; }
.dc-name { right: .7em; top: .6em; opacity: .92; }
.dc-key { right: .7em; top: 2em; opacity: .75; }
.dc-key kbd { font-size: .95em; }
.dc-time { left: .7em; bottom: .55em; font-variant-numeric: tabular-nums; }
.dc-state { right: .7em; bottom: .55em; }
.dc-state.bad { color: var(--gold); }
@media (pointer: coarse), (max-aspect-ratio: 1/1) { .dashcam { display: none; } }
