/* Compte-rendu n° 3, lot D (4/11) : salons chez Pijako (types, liste des salons ouverts, exclusion) et partenaires visibles.
   Tailles en multiples de 8, cadres de la ROM, comme le reste du jeu. */

/* ---------- Trois sortes de salon ---------- */
.salon-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.salon-type-carte { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px !important; text-align: center; white-space: normal; min-height: 0; }
.salon-type-carte .st-ico { font-size: 32px; line-height: 1; }
.salon-type-carte .st-txt { font-size: 16px; color: var(--dim); line-height: 1.15; }
.salon-type-carte.sel { border-image-source: url('assets/ui/cadres/cadre1_yellow_fin.png'); color: #ffe27a; animation: salonChoisi .35s steps(4); }
.salon-type-carte.sel .st-ico { animation: salonSaute .5s steps(4) 1; }
.salon-type-carte:disabled { opacity: .5; }
@keyframes salonChoisi { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
@keyframes salonSaute { 50% { transform: translateY(-6px); } }

/* ---------- Salons ouverts (publics) ---------- */
.salons-liste { gap: 4px; max-height: 40vh; overflow: auto; }
.salon-ligne { padding: 4px 10px !important; flex-wrap: nowrap; gap: 10px; margin: 0; animation: salonArrive .35s steps(5) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.salon-ligne .portrait { width: 40px; height: 40px; }
.salon-ligne.neuf { animation: salonArrive .35s steps(5) backwards, salonBrille 1.2s steps(6) .35s 2; }
.salon-places { display: inline-flex; gap: 4px; }
.salon-places i { width: 12px; height: 12px; border-radius: 50%; background: #0a1233; box-shadow: inset 0 0 0 2px #31508f; }
.salon-places i.on { background: var(--ok); box-shadow: inset 0 0 0 2px #2e8f3a, 0 0 6px rgba(110, 226, 122, .5); }
.salons-vide { margin: 4px 0; }
@keyframes salonArrive { from { transform: translateX(-24px); opacity: 0; } }
@keyframes salonBrille { 50% { filter: brightness(1.5) drop-shadow(0 0 6px var(--gold)); } }

/* ---------- Dans le salon : pastille du type, bouton Retirer ---------- */
.salon-pastille { font: inherit; font-size: 16px; padding: 0 8px; margin-left: 6px; border-radius: 8px; border: 2px solid #31508f; background: #0a1233; color: var(--txt); cursor: pointer; vertical-align: middle; }
.salon-pastille:disabled { cursor: default; }
.salon-pastille:not(:disabled):hover, .salon-pastille:not(:disabled):focus-visible { border-color: var(--gold); color: #ffe27a; }
.salon-pastille.t-public { border-color: #4fa3e0; }
.salon-pastille.t-amis { border-color: #6ee27a; }
.salon-pastille.t-invitation { border-color: #d79bff; }
.lob-exclure { padding: 0 6px !important; }
.lob-exclure:hover { filter: hue-rotate(-30deg) brightness(1.2); }

/* ---------- Partenaires : niveau, objet, shiny ---------- */
.part-pt { position: relative; display: inline-block; line-height: 0; }
.part-slot .part-pt > img { width: 32px; height: 32px; image-rendering: pixelated; }
.part-grille .part-pt > img { width: 48px; height: 48px; image-rendering: pixelated; }
.part-niv { position: absolute; left: -4px; bottom: -4px; font-style: normal; font-size: 12px; line-height: 1; padding: 1px 3px; border-radius: 4px; background: #0a1233; color: var(--gold); box-shadow: 0 0 0 1px #31508f; }
.part-shiny { position: absolute; right: -6px; top: -6px; z-index: 1; font-style: normal; font-size: 14px; line-height: 1; animation: partBrille 1.6s steps(4) infinite; }
.part-slot .part-shiny img, .part-grille .part-shiny img { width: 14px; height: 14px; }
.part-nom { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.part-obj { display: inline-flex; gap: 2px; }
.part-slot img.part-bd, .part-bd { width: 16px; height: 16px; image-rendering: pixelated; }
/* (26/11) Tour Infinie : logo « interdit » sur le Passe-Muraille (cercle rouge barré) et la ligne d'explication */
.bd-interdit { position: relative; display: inline-block; line-height: 0; }
.bd-interdit img { opacity: .55; filter: grayscale(.6); }
.bd-interdit::after { content: ''; position: absolute; inset: -2px; border: 2px solid #ff4b4b; border-radius: 50%; background: linear-gradient(135deg, transparent 44%, #ff4b4b 44%, #ff4b4b 56%, transparent 56%); box-shadow: 0 0 0 1px #2a0a0a; animation: bd-interdit-pulse 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes bd-interdit-pulse { 50% { transform: scale(1.12); } }
.bd-interdit-t { color: #ff8a7a; font-size: 14px; max-width: 220px; line-height: 1.15; align-self: center; }
.part-slot.neuf { animation: partArrive .45s steps(5); }
@keyframes partBrille { 50% { transform: scale(1.25) rotate(15deg); opacity: .7; } }
@keyframes partArrive { 0% { transform: translateY(8px) scale(.8); opacity: 0; } 60% { transform: translateY(-3px) scale(1.06); opacity: 1; } 100% { transform: none; } }

@media (max-width: 820px) {
  .salon-types { grid-template-columns: 1fr; }
  .salon-type-carte { flex-direction: row; text-align: left; }
  .salon-type-carte .st-ico { font-size: 24px; }
}
