/* La boutique des cadeaux (lot CADEAU, ch. 6 E6.7) — les paliers en cartes à quatre états, le choix d'un cadeau,
   « Comment gagner des XP ». Jetons seulement : l'or du réseau pour le palier à choisir, le vert doux pour un palier
   servi, le gris pour ce qui vient. Les écrans sont d'abord des maquettes (paquet P26, CADEAU-02), puis branchés. */

/* Les paliers (P26-01) */
.gift-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.gift-tier { background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--brand-radius-lg, 16px); padding: .85rem 1rem; }
.gift-tier.is-to_choose { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .18); }
.gift-tier.is-upcoming { opacity: .72; }
.gift-tier-head { display: flex; align-items: center; gap: .7rem; }
.gift-tier-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gift-tier-title small { color: var(--brand-muted); font-size: .72rem; }
.gift-tier-num { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: var(--brand-secondary); color: var(--brand-on-dark); }
.gift-tier.is-upcoming .gift-tier-num { background: var(--brand-line); color: var(--brand-muted); }
.gift-tier.is-to_choose .gift-tier-num { background: var(--brand-accent); color: var(--brand-on-accent); }
.gift-tier-body { font-size: .85rem; margin-top: .5rem; }
.gift-ou { font-style: italic; color: var(--brand-muted); font-size: .78rem; margin: 0 .2rem; }

/* Le choix (P26-02) */
.gift-choices { display: grid; gap: .25rem; }
.gift-choice { display: flex; align-items: center; gap: .8rem; background: var(--brand-surface); border: 1px solid var(--brand-line); border-radius: var(--brand-radius-lg, 16px); padding: .85rem 1rem; cursor: pointer; }
.gift-choice.is-checked, .gift-choice:has(input:checked) { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(var(--brand-accent-rgb), .18); }
.gift-choice input { flex: 0 0 auto; }
.gift-choice-visual { flex: 0 0 auto; width: 3.4rem; height: 3.4rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(var(--brand-accent-rgb), .14); }
.gift-choice-text { display: flex; flex-direction: column; min-width: 0; }
.gift-choice-text small { color: var(--brand-muted); font-size: .75rem; }
.gift-ou-row { text-align: center; }
.gift-big { font-size: 3.2rem; line-height: 1; margin-bottom: .4rem; }

/* Comment gagner des XP (P26-06) */
.gift-how { display: grid; gap: .6rem; }
@media (min-width: 768px) { .gift-how { grid-template-columns: repeat(3, 1fr); } }
.gift-how .card-body { display: flex; flex-direction: column; gap: .2rem; }
.gift-how small { color: var(--brand-muted); font-size: .78rem; }
.gift-how-num { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-accent); color: var(--brand-on-accent); font-weight: 800; font-size: .8rem; margin-bottom: .2rem; }
.gift-bareme { list-style: none; margin: 0; padding: 0; }
.gift-bareme li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 1rem; border-top: 1px solid var(--brand-line); font-size: .85rem; }
.gift-bareme li:first-child { border-top: 0; }
.gift-bareme li > span { display: flex; flex-direction: column; min-width: 0; }
.gift-bareme small { color: var(--brand-muted); font-size: .74rem; }
.gift-xp { flex: 0 0 auto; color: var(--brand-secondary); font-variant-numeric: tabular-nums; }
.gift-xp.is-negative { color: var(--brand-danger); }

/* La console (CADEAU-04) : la vignette d'un cadeau dans la liste, l'aperçu de la photo sur sa fiche */
.gift-thumb { width: 2rem; height: 2rem; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: .3rem; }
.gift-photo-preview { width: 9rem; height: 9rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--brand-accent-rgb), .14); overflow: hidden; flex: 0 0 auto; }
.gift-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* La photo d'un cadeau (CADEAU-05) : dans la case du choix et en tête de « Mon cadeau » */
.gift-choice-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gift-photo { width: 7.5rem; height: 7.5rem; object-fit: cover; border-radius: 14px; }
