/* Défis d'un Pokémon (Mon équipe → onglet Défis), playtest du 30/10 : une grande case par défi, cochée quand elle est faite. */
.defis-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 8px; }
.defi-case { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 9px; border-radius: 6px;
  background: var(--panel2); border: 2px solid var(--line); box-shadow: inset 0 0 0 1px #02050f; transition: border-color .2s, background .2s; }
.defi-case.ok { border-color: var(--ok); background: linear-gradient(180deg, rgba(110,226,122,.14), var(--panel2) 70%); animation: defi-ok .5s ease-out; }
@keyframes defi-ok { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.defi-tete { display: flex; align-items: center; gap: 6px; font-size: 22px; color: var(--name); }
.defi-tete b { flex: 1; }
.defi-ico { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.defi-ico > * { max-width: 28px; max-height: 28px; }
.defi-coche { display: inline-flex; filter: drop-shadow(0 0 4px rgba(110,226,122,.8)); animation: defi-coche .6s steps(3) both; }
@keyframes defi-coche { from { transform: scale(0) rotate(-20deg); } to { transform: scale(1) rotate(0); } }
.defi-val { font-size: 24px; line-height: 1; }
.defi-val .muted { font-size: 18px; }
.defi-bar { height: 12px; }
.defi-bar > i { background: linear-gradient(180deg, #fff1a8, var(--gold) 50%, #d79a1d); }
.defi-case.ok .defi-bar > i { background: linear-gradient(180deg, #8dffa0, var(--hp) 45%, #2fae4c); }
.defi-pal { display: flex; gap: 4px; }
.defi-pal span { flex: 1; height: 6px; border-radius: 1px; background: #0b1128; box-shadow: 0 0 0 1px rgba(127,166,239,.35); }
.defi-pal span.on { background: var(--gold); box-shadow: 0 0 0 1px var(--gold-line); }
.defi-rw { font-size: 16px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.defi-rw .gel-ico { width: 16px; height: 16px; }
.defi-etoile { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; background: rgba(255,211,92,.08);
  border: 1px solid var(--gold-line); font-size: 18px; flex-wrap: wrap; }
.defi-etoile .gel-ico { width: 18px; height: 18px; }
.rw-defi .gel-ico { width: 16px; height: 16px; }
@media (max-width: 700px) { .defis-grille { gap: 6px; } .defi-tete { font-size: 18px; } .defi-val { font-size: 20px; } }
