/* Mini-jeux de la place de Noël (22/11/2026) : fenêtres de jeu, bandeau de la Pluie de cadeaux, messages de gains.
   client/js/place-noel-jeux.js. Mêmes couleurs que les autres fenêtres (style.css : --panel, --line, --gold). */
.nj-fond { position: fixed; inset: 0; z-index: 46; display: flex; align-items: center; justify-content: center; background: rgba(4, 8, 22, .35); pointer-events: auto; }
.nj-fen { width: min(560px, 96vw); max-height: 96vh; padding: 10px 12px 12px; background: var(--panel); border: 3px solid var(--line-in);
  box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px #1c2a6a, 0 0 40px rgba(255, 210, 90, .18); border-radius: 6px; text-align: center;
  animation: njPop .3s cubic-bezier(.2, 1.4, .4, 1); display: flex; flex-direction: column; gap: 6px; }
.nj-fen.cloche { width: min(380px, 96vw); }
@keyframes njPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.nj-titre { color: var(--gold); font-size: 26px; text-shadow: var(--shadow); }
.nj-toile { width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; border-radius: 4px; background: #121838; max-height: 62vh; object-fit: contain; }
.nj-info { min-height: 1.3em; font-size: 18px; color: var(--line-hi); }
.nj-boutons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.nj-b { font-size: 20px; color: var(--txt); background: #1b2758; border: 2px solid var(--line-in); border-radius: 6px; padding: 6px 14px; cursor: pointer;
  box-shadow: 0 2px 0 var(--ink); touch-action: manipulation; }
.nj-b:hover { background: #24326e; }
.nj-b:active { transform: translateY(1px); }
.nj-b.or { border-color: var(--gold); color: var(--gold); }
.nj-b.nj-gros { min-width: 110px; padding: 12px 18px; font-size: 24px; }
.nj-croix { display: inline-flex; gap: 4px; }
.nj-croix[hidden], .nj-b[hidden] { display: none; }
.nj-quitter { opacity: .85; }
/* bandeau en haut de l'écran : la pluie de cadeaux va commencer */
.nj-bandeau { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 44; padding: 6px 16px; font-size: 20px; color: #fff3b0;
  background: rgba(12, 18, 46, .92); border: 2px solid var(--gold); border-radius: 6px; box-shadow: 0 0 0 2px var(--ink), 0 0 18px rgba(255, 210, 90, .35);
  animation: njBandeau 1.2s ease-in-out infinite alternate; pointer-events: none; max-width: 92vw; text-align: center; }
.nj-bandeau[hidden] { display: none; }
@keyframes njBandeau { from { box-shadow: 0 0 0 2px var(--ink), 0 0 8px rgba(255, 210, 90, .25); } to { box-shadow: 0 0 0 2px var(--ink), 0 0 22px rgba(255, 210, 90, .6); } }
/* petits messages (gains, plafond) */
.nj-toast { position: fixed; left: 50%; bottom: 18%; transform: translateX(-50%); z-index: 60; padding: 6px 14px; font-size: 20px; color: var(--txt);
  background: rgba(12, 18, 46, .95); border: 2px solid var(--line-in); border-radius: 6px; animation: njToast .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s; pointer-events: none; }
.nj-toast.or { color: var(--gold); border-color: var(--gold); }
.nj-toast.part { opacity: 0; transform: translate(-50%, -16px); }
@keyframes njToast { from { transform: translate(-50%, 12px) scale(.9); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@media (max-width: 600px) { .nj-titre { font-size: 22px; } .nj-info { font-size: 16px; } .nj-b.nj-gros { min-width: 42vw; padding: 16px 10px; } }
