/* web/dice-audience.css
 * Complément CSS pour la section Visibilité et les dés additionnels.
 * Le thème clair est assumé ; les variables --vdl-* sont optionnelles
 * et retombent sur des valeurs raisonnables si absentes.
 */

/* --- Audience --- */
.vdl-audience-section {
  margin-top: 4px;
}

.vdl-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vdl-audience-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--vdl-border, #c9c9c9);
  background: var(--vdl-surface, #ffffff);
  color: var(--vdl-fg, #1a1a1a);
  font: inherit;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.vdl-audience-btn:hover {
  border-color: var(--vdl-accent, #2e6bff);
}

.vdl-audience-btn[aria-pressed="true"] {
  background: var(--vdl-accent, #2e6bff);
  border-color: var(--vdl-accent, #2e6bff);
  color: #ffffff;
}

.vdl-audience-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vdl-audience-btn:focus-visible {
  outline: 2px solid var(--vdl-accent, #2e6bff);
  outline-offset: 2px;
}

/* Boutons directs par joueur (GM) dans un conteneur qui wrap en mobile. */
.vdl-audience-directs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.vdl-audience-direct {
  font-size: 0.85rem;
  padding: 5px 9px;
  background: var(--vdl-surface-alt, #f5f6f8);
}

/* --- Autres dés (details/summary) --- */
.vdl-others {
  margin-top: 8px;
  border: 1px solid var(--vdl-border, #e0e0e0);
  border-radius: 8px;
  background: var(--vdl-surface, #ffffff);
  padding: 0;
}

.vdl-others-summary {
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--vdl-fg, #1a1a1a);
  user-select: none;
  list-style: none;
}

.vdl-others-summary::-webkit-details-marker {
  display: none;
}

.vdl-others-summary::before {
  content: '▸ ';
  display: inline-block;
  margin-right: 2px;
  transition: transform 0.12s ease;
}

.vdl-others[open] .vdl-others-summary::before {
  transform: rotate(90deg);
}

.vdl-others-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px 12px;
}

.vdl-other {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--vdl-border, #c9c9c9);
  background: var(--vdl-surface, #ffffff);
  color: var(--vdl-fg, #1a1a1a);
  font: inherit;
  border-radius: 6px;
  cursor: pointer;
}

.vdl-other:hover {
  border-color: var(--vdl-accent, #2e6bff);
}

.vdl-other:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vdl-other:focus-visible {
  outline: 2px solid var(--vdl-accent, #2e6bff);
  outline-offset: 2px;
}

/* --- Petits écrans --- */
@media (max-width: 420px) {
  .vdl-audience-btn,
  .vdl-audience-direct {
    flex: 0 1 auto;
    font-size: 0.85rem;
  }
  .vdl-audience-directs {
    width: 100%;
  }
}

