/* Telephone manette, commun aux jeux (jeu/manette*.js) : grand QR de la
   borne et manette retro du telephone. */
.mn-mode-borne #jeu-cookies, .mn-mode-borne #jeu-cookies-gerer { display: none !important; }
/* Consignes et boutons tactiles des jeux : sans objet sur la borne, ou
   l on joue depuis le telephone. */
.mn-mode-borne #rw-consigne, .mn-mode-borne #rw-tour, .mn-mode-borne #jk-consigne, .mn-mode-borne #jk-tour,
.mn-mode-borne #pk-consigne, .mn-mode-borne #pk-bouton, .mn-mode-borne #pn-consigne,
.mn-mode-borne #fb-consigne { visibility: hidden; }
.mn-mode-borne #pm-croix { display: none !important; }

/* Choix vise a la croix du telephone (oeuf, gobelet, carte), sur la borne. */
.mn-vise { outline: .6vh solid #ffd23f; outline-offset: .8vh; border-radius: 1.6vh; animation: mn-vise 1s ease-in-out infinite alternate; }
@keyframes mn-vise { from { outline-color: #ffd23f; } to { outline-color: #fff6c2; } }

/* Borne : QR en grand au milieu du jeu tant qu il est libre ;
   pendant une partie, simple etiquette en bas. */
.mn-qr { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; width: min(46vh, 80vw, 520px); padding: 2.2vh; border-radius: 2.4vh; background: #fff; color: #111; text-align: center; box-shadow: 0 1vh 5vh rgba(0,0,0,.45); font: 700 clamp(16px, 2.8vh, 34px)/1.2 system-ui, sans-serif; }
.mn-qr[hidden] { display: none; }
.mn-qr-code svg { display: block; width: 100%; height: auto; }
.mn-qr-texte { margin: 1.2vh 0 0; }
.mn-qr-occupe { width: auto; top: auto; bottom: 2.5vh; transform: translateX(-50%); padding: 1vh 2.4vh; border-radius: 99px; }
.mn-qr-occupe .mn-qr-code { display: none; }
.mn-qr-occupe .mn-qr-texte { margin: 0; color: #0a7a3d; }
/* Resultat de la partie, en grand au centre, le temps de la pause. */
.mn-qr-resultat { width: auto; max-width: 80vw; top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 3vh 5vh; border-radius: 3vh; font-size: clamp(22px, 5vh, 64px); }
.mn-qr-resultat .mn-qr-code { display: none; }
.mn-qr-resultat .mn-qr-texte { margin: 0; color: #111; }

/* Manette retro du telephone (pendant la partie ouverte par le QR d une
   borne) : par-dessus la page, toujours en paysage. */
.mn-pad { --pad-coque: #dcdcd6; --pad-panneau: #45474c; --pad-bande: #b9b9b5; --pad-noir: #1e1f22; --pad-rouge: #e8323a; --pad-clair: #e7e7e2; position: fixed; inset: 0; z-index: 80; background: #2a2b2f; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; font-family: system-ui, -apple-system, sans-serif; }
.mn-pad[hidden] { display: none; }
.mn-pad * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* La manette se cale sur la place reellement visible (container query) :
   les unites vh/vmin comptent la barre d adresse du navigateur, qui en
   paysage mange une bonne part de la hauteur. */
.mn-pad-tourne { position: absolute; inset: 0; display: grid; place-items: center; container-type: size; }
@media (orientation: portrait) {
  .mn-pad-tourne { inset: auto; top: 0; left: 100vw; width: 100vh; width: 100dvh; height: 100vw; transform: rotate(90deg); transform-origin: top left; }
}
.mn-pad-manette { container-type: inline-size; position: relative; width: min(96cqw, calc(94cqh * 612 / 275)); aspect-ratio: 612 / 275; background: var(--pad-coque); border-radius: 2.2cqw; box-shadow: 0 1.2cqw 3cqw rgba(0,0,0,.5), inset 0 -.8cqw 0 #c4c4bd; }
.mn-pad-panneau { position: absolute; left: 3.3cqw; right: 3.3cqw; top: 6.5cqw; bottom: 3.3cqw; background: var(--pad-panneau); border-radius: 1cqw; }
.mn-pad-encoche { position: absolute; left: 26%; top: 1.3cqw; width: 4cqw; height: 1.1cqw; background: #ecece6; border-radius: .4cqw; }
.mn-pad-croix { position: absolute; left: 6.4cqw; top: 15cqw; width: 20cqw; height: 20cqw; }
.mn-pad-croix-fond { position: absolute; inset: 0; }
.mn-pad-croix-fond::before, .mn-pad-croix-fond::after { content: ''; position: absolute; background: var(--pad-clair); border-radius: 1cqw; }
.mn-pad-croix-fond::before { left: 33%; right: 33%; top: -1.2cqw; bottom: -1.2cqw; }
.mn-pad-croix-fond::after { top: 33%; bottom: 33%; left: -1.2cqw; right: -1.2cqw; }
.mn-pad-fl { position: absolute; z-index: 1; margin: 0; padding: 0; border: 0; background: var(--pad-noir); color: #34363b; font-size: 4cqw; line-height: 1; display: grid; place-items: center; touch-action: none; }
.mn-pad-g { left: 0; top: 34.5%; width: 36%; height: 31%; border-radius: .8cqw 0 0 .8cqw; }
.mn-pad-d { right: 0; top: 34.5%; width: 36%; height: 31%; border-radius: 0 .8cqw .8cqw 0; }
.mn-pad-h { top: 0; left: 34.5%; width: 31%; height: 36%; border-radius: .8cqw .8cqw 0 0; }
.mn-pad-b { bottom: 0; left: 34.5%; width: 31%; height: 36%; border-radius: 0 0 .8cqw .8cqw; }
.mn-pad-fl.appuye { background: #0c0c0d; color: #55585f; }
.mn-pad-centre { position: absolute; z-index: 1; left: 34.5%; top: 34.5%; width: 31%; height: 31%; background: var(--pad-noir); display: grid; place-items: center; }
.mn-pad-centre::after { content: ''; width: 55%; height: 55%; border-radius: 50%; background: #2b2c30; }
.mn-pad-bande { position: absolute; left: 32cqw; width: 28.5cqw; background: var(--pad-bande); border-radius: .9cqw; }
.mn-pad-b1 { top: 9.5cqw; height: 5cqw; display: grid; place-items: center; padding: 0 1cqw; }
.mn-pad-b2 { top: 16.5cqw; height: 5cqw; }
.mn-pad-b3 { top: 23.5cqw; height: 4.6cqw; display: flex; justify-content: space-around; align-items: center; color: #e0383b; font: 800 2.7cqw/1 system-ui, sans-serif; letter-spacing: .12em; }
.mn-pad-b4 { top: 38.6cqw; height: 3cqw; border-radius: .9cqw .9cqw 0 0; }
.mn-pad-etat { margin: 0; color: #2b2c30; font: 800 2.4cqw/1.1 system-ui, sans-serif; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mn-pad-boite { position: absolute; left: 32cqw; top: 29cqw; width: 28.5cqw; height: 10cqw; background: var(--pad-clair); border-radius: 1.2cqw; box-shadow: inset 0 0 0 .5cqw #cfcfca; display: flex; justify-content: center; align-items: center; gap: 3.2cqw; }
.mn-pad-pilule { width: 8.8cqw; height: 3.6cqw; border-radius: 2cqw; background: var(--pad-noir); box-shadow: inset 0 -.4cqw 0 #000; }
.mn-pad-carre { position: absolute; top: 25cqw; width: 11.5cqw; height: 11.5cqw; background: var(--pad-clair); border-radius: 1.2cqw; display: grid; place-items: center; }
.mn-pad-cb { left: 64.5cqw; } .mn-pad-ca { left: 77.3cqw; }
.mn-pad-rond { width: 9.2cqw; height: 9.2cqw; margin: 0; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff5a60, var(--pad-rouge) 55%, #b81c23); box-shadow: 0 .6cqw 0 #8f1218, inset 0 -.3cqw .4cqw rgba(0,0,0,.25); touch-action: none; }
.mn-pad-rond.appuye { transform: translateY(.5cqw); box-shadow: 0 .1cqw 0 #8f1218; }
.mn-pad-rond:disabled { filter: saturate(.25) brightness(.8); }
.mn-pad-lettre { position: absolute; top: 38cqw; color: #e0383b; font: 800 3cqw/1 system-ui, sans-serif; }
.mn-pad-lb { left: 72cqw; } .mn-pad-la { left: 85cqw; }
/* Jeux sans deplacement : la croix reste, eteinte. */
.mn-pad-sans-croix .mn-pad-fl { color: #2a2b2f; }
