/* Les récompenses (chantier G). Tranche 1 : la ligne de la ceinture sur l'accueil. Une seule ligne, 56 points :
   la ceinture, et à côté le cran, la barre, ce qu'il reste (trois petites rangées : les noms longs y tiennent). */
.ceinture-ligne { display: flex; align-items: center; gap: 10px; height: 56px; flex: none; padding: 0 14px 0 8px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.ceinture-ligne > img { width: 60px; height: 40px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.ceinture-mil { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ceinture-haut { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.ceinture-haut b { flex: none; font: 400 17px/1 var(--sign); color: var(--gold); white-space: nowrap; }
.ceinture-haut em { flex: none; font: 700 14px/1 var(--body); font-style: normal; letter-spacing: .04em; color: var(--soft); white-space: nowrap; }
.ceinture-barre { position: relative; display: block; height: 12px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line2); overflow: hidden; }
.ceinture-barre u { position: absolute; inset: 0 auto 0 0; min-width: 6px; border-radius: 8px; background: linear-gradient(90deg, #FFD166, #FF8A3D 60%, #FF3D9A); }
@media (max-width: 370px) { .ceinture-ligne { padding-right: 10px; gap: 8px; } .ceinture-haut b { font-size: 15px; } .ceinture-haut em { font-size: 14px; letter-spacing: 0; } .ceinture-ligne > img { width: 50px; } }
/* Sur un écran court, la ligne s'aplatit (la ceinture, le cran, la barre à côté) pour que le bouton de l'histoire
   reste au-dessus du pli : c'est lui qui compte. Ce qu'il reste se lit alors à la collection. */
@media (max-height: 700px) {
  .ceinture-ligne { height: 40px; margin-bottom: -4px; }
  .ceinture-ligne > img { width: 44px; height: 30px; }
  .ceinture-mil { flex-direction: row; align-items: center; gap: 10px; }
  .ceinture-haut em { display: none; }
  .ceinture-ligne.ceinture-monte .ceinture-haut em { display: block; }
  .ceinture-ligne .ceinture-barre { flex: 1; }   /* la ligne seulement : dans une colonne (le prochain badge, la grande ceinture), flex: 1 écrasait la barre */
}
/* ── Tranche 3 : la remise. La réputation qui monte : le nombre gagné, en gros et en or, à la place de ce qu'il reste. */
.ceinture-ligne.ceinture-monte { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 209, 102, .4); }
.ceinture-ligne.ceinture-monte .ceinture-haut em { font: 400 22px/0.8 var(--num); letter-spacing: .02em; color: var(--gold); }
.ceinture-ligne.ceinture-monte .ceinture-barre u { transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.ceinture-ligne.ceinture-saut .ceinture-haut b { animation: ceinture-pop .5s ease-out; }
@keyframes ceinture-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: #fff; } 100% { transform: scale(1); } }
/* ── La cérémonie (0.76) : des badges ou une ceinture à remettre. Plein écran, OPAQUE (rien de l'accueil ne se voit
   dessous), au-dessus de tout sauf la transition d'une étape. Trois temps dans `.ceinture-acte` (ouvrir, badge,
   ceinture), puis le récapitulatif (`.ceinture-bilan`). Tout se joue sur transform et opacity ; sans mouvement
   (`.ceinture-calme` : le téléphone demande de réduire les animations), tout est posé d'un coup. */
.ceinture-ceremonie { --ceinture-rvb: 255, 209, 102; position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; overflow: hidden; outline: none; cursor: pointer; text-align: center; color: var(--text); user-select: none; -webkit-user-select: none; touch-action: manipulation;
  background: radial-gradient(circle at 50% 40%, rgba(var(--ceinture-rvb), .3), rgba(255, 61, 154, .16) 36%, rgba(11, 11, 26, 0) 66%), radial-gradient(circle at 50% 108%, rgba(46, 230, 214, .16), rgba(11, 11, 26, 0) 46%), #0B0B1A; }
.ceinture-ceremonie.ceinture-part { opacity: 0; transition: opacity .2s ease-out; }
/* Les rayons : une roue de lumière qui tourne lentement derrière la médaille. */
.ceinture-rayons { position: absolute; left: 50%; top: 40%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(var(--ceinture-rvb), .2) 0deg 7deg, rgba(var(--ceinture-rvb), 0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .45) 22%, transparent 46%); mask-image: radial-gradient(circle, #000 5%, rgba(0, 0, 0, .45) 22%, transparent 46%); }
.ceinture-ceremonie:not(.ceinture-calme):not(.ceinture-leger) .ceinture-rayons { animation: ceinture-roue 28s linear infinite; }
.ceinture-ceremonie[data-temps="bilan"] .ceinture-rayons { opacity: .22; top: 22%; }
.ceinture-eclats { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ceinture-eclair { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 2; background: radial-gradient(circle at 50% 40%, #fff, rgba(255, 255, 255, .5) 22%, rgba(255, 255, 255, 0) 62%); }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-eclair.ceinture-boum { animation: ceinture-eclair .5s ease-out; }
/* La scène : un mot au-dessus, la médaille au milieu, ce qu'elle est en dessous, la consigne en bas. */
.ceinture-acte { position: relative; z-index: 1; flex: 1; min-height: 0; width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 60px) 20px calc(env(safe-area-inset-bottom, 0px) + 26px); }
.ceinture-acte[hidden] { display: none; }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-acte.ceinture-secoue { animation: ceinture-secoue .3s linear; }
.ceinture-sur { margin: 0; min-height: 16px; font: 700 15px/1.1 var(--body); letter-spacing: .2em; color: var(--teal); text-transform: uppercase; }
.ceinture-points { display: flex; justify-content: center; gap: 8px; min-height: 10px; }
.ceinture-points i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ceinture-points i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.ceinture-ceremonie[data-temps="ouvrir"] .ceinture-points { visibility: hidden; }
.ceinture-centre { position: relative; flex: none; display: grid; place-items: center; margin: 4px 0; }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-centre.ceinture-boum { animation: ceinture-boum .46s cubic-bezier(.2, 1.5, .4, 1); }
.ceinture-halo { position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(var(--ceinture-rvb), .6), rgba(var(--ceinture-rvb), .18) 38%, rgba(var(--ceinture-rvb), 0) 64%); }
/* La médaille : deux faces dos à dos. Son dos, l'enseigne du club dans un hexagone doré ; sa face, le badge. */
.ceinture-medaille { position: relative; width: min(66vw, 280px, 35vh); aspect-ratio: 320 / 349; perspective: 900px; }
.ceinture-tourne { position: absolute; inset: 0; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; will-change: transform; }
.ceinture-verso, .ceinture-recto { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ceinture-recto { transform: rotateY(180deg); }
.ceinture-recto .ceinture-badge { width: 100%; }
.ceinture-verso { background: linear-gradient(160deg, #FFF1C2, #FFD166 28%, #FF8A3D 62%, #FF3D9A); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.ceinture-verso::before { content: ""; position: absolute; inset: 5%; background: radial-gradient(circle at 50% 38%, #322A66, #110E27 74%); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.ceinture-verso img { position: absolute; left: 16%; top: 19%; width: 68%; height: auto; }
/* Le reflet : une lame de lumière qui traverse le badge quand il se pose. */
.ceinture-reflet { position: absolute; inset: 0; overflow: hidden; pointer-events: none; clip-path: polygon(50% 2%, 94% 26%, 94% 74%, 50% 98%, 6% 74%, 6% 26%); }
.ceinture-reflet::before { content: ""; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 46%; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); transform: skewX(-22deg); }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-centre.ceinture-boum .ceinture-reflet::before { animation: ceinture-reflet .75s ease-out .16s; }
/* Les ondes : deux anneaux qui partent de la médaille fermée, pour dire « touche ». */
.ceinture-onde { position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; margin: -46% 0 0 -46%; border-radius: 50%; border: 3px solid rgba(var(--ceinture-rvb), .7); opacity: 0; pointer-events: none; }
.ceinture-ceremonie[data-temps="ouvrir"]:not(.ceinture-calme) .ceinture-onde { animation: ceinture-onde 1.8s ease-out infinite; }
.ceinture-ceremonie[data-temps="ouvrir"]:not(.ceinture-calme) .ceinture-onde + .ceinture-onde { animation-delay: .9s; }
.ceinture-ceremonie[data-temps="ouvrir"]:not(.ceinture-calme) .ceinture-medaille { animation: ceinture-appelle 1.5s ease-in-out infinite; }
.ceinture-ceremonie[data-temps="ouvrir"]:not(.ceinture-calme) .ceinture-halo { animation: ceinture-bat 1.5s ease-in-out infinite; }
.ceinture-ceremonie[data-temps="badge"]:not(.ceinture-calme) .ceinture-medaille { animation: ceinture-flotte 3.2s ease-in-out infinite; }
/* Ce que le badge est : son métal en étiquette, son nom en géant, ce qu'il a fallu faire. Le tout arrive avec le coup. */
/* (sa place est gardée d'avance, pour une étiquette, un nom sur deux lignes et une ligne de plus : la médaille ne bouge pas quand les mots arrivent) */
.ceinture-dit { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-height: 148px; opacity: 0; }
.ceinture-dit.ceinture-pose { opacity: 1; }
.ceinture-ceremonie[data-temps="ouvrir"] .ceinture-dit, .ceinture-ceremonie[data-temps="ceinture"] .ceinture-dit { justify-content: center; min-height: 0; }
.ceinture-ceremonie[data-temps="ouvrir"] .ceinture-dit { min-height: 108px; }   /* (148 moins ce que le gros bouton « TOUCHE POUR OUVRIR » prend de plus que la petite consigne) */
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-dit.ceinture-pose { animation: ceinture-monte-mot .34s cubic-bezier(.2, 1.3, .4, 1) both; }
.ceinture-metal { margin: 0; padding: 6px 14px 5px; border-radius: 999px; background: rgb(var(--ceinture-rvb)); font: 400 15px/1 var(--sign); letter-spacing: .08em; color: #1A0B1F; }
.ceinture-metal[hidden] { display: none; }
.ceinture-nom { margin: 0; width: 100%; font: 400 38px/1.04 var(--sign); color: var(--text); text-shadow: 0 4px 0 #8A1457; }
.ceinture-nom.ceinture-grande { font-size: 52px; color: var(--gold); }
.ceinture-nom.ceinture-annonce { font-size: 30px; line-height: 1.12; }
.ceinture-nom.ceinture-annonce span { display: block; white-space: nowrap; }
.ceinture-nom.ceinture-annonce span + span { color: var(--gold); }
.ceinture-quoi { margin: 0; font: 700 17px/1.25 var(--body); color: var(--soft); }
.ceinture-touche { margin: 10px 0 0; padding: 14px 22px 12px; border-radius: 999px; border: 2px solid var(--gold); background: rgba(11, 11, 26, .55); font: 400 21px/1.1 var(--sign); letter-spacing: .04em; color: var(--gold); }
.ceinture-touche.ceinture-discret { margin-top: 6px; padding: 0; border: 0; background: none; font: 700 14px/1 var(--body); letter-spacing: .16em; color: var(--soft); }
.ceinture-touche.ceinture-tait { visibility: hidden; }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-touche { animation: ceinture-clignote 1.5s ease-in-out infinite; }
.ceinture-passer { position: absolute; z-index: 4; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 10px; min-width: 88px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(11, 11, 26, .6); font: 700 14px/1 var(--body); letter-spacing: .12em; color: var(--soft); cursor: pointer; }
.ceinture-passer[hidden] { display: none; }
/* La ceinture nouvelle : elle tombe de haut et se pose. */
.ceinture-la { position: relative; display: block; width: min(84vw, 340px); height: auto; filter: drop-shadow(0 12px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 34px rgba(255, 209, 102, .55)); }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-la { animation: ceinture-tombe .5s cubic-bezier(.3, 0, .4, 1.5) both; }
.ceinture-parole { align-self: stretch; margin: 2px 0 0; padding: 12px 14px; border-radius: 16px; background: rgba(22, 20, 46, .92); border: 1px solid var(--line2); font: 600 16px/1.35 var(--body); color: var(--text); text-align: left; }
.ceinture-parole b { display: block; margin-bottom: 3px; font: 700 14px/1 var(--body); letter-spacing: .16em; color: var(--pink); }
/* Le récapitulatif : tout ce qui vient d'être gagné, sur un écran, et un seul bouton. */
.ceinture-bilan { position: relative; z-index: 1; flex: 1; min-height: 0; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px); cursor: default; }
.ceinture-bilan[hidden] { display: none; }
.ceinture-bilan-haut { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ceinture-bilan-haut::-webkit-scrollbar { display: none; }
.ceinture-bilan-haut > * { flex: none; }
.ceinture-titre { margin: 0; font: 400 32px/1 var(--sign); color: var(--text); text-shadow: 0 4px 0 #8A1457; }
.ceinture-gain { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; }
.ceinture-gain b { font: 400 68px/.95 var(--num); letter-spacing: .01em; color: var(--gold); text-shadow: 0 4px 0 #8A1457; font-variant-numeric: tabular-nums; }
.ceinture-gain span { max-width: 130px; font: 700 15px/1.15 var(--body); letter-spacing: .14em; color: var(--soft); text-align: left; text-transform: uppercase; }
.ceinture-etat { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(22, 20, 46, .94); border: 1px solid var(--line); text-align: left; }
.ceinture-etat.ceinture-neuve { border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(255, 209, 102, .35); }
.ceinture-etat > img { flex: none; width: 78px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.ceinture-etat.ceinture-neuve > img { width: 104px; height: 70px; }
.ceinture-etat-mil { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ceinture-etat-mil small { font: 700 14px/1 var(--body); letter-spacing: .14em; color: var(--teal); }
.ceinture-etat-mil b { font: 400 20px/1 var(--sign); color: var(--gold); }
.ceinture-etat-mil em { font: 700 14px/1.2 var(--body); font-style: normal; color: var(--soft); text-wrap: balance; }
.ceinture-etat .ceinture-barre u { transition: width 1s cubic-bezier(.2, .7, .2, 1) .25s; }
.ceinture-calme .ceinture-etat .ceinture-barre u { transition: none; }
.ceinture-combien { margin: 4px 0 0; font: 400 19px/1.05 var(--sign); color: var(--text); }
.ceinture-mur { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; }
.ceinture-brique { display: block; }
.ceinture-mur .ceinture-badge { width: 72px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); }
.ceinture-mur[data-combien="peu"] .ceinture-badge { width: 100px; }
.ceinture-mur[data-combien="beaucoup"] .ceinture-badge { width: 56px; }
.ceinture-ceremonie:not(.ceinture-calme) .ceinture-brique { animation: ceinture-claque .36s cubic-bezier(.2, 1.6, .4, 1) both; }
.ceinture-alloy { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; padding: 10px 14px 10px 10px; border-radius: 18px 18px 18px 4px; background: rgba(22, 20, 46, .94); border: 1px solid var(--pink); text-align: left; font: 600 16px/1.35 var(--body); color: var(--text); }
.ceinture-alloy img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); }
.ceinture-alloy b { display: block; margin-bottom: 3px; font: 700 14px/1 var(--body); letter-spacing: .16em; color: var(--pink); }
.ceinture-bilan > .cta { flex: none; }
@media (max-height: 700px) {
  .ceinture-acte { gap: 9px; padding-top: calc(env(safe-area-inset-top, 0px) + 54px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .ceinture-medaille { width: min(56vw, 220px, 32vh); }
  .ceinture-dit { min-height: 124px; gap: 6px; }
  .ceinture-ceremonie[data-temps="ouvrir"] .ceinture-dit { min-height: 93px; }
  .ceinture-nom { font-size: 31px; } .ceinture-nom.ceinture-grande { font-size: 44px; } .ceinture-nom.ceinture-annonce { font-size: 27px; }
  .ceinture-touche { padding: 11px 18px 9px; font-size: 19px; }
  .ceinture-la { width: min(76vw, 280px); }
  .ceinture-bilan { gap: 10px; padding-top: calc(env(safe-area-inset-top, 0px) + 14px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .ceinture-bilan-haut { gap: 9px; justify-content: flex-start; }
  .ceinture-titre { font-size: 27px; } .ceinture-gain b { font-size: 54px; }
  .ceinture-mur .ceinture-badge { width: 60px; } .ceinture-mur[data-combien="peu"] .ceinture-badge { width: 80px; } .ceinture-mur[data-combien="beaucoup"] .ceinture-badge { width: 40px; }
  .ceinture-mur[data-combien="beaucoup"] { gap: 6px 5px; }
  .ceinture-alloy { font-size: 15px; } .ceinture-alloy img { width: 48px; height: 48px; }
}
@keyframes ceinture-roue { to { transform: rotate(360deg); } }
@keyframes ceinture-eclair { from { opacity: .85; } to { opacity: 0; } }
@keyframes ceinture-secoue { 0% { transform: translate(0, 0); } 20% { transform: translate(-7px, 4px); } 40% { transform: translate(6px, -5px); } 60% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -2px); } 100% { transform: translate(0, 0); } }
@keyframes ceinture-boum { 0% { transform: scale(1.32); } 55% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes ceinture-appelle { 0% { transform: translateY(0) rotate(-3deg) scale(1); } 50% { transform: translateY(-10px) rotate(3deg) scale(1.05); } 100% { transform: translateY(0) rotate(-3deg) scale(1); } }
@keyframes ceinture-bat { 0% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } }
@keyframes ceinture-flotte { 0% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } 100% { transform: translateY(0) rotate(-1.5deg); } }
@keyframes ceinture-monte-mot { from { opacity: 0; transform: translateY(16px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes ceinture-clignote { 0% { opacity: 1; } 50% { opacity: .6; } 100% { opacity: 1; } }
@keyframes ceinture-reflet { from { opacity: 1; transform: skewX(-22deg) translateX(0); } to { opacity: 1; transform: skewX(-22deg) translateX(420%); } }
@keyframes ceinture-onde { from { opacity: .9; transform: scale(.82); } to { opacity: 0; transform: scale(1.5); } }
@keyframes ceinture-tombe { from { opacity: 0; transform: scale(2.6) rotate(-9deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ceinture-claque { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } to { opacity: 1; transform: none; } }

/* ── Tranche 2 : le badge, « le prochain badge », la collection ── */
/* Un badge : son image, ou une silhouette hexagonale au métal du palier tant que l'image n'est pas fabriquée. */
.ceinture-badge { position: relative; display: block; flex: none; width: 96px; aspect-ratio: 320 / 349; --ceinture-metal: #C77B45; }
.ceinture-badge.argent { --ceinture-metal: #C9D2E3; } .ceinture-badge.or { --ceinture-metal: #FFD166; } .ceinture-badge.diamants { --ceinture-metal: #9BE8FF; }
.ceinture-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ceinture-badge i { position: absolute; inset: 4%; background: var(--ceinture-metal); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.ceinture-badge i::after { content: ""; position: absolute; inset: 9%; background: linear-gradient(160deg, #3B3670, #221F47); clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
/* Pas encore gagné : la face en gris clair, le cercle garde son métal (on voit ce qu'on gagnera, et en quel métal). */
.ceinture-badge.ceinture-pas .ceinture-face { filter: grayscale(1) brightness(1.15) contrast(.8); opacity: .55; }
.ceinture-badge.ceinture-pas .ceinture-cercle { filter: saturate(.75); opacity: .9; }
.ceinture-cache .ceinture-badge.ceinture-pas img { filter: brightness(0) invert(.3) sepia(1) hue-rotate(205deg) saturate(1.5); opacity: .9; }   /* caché : une forme, rien de plus */
.ceinture-badge.ceinture-pas i { opacity: .38; }
/* Le prochain badge : une carte, sous le bouton de l'histoire. */
.ceinture-proche { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--panel); border: 2px solid var(--teal); }
.ceinture-proche .ceinture-badge { width: 72px; }
.ceinture-proche-mil { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ceinture-proche-mil small { font: 700 14px/1 var(--body); letter-spacing: .12em; color: var(--teal); }
.ceinture-proche-mil b { font: 400 19px/1.05 var(--sign); color: var(--text); }
.ceinture-proche-mil em { font: 700 14px/1.2 var(--body); font-style: normal; color: var(--soft); }
/* La collection. */
.ceinture-tete { display: flex; align-items: center; gap: 10px; flex: none; }
.ceinture-tete h1 { flex: 1; min-width: 0; margin: 0; font: 400 26px/1 var(--sign); }
/* La tête de la page des récompenses : la ceinture en grand, la réputation, puis les dix ceintures (Aurélien est myope : gros). */
.ceinture-grand { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; padding: 16px 18px 18px; border-radius: 22px; background: linear-gradient(160deg, #2a2350, #15132a); border: 1px solid var(--line); text-align: center; }
.ceinture-grand > img { width: min(60vw, 230px); aspect-ratio: 3 / 2; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
.ceinture-grand h2 { margin: 0; font: 400 38px/1 var(--sign); color: var(--gold); }
.ceinture-grand p { margin: 0 0 6px; font: 700 19px/1.2 var(--body); color: var(--text); }
.ceinture-grand .ceinture-barre { align-self: stretch; height: 14px; }
.ceinture-grand em { font: 700 16px/1.2 var(--body); font-style: normal; color: var(--soft); }
.ceinture-section { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: none; margin: 8px 0 0; font: 400 22px/1 var(--sign); color: var(--text); }
.ceinture-compte { font: 400 22px/1 var(--num); color: var(--gold); white-space: nowrap; }
.ceinture-compte small { margin-left: 5px; font: 700 11px/1 var(--body); letter-spacing: .1em; color: var(--muted); }
.ceinture-echelle { display: flex; gap: 10px; flex: none; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.ceinture-echelle::-webkit-scrollbar { display: none; }
.ceinture-echelle > div { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.ceinture-echelle img { width: 92px; height: 64px; object-fit: contain; }
.ceinture-echelle b { font: 400 15px/1.1 var(--sign); color: var(--text); }
.ceinture-echelle small { min-height: 14px; font: 700 12px/1.2 var(--body); color: var(--soft); }
.ceinture-echelle .ici b { color: var(--gold); } .ceinture-echelle .ici img { filter: drop-shadow(0 0 10px rgba(255, 209, 102, .7)); }
.ceinture-echelle .loin img { filter: grayscale(1) brightness(1.1); opacity: .45; } .ceinture-echelle .loin b { color: var(--muted); }
.ceinture-fiche { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--panel); border: 2px solid var(--gold); }
.ceinture-fiche .ceinture-badge { width: 96px; }
.ceinture-fiche-mil { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ceinture-fiche-mil b { font: 400 20px/1.05 var(--sign); color: var(--text); }
.ceinture-fiche-mil em { font: 600 15px/1.3 var(--body); font-style: normal; color: var(--soft); }
.ceinture-paliers { display: flex; align-items: center; gap: 7px; }
.ceinture-paliers i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line2); }
.ceinture-paliers i.on.cuivre { border-color: #C77B45; background: #C77B45; } .ceinture-paliers i.on.argent { border-color: #C9D2E3; background: #C9D2E3; }
.ceinture-paliers i.on.or { border-color: #FFD166; background: #FFD166; } .ceinture-paliers i.on.diamants { border-color: #9BE8FF; background: #9BE8FF; }
.ceinture-paliers small { margin-left: 3px; font: 700 11px/1 var(--body); letter-spacing: .14em; color: var(--muted); }
.ceinture-familles { display: flex; gap: 6px; flex: none; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ceinture-familles::-webkit-scrollbar { display: none; }
.ceinture-familles button { flex: none; min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2); background: none; font: 700 12px/1 var(--body); letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.ceinture-familles button.on { background: var(--gold); border-color: var(--gold); color: #1A0B1F; }
.ceinture-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; flex: none; }
.ceinture-case { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 4px 0; border: 0; border-radius: 14px; background: none; cursor: pointer; }
.ceinture-case.on { background: rgba(255, 209, 102, .12); outline: 2px solid var(--gold); }
.ceinture-case b { max-width: 100%; font: 400 11.5px/1.15 var(--sign); color: var(--text); text-align: center; overflow-wrap: anywhere; }
.ceinture-case[data-palier="0"] b { color: var(--muted); }
.ceinture-case.ceinture-cache .ceinture-badge::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 400 40px/1 var(--sign); color: var(--soft); }
/* Le numéro de version en bas du profil (cinq touches : les réglages d'essai). Discret, mais assez grand pour être touché. */
.ceinture-version { margin: 18px 0 0; padding: 10px 0; text-align: center; font: 600 12px/1 var(--body); letter-spacing: .08em; color: var(--muted); user-select: none; -webkit-user-select: none; }
.ceinture-essais { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line2); }
.ceinture-essais > b { font: 400 16px/1 var(--sign); color: var(--soft); }
.ceinture-essais button, .ceinture-essais-lien { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: none; font: 400 17px/1 var(--sign); color: var(--text); cursor: pointer; }
.ceinture-essais button small { font: 700 13px/1 var(--body); letter-spacing: .1em; color: var(--muted); }
.ceinture-essais button.on { border-color: var(--gold); } .ceinture-essais button.on small { color: var(--gold); }
.ceinture-essais-lien { text-decoration: none; }
.ceinture-essais-lien small { font: 700 18px/1 var(--body); color: var(--muted); }
