/* La ville : les quartiers en cartes, sous le quartier en cours (app/ville.js). */
.ville { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 18px; }
.ville::before { content: ""; position: absolute; left: 5px; top: 20px; bottom: 20px; width: 4px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 12px var(--pink); opacity: .85; }
.lieu { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 104px; padding: 12px 14px; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.lieu > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lieu::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,26,.9), rgba(11,11,26,.45) 60%, rgba(11,11,26,.75)); }
.lieu > * { position: relative; z-index: 1; }
.lieu > img { z-index: 0; }
.lieu .rang { position: absolute; top: 10px; right: 12px; font: 400 15px/1 var(--num); color: var(--gold); }
.lieu h3 { margin: 2px 0 0; font: 400 19px/1.05 var(--sign); text-shadow: 0 2px 0 var(--pink); }
.lieu .boss { margin: 4px 0 0; font: 600 12px/1.2 var(--body); opacity: .9; }
.lieu .etat { margin: 0; display: flex; align-items: center; gap: 5px; flex: none; }
.lieu .etat b { padding: 6px 10px 5px; border-radius: 999px; background: rgba(11,11,26,.8); border: 1px solid var(--line); font: 400 11px/1.15 var(--sign); letter-spacing: .04em; white-space: nowrap; }
.lieu .etat svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lieu.gagne .etat b, .lieu.ouvert .etat b { background: var(--gold); border-color: var(--gold); color: #1A0B1F; }
.lieu.ici { border-color: var(--gold); }
.lieu.ferme > img, .lieu.a-venir > img { filter: saturate(.75) brightness(.8); }
.lieu.bientot > img { filter: grayscale(.55) brightness(.8); }
.lieu.bientot h3 { text-shadow: none; opacity: .85; }
/* La fiche d'un quartier fermé : la carte du quartier de l'accueil, avec son image assombrie. */
.fiche-lieu > img { object-position: center; filter: saturate(.8) brightness(.75); }
.fiche-lieu header .retour { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 10px -6px; border-radius: 20px; background: rgba(11,11,26,.6); color: inherit; }
.fiche-lieu header .retour svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fiche-lieu .etat { margin: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(11,11,26,.75); border: 1px solid var(--line); font: 600 14px/1.35 var(--body); }
.fiche-lieu .etat svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fiche-lieu .appel { align-self: stretch; max-width: none; }
.fiche-lieu .cta b { font-size: 22px; }

/* Les niveaux de difficulté d'un quartier : la pastille sur sa carte, et l'écran du choix. */
.force { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.force i { width: 5px; border-radius: 2px; background: rgba(255,255,255,.28); }
.force i:nth-child(1) { height: 7px; } .force i:nth-child(2) { height: 11px; } .force i:nth-child(3) { height: 16px; }
.force i.on { background: var(--gold); }
.n2 .force i.on { background: var(--orange); } .n3 .force i.on { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.pastille-niveau { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 10px 0 12px; border-radius: 22px; background: rgba(11,11,26,.8); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.pastille-niveau b { font: 400 13px/1 var(--sign); letter-spacing: .04em; }
/* Les trois niveaux de la carte de l'histoire : une ligne à part sous le titre, en lettres de 14 points au moins
   (Aurélien est myope : « rien sous 14 points sur la carte de l'histoire », 17 novembre). */
.pastille-niveau.trois { display: flex; flex-wrap: wrap; align-self: stretch; gap: 6px; min-height: 44px; margin-top: 8px; padding: 2px 0; border: 0; background: none; }
.pastille-niveau .niv { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 10px; border-radius: 20px; border: 1px solid var(--line); background: rgba(11,11,26,.82); color: var(--muted); }
.pastille-niveau .niv b { font: 800 14px/1 var(--body); letter-spacing: .02em; text-transform: uppercase; }
.pastille-niveau .niv svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pastille-niveau .niv.fait { color: var(--teal); }
.pastille-niveau .niv.ici { color: var(--gold); border-color: var(--gold); background: rgba(40,30,10,.88); }
.pastille-niveau .niv.suivant { color: #1A0B1A; border-color: transparent; background: var(--sunset); box-shadow: 0 0 12px rgba(255,138,61,.55); }
.pastille-niveau .niv.ouvert { color: var(--text); }
.pastille-niveau .niv.ferme { color: var(--muted); }
.pastille-niveau .niv.bientot { color: var(--text); border: 1px dashed rgba(255,255,255,.5); }   /* le style « BIENTÔT » (app/histoire.css, .mot-ferme.bientot) */
.pastille-niveau svg.ouvrir { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.choix-niveau { display: flex; flex-direction: column; gap: 12px; }
.choix-niveau header { display: flex; align-items: center; gap: 10px; }
.choix-niveau header .retour { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); color: inherit; }
.choix-niveau header .retour svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.choix-niveau h1 { margin: 2px 0 0; font: 400 24px/1.05 var(--sign); }
.cartes-niveau { display: flex; flex-direction: column; gap: 12px; }
.carte-niveau { position: relative; display: block; aspect-ratio: 16 / 9.6; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.carte-niveau > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.carte-niveau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,26,.84), rgba(11,11,26,.4) 45%, rgba(11,11,26,0) 62%), linear-gradient(0deg, rgba(11,11,26,.8), rgba(11,11,26,0) 48%); }
.carte-niveau > * { z-index: 1; }
.carte-niveau > img { z-index: 0; }
.carte-niveau > .force { position: absolute; top: 14px; left: 16px; height: 24px; gap: 4px; }
.carte-niveau > .force i { width: 8px; border-radius: 3px; } .carte-niveau > .force i:nth-child(1) { height: 10px; } .carte-niveau > .force i:nth-child(2) { height: 17px; } .carte-niveau > .force i:nth-child(3) { height: 24px; }
.carte-niveau > div { position: absolute; left: 16px; bottom: 14px; width: 58%; }
.carte-niveau .kicker { font-size: 12px; }
.carte-niveau h3 { margin: 4px 0 5px; font: 400 21px/1.05 var(--sign); text-shadow: 0 2px 0 var(--pink); }
.carte-niveau div p:last-child { margin: 0; font: 600 12px/1.3 var(--body); opacity: .92; }
.carte-niveau .etat { position: absolute; right: 14px; bottom: 14px; margin: 0; display: flex; align-items: center; gap: 6px; padding: 7px 11px 6px; border-radius: 999px; background: var(--gold); color: #1A0B1F; }
.carte-niveau .etat b { font: 400 12px/1 var(--sign); white-space: nowrap; }
.carte-niveau .etat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carte-niveau.ferme > img { filter: saturate(.55) brightness(.6); }
.carte-niveau.choisi { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.carte-niveau.teinte.n2 > img { filter: hue-rotate(-30deg) brightness(.7); } .carte-niveau.teinte.n3 > img { filter: hue-rotate(-60deg) saturate(1.3) brightness(.5) contrast(1.15); }
.choix-niveau .note { margin: 0; font: 500 13px/1.4 var(--body); opacity: .8; text-align: center; }
.carte-niveau .verrou { position: absolute; right: 12px; top: 12px; margin: 0; display: flex; align-items: center; gap: 6px; padding: 7px 11px 6px; border-radius: 999px; background: rgba(11,11,26,.85); border: 1px solid var(--line); }
.carte-niveau .verrou b { font: 400 12px/1 var(--sign); white-space: nowrap; }
.carte-niveau .verrou svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.carte-niveau.ferme .etat { opacity: .9; }
/* Un défi réservé au Club : il se voit, avec son titre et son image, mais ne se lance pas. */
.defi.ferme { position: relative; }
.defi.ferme > img { filter: saturate(.6) brightness(.65); }
.defi.ferme .bas b { background: rgba(11,11,26,.85); color: var(--text); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 5px; }
.defi.ferme .bas svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carte-niveau .verrou.cadeau { background: var(--teal); border-color: var(--teal); color: #06221f; }
.carte-niveau .verrou.cadeau { right: auto; left: 52px; padding: 6px 9px 5px; } .carte-niveau .verrou.cadeau b { font-size: 10.5px; }

/* L'accueil en trois portes : L'histoire, Les défis, L'arène. */
.porte { display: flex; align-items: baseline; gap: 9px; margin: 8px 0 -2px; }
.porte i { flex: none; align-self: center; min-width: 22px; padding: 4px 0 3px; border-radius: 11px; text-align: center; font: 400 13px/1 var(--num); font-style: normal; background: var(--gold); color: #1A0B1F; }
.porte h2 { margin: 0; font: 400 22px/1 var(--sign); }
.porte span { font: 700 10px/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.ville-repliee > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 9px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.ville-repliee > summary::-webkit-details-marker { display: none; }
.ville-repliee .bande { flex: 1; display: flex; gap: 7px; }
.ville-repliee .vignette { position: relative; flex: 1; height: 46px; border-radius: 11px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.ville-repliee .vignette em { position: absolute; left: 5px; top: 4px; font: 400 12px/1 var(--num); font-style: normal; color: var(--gold); text-shadow: 0 1px 2px #000; }
.ville-repliee .vignette.bientot, .ville-repliee .vignette.ferme, .ville-repliee .vignette.a-venir { filter: grayscale(.7) brightness(.6); }
.ville-repliee .vignette.ici { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ville-repliee .vignette.gagne { border-color: var(--gold); }
.ville-repliee > summary svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ville-repliee[open] > summary svg { transform: rotate(180deg); }
.ville-repliee[open] > .ville { margin-top: 12px; }

/* La suite quotidienne, sous la carte du quartier : l'étape du jour, demain, et le mois en petits traits. */
.suite { display: flex; flex-direction: column; gap: 9px; }
.suite .jour { display: flex; gap: 10px; align-items: stretch; }
.suite .neuf { flex: 1.6; min-height: 78px; padding: 12px 13px; border-radius: 18px; background: linear-gradient(120deg, #3a1650, #5a1a4a); border: 1px solid var(--pink); box-shadow: 0 0 14px rgba(255,61,154,.35); color: inherit; text-decoration: none; }
.suite .neuf .kicker { color: var(--pink); font-size: 10px; }
.suite .neuf h3 { margin: 5px 0 4px; font: 400 18px/1.05 var(--sign); }
.suite .neuf p:last-child { margin: 0; font: 600 12px/1.3 var(--body); opacity: .88; }
.suite .neuf.faite { border-color: var(--gold); box-shadow: none; background: var(--panel); }
.suite .neuf.faite .kicker { color: var(--gold); }
.suite .neuf.attente { border-style: dashed; box-shadow: none; background: var(--panel); }
.suite .demain { flex: 1; padding: 12px 8px; border-radius: 18px; background: var(--panel); border: 1px dashed rgba(255,255,255,.3); text-align: center; }
.suite .demain .kicker { color: inherit; opacity: .75; font-size: 10px; }
.suite .demain b { display: block; margin: 6px 0 3px; font: 400 21px/1 var(--num); color: var(--gold); }
.suite .demain p:last-child { margin: 0; font: 500 11px/1.2 var(--body); opacity: .75; }
.suite .mois { display: flex; gap: 4px; align-items: center; }
.suite .mois i { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
.suite .mois i.f { background: var(--gold); } .suite .mois i.n { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.suite .mois span { flex: none; margin-left: 6px; font: 700 10px/1 var(--body); letter-spacing: .12em; opacity: .8; }
.carte.inviter > img[src*=icone-classement] { width: 60px; height: 60px; object-fit: contain; }

/* La règle d'une étape du jour (la garde, la vitesse ou les hanches comptent), sous son titre. */
.regle-du-jour { margin: 6px 0 0; padding: 6px 10px; border-radius: 10px; background: rgba(255, 209, 102, .14); color: var(--gold); font: 700 14px/1.3 var(--body); }
