/* Bulle « Appuie sur E pour faire une émote » (26/11/2026, client/js/conseil-emote.js) : au milieu de l'écran, la 1re fois au
   Café Spinda. Même cadre que la bulle « maintiens la touche » (bord bleu clair, coins dorés en pixels). Entrée : elle grandit
   avec un rebond ; la touche s'enfonce deux fois, trois émotes sautent autour ; une jauge dorée montre le temps qui reste. */
.conseil-emote { position: fixed; left: 50%; top: 42%; z-index: 40; transform: translate(-50%, -50%) scale(var(--hud, 1)); cursor: pointer;
  animation: ce-entre .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.conseil-emote.sort { animation: ce-sort .42s ease-in forwards; }
.ce-cadre { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 22px 14px; max-width: min(620px, 92vw);
  border: 1px solid rgba(143,184,255,.7); border-radius: 2px; text-align: center;
  background: linear-gradient(180deg, rgba(20,38,92,.94), rgba(6,12,34,.9));
  box-shadow: 0 0 0 1px rgba(2,5,15,.85), inset 0 0 0 1px rgba(2,5,15,.55), inset 0 1px 0 rgba(255,255,255,.12), 0 6px 22px rgba(0,0,0,.55), 0 0 26px rgba(255,211,92,.18); }
.ce-cadre::before { content: ''; position: absolute; inset: -2px; pointer-events: none;
  background:
    linear-gradient(#ffd35c, #ffd35c) left top / 6px 1px no-repeat, linear-gradient(#ffd35c, #ffd35c) left top / 1px 6px no-repeat,
    linear-gradient(#ffd35c, #ffd35c) right top / 6px 1px no-repeat, linear-gradient(#ffd35c, #ffd35c) right top / 1px 6px no-repeat,
    linear-gradient(#ffd35c, #ffd35c) left bottom / 6px 1px no-repeat, linear-gradient(#ffd35c, #ffd35c) left bottom / 1px 6px no-repeat,
    linear-gradient(#ffd35c, #ffd35c) right bottom / 6px 1px no-repeat, linear-gradient(#ffd35c, #ffd35c) right bottom / 1px 6px no-repeat; }
.ce-ligne { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ce-t { font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 22px; color: var(--gold, #ffd35c); letter-spacing: .5px; white-space: nowrap;
  text-shadow: 0 2px 0 #6b3b00, 0 0 10px rgba(255,200,80,.35); }
.ce-s { font-size: 16px; color: #dfe9ff; line-height: 1.15; }
/* la touche du clavier, le bouton de la manette ou celui du téléphone */
.ce-touche { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 36px; padding: 0 9px;
  font-family: 'PMD Font', 'Pixelify', sans-serif; font-size: 20px; color: #fff4c8;
  background: linear-gradient(180deg, #3b5aa8, #22386f); border: 1px solid #9fc0ff; border-radius: 3px;
  box-shadow: 0 4px 0 #0c1736, 0 5px 0 rgba(0,0,0,.5); animation: ce-appui 2.6s steps(1, end) .45s infinite; }
.ce-touche .pad-btn, .ce-touche .tv { display: inline-flex; align-items: center; }
.ce-manette .ce-touche { padding: 0 3px; min-width: 34px; background: none; border: 0; box-shadow: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); animation-name: ce-appui-pad; }
.ce-doigt { width: 38px; padding: 0; background: rgba(8,15,40,.95); border-color: var(--line, #8fb8ff); }
.ce-doigt img { image-rendering: pixelated; transform: scale(2); }
/* trois émotes qui sautent autour du cadre, chacune à son tour */
.ce-ico { position: absolute; width: auto; height: auto; image-rendering: pixelated; transform: scale(2); opacity: 0; pointer-events: none; animation: ce-saut 2.6s ease-out infinite; }
.ce-ico0 { left: -14px; top: -14px; animation-delay: .5s; }
.ce-ico1 { right: -14px; top: -12px; animation-delay: 1.3s; }
.ce-ico2 { right: 18%; bottom: -16px; animation-delay: 2.1s; }
.ce-jauge { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: linear-gradient(90deg, #f0a830, #ffd35c);
  transform-origin: left center; animation: ce-jauge 7s linear forwards; opacity: .85; }
/* le bouton des émotes du téléphone clignote pendant la bulle */
#emote-btn.ce-montre { animation: ce-bouton 1s ease-in-out infinite; border-color: #ffd35c; }
@keyframes ce-entre { from { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--hud, 1) * .7)); } to { opacity: 1; transform: translate(-50%, -50%) scale(var(--hud, 1)); } }
@keyframes ce-sort { to { opacity: 0; transform: translate(-50%, -58%) scale(calc(var(--hud, 1) * .92)); } }
@keyframes ce-jauge { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ce-appui {
  0%, 16% { transform: translateY(4px); box-shadow: 0 0 0 #0c1736, 0 1px 0 rgba(0,0,0,.5), 0 0 12px rgba(255,211,92,.75); border-color: #ffd35c; color: #ffd35c; }
  8%, 24%, 100% { transform: none; box-shadow: 0 4px 0 #0c1736, 0 5px 0 rgba(0,0,0,.5); }
}
@keyframes ce-appui-pad { 0%, 16% { transform: translateY(3px) scale(.92); filter: drop-shadow(0 0 6px rgba(255,211,92,.9)); } 8%, 24%, 100% { transform: none; } }
@keyframes ce-saut { 0% { opacity: 0; transform: translateY(6px) scale(1.2); } 10% { opacity: 1; transform: translateY(-6px) scale(2.2); } 20% { transform: translateY(0) scale(2); } 45% { opacity: 1; } 60%, 100% { opacity: 0; transform: translateY(-10px) scale(2); } }
@keyframes ce-bouton { 0%, 100% { box-shadow: 0 0 0 rgba(255,211,92,0); transform: scale(1); } 50% { box-shadow: 0 0 12px rgba(255,211,92,.95); transform: scale(1.12); } }
@media (max-width: 640px) { .ce-t { font-size: 18px; } .ce-s { font-size: 14px; } .ce-cadre { padding: 10px 14px 12px; } }
@media (prefers-reduced-motion: reduce) { .conseil-emote, .ce-touche, .ce-ico, #emote-btn.ce-montre { animation: none !important; } .ce-ico { opacity: 1; } }
