/* L'appli Shadow Boxing Club, thème Costa Neon. Mêmes couleurs et mêmes lettres que les maquettes :
   Bungee pour les titres et les boutons, Anton pour les grands chiffres, Inter pour le texte. */
:root {
  --ink: #0B0B1A; --panel: #16142E; --line: #2E2A55; --line2: #5A5680; --text: #FFF4E6; --soft: #E4DFF5; --muted: #BDB8DA;
  --gold: #FFD166; --pink: #FF3D9A; --teal: #2EE6D6; --orange: #FF8A3D;
  --sunset: linear-gradient(180deg, #FFD166, #FF8A3D 55%, #FF3D9A);
  --sign: "Bungee", system-ui, sans-serif; --num: "Anton", "Bungee", sans-serif; --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font: 500 15px/1.45 var(--body); -webkit-tap-highlight-color: transparent; }
body { display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
/* La vue ne glisse jamais de côté : seul ce qui est fait pour (le carrousel des défis) défile en largeur. */
html, body { overflow-x: hidden; overscroll-behavior-x: none; }
#vue { flex: 1; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 14px; display: flex; flex-direction: column; gap: 12px; }
#vue > * { max-width: 100%; }
#onglets { display: grid; grid-template-columns: repeat(5, minmax(max-content, 1fr)); padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 12px); border-top: 1px solid var(--line); background: #100F22; }
#onglets[hidden] { display: none; }
#onglets a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; font: 600 12px/1 var(--body); color: var(--muted); }
#onglets a.on { color: var(--gold); font-weight: 700; }
#onglets svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 29 novembre (ENTRE AMIS, cinquième onglet ; piste B de la maquette validée) : la barre au néon. L'onglet choisi s'allume
   comme une enseigne (halo jaune et rose), les autres restent éteints. Rien sous « réduire les animations » : rien ne bouge. */
#onglets a:not(.on) svg { opacity: .82; }
#onglets a.on { color: #FFE7A8; text-shadow: 0 0 6px rgba(255, 61, 154, .85); }
#onglets a.on svg { stroke: #FFE7A8; filter: drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 6px var(--pink)) drop-shadow(0 0 12px rgba(255, 61, 154, .7)); }
/* (29 novembre : cinq colonnes égales ne laissaient plus 6 points de chaque côté de « Classement » ni d'« Entre amis » ;
   chaque colonne prend au moins son mot et 6 points de chaque côté, le reste se partage. tools/e2e/accueil.mjs le mesure.) */
#onglets a { padding-left: 6px; padding-right: 6px; }
/* (sous 340 points, le premier iPhone SE : 6 points ne tiennent plus en français ; la barre se resserre plutôt que de déborder) */
@media (max-width: 340px) { #onglets a { padding-left: 2px; padding-right: 2px; font-size: 12px; letter-spacing: 0; } }
.kicker { margin: 0; font: 700 11px/1.2 var(--body); letter-spacing: .18em; color: var(--teal); text-transform: uppercase; }
.titre { margin: 0; font: 400 30px/1.08 var(--sign); }
.cta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 72px; border: 0; border-radius: 22px; background: var(--sunset); color: #1A0B1F; box-shadow: 0 6px 0 #8A1457; cursor: pointer; width: 100%; }
.cta b { font: 400 28px/1 var(--sign); }
.cta span { margin-top: 3px; font: 700 11px/1 var(--body); letter-spacing: .14em; }
.cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #8A1457; }
.carte { padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.pastilles { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pastilles > .pastille:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Sur un téléphone étroit la rangée se resserre pour tenir en entier : la ligue garde son nom complet. */
@media (max-width: 400px) {
  .pastilles { gap: 6px; }
  .pastilles .pastille { height: 44px; gap: 6px; padding: 0 10px 0 6px; font-size: 12.5px; }
  .pastilles .pastille.serie { font-size: 14px; }
  .pastilles .pastille img { width: 26px; height: 31px; }
  .pastilles .beta { padding: 5px 7px; font-size: 10px; letter-spacing: .1em; }
  .pastilles .son { width: 40px; height: 40px; }
}
@media (max-width: 340px) { .pastilles .beta { display: none; } }
.pastille { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 8px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); font: 400 14px/1 var(--sign); color: var(--gold); }
.pastille img { width: 32px; height: 38px; object-fit: contain; }
.pastille.serie { color: var(--orange); font-size: 16px; }
/* Le bouton du son, au bout de la rangée : un haut-parleur, barré quand la musique est coupée. */
.son { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--gold); cursor: pointer; }
.son svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.son .barre { display: none; }
.son.coupe { color: var(--muted); }
.son.coupe .ondes { display: none; }
.son.coupe .barre { display: inline; }
.beta { margin-left: auto; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--teal); font: 700 11px/1 var(--body); letter-spacing: .16em; color: var(--teal); }

/* ---------- Accueil : le quartier en grand ---------- */
.quartier { position: relative; flex: 1; min-height: 480px; border-radius: 26px; overflow: hidden; background: var(--panel); display: flex; flex-direction: column; justify-content: space-between; }
.quartier > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.quartier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px; background: linear-gradient(180deg, rgba(11,11,26,.78), rgba(11,11,26,0)); z-index: 1; }
.quartier::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 250px; background: linear-gradient(180deg, rgba(11,11,26,0), rgba(11,11,26,.88) 44%, rgba(11,11,26,.96)); z-index: 1; }
.quartier > header, .quartier > footer { position: relative; z-index: 2; }
.quartier header { padding: 16px 18px 0; }
.quartier header h1 { margin: 2px 0 0; font: 400 32px/1.05 var(--sign); text-shadow: 0 3px 0 var(--pink); }
.quartier footer { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
/* L'appel d'Alloy : c'est elle qui donne la mission, le joueur vient l'aider. */
.appel { margin: 0; align-self: flex-end; max-width: 64%; padding: 9px 14px 10px; border-radius: 16px 16px 4px 16px; background: rgba(11,11,26,.82); border: 1px solid var(--pink); font: 600 14px/1.3 var(--body); color: var(--text); }
.appel b { display: block; margin-bottom: 2px; font: 700 10px/1 var(--body); letter-spacing: .18em; color: var(--pink); }
.chemin { position: relative; display: flex; align-items: center; justify-content: space-between; }
.chemin::before { content: ""; position: absolute; left: 14px; right: 18px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--line2); }
.chemin i { position: absolute; left: 14px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--gold); }
.chemin a, .chemin span { position: relative; flex: none; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; font: 400 12px/1 var(--sign); background: var(--panel); border: 2px solid var(--line2); color: var(--muted); }
.chemin .faite { background: var(--gold); border-color: var(--gold); color: #1A0B1F; }
.chemin .ici { width: 44px; height: 44px; border-radius: 22px; background: var(--sunset); border: 3px solid var(--text); color: #1A0B1F; font-size: 18px; box-shadow: 0 0 18px rgba(255,61,154,.9); }
.chemin .boss { width: 46px; height: 46px; border-radius: 23px; border: 3px solid var(--pink); overflow: hidden; box-shadow: 0 0 14px rgba(255,61,154,.7); }
.chemin .boss img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chemin span.boss img { filter: saturate(.7) brightness(.8); }
.chemin .boss.faite { border-color: var(--gold); }
.chemin .boss.faite img { filter: brightness(.45); }
.chemin .boss svg { position: relative; width: 22px; height: 22px; stroke: var(--gold); }
.chemin .boss.ici { width: 52px; height: 52px; border-radius: 26px; border-color: var(--text); }
.chemin svg { width: 18px; height: 18px; }
.quartier h2 { margin: 2px 0 0; font: 400 25px/1.1 var(--sign); }
.rangee { display: flex; align-items: center; gap: 14px; }
.rangee img { width: 50px; height: 56px; object-fit: contain; flex: none; }
.rangee h3 { margin: 2px 0 0; font: 400 15px/1.25 var(--sign); }
.rangee.bientot { opacity: .6; }

/* ---------- Fiche d'une étape : format story ---------- */
#vue.plein { padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px calc(env(safe-area-inset-bottom, 0px) + 12px); overflow: hidden; }
.story { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
/* Le cadre prend toute la hauteur libre et reste en 9:16 ; sur un écran très allongé il s'arrête à la
   largeur de l'écran et la vidéo perd alors quelques pixels sur les côtés, jamais en haut ni en bas. */
.story .cadre { position: relative; flex: 1; min-height: 0; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.story video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story video.miroir { transform: scaleX(-1); }
.story .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.story .appel { position: absolute; left: 12px; bottom: 46px; max-width: 62%; align-self: auto; }
.story header { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 34px; background: linear-gradient(180deg, rgba(11,11,26,.72), rgba(11,11,26,0)); }
.story header > div:nth-child(2) { flex: 1; min-width: 0; padding-top: 3px; }
.story .titre { font-size: 27px; text-shadow: 0 3px 0 var(--pink); }
.retour { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 21px; background: rgba(11,11,26,.6); color: var(--text); }
.retour svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.story .deja { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 7px 10px; border-radius: 12px; background: rgba(11,11,26,.6); }
.story .deja b { font: 400 17px/1 var(--num); letter-spacing: .03em; color: var(--gold); }
.story .cta { position: relative; flex: none; width: calc(100% - 28px); max-width: 420px; margin-top: -30px; min-height: 68px; }
.story .cta span { font-size: 10.5px; letter-spacing: .1em; }
.etoiles { display: inline-flex; gap: 4px; vertical-align: middle; }
.etoiles i { width: 18px; height: 18px; background: #3B3670; clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0 38%, 37% 35%); }
.etoiles i.on { background: var(--gold); }

/* ---------- Classement et profil ---------- */
.vide { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 18px; }
.vide img { width: 84px; height: 100px; object-fit: contain; }
.liste { display: flex; flex-direction: column; gap: 6px; }
.liste div { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.liste div > span:first-child { flex: 1; min-width: 0; font: 400 14px/1.2 var(--sign); }
.liste div b { font: 400 18px/1 var(--num); }
.liste .ferme { opacity: .45; }
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tuiles div { padding: 12px 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.tuiles b { display: block; font: 400 28px/1 var(--num); }
.tuiles span { display: block; margin-top: 6px; font: 600 11px/1.2 var(--body); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.choix { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); }
.choix button { flex: 1; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; font: 700 13px/1 var(--body); color: var(--muted); cursor: pointer; }
.choix button.on { background: var(--gold); color: #1A0B1F; }
.ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lien { font: 600 14px/1.3 var(--body); color: var(--gold); }
.discret { background: none; border: 0; padding: 8px 0; font: 600 13px/1 var(--body); color: #FF8FC4; cursor: pointer; align-self: center; }

/* Dans une vue qui défile, rien ne se tasse : chaque bloc garde sa hauteur. */
#vue:not(.plein) > * { flex-shrink: 0; }

/* ---------- Classement : une question à la fois ---------- */
.question { display: flex; align-items: center; gap: 8px; }
.question .titre { flex: 1; min-width: 0; text-align: center; font-size: 24px; text-shadow: 0 3px 0 var(--pink); }
.quoi { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Profil : calories, technique, corps ---------- */
.calories { display: flex; align-items: center; gap: 14px; }
.calories img { width: 46px; height: 54px; object-fit: contain; flex: none; }
.calories b { display: block; font: 400 24px/1.1 var(--num); letter-spacing: .02em; color: var(--gold); }
.calories span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.barre > div { display: flex; justify-content: space-between; align-items: baseline; }
.barre span { font: 400 14px/1 var(--sign); }
.barre b { font: 400 20px/1 var(--num); }
.barre i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; }
.barre u { display: block; height: 100%; border-radius: 5px; }
.barre p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); }
.corps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.corps label { display: flex; flex-direction: column; gap: 6px; font: 600 12px/1 var(--body); color: var(--muted); }
.saisie { display: flex; align-items: baseline; gap: 4px; min-height: 48px; padding: 0 10px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line2); }
.saisie:focus-within { border-color: var(--gold); }
.saisie input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); font: 400 22px/48px var(--num); outline: none; -moz-appearance: textfield; }
.saisie input::-webkit-outer-spin-button, .saisie input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.saisie i { font: 600 12px/1 var(--body); font-style: normal; color: var(--muted); }

/* ---------- Accueil : les défis, illustrés comme des missions ---------- */
.entete { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.defis { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -18px; padding: 0 18px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
#vue > .defis { max-width: calc(100% + 36px); }
.defis::-webkit-scrollbar { display: none; }
.defi { position: relative; flex: none; width: 78%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); scroll-snap-align: center; }
.defi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.defi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,26,.88) 0, rgba(11,11,26,.5) 42%, rgba(11,11,26,0) 66%); }
.defi > div { position: absolute; left: 14px; bottom: 12px; width: 56%; z-index: 1; }
.defi .kicker { color: var(--gold); font-size: 10px; letter-spacing: .14em; }
.defi h3 { margin: 4px 0 0; font: 400 16px/1.12 var(--sign); text-shadow: 0 2px 0 var(--ink); }
/* Une carte de défi est un lien vers le jeu : le mot JOUER en pastille, puis les étoiles et le record du joueur. */
a.defi { color: var(--text); text-decoration: none; }
a.defi:active { transform: scale(.985); }
.defi .bas { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 700 12px/1 var(--body); color: var(--text); white-space: nowrap; }
.defi .bas b { padding: 6px 10px 5px; border-radius: 999px; background: var(--gold); color: #1A0B1F; font: 400 12px/1 var(--sign); letter-spacing: .04em; }
.defi .bas .etoiles i { width: 13px; height: 13px; }
.defi .bas span:last-child { text-shadow: 0 1px 0 var(--ink), 0 0 8px var(--ink); }
.defi.fait { border-color: var(--gold); }

/* ---------- Classement : la liste des joueurs ---------- */
.filtre { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel); font: 400 12px/1 var(--sign); color: var(--gold); cursor: pointer; }
.filtre:active { background: var(--gold); color: #1A0B1F; }
button.lien { background: none; border: 0; padding: 6px 0; cursor: pointer; }

/* ---------- Le compte : invitation, formulaire, code ---------- */
.inviter { display: flex; align-items: center; gap: 12px; border-color: var(--gold); }
.inviter img { flex: none; width: 66px; height: 42px; object-fit: contain; }   /* (son image à elle, img/garde-progression.webp : une ceinture de champion, large, entière dans 66 sur 42) */
@media (max-width: 374px) { .inviter img { width: 52px; height: 34px; } }   /* (petit téléphone : la ceinture rend 14 points au texte, qui reste sur trois lignes) */
.inviter div { flex: 1; min-width: 0; }
.inviter h3 { margin: 0; font: 400 15px/1.2 var(--sign); color: var(--gold); }
.inviter p { margin: 3px 0 0; font-size: 13px; color: var(--soft); }
.inviter svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tete { display: flex; align-items: center; gap: 12px; }
.tete .retour { background: var(--panel); border: 1px solid var(--line); }
.chapo { margin: 0; color: var(--soft); }
.note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.centre { align-self: center; text-align: center; padding: 6px 0; }
.formulaire { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ > span { font: 700 11px/1 var(--body); letter-spacing: .16em; color: var(--teal); }
.champ > span i { margin-left: 6px; font-style: normal; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.champ input { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--ink); color: var(--text); font: 600 17px/1 var(--body); outline: none; }
.champ input:focus { border-color: var(--gold); }
.champ input::placeholder { color: #77739A; }
.champ input.grand { font: 400 26px/1 var(--num); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.champ small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.coche { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--soft); cursor: pointer; }
.coche input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--gold); }
/* Le lien des conditions, sous la case de l'âge : aligné sur la phrase (case de 24 px + 12 px d'écart), collé à elle. */
.formulaire .lien.conditions { align-self: flex-start; margin: -12px 0 0 36px; font-size: 13px; }
.erreur { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,61,154,.14); border: 1px solid var(--pink); font: 600 14px/1.35 var(--body); color: #FFC2DF; }
.cta[disabled] { opacity: .55; }
.cta.mince { min-height: 58px; }
.cta.mince b { font-size: 20px; }
.compte { display: flex; flex-direction: column; gap: 12px; }
.compte h3 { margin: 0; font: 400 19px/1.15 var(--sign); color: var(--gold); }
.compte .adresse { margin: 4px 0 0; font: 600 15px/1.3 var(--body); color: var(--text); overflow-wrap: anywhere; }
.compte .etat { margin: 0; font-size: 13px; color: var(--muted); }
.bouton { min-height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--ink); font: 400 14px/1 var(--sign); color: var(--text); cursor: pointer; }
.bouton:active { background: var(--gold); color: #1A0B1F; }
.bouton[disabled] { opacity: .5; }
.code { padding: 14px; border-radius: 14px; background: var(--ink); border: 1px dashed var(--gold); text-align: center; }
.code b { display: block; font: 400 34px/1 var(--num); letter-spacing: .1em; color: var(--gold); }
.code p { margin: 8px 0 0; font-size: 13px; color: var(--soft); }
.code .erreur { margin: 0; }

/* Signaler un pseudo au classement (chantier sécurité) : un lien discret sous la liste ; une fois touché, les pseudos se touchent. */
.lien.signaler { align-self: center; margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.lien.signaler[disabled] { opacity: 1; color: var(--soft); text-decoration: none; }
/* Retrouver son compte par e-mail, et l'invitation à donner son adresse. */
.formulaire h3 { margin: 5px 0 0; font: 400 17px/1.2 var(--sign); color: var(--gold); }
.formulaire .bouton { padding: 12px; line-height: 1.25; }
.envoye { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(46,230,214,.12); border: 1px solid var(--teal); font: 600 14px/1.4 var(--body); color: #C9FBF6; }
.ancien-accord { margin-top: -8px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.confirmer .pseudo { margin: 0; font: 400 26px/1.15 var(--sign); color: var(--gold); overflow-wrap: anywhere; }
.compte .alerte { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,209,102,.1); border: 1px solid var(--gold); font-size: 13.5px; line-height: 1.45; color: var(--soft); }

/* Un défi ouvert : trois boutons de niveau en bas de la carte (FACILE, DIFFICILE, EXTRÊME), chacun avec ses étoiles. */
.defi.ouvert > div { bottom: 62px; }
.defi .niveaux-defi { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; margin: 0; }
.defi .niveaux-defi a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 7px; border-radius: 12px; background: rgba(11,11,26,.86); border: 1px solid var(--gold); color: var(--text); text-decoration: none; }
.defi .niveaux-defi a:active { transform: scale(.96); }
/* Un niveau fermé (l'EXTRÊME pour le MVP) : « BIENTÔT », en pointillés comme les niveaux de l'histoire, sans cadenas. */
.defi .niveaux-defi .ferme { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px 7px; border-radius: 12px; background: rgba(11,11,26,.72); border: 1.5px dashed rgba(255,255,255,.4); color: var(--muted); }
.defi .niveaux-defi .ferme i { font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .1em; color: var(--muted); }
.defi .niveaux-defi b { font: 400 12px/1 var(--sign); letter-spacing: .03em; white-space: nowrap; }
.defi .niveaux-defi .etoiles i { width: 11px; height: 11px; }

/* ── Les habitués du club (le classement : app/classement.css) ── */
/* Un habitué du club : un personnage du jeu. Son étiquette ne s'enlève pas. */
.du-club { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 999px; background: rgba(45,226,198,.14); border: 1px solid var(--teal); color: var(--teal); font: 700 10px/1 var(--body); font-style: normal; letter-spacing: .08em; white-space: nowrap; }
.note-habitues { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.35; color: var(--soft); }
/* Les ceintures de ligue sont larges : dans une pastille, 40 de large sur 27 de haut. */
.pastille img[src*="ligue-"], .pastilles .pastille img[src*="ligue-"] { width: 40px; height: 27px; object-fit: contain; }
.inviter img.rond { width: 52px; height: 52px; }

/* 0.80 : ce que la page montre avant que le code arrive (app/index.html, app/demarrage.js). */
.demarrage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; color: #FFF4E6; }
.demarrage img { width: 132px; height: 132px; }
.demarrage-mot { margin: 0; font: 700 18px/1.3 Inter, system-ui, -apple-system, sans-serif; letter-spacing: 2px; }
.demarrage-barre { display: block; width: 140px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #FFD166, #FF3D9A); animation: demarrage-pulse 1.2s ease-in-out infinite alternate; }
@keyframes demarrage-pulse { from { opacity: .35; transform: scaleX(.6); } to { opacity: 1; transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .demarrage-barre { animation: none; } }
.demarrage-recharger { min-height: 48px; padding: 12px 26px; border: 0; border-radius: 14px; background: linear-gradient(90deg, #FFD166, #FF3D9A); color: #1A0B1F; font: 700 17px/1 Inter, system-ui, sans-serif; letter-spacing: 1px; }
/* (0.80, correctif : la ligne du rapport d'un démarrage bloqué, pour une capture d'écran ; app/demarrage.js) */
.demarrage-code { margin: 6px 0 0; max-width: 92vw; padding: 0 12px; font: 500 12px/1.4 ui-monospace, Menlo, monospace; color: rgba(255,244,230,.62); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
