/* Les ecrans du jeu : boutique, club, fiche, compte, equipe, match, defis. */

.profil {
  width: 36px; height: 36px; border-radius: 50%; flex: none; cursor: pointer;
  border: 1px solid var(--trait); background: var(--surface-2); color: var(--texte);
  font-family: var(--police-titre); font-weight: 800; font-size: 16px;
}
.profil:hover { border-color: var(--accent); }

.vide-etat { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 44px 20px; }

/* ----------------------------------------------------------------- boutique -- */
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bandeau-pret { border-color: rgba(246, 201, 79, .55); background: linear-gradient(120deg, rgba(246, 201, 79, .16), var(--surface) 55%); }
.bandeau-coche {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(53, 224, 161, .14); color: var(--accent); font-weight: 800;
}

.rayon { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.rayon-tuile {
  display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--rayon); border: 1px solid var(--trait);
  background:
    radial-gradient(260px 200px at 0% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), #0f1627);
  transition: border-color .2s ease, transform .2s ease;
}
.rayon-tuile:hover { border-color: color-mix(in srgb, var(--c) 60%, var(--trait)); }
.rayon-visuel {
  background: none; border: 0; padding: 0; cursor: pointer; width: 100%;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5));
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.rayon-visuel:hover { transform: translateY(-4px) rotate(-2deg); }
.rayon-visuel svg, .pochette { width: 100%; height: auto; display: block; }
.rayon-corps { display: grid; gap: 9px; min-width: 0; }
.promesses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.promesses li {
  font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--doux);
}
.promesses li.fort {
  background: color-mix(in srgb, var(--c) 20%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.rayon-actions .bouton:first-child { flex: 1; }
.manque { font-size: 12.5px; color: var(--doux); }

.offertes { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 4px; }
.offerte {
  flex: none; width: 92px; display: grid; justify-items: center; gap: 4px; position: relative;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.offerte-visuel { width: 72px; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); animation: flotte 2.6s ease-in-out infinite; }
.offerte-nom { font-size: 12.5px; font-weight: 700; }
.offerte-n {
  position: absolute; top: -6px; right: 4px; min-width: 24px; padding: 2px 6px; border-radius: 999px;
  background: var(--or); color: #2b1d00; font-weight: 800; font-size: 12px;
}

.apercu { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: center;
  border-color: rgba(53, 224, 161, .35); }
.apercu-visuel { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); }
.apercu-corps { display: grid; gap: 8px; }

.serie { display: grid; gap: 10px; }
.serie-prete { border-color: rgba(246, 201, 79, .6); }
.jauge { height: 9px; border-radius: 9px; background: #0a101d; overflow: hidden; border: 1px solid var(--trait); }
.jauge i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s ease; }
.serie-prete .jauge i { background: linear-gradient(90deg, #e9a824, var(--or)); }

.chances-titre { margin: 18px 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.chances { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.chances td { padding: 9px 2px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.chances td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.papier .mention { margin-top: 16px; }

.grille-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
@media (min-width: 520px) { .grille-mini { grid-template-columns: repeat(6, 1fr); } }
.actions-feuille { margin-top: 16px; }
.actions-feuille .bouton { flex: 1 1 auto; }

/* --------------------------------------------------------------------- club -- */
.chiffres { display: flex; gap: 10px; }
.chiffres > div {
  flex: 1; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--trait);
  display: grid; gap: 1px; min-width: 0;
}
.chiffres b { font-family: var(--police-titre); font-size: 19px; white-space: nowrap; }
.chiffres b i { font-style: normal; font-size: 13px; color: var(--doux); font-weight: 600; }
.chiffres small { color: var(--doux); font-size: 12px; }
.compte-chiffres { flex-wrap: wrap; margin-top: 12px; }
.compte-chiffres > div { flex: 1 1 40%; }

.outils { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .outils { grid-template-columns: 1fr 190px 170px; } }
@media (max-width: 639px) {
  .outils { grid-template-columns: 1fr 1fr; }
  .outils > input { grid-column: 1 / -1; }
}
.compte-liste { margin-bottom: 10px; }
.grille { display: grid; gap: 14px 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (min-width: 640px) { .grille { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 18px 14px; } }
.vignette { display: grid; gap: 5px; content-visibility: auto; contain-intrinsic-size: 140px 220px; }
.vignette .carte { transition: transform .18s ease; }
.vignette .carte:hover { transform: translateY(-4px); }
.vignette-pied { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--doux); }
.marque {
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--trait);
  font-weight: 800; font-size: 11.5px; color: var(--texte);
}
.marque.onze { background: rgba(53, 224, 161, .15); border-color: rgba(53, 224, 161, .5); color: var(--accent); }
.sentinelle { height: 1px; }

.lots { display: grid; gap: 10px; margin-top: 14px; }
.lot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--trait);
}
.lot b { display: block; } .lot small { color: var(--doux); font-size: 12.5px; }
.lot.vide { opacity: .55; }
.bouton.arme { background: var(--danger); border-color: var(--danger); color: #fff; }

/* -------------------------------------------------------------------- fiche -- */
.fiche { display: grid; gap: 18px; }
.fiche-carte { width: min(58%, 230px); margin: 4px auto 0; }
.fiche-infos { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 700px) {
  #feuille .papier:has(.fiche) { max-width: 720px; }
  .fiche { grid-template-columns: 250px 1fr; align-items: start; }
  .fiche-carte { width: 100%; margin: 6px 0 0; }
}
.fiche-variante { font-family: var(--police-titre); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--or); }
.fiche-variante.v-argent, .fiche-variante.v-argent_rare { color: #d5deea; }
.fiche-variante.v-bronze, .fiche-variante.v-bronze_rare { color: #d99a66; }
.fiche-variante.v-saison { color: #6aa9ff; }
.fiche-variante.v-icone { color: #fff6dc; }
.fiche-variante.v-heros { color: #2ee6a6; }
.fiche-liens { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.fiche-liens > div { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.fiche-liens span { min-width: 0; }
.fiche-liens b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-liens small { color: var(--doux); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ecu { width: 24px; height: 28px; flex: none; }
.mini-dr { width: 28px; height: 19px; flex: none; border-radius: 3px; overflow: hidden; }
.mini-ecu svg, .mini-dr svg { width: 100%; height: 100%; display: block; }
.barres { display: grid; gap: 7px; }
.barre { display: grid; grid-template-columns: 104px 1fr 30px; align-items: center; gap: 10px; font-size: 13.5px; }
.barre span { color: var(--doux); }
.barre i { height: 7px; border-radius: 7px; background: #0a101d; overflow: hidden; }
.barre u { display: block; height: 100%; border-radius: 7px; text-decoration: none; }
.barre u.haut { background: var(--accent); } .barre u.bon { background: #8fd14f; }
.barre u.moyen { background: #f2b53a; } .barre u.bas { background: #ef6a4c; }
.barre b { text-align: right; font-family: var(--police-titre); font-size: 15px; }
.fiche-valeurs { display: flex; gap: 10px; }
.fiche-valeurs > div { flex: 1; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); display: grid; gap: 2px; }
.fiche-valeurs small { color: var(--doux); font-size: 12px; }
.fiche-valeurs b, .fiche-valeurs .credits { font-family: var(--police-titre); font-size: 16px; font-weight: 700; }
.note-fiche { font-size: 13px; color: var(--accent); }

/* ------------------------------------------------------------------- compte -- */
.sous-titre { margin: 20px 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); cursor: pointer; }
.reglage b { display: block; font-size: 15px; } .reglage small { color: var(--doux); font-size: 12.5px; }
.reglage input { position: absolute; opacity: 0; pointer-events: none; }
.reglage i { width: 46px; height: 27px; border-radius: 27px; background: #26314d; position: relative; flex: none; transition: background .2s ease; }
.reglage i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.reglage input:checked + i { background: var(--accent-2); }
.reglage input:checked + i::after { transform: translateX(19px); }
.reglage input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.zone-danger { margin-top: 18px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 93, 108, .25); }
.zone-danger summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.zone-danger[open] { display: grid; gap: 12px; }
.zone-danger[open] summary { margin-bottom: 4px; }

/* ------------------------------------------------------------------- equipe -- */
.equipe-mise { display: grid; gap: 18px; }
@media (min-width: 900px) { .equipe-mise { grid-template-columns: minmax(0, 560px) 1fr; align-items: start; } }
.equipe-terrain { width: 100%; max-width: 560px; margin: 0 auto; }
.terrain {
  position: relative; width: 100%; aspect-ratio: 100 / 130; border-radius: 16px; overflow: hidden;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 9.09%, transparent 9.09% 18.18%),
    linear-gradient(180deg, #1c6b3a, #145a30);
  border: 1px solid #2c8a53; box-shadow: inset 0 0 40px rgba(0, 0, 0, .35);
  container-type: inline-size;
}
.terrain .lignes { position: absolute; inset: 0; width: 100%; height: 100%; }
.place {
  position: absolute; width: 17%; translate: -50% -50%; display: grid; justify-items: center; gap: 2px;
  background: none; border: 0; padding: 0; color: inherit;
}
.place-carte { display: block; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; }
.place-carte:hover .corps { transform: translateY(-3px) scale(1.04); }
.place.vide {
  aspect-ratio: 300 / 420; border-radius: 12% / 8%; cursor: pointer; place-content: center; gap: 0;
  background: rgba(0, 0, 0, .28); border: 2px dashed rgba(255, 255, 255, .45);
}
.place.vide:hover { background: rgba(0, 0, 0, .4); border-color: #fff; }
.place.vide .plus { font-size: 5.2cqw; font-weight: 300; line-height: 1; color: #fff; }
.place.vide .poste { font-family: var(--police-titre); font-weight: 800; font-size: 2.6cqw; color: rgba(255, 255, 255, .85); }
.place-pied { display: flex; align-items: center; gap: 4px; min-height: 11px; }
.pips { display: inline-flex; gap: 2px; padding: 2px 4px; border-radius: 99px; background: rgba(0, 0, 0, .5); }
.pips i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.pips i.plein { background: #39ee9f; box-shadow: 0 0 5px #39ee9f; }
.hors {
  padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 14px;
}
.equipe-cote { display: grid; gap: 14px; align-content: start; }
.equipe-chiffres b { font-size: 22px; }
.aide-chimie { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); display: grid; gap: 6px; }
.aide-chimie p { font-size: 13.5px; }

.choix { display: grid; gap: 6px; margin-top: 12px; }
.choix-ligne {
  display: grid; grid-template-columns: 44px 1fr 26px 40px; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; border: 1px solid var(--trait); cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .03);
}
.choix-ligne:hover, .choix-ligne.courant { border-color: var(--accent); background: rgba(53, 224, 161, .08); }
.choix-note {
  display: grid; place-items: center; height: 36px; border-radius: 9px; font-family: var(--police-titre);
  font-weight: 800; font-size: 18px; background: linear-gradient(180deg, #e9c863, #c9a13a); color: #3a2905;
}
.choix-note.v-argent, .choix-note.v-argent_rare { background: linear-gradient(180deg, #e8edf3, #a6b0bf); color: #26303d; }
.choix-note.v-bronze, .choix-note.v-bronze_rare { background: linear-gradient(180deg, #e0a878, #a0703f); color: #3b2415; }
.choix-note.v-semaine { background: linear-gradient(180deg, #2a2f3b, #0c0f16); color: #f1dc96; }
.choix-note.v-saison { background: linear-gradient(180deg, #2a55b8, #0a1946); color: #fff; }
.choix-note.v-heros { background: linear-gradient(180deg, #1a7461, #062f27); color: #f6e7a8; }
.choix-note.v-icone { background: linear-gradient(180deg, #fffaf0, #d8c79c); color: #413418; }
.choix-nom { min-width: 0; display: grid; }
.choix-nom b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.choix-nom small { color: var(--doux); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choix-dr { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; }
.choix-poste { font-family: var(--police-titre); font-weight: 800; text-align: center; color: var(--accent); }
.choix-poste.hors { color: var(--danger); }
#ch-recherche { margin: 10px 0 8px; }

/* -------------------------------------------------------------------- match -- */
.match-tete { display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: center; }
.match-tete .energie { grid-column: 1 / -1; }
@media (min-width: 700px) { .match-tete { grid-template-columns: auto 1fr auto; } .match-tete .energie { grid-column: auto; } }
.division {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; text-align: center;
  background: linear-gradient(160deg, #1d2c52, #0e1730); border: 1px solid #34487d;
}
.division small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: -10px; }
.division b { font-family: var(--police-titre); font-size: 34px; }
.match-prog { display: grid; gap: 7px; min-width: 0; }
.energie { display: flex; align-items: center; gap: 10px; }
.pips-energie { display: inline-flex; gap: 5px; }
.pips-energie i { width: 14px; height: 22px; border-radius: 4px; background: #1b2540; border: 1px solid var(--trait); transform: skewX(-12deg); }
.pips-energie i.plein { background: linear-gradient(180deg, #ffe08a, var(--or)); border-color: #b98a1c; box-shadow: 0 0 8px rgba(246, 201, 79, .5); }
.energie small { color: var(--doux); font-size: 12px; }

.adversaires { display: grid; gap: 12px; }
@media (min-width: 900px) { .adversaires { grid-template-columns: repeat(3, 1fr); } }
.adversaire {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 6px 12px; align-items: center;
  padding: 14px; border-radius: var(--rayon); border: 1px solid var(--trait);
  background: linear-gradient(180deg, var(--surface), #0f1627);
}
.adversaire .bouton { grid-column: 1 / -1; }
.adv-ecu { width: 46px; height: 54px; }
.adv-ecu svg { width: 100%; height: 100%; }
.adv-corps { min-width: 0; display: grid; }
.adv-corps h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-corps small { color: var(--doux); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-niveau { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.niveau-facile .adv-niveau { color: #8fd14f; } .niveau-equilibre .adv-niveau { color: var(--or); } .niveau-difficile .adv-niveau { color: var(--danger); }
.niveau-difficile { border-color: rgba(255, 93, 108, .35); }
.adv-force { text-align: center; display: grid; line-height: 1; }
.adv-force b { font-family: var(--police-titre); font-size: 28px; }
.adv-force small { color: var(--doux); font-size: 12px; margin-top: 3px; }

.historique { display: grid; gap: 6px; }
.histo-ligne {
  display: grid; grid-template-columns: 26px 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: 14px;
}
.histo-ligne > b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.histo-ligne.v > b { background: rgba(53, 224, 161, .2); color: var(--accent); }
.histo-ligne.n > b { background: rgba(246, 201, 79, .2); color: var(--or); }
.histo-ligne.d > b { background: rgba(255, 93, 108, .2); color: var(--danger); }
.histo-ligne span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.histo-ligne .score { font-family: var(--police-titre); font-weight: 700; }

.match-scene { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.tableau {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 14px;
  border-radius: 18px; background: linear-gradient(180deg, #17223d, #0d1426); border: 1px solid #2c3d6a;
}
.tableau.bouge { animation: pouls .5s ease; }
.tab-equipe { display: grid; text-align: center; min-width: 0; }
.tab-equipe b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-equipe small { color: var(--doux); font-size: 12px; }
.tab-score { display: flex; gap: 10px; align-items: center; font-family: var(--police-titre); font-weight: 800; font-size: 48px; }
.tab-score i { font-style: normal; color: var(--doux); font-size: 30px; }
.chrono { display: flex; align-items: center; gap: 12px; }
.chrono-barre { flex: 1; height: 6px; border-radius: 6px; background: #0a101d; overflow: hidden; }
.chrono-barre i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .12s linear; }
#t-min { font-family: var(--police-titre); font-weight: 700; width: 46px; text-align: right; }
.fil { display: grid; gap: 6px; max-height: 280px; overflow: hidden; }
.fil-ligne { padding: 9px 12px; border-radius: 11px; background: rgba(255, 255, 255, .04); font-size: 14.5px; animation: monte .25s ease; }
.fil-ligne.neutre { color: var(--doux); text-align: center; }
.fil-ligne.but.nous { background: rgba(53, 224, 161, .12); border: 1px solid rgba(53, 224, 161, .35); }
.fil-ligne.but.eux { background: rgba(255, 93, 108, .1); border: 1px solid rgba(255, 93, 108, .3); }
.fil-ligne .balle { margin-right: 6px; }
.fil-ligne small { color: var(--doux); }
.verdict { display: grid; gap: 10px; text-align: center; padding: 20px; border-radius: 18px; border: 1px solid var(--trait); background: var(--surface); animation: monte .35s ease; }
.verdict.v { border-color: rgba(53, 224, 161, .6); background: linear-gradient(180deg, rgba(53, 224, 161, .14), var(--surface)); }
.verdict.d { border-color: rgba(255, 93, 108, .4); }
.verdict h2 { font-size: 28px; }
.verdict-gain { font-family: var(--police-titre); font-weight: 700; font-size: 20px; color: var(--or); }
.promo { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(246, 201, 79, .12); border: 1px solid rgba(246, 201, 79, .5); }
.promo b { color: var(--or); }

/* -------------------------------------------------------------------- defis -- */
.defis-liste { display: grid; gap: 10px; }
@media (min-width: 900px) { .defis-liste { grid-template-columns: 1fr 1fr; } }
.defi {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px;
  border-radius: var(--rayon); border: 1px solid var(--trait); background: linear-gradient(180deg, var(--surface), #0f1627);
}
.defi.pret { border-color: rgba(246, 201, 79, .6); background: linear-gradient(120deg, rgba(246, 201, 79, .12), var(--surface) 60%); }
.defi.reclame { opacity: .55; }
.defi-corps { display: grid; gap: 5px; min-width: 0; }
.defi-corps small { color: var(--doux); font-size: 12px; }
.defi-droite { display: grid; gap: 8px; justify-items: end; text-align: right; }
.defi-prix { font-size: 13px; font-weight: 700; color: var(--or); }
.defi-fait { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(53, 224, 161, .15); color: var(--accent); font-weight: 800; }
.defis-groupe + .defis-groupe { margin-top: 10px; }
