/* cryptogame.cloud — les classements du live (1er oct. 2026). Sombre, néon, pensé téléphone d'abord. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('/fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --fond: #070b16;
  --fond-2: #0c1326;
  --carte: rgba(255, 255, 255, .045);
  --carte-forte: rgba(255, 255, 255, .08);
  --bord: rgba(255, 255, 255, .09);
  --texte: #eef3ff;
  --doux: #9aa8cb;
  --cyan: #00e5ff;
  --violet: #9d4edd;
  --or: #ffc53d;
  --argent: #d6deec;
  --bronze: #e8a066;
  --rouge: #ff375f;
  --rayon: 14px;
  --gouttiere: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(0, 229, 255, .12), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(157, 78, 221, .16), transparent 60%),
    var(--fond);
  color: var(--texte);
  font: 500 16px/1.45 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img { display: block; }

.enveloppe { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 var(--gouttiere); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #04191b; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.evitement:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------------- en-tête ---------------- */
.entete {
  position: sticky; top: 0; z-index: 5;
  background: rgba(7, 11, 22, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.entete__ligne { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { text-decoration: none; font-family: 'Anton', 'Archivo', sans-serif; font-size: 26px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.logo__mot { background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo__mot--b { background: linear-gradient(90deg, var(--violet), #ff6bd6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.recherche { position: relative; flex: 1; min-width: 0; }
.recherche input {
  width: 100%; height: 40px; padding: 0 12px 0 38px;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 999px;
  outline: none;
}
.recherche input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); }
.recherche__icone { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--doux); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.recherche__resultats {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--fond-2); border: 1px solid var(--bord); border-radius: var(--rayon);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.recherche__resultats a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-decoration: none; }
.recherche__resultats a:hover, .recherche__resultats a:focus { background: var(--carte-forte); }
.recherche__resultats .pts { margin-left: auto; color: var(--doux); font-variant-numeric: tabular-nums; font-size: 14px; }
.recherche__resultats .rien { padding: 12px; color: var(--doux); }

/* ---------------- blocs ---------------- */
main { padding-top: 18px; padding-bottom: 28px; }
.bloc { margin-bottom: 26px; }
.bloc__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bloc__titre { margin: 0; font-family: 'Anton', 'Archivo', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.maj { color: var(--doux); font-size: 13px; white-space: nowrap; }

/* la pièce d'or (dessinée, pas un émoji) */
.piece { display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #fff3b0 0 12%, #ffc53d 45%, #b8860b 100%);
  box-shadow: inset 0 0 0 2px rgba(138, 98, 0, .75), inset 0 0 0 5px rgba(255, 220, 120, .35); }
.piece--titre { width: 22px; height: 22px; }

/* ---------------- soutiens ---------------- */
.soutiens { list-style: none; margin: 0 calc(var(--gouttiere) * -1); padding: 4px var(--gouttiere) 10px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.soutien {
  scroll-snap-align: start; flex: 0 0 132px;
  background: linear-gradient(180deg, rgba(255, 197, 61, .10), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 197, 61, .25); border-radius: var(--rayon);
  padding: 12px 10px; text-align: center; position: relative;
}
.soutien a { text-decoration: none; display: block; }
.soutien .av { margin: 0 auto 8px; width: 58px; height: 58px; }
.soutien .nom { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soutien .val { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--or); font-weight: 900; font-variant-numeric: tabular-nums; }
.soutien .rg { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 900; color: var(--doux); }
.soutien:nth-child(1) { border-color: rgba(255, 197, 61, .7); box-shadow: 0 0 24px rgba(255, 197, 61, .18); }

/* ---------------- périodes et jeux ---------------- */
.periodes, .jeux { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gouttiere) * -1); padding: 2px var(--gouttiere) 10px; scrollbar-width: none; }
.periodes::-webkit-scrollbar, .jeux::-webkit-scrollbar { display: none; }
.periodes button, .jeux button {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--carte); border: 1px solid var(--bord); color: var(--doux); font-weight: 800; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.periodes button[aria-selected="true"] { background: linear-gradient(90deg, rgba(0, 229, 255, .22), rgba(157, 78, 221, .22)); border-color: rgba(0, 229, 255, .6); color: #fff; }
.jeux button { height: 32px; font-size: 14px; padding: 0 12px; }
.jeux button[aria-pressed="true"] { background: rgba(157, 78, 221, .25); border-color: rgba(157, 78, 221, .7); color: #fff; }
.direct { width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 0 rgba(255, 55, 95, .7); animation: pouls 1.6s infinite; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 55, 95, .6); } 70% { box-shadow: 0 0 0 8px rgba(255, 55, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 55, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .direct { animation: none; } }

.filtre input {
  width: 100%; height: 38px; padding: 0 12px; margin-bottom: 12px;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; outline: none;
}
.filtre input:focus { border-color: var(--cyan); }

/* ---------------- avatar ---------------- */
/* La taille de la police SUIT la taille de la pastille : l'initiale reste lisible partout. */
.av { width: 40px; height: 40px; font-size: 40px; border-radius: 50%; flex: none; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1f2b4d, #2b1f4d); display: grid; place-items: center; font-weight: 900; color: #cdd6f4; line-height: 1; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av span { font-size: .44em; }
.soutien .av { font-size: 58px; }
.marche .av { font-size: 56px; }
.marche--1 .av { font-size: 72px; }
.carte-joueur .av { font-size: 84px; }

/* ---------------- podium ---------------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 6px 0 14px; }
.podium:empty { display: none; }
.marche { text-align: center; text-decoration: none; border-radius: var(--rayon); padding: 12px 6px 10px; background: var(--carte); border: 1px solid var(--bord); min-width: 0; }
.marche .av { width: 56px; height: 56px; margin: 0 auto 8px; }
.marche--1 { padding-top: 16px; background: linear-gradient(180deg, rgba(255, 197, 61, .2), rgba(255, 255, 255, .03)); border-color: rgba(255, 197, 61, .65); }
.marche--1 .av { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--or), 0 0 22px rgba(255, 197, 61, .45); }
.marche--2 .av { box-shadow: 0 0 0 3px var(--argent); }
.marche--3 .av { box-shadow: 0 0 0 3px var(--bronze); }
.marche .nom { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marche .pts { font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; }
.marche .med { font-family: 'Anton', sans-serif; font-size: 20px; line-height: 1; margin-bottom: 6px; }
.marche--1 .med { color: var(--or); } .marche--2 .med { color: var(--argent); } .marche--3 .med { color: var(--bronze); }

/* ---------------- classement ---------------- */
.classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ligne a {
  display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 12px; text-decoration: none;
  background: var(--carte); border: 1px solid var(--bord);
}
.ligne a:hover, .ligne a:focus-visible { background: var(--carte-forte); }
.ligne .rg { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--doux); text-align: center; font-variant-numeric: tabular-nums; }
.ligne .nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne .pts { font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.ligne .pts small { color: var(--doux); font-weight: 700; margin-left: 3px; }
.vide { color: var(--doux); text-align: center; padding: 24px 0; }
.plus { display: block; margin: 14px auto 0; height: 42px; padding: 0 20px; border-radius: 999px; cursor: pointer; background: var(--carte); border: 1px solid var(--bord); font-weight: 800; }
.plus:hover { border-color: var(--cyan); }

/* ---------------- fiche joueur ---------------- */
.retour { display: inline-block; margin-bottom: 14px; color: var(--doux); text-decoration: none; font-weight: 700; }
.retour:hover { color: #fff; }
.carte-joueur { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(0, 229, 255, .10), rgba(157, 78, 221, .14)); border: 1px solid var(--bord); margin-bottom: 14px; }
.carte-joueur .av { width: 84px; height: 84px; box-shadow: 0 0 0 3px rgba(0, 229, 255, .6); }
.carte-joueur h1 { margin: 0; font-size: 26px; line-height: 1.15; overflow-wrap: anywhere; }
.carte-joueur .sous { color: var(--doux); font-size: 14px; margin-top: 4px; }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tuile { padding: 12px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); min-width: 0; }
.tuile .lib { color: var(--doux); font-size: 13px; font-weight: 700; }
.tuile .val { font-size: 22px; font-weight: 900; margin-top: 2px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.tuile .val small { font-size: 13px; color: var(--doux); font-weight: 700; }
.rangs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.rang { padding: 10px; border-radius: 12px; background: var(--carte); border: 1px solid var(--bord); text-align: center; min-width: 0; }
.rang .lib { color: var(--doux); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rang .val { font-family: 'Anton', sans-serif; font-size: 22px; margin-top: 2px; }
.rang .val small { font-family: 'Archivo', sans-serif; font-size: 12px; color: var(--doux); }
.rang .pts { font-size: 12px; color: var(--doux); }
.rang--1 .val { color: var(--or); }
h2.sous-titre { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 10px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.table th { text-align: right; color: var(--doux); font-size: 12px; font-weight: 800; padding: 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.table th:first-child, .table td:first-child { text-align: left; }
.table td { background: var(--carte); padding: 10px 8px; text-align: right; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.table td:first-child { border-left: 1px solid var(--bord); border-radius: 10px 0 0 10px; font-weight: 800; }
.table td:last-child { border-right: 1px solid var(--bord); border-radius: 0 10px 10px 0; }
.defile { overflow-x: auto; margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere); }
.defile .table { min-width: 560px; }
.note { color: var(--doux); font-size: 13px; }
.jeux-cartes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.jeu-carte { padding: 12px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); }
.jeu-carte__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.jeu-carte__nom { font-weight: 900; }
.jeu-carte__pts { font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jeu-carte__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mini { text-align: center; padding: 6px 2px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.mini__val { font-weight: 900; font-variant-numeric: tabular-nums; }
.mini__lib { color: var(--doux); font-size: 11px; line-height: 1.2; margin-top: 2px; }

/* ---------------- pied ---------------- */
.pied { padding-top: 18px; padding-bottom: 32px; border-top: 1px solid var(--bord); color: var(--doux); font-size: 14px; }
.mentions summary { cursor: pointer; font-weight: 800; color: var(--texte); }
.mentions p { max-width: 70ch; }
.pied__note { margin-top: 10px; }

.chargement { color: var(--doux); padding: 18px 0; text-align: center; }

/* ================= v2 (1er oct.) ================= */
/* le lien vers le compte TikTok (pas de logo de marque : un bouton « lecture » et le pseudo) */
.tiktok { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 14px;
  background: linear-gradient(90deg, rgba(255, 55, 95, .22), rgba(0, 229, 255, .18)); border: 1px solid rgba(255, 55, 95, .5); }
.tiktok svg { width: 16px; height: 16px; fill: #fff; }
.tiktok:hover { border-color: #fff; }
.tiktok__texte { display: none; }
.tiktok--grand { height: 46px; padding: 0 18px; font-size: 15px; margin-bottom: 14px; }
@media (min-width: 560px) { .tiktok__texte { display: inline; } }

/* les rubriques */
.onglets { border-top: 1px solid var(--bord); }
.onglets__ligne { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.onglets__ligne::-webkit-scrollbar { display: none; }
.onglets a { flex: none; padding: 10px 7px; text-decoration: none; color: var(--doux); font-weight: 800; font-size: 13px; border-bottom: 3px solid transparent; white-space: nowrap; }
@media (min-width: 560px) { .onglets a { font-size: 14px; padding: 10px 12px; } }
.onglets a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }
.onglets a:hover { color: #fff; }
.onglets__idee { margin-left: auto; color: var(--or) !important; }

/* le bandeau « en direct » */
.bandeau-direct { display: flex; align-items: center; gap: 10px; padding: 10px var(--gouttiere); text-decoration: none; font-weight: 800;
  background: linear-gradient(90deg, rgba(255, 55, 95, .28), rgba(157, 78, 221, .2)); border-bottom: 1px solid rgba(255, 55, 95, .45); }
.bandeau-direct[hidden] { display: none; }
.bandeau-direct__texte { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bandeau-direct__aller { flex: none; color: #fff; }

.chiffres { color: var(--doux); font-size: 14px; margin: 0 0 14px; }
.voir { color: var(--cyan); text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; }
.intro { color: var(--doux); max-width: 64ch; margin: 0 0 14px; }

/* filtre + interrupteur « Détails » */
.outils { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.outils .filtre { flex: 1; min-width: 0; }
.outils .filtre input { margin-bottom: 0; }
.interrupteur { flex: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 14px; color: var(--doux); }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur__piste { width: 40px; height: 24px; border-radius: 999px; background: var(--carte-forte); border: 1px solid var(--bord); position: relative; transition: background .2s; }
.interrupteur__piste::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--doux); transition: transform .2s, background .2s; }
.interrupteur input:checked + .interrupteur__piste { background: rgba(0, 229, 255, .3); border-color: var(--cyan); }
.interrupteur input:checked + .interrupteur__piste::after { transform: translateX(16px); background: #fff; }
.interrupteur input:focus-visible + .interrupteur__piste { outline: 3px solid var(--cyan); outline-offset: 2px; }

.regle { color: var(--doux); font-size: 13px; margin: -4px 0 10px; }
.regle[hidden] { display: none; }

/* le record à battre (Sprint, Donjon) */
.record-a-battre { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--rayon); text-decoration: none;
  background: linear-gradient(90deg, rgba(255, 197, 61, .16), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 197, 61, .5); }
.record-a-battre[hidden] { display: none; }
.record-a-battre .av { width: 32px; height: 32px; font-size: 32px; }
.record-a-battre__lib { font-weight: 900; color: var(--or); }
.record-a-battre__val { font-family: 'Anton', sans-serif; font-size: 22px; line-height: 1; }
.record-a-battre__qui { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.record-a-battre__voir { color: var(--cyan); font-weight: 800; font-size: 13px; }

/* les lignes : nom + détail (masqué sans « Détails »), score principal + points en second */
.ligne .qui { display: flex; flex-direction: column; min-width: 0; }
.detail { color: var(--doux); font-size: 12px; font-weight: 600; line-height: 1.3; display: none; overflow-wrap: anywhere; }
.avec-details .detail, .detail--visible { display: block; }
.ligne .pts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ligne .pts small { margin-left: 0; }
.ligne .pts .pts-sec { font-size: 11px; color: var(--doux); font-weight: 700; }
.pts--or { color: var(--or) !important; flex-direction: row !important; align-items: center !important; gap: 6px; }
.marche .pts-sec { font-size: 12px; color: var(--doux); font-weight: 700; }
.marche .detail { margin-top: 4px; font-size: 11px; }

/* les records */
.carte-record { padding: 14px; border-radius: 16px; background: var(--carte); border: 1px solid var(--bord); margin-bottom: 14px; }
.carte-record h2.sous-titre { margin-top: 0; }
.record-or { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 12px; margin: 8px 0 10px;
  background: linear-gradient(90deg, rgba(255, 197, 61, .2), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 197, 61, .55); }
.record-or__val { font-family: 'Anton', sans-serif; font-size: 40px; line-height: 1; color: var(--or); }
.record-or__qui { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qui-record { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; min-width: 0; }
.qui-record span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qui-record .av { width: 28px; height: 28px; font-size: 28px; }
.liste-record, .liste-jeux-record { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.liste-record li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.liste-record .rg { font-family: 'Anton', sans-serif; color: var(--doux); text-align: center; }
.liste-record .val, .liste-jeux-record .val { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste-jeux-record li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.liste-jeux-record .jeu { grid-column: 1 / -1; color: var(--doux); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.monstres { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.monstre { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--bord); }
.monstre__tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.monstre__nom { font-weight: 900; }
.monstre__tete .note { margin-left: auto; }
.monstre__record { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.monstre__temps { font-family: 'Anton', sans-serif; font-size: 24px; color: var(--or); line-height: 1; }
.monstre__equipe { font-weight: 700; overflow-wrap: anywhere; }
.monstre__equipe a { color: var(--cyan); text-decoration: none; }
.monstre__podium { margin-top: 6px; font-size: 14px; }
.monstre__podium summary { cursor: pointer; color: var(--cyan); font-weight: 800; }
.monstre__podium ol { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.badge { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.badge--boss { background: rgba(255, 55, 95, .2); color: #ff8aa3; }
.badge--eclair { background: rgba(0, 229, 255, .15); color: var(--cyan); }

/* note les jeux */
.preferes { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.preferes:empty { display: none; }
.prefere { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 197, 61, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 197, 61, .3); }
.prefere__rg { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--or); }
.prefere__nom { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prefere__note { font-weight: 900; color: var(--or); }
.cartes-jeux { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.carte-jeu { padding: 14px; border-radius: var(--rayon); background: var(--carte); border: 1px solid var(--bord); }
.carte-jeu__tete { display: flex; align-items: center; gap: 10px; }
.carte-jeu__icone { font-size: 26px; line-height: 1; }
.carte-jeu__nom { font-weight: 900; font-size: 18px; }
.carte-jeu__texte { color: var(--doux); font-size: 14px; margin: 6px 0; }
.carte-jeu__moyenne { font-weight: 800; color: var(--or); font-size: 14px; margin-bottom: 6px; }
.carte-jeu__etat { color: var(--cyan); font-size: 13px; min-height: 1.2em; margin: 4px 0 0; }
.etoiles { display: flex; gap: 4px; }
.etoile { width: 44px; height: 44px; border-radius: 10px; cursor: pointer; font-size: 24px; line-height: 1; background: var(--carte); border: 1px solid var(--bord); color: rgba(255, 255, 255, .25); }
.etoile--pleine { color: var(--or); border-color: rgba(255, 197, 61, .55); background: rgba(255, 197, 61, .12); }
.etoile:hover { border-color: var(--or); }
.etoile:disabled { opacity: .6; cursor: wait; }

/* la boîte à idées */
.formulaire { display: grid; gap: 14px; max-width: 640px; }
.formulaire fieldset { border: 0; padding: 0; margin: 0; }
.formulaire legend, .formulaire__champ > span { font-weight: 800; margin-bottom: 6px; display: block; }
.formulaire__champ em { color: var(--doux); font-style: normal; font-weight: 600; }
.formulaire textarea, .formulaire input[type="text"] { width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--carte); border: 1px solid var(--bord); outline: none; resize: vertical; font: inherit; }
.formulaire textarea:focus, .formulaire input[type="text"]:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); }
.compteur { display: block; text-align: right; color: var(--doux); margin-top: 4px; }
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer; background: var(--carte); border: 1px solid var(--bord); color: var(--doux); font-weight: 800; }
.puce[aria-pressed="true"] { background: rgba(255, 197, 61, .18); border-color: rgba(255, 197, 61, .7); color: #fff; }
.pot-de-miel { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton { justify-self: start; height: 46px; padding: 0 26px; border-radius: 999px; cursor: pointer; font-weight: 900; border: 0; color: #04191b;
  background: linear-gradient(90deg, var(--cyan), #7af7ff); }
.bouton:disabled { opacity: .6; cursor: wait; }
.message { min-height: 1.4em; margin: 0; font-weight: 700; }
.message--ok { color: #5ce07a; }
.message--erreur { color: #ff8aa3; }

/* la fiche : performances */
.perfs { display: grid; gap: 8px; margin-bottom: 14px; }
.perf { display: block; padding: 12px; border-radius: var(--rayon); text-decoration: none; background: linear-gradient(90deg, rgba(0, 229, 255, .10), rgba(255, 255, 255, .03)); border: 1px solid rgba(0, 229, 255, .35); }
.perf--or { background: linear-gradient(90deg, rgba(255, 197, 61, .14), rgba(255, 255, 255, .03)); border-color: rgba(255, 197, 61, .45); }
.perf__lib { color: var(--doux); font-size: 13px; font-weight: 800; }
.perf__val { font-family: 'Anton', sans-serif; font-size: 28px; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.jeu-carte__rang { color: var(--doux); font-size: 13px; font-weight: 700; margin: -4px 0 8px; }

@media (min-width: 720px) {
  :root { --gouttiere: 24px; }
  .logo { font-size: 30px; }
  .tuiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rangs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .soutien { flex-basis: 150px; }
  .jeux-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartes-jeux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perfs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
