/* Presentation d'une campagne (widget et apercu de l'assistant). Les couleurs
   viennent de la page hote. */
.ogw-score { margin: 0 12px 4px; padding: 12px 14px; border: 1px solid var(--brand); border-radius: 14px; }
.ogw-score p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; }
.ogw-score-value strong { font-size: 26px; color: var(--brand); }
.ogw-gauge { display: block; width: 100%; height: 8px; margin: 8px 0; border: 0; border-radius: 999px; overflow: hidden; background: rgba(127, 127, 127, 0.25); appearance: none; -webkit-appearance: none; }
.ogw-gauge::-webkit-progress-bar { background: rgba(127, 127, 127, 0.25); }
.ogw-gauge::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
.ogw-gauge::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.ogw-score .ogw-facts { font-size: 12px; opacity: 0.75; }

.ogw-ways { margin: 0; padding: 14px 12px 8px; font-size: 15px; font-weight: 700; text-align: left; }

.ogw-rows { list-style: none; margin: 0; padding: 0 12px; }
.ogw-row { margin: 0 0 8px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ogw-row.done { border-style: dashed; }
.ogw-rows .ogw-head {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; width: 100%; margin: 0; padding: 0 12px 0 0;
  border: 0; border-radius: 0; background: transparent; color: inherit;
  font: inherit; font-weight: 400; text-align: left;
}
.ogw-rows button.ogw-head { cursor: pointer; }
.ogw-rows button.ogw-head:hover { background: rgba(127, 127, 127, 0.12); }
.ogw-icon { display: flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 8px 0 8px 10px; border-radius: 50%; background: #ef4056; color: #fff; }
.ogw-icon svg { width: 18px; height: 18px; }
.ogw-twitch_follow .ogw-icon { background: #9146ff; }
.ogw-discord_join .ogw-icon { background: #5865f2; }
.ogw-secret_code .ogw-icon { background: #3b4d56; }
.ogw-x_follow .ogw-icon, .ogw-x_repost .ogw-icon, .ogw-tiktok_follow .ogw-icon { background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.ogw-instagram_follow .ogw-icon { background: #c13584; }
.ogw-youtube_visit .ogw-icon { background: #e00000; }
.ogw-bluesky_follow .ogw-icon { background: #1185fe; }
/* Libelle jamais plus etroit que 9em : sur mobile, la pastille (« Fait
   aujourd'hui ») passe a la ligne au lieu d'ecraser le texte lettre par lettre. */
.ogw-label { flex: 1 1 9em; min-width: 0; padding: 8px 0; font-weight: 600; overflow-wrap: break-word; }
.ogw-required { display: block; font-size: 11px; font-weight: 400; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
.ogw-points { flex: none; margin: 4px 0 4px auto; padding: 2px 10px; border: 1px solid var(--brand); border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ogw-row.done .ogw-points { border-color: #1a9d5c; color: #1a9d5c; }
.ogw-row.done .ogw-label, .ogw-row.done .ogw-icon { opacity: 0.65; }
.ogw-reset { display: block; font-size: 12px; font-weight: 400; }
/* Action qui revient chaque jour. */
.ogw-daily::before { content: '\21BB'; display: inline-block; margin-right: 4px; font-size: 17px; font-weight: 700; line-height: 1; vertical-align: -2px; }
/* Participations fermees : annonce en grand, actions grisees. */
.campaign-ended { margin: 0 0 16px; padding: 18px 16px; border: 2px solid var(--brand); border-radius: 14px; background: var(--surface); text-align: center; }
.campaign-ended strong { display: block; font-size: 24px; line-height: 1.25; }
.campaign-ended span { display: block; margin-top: 4px; }
.ogw-ended .ogw-rows, .ogw-rows.ogw-ended, .ogw-ended .ogw-score { filter: grayscale(1); opacity: 0.45; }
.ogw-ended .ogw-head, .ogw-rows.ogw-ended .ogw-head { cursor: default; }
.ogw-row.waiting { border-style: dashed; }
.ogw-waiting { margin: 0 0 8px; padding: 10px 12px; border: 1px solid #1a9d5c; border-radius: 10px; background: rgba(61, 220, 132, 0.1); }
.ogw-steps { margin: 0 0 10px; padding-left: 20px; }
.ogw-steps li { margin-bottom: 12px; }
.ogw-steps .btn, .ogw-steps button { margin-top: 6px; }
/* Un lien en bouton est en ligne : sans cela, son remplissage mord sur le texte du dessus. */
.ogw-steps a.btn { display: inline-block; }
.ogw-notice { margin: 0; padding: 4px 14px 12px; font-size: 12px; text-align: center; opacity: 0.75; }
.ogw-body { padding: 10px 14px 14px; border-top: 1px dashed var(--border); }
.ogw-body p { margin: 0 0 8px; }

.ogw-lock { margin: 0 12px 12px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 14px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(127, 127, 127, 0.08) 10px 20px); }
.ogw-lock strong { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ogw-lock svg { width: 16px; height: 16px; }
.ogw-lock span { font-size: 12px; opacity: 0.75; }

/* Page complete de la campagne : lignes rendues par le serveur, depliees par
   <details> (aucun JavaScript requis). */
.card.ogw-card { padding-left: 0; padding-right: 0; }
.ogw-rows summary.ogw-head { cursor: pointer; list-style: none; }
.ogw-rows summary.ogw-head::-webkit-details-marker { display: none; }
.ogw-rows summary.ogw-head:hover { background: rgba(127, 127, 127, 0.12); }
.ogw-rows summary.ogw-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ogw-body .field-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Entrees bonus : cadenas tant qu'il reste d'autres actions a accomplir. */
.ogw-bonus .ogw-icon { background: #d99a00; }
.ogw-row.locked { border-style: dashed; }
.ogw-row.locked .ogw-icon { background: #6b7280; }

/* Visite accordee seulement pendant le live Twitch du streamer. */
.ogw-live::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #e91916; vertical-align: 1px; }
