/* L'échoppe : par-dessus style.css (bois chaud, or, braise), seulement ce qui lui est propre. Téléphone d'abord. */
.ech-jeu .onglets, .ech-onglets { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 1fr; }
.ech-vue .page { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 28px; }

/* en-tête */
.ech-haut { justify-content: space-between; }
.ech-enseigne { display: flex; flex-direction: column; min-width: 0; }
.ech-enseigne b { font: 700 19px var(--titre); color: var(--or); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ech-enseigne small { color: var(--texte2); }
.ech-xp { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ech-xp .barre { flex: 1; }
.ech-xp small { color: var(--texte2); white-space: nowrap; }
.ech-chiffres { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; }
.ech-chiffres span { display: inline-flex; align-items: center; gap: 5px; }
.ech-lucarne { color: var(--braise); font-weight: 700; font-size: 13px; }
.ech-mock { text-align: center; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--texte3); padding: 2px 0; }

/* matériaux */
.ech-materiaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.ech-materiaux li { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.3); }
.ech-materiaux li.rare { box-shadow: inset 0 0 0 1px var(--or2); }
.ech-materiaux small { color: var(--or); font-size: 11px; }

/* listes d'objets, recettes, lots, ventes */
.ech-liste { display: flex; flex-direction: column; gap: 8px; }
.ech-objet, .ech-recette, .ech-vente, .ech-gazette { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 13px;
  background: linear-gradient(180deg, var(--bois2), var(--bois1)); border: 1px solid rgba(242,194,97,.18); }
.ech-objet-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ech-objet-tete > b:first-child, .ech-objet-tete > span:first-child { flex: 1; min-width: 0; }
.ech-objet-tete small { color: var(--texte2); }
.ech-qualite { font-size: 12px; color: var(--mousse); }
.ech-qualite.ratee { color: var(--braise, #b5523b); }
.ech-prix { color: var(--or); white-space: nowrap; }
.ech-boniment { font-size: 13.5px; color: var(--texte2); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.ech-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ech-fab { display: flex; justify-content: space-between; gap: 8px; }
.ech-recette.verrou { opacity: .6; }
.ech-recette .pastilles { display: flex; flex-wrap: wrap; gap: 6px; }
.ech-recette .pastille { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 12.5px; }
.ech-recette .pastille.manque b { color: var(--rouge); }
.ech-recette .btn { align-self: flex-end; }
.ech-alerte { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--fer1); border: 1px solid var(--acier); color: var(--eclair); font-size: 13.5px; }

/* la Gazette : Lucarne mise en avant */
.ech-gazette p { overflow-wrap: anywhere; }
.ech-gazette time, .ech-vente time { font-size: 11.5px; color: var(--texte3); }
.ech-gazette.lucarne, .ech-vente.lucarne { border-color: var(--braise); background: linear-gradient(180deg, #4a2a18, var(--bois1)); box-shadow: 0 0 14px rgba(255,138,61,.18); }
.ech-gazette.g-baton { opacity: .8; }

/* accueil et fondation */
.ech-accueil-tete { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 10px; }
.ech-accueil-tete .ico.gros { color: var(--or); }
.ech-accueil-tete p:first-of-type { letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--texte2); }
.ech-accueil-tete h1 { font: 700 32px var(--titre); color: var(--or); }
.ech-metiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ech-metier { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 13px; background: rgba(0,0,0,.3); border: 1px solid var(--bord); text-align: left; }
.ech-metier b { font: 700 15px var(--titre); color: var(--or); }
.ech-metier small { color: var(--texte2); font-size: 12px; }
.ech-metier span { font-size: 11.5px; color: var(--texte3); }
.ech-metier.actif { border-color: var(--or); background: rgba(242,194,97,.12); box-shadow: 0 0 0 2px rgba(242,194,97,.25); }

/* formulaires des panneaux */
.ech-form { display: flex; flex-direction: column; gap: 10px; }
.ech-form textarea { min-height: 78px; padding: 10px 14px; border-radius: 13px; background: rgba(0,0,0,.45); border: 1px solid var(--bord); color: var(--parchemin);
  font: 15px/1.4 var(--corps); resize: vertical; user-select: text; -webkit-user-select: text; }
.ech-form textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 3px rgba(242,194,97,.2); }
.ech-compteur { text-align: right; margin-top: -6px; }
.ech-marche { padding: 8px 10px; border-radius: 10px; background: rgba(242,194,97,.08); }
.ech-choix-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.ech-choix { display: flex; flex-direction: column; padding: 7px 11px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--bord); }
.ech-choix small { color: var(--mousse); font-size: 11.5px; }
.ech-choix.actif { border-color: var(--or); background: rgba(242,194,97,.12); }
.ech-accueil .segments { display: flex; gap: 6px; }
.ech-accueil .segments button { flex: 1; min-height: 38px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--bord); color: var(--texte2); font-weight: 600; text-align: center; }
.ech-accueil .segments .actif { border-color: var(--or); color: var(--or); }

@media (max-width: 360px) { .ech-metiers { grid-template-columns: 1fr; } }

/* ================================================================== la forge (V0.1) */
.fg-stats { display: flex; flex-direction: column; gap: 4px; }
.fg-stats li { display: grid; grid-template-columns: 82px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; }
.fg-stats li span { color: var(--texte2); }
.fg-stats li b { text-align: right; font-variant-numeric: tabular-nums; }
.fg-stats.mini li { grid-template-columns: 70px 1fr 24px; font-size: 11.5px; }
.fg-stats .tranchant i { background: linear-gradient(90deg, #8a96a3, #e9eef3); }
.fg-stats .solidite i { background: linear-gradient(90deg, #6b4f33, var(--or)); }
.fg-stats .durabilite i { background: linear-gradient(90deg, var(--mousse2), var(--mousse)); }
.fg-stats .poids i { background: linear-gradient(90deg, #4a4458, #9c8fb8); }
.fg-stats .equilibre i { background: linear-gradient(90deg, var(--braise2), #ffd27a); }
.fg-objet { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.ech-objet.fg-objet { flex-direction: row; }
.fg-objet-corps, .fg-ligne-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fg-objet.maitre { border-color: var(--or); box-shadow: 0 0 14px rgba(242,194,97,.14); }
.fg-vignette { width: 64px; height: 64px; flex: none; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #3a2c20, #120d09); object-fit: contain; }
.fg-vignette:not([src]) { opacity: .5; }
.fg-vignette.sans { display: none; }
.fg-sceau { font: 700 10.5px var(--corps); letter-spacing: .12em; text-transform: uppercase; color: #1d140c; background: linear-gradient(180deg, #ffe39a, var(--or2)); padding: 2px 7px; border-radius: 999px; }
.fg-role { font: 700 10.5px var(--corps); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid currentColor; color: #9ab4d8; }
.fg-role.r-dps { color: #ff9a6a; }
.fg-role.r-soigneur { color: #7ee0a0; }
.fg-nombre { color: var(--or); font-weight: 700; }
.fg-actif { color: var(--mousse); font-size: 12px; }
.fg-ligne { display: flex; gap: 10px; padding: 10px 12px; border-radius: 13px; background: linear-gradient(180deg, var(--bois2), var(--bois1)); border: 1px solid rgba(255,138,61,.35); }
.fg-ligne.libre { flex-direction: column; border-style: dashed; border-color: var(--bord); }
.fg-ligne.libre .btn { align-self: flex-end; }
.fg-amelio { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: rgba(242,194,97,.08); }

/* l'écran de forge, par-dessus le jeu (sous les feuilles et les messages) */
.fg { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #0b0807; opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .25s; }
.fg.la { opacity: 1; transform: none; }
.fg-scene { position: relative; flex: 0 0 44%; min-height: 220px; overflow: hidden; touch-action: none; }
.fg.jeu .fg-scene { flex: 1 1 auto; }
.fg-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fg-calque { position: absolute; inset: 0; }
.fg-quitter { position: absolute; top: calc(var(--haut-sur, 0px) + 10px); left: 10px; z-index: 3; }
.fg-bandeau { position: absolute; top: calc(var(--haut-sur, 0px) + 12px); left: 60px; right: 60px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; z-index: 2; text-shadow: 0 2px 6px #000; }
.fg-bandeau b { font: 700 20px var(--titre); color: var(--or); }
.fg-bandeau span { font-size: 13.5px; color: var(--parchemin); }
.fg.annonce .fg-bandeau { top: 38%; transform: scale(1.25); transition: top .3s, transform .3s; }
.fg-bandeau { transition: top .3s, transform .3s; }
.fg-panneau { flex: 1 1 56%; overflow-y: auto; padding: 12px 14px calc(16px + var(--bas-sur, 0px)); background: linear-gradient(180deg, var(--bois2), var(--nuit)); border-top: 1px solid rgba(242,194,97,.3); border-radius: 18px 18px 0 0; margin-top: -14px; position: relative; z-index: 2; }
.fg.jeu .fg-panneau { flex: 0 0 auto; min-height: 120px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.fg-titre { font: 700 18px var(--titre); color: var(--or); margin-bottom: 8px; }
.fg-recette, .fg-skin { display: flex; flex-direction: column; gap: 12px; }
.fg-groupe h4 { font: 600 13px var(--corps); color: var(--texte2); letter-spacing: .04em; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; }
.fg-angle { color: var(--or); font-size: 15px; }
.fg-puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fg-puce { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 11px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--bord); text-align: left; max-width: 150px; }
.fg-puce b { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.fg-puce b .ico { width: 14px; height: 14px; }
.fg-puce small { font-size: 11px; color: var(--texte3); white-space: normal; }
.fg-puce.actif { border-color: var(--or); background: rgba(242,194,97,.14); box-shadow: 0 0 0 2px rgba(242,194,97,.22); }
.fg-puce.actif b { color: var(--or); }
.fg-puce.verrou { opacity: .5; }
.fg-curseur { width: 100%; accent-color: var(--braise); height: 28px; }
.fg-bornes { display: flex; justify-content: space-between; gap: 8px; }
.fg-bornes small { color: var(--texte3); font-size: 11.5px; }
.fg-initiales input, .fg-skin .champ input { text-transform: none; }
.fg-initiales input { text-transform: uppercase; letter-spacing: .3em; }
.fg-pied { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; position: sticky; bottom: -16px; padding: 10px 0 4px; background: linear-gradient(180deg, transparent, var(--nuit) 35%); }
.fg-resultat { display: flex; flex-direction: column; gap: 10px; }
.fg-grand { font: 700 19px var(--titre); color: var(--or); }
.fg-gestes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fg-gestes li { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; background: rgba(0,0,0,.35); font-size: 11.5px; color: var(--texte2); }
.fg-gestes b { font-size: 15px; color: var(--parchemin); }

/* le mini-jeu */
.fg-jauge { position: relative; height: 26px; border-radius: 13px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,.7); }
.fg-jauge.chauffe { background: linear-gradient(90deg, #1a0400, #5a0a00 18%, #b81e00 38%, #ff5a00 58%, #ffb030 76%, #ffe38a 90%, #fff6e0); }
.fg-jauge.trempe { background: linear-gradient(90deg, #13324a, #1f5070 50%, #2a3a48); }
.fg-jauge .zone { position: absolute; top: 0; bottom: 0; border: 2px solid #ffe39a; border-radius: 8px; box-shadow: 0 0 10px rgba(255,227,154,.7), inset 0 0 8px rgba(255,227,154,.5); }
.fg-jauge .curseur { position: absolute; top: -3px; bottom: -3px; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 8px #fff; border-radius: 2px; }
.fg-jauge .milieu { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.6); }
.fg-jauge .rempli { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(160,220,255,.35), rgba(220,245,255,.75)); }
.fg-geste { min-height: 56px; font-size: 17px; }
.fg.plonge .fg-maintenir { transform: scale(.97); filter: brightness(1.2); }
.fg-compte { text-align: center; font: 700 15px var(--corps); color: var(--texte2); }
.fg-compte b { font-size: 26px; color: var(--or); }
.fg-cible { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; pointer-events: none; opacity: 0; transition: opacity .15s; --k: 1; }
.fg-cible.vive { opacity: 1; }
.fg-cible .point { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, #fff6d0, #ffb030 45%, rgba(255,90,0,.0) 72%); box-shadow: 0 0 18px #ff8a3d; }
.fg-cible .anneau { position: absolute; inset: 6px; border-radius: 50%; border: 3px solid #ffe39a; transform: scale(calc(1 + var(--k) * 1.6)); opacity: calc(1 - var(--k) * .6); }
.fg-cible.touchee { opacity: 0; transition: opacity .35s; }
.fg-cible.ratee { opacity: 0; }
.fg-volant { position: absolute; transform: translate(-50%, -50%); font: 800 18px var(--titre); color: #ffe39a; text-shadow: 0 2px 6px #000, 0 0 12px rgba(255,138,61,.8); pointer-events: none; animation: fg-monte .9s ease-out forwards; white-space: nowrap; }
.fg-volant.rate { color: #c9c2b8; text-shadow: 0 2px 6px #000; }
@keyframes fg-monte { from { opacity: 0; transform: translate(-50%, -30%) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } to { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
.fg-pierre { position: absolute; left: 6%; right: 6%; top: 44%; height: 22%; border-radius: 14px; background: linear-gradient(180deg, rgba(120,128,138,.25), rgba(60,64,70,.35)); border: 1px solid rgba(200,210,220,.18); pointer-events: none; }
.fg-trace { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .fg, .fg-bandeau { transition: none; } .fg-volant { animation-duration: .01s; } }

/* ------------------------------------------------------------------ le village 3D (DA 19/11) */
.ech-jeu.en-village .onglets { display: none; }
.ech-jeu.en-village .haut { position: relative; z-index: 6; background: linear-gradient(180deg, rgba(20,16,12,.92), rgba(20,16,12,.75)); }
.vue-village { overflow: hidden; padding: 0; }
.hub { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #6f93b8, #e9cfa6); }
.hub-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hub-attente { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--nuit); font-weight: 600; transition: opacity .5s; pointer-events: none; }
.hub.pret .hub-attente { opacity: 0; }
.hub-etiqs, .hub-flottants { position: absolute; inset: 0; pointer-events: none; }
.hub-etiq { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 11px 6px; border-radius: 12px; background: rgba(28,20,14,.82); border: 1px solid rgba(242,194,97,.45); color: var(--parchemin);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; transition: opacity .25s; will-change: transform; backdrop-filter: blur(3px); }
.hub-etiq::after { content: ""; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(28,20,14,.82); }
.hub-etiq b { font: 700 13.5px var(--titre); color: var(--or); }
.hub-etiq small { font-size: 11px; color: var(--texte2); }
.hub-etiq.cache { opacity: 0; pointer-events: none; }
.hub-pastille { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--braise); box-shadow: 0 0 10px var(--braise); animation: hub-pouls 1.4s infinite; }
@keyframes hub-pouls { 50% { transform: scale(1.35); opacity: .7; } }

.hub-panneau { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; pointer-events: none; padding: 0 10px calc(10px + var(--bas-sur)); }
.hub-panneau > * { pointer-events: auto; }
.hub-bas { display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(28,20,14,.78); backdrop-filter: blur(4px); color: var(--texte2); font-size: 13px; text-align: center; }
.hub-stocks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: var(--parchemin); }
.hub-stocks span { display: inline-flex; align-items: center; gap: 5px; }
.hub-stocks b { color: var(--or); }
.hub-carte { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border-radius: 18px 18px 14px 14px;
  background: linear-gradient(180deg, rgba(56,42,30,.97), rgba(36,27,20,.97)); border: 1px solid rgba(242,194,97,.3); box-shadow: 0 -8px 30px rgba(0,0,0,.4);
  animation: hub-monte .28s ease-out; }
@keyframes hub-monte { from { transform: translateY(30px); opacity: 0; } }
.hub-panneau.grand .hub-carte { max-height: 56vh; }
.hub-defile { overflow-y: auto; -webkit-overflow-scrolling: touch; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.hub-defile .page { padding: 0; }
.hub-tete { display: flex; align-items: center; gap: 10px; }
.hub-tete h2 { font: 700 18px var(--titre); color: var(--or); }
.hub-tete small { color: var(--texte2); font-size: 12.5px; }
.hub-carte.recolte { background: linear-gradient(180deg, rgba(56,42,30,.88), rgba(36,27,20,.92)); }
.hub-coups { display: flex; gap: 6px; justify-content: center; }
.hub-coups i { width: 26px; height: 9px; border-radius: 5px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(242,194,97,.25); transition: background .12s, box-shadow .12s; }
.hub-coups i.plein { background: linear-gradient(90deg, var(--braise2), var(--or)); box-shadow: 0 0 8px rgba(255,138,61,.6); }
.hub-souffle { text-align: center; }
.hub-souffle.cache { visibility: hidden; }
.hub-flottant { position: absolute; transform: translate(-50%, -50%); font: 700 15px var(--titre); color: var(--parchemin); text-shadow: 0 2px 6px rgba(0,0,0,.8); animation: hub-envol 1s ease-out forwards; }
.hub-flottant.petit { font-size: 12px; color: var(--texte2); }
.hub-flottant.gain { font-size: 20px; color: var(--or); }
@keyframes hub-envol { to { transform: translate(-50%, -160%); opacity: 0; } }
.ech-fab b.plein { color: var(--rouge); }

/* ---------- Lot 1 (nuit du 19/11) : l'écran de travail de l'armurerie, de l'alchimie et de la couture (#metier, 2D) */
.mt .fg-toile { display: block; }
.mt .fg-calque { touch-action: none; }
.mt.jeu .fg-scene { flex: 1 1 auto; }
.fg-jauge.mt-serrage { background: linear-gradient(90deg, #2a3a48, #5a4a3a 45%, #8a5a35 70%, #a3322a); }
.mt-alchimie .fg-jauge.chauffe { background: linear-gradient(90deg, #10202a, #1f5a4a 30%, #4fbf5a 55%, #e0d040 78%, #ff7a30); }
.fg-gestes.mt-gestes { grid-template-columns: repeat(3, 1fr); }
.fg-stats .protection i { background: linear-gradient(90deg, #5a6470, #c9d2da); }
.fg-stats .mobilite i, .fg-stats .souplesse i { background: linear-gradient(90deg, #2f5f6e, #8fd0d8); }
.fg-stats .puissance i { background: linear-gradient(90deg, #8a2a2a, #ff7a5a); }
.fg-stats .duree i, .fg-stats .stabilite i { background: linear-gradient(90deg, var(--mousse2), var(--mousse)); }
.fg-stats .purete i { background: linear-gradient(90deg, #3a5a8a, #cfe6ff); }
.fg-stats .saveur i { background: linear-gradient(90deg, #8a5a2a, #ffd27a); }
.fg-stats .elegance i { background: linear-gradient(90deg, #6e2f6b, #e8a8e0); }
.fg-stats .chaleur i { background: linear-gradient(90deg, #8a4a1a, #ffb060); }
/* (Lot 2) la Gazette du soir et « fournisseur de Lucarne » */
.ech-soir .ech-soir-etat { margin: 0 0 8px; color: var(--texte2); }
.ech-soir-recit { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ech-soir-recit li { overflow-wrap: anywhere; }
.ech-soir-recit li.reussi::marker { color: var(--mousse, #8fbf55); }
.ech-soir-recit li.rate::marker { color: var(--rouge, #ff8f7d); }
.ech-soir-recit li.issue { font-weight: 700; }
.ech-soir-objet { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.ech-soir-objet span { overflow-wrap: anywhere; }
.ech-soir-objet.casse span { color: var(--rouge, #ff8f7d); }
.ech-soir-objet.tenu span { color: var(--mousse, #8fbf55); }
.ech-fournisseur { margin: 0 0 4px; }
.ech-fournisseur.gratitude b { color: var(--mousse, #8fbf55); }
.ech-fournisseur.rancune b { color: var(--rouge, #ff8f7d); }

/* Lot 3 : la scène 3D des métiers, sous la toile 2D des repères ; elle arrive en fondu (pas d'éclair de la 2D) */
.mt-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .45s ease-out; }
.mt.en3d .mt-3d { opacity: 1; }
.mt .fg-scene { background: #0b0807; }
/* Lot 3 : le village arrive en fondu quand sa 3D est prête */
.hub .hub-toile { opacity: 0; transition: opacity .6s ease-out; }
.hub.pret .hub-toile { opacity: 1; }
/* Lot 4 : le comptoir des échanges */
.troc-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.troc-form select { width: 100%; padding: 10px 14px; border-radius: 13px; background: rgba(0,0,0,.45); border: 1px solid var(--bord); color: var(--parchemin); font: inherit; }
.troc-ventes { margin: 10px 0 0; padding-left: 18px; font-size: .9em; opacity: .85; }
/* (Lot 6) le premier lancement guidé : une bulle en haut du village */
.hub-guide { position: absolute; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 5; pointer-events: none; display: flex; justify-content: center; }
.guide-bulle { pointer-events: auto; max-width: 420px; padding: 10px 14px; border-radius: 16px; background: rgba(28,20,14,.9); border: 1px solid rgba(242,181,68,.45); box-shadow: 0 6px 20px rgba(0,0,0,.35); color: var(--texte, #f6ead4); animation: guide-entree .35s ease-out; }
.guide-bulle small { color: var(--or); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.guide-bulle p { margin: 4px 0 8px; font-size: 14px; line-height: 1.35; }
.guide-boutons { display: flex; gap: 8px; justify-content: flex-end; }
.guide-boutons .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.alerte-nom { border-color: rgba(255,120,90,.7); }
.alerte-nom small { color: #ff9a7a; }
.alerte-nom .champ input { width: 100%; margin-bottom: 8px; }
@keyframes guide-entree { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .guide-bulle { animation: none; } }

/* Lot 7 : le bouton de l'ambiance (coin haut droit du village), les pièces qui volent vers la bourse */
.hub-son { position: absolute; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 6; }
.hub-son .rond { background: rgba(28,20,14,.78); border: 1px solid rgba(242,194,97,.35); color: var(--parchemin); }
.hub-son .rond[aria-pressed="false"] { opacity: .65; }
.hub-guide { right: 58px; }
.vol-pieces { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.piece-vol { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; will-change: transform, opacity;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c261 45%, #b07a22 100%); box-shadow: 0 0 8px rgba(242,194,97,.8), inset 0 -2px 0 rgba(120,70,10,.5); }
.vol-pieces .hub-flottant { z-index: 31; }
.ech-bourse.tinte { animation: bourse-tinte .35s ease-out; }
@keyframes bourse-tinte { 40% { transform: scale(1.18); color: var(--or); } }
.ech-bourse { display: inline-flex; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .ech-bourse.tinte { animation: none; } }

/* ---------- (DA 20/11) sur PC (écran large) : le jeu prend tout l'écran au lieu d'une colonne de téléphone.
   Le village et les mini-jeux en plein écran ; les pages, panneaux et onglets restent en colonne lisible au centre ;
   les mini-jeux : la scène à gauche, le panneau à droite. Le téléphone (portrait) ne change pas. */
@media (min-width: 900px) and (orientation: landscape) {
  body.ech #app { max-width: none; box-shadow: none; }
  body.ech { font-size: 16px; }
  body.ech .haut-ligne, body.ech .ech-xp, body.ech .ech-chiffres { max-width: 1100px; margin-left: auto; margin-right: auto; }
  body.ech .ech-vue .page { width: 100%; max-width: 880px; margin: 0 auto; }
  body.ech .onglets { padding-left: max(4px, calc(50% - 420px)); padding-right: max(4px, calc(50% - 420px)); }
  body.ech .hub-panneau { left: 50%; right: auto; width: min(720px, 100%); transform: translateX(-50%); }
  body.ech .hub-panneau.grand .hub-carte { max-height: 62vh; }
  body.ech .feuille { left: 50%; right: auto; width: min(680px, 100%); transform: translate(-50%, 104%); }
  body.ech .ouverte .feuille { transform: translate(-50%, 0); }
  body.ech .fg { flex-direction: row; }
  body.ech .fg-scene, body.ech .fg.jeu .fg-scene { flex: 1 1 auto; min-height: 0; }
  body.ech .fg-panneau, body.ech .fg.jeu .fg-panneau { flex: 0 0 min(480px, 40%); margin: 0 0 0 -14px; border-top: 0; border-left: 1px solid rgba(242,194,97,.3);
    border-radius: 18px 0 0 18px; }
  body.ech .fg-pied { bottom: -16px; }
}

/* (DA 20/11) les liens de la chaîne (YouTube, TikTok, Twitch) : en-tête compact, accueil et réglages avec les noms */
.chaine { display: flex; gap: 8px; flex-wrap: wrap; }
.chaine a { display: inline-flex; align-items: center; gap: 6px; color: var(--c); text-decoration: none; border-radius: 999px;
  background: rgba(0,0,0,.32); border: 1px solid var(--bord, rgba(242,194,97,.3)); padding: 8px 12px; font-weight: 700; }
.chaine a span { color: var(--parchemin, #f6ead4); }
.chaine a:active { transform: scale(.94); }
.chaine svg { width: 20px; height: 20px; flex: none; }
.chaine-haut { margin-left: auto; margin-right: 8px; gap: 6px; flex-wrap: nowrap; }
.chaine-haut a { width: 34px; height: 34px; padding: 0; justify-content: center; }
.chaine-haut svg { width: 18px; height: 18px; }
.chaine-accueil { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* (Lot 15, docs/intro.md) l'intro : l'école en 3D et sa carte, la bulle d'Archibald, le diplôme et le nom */
.ecole { position: fixed; inset: 0; display: flex; flex-direction: column; background: #14101a; }
.ecole-scene { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ecole-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ecole-carte { flex: none; max-height: 58vh; overflow-y: auto; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); margin-top: -28px; position: relative; z-index: 2; }
.ecole-panneau { max-width: 520px; margin: 0 auto; padding: 14px 16px 16px; border-radius: 18px; background: rgba(28,20,14,.94); border: 1px solid rgba(242,181,68,.4); box-shadow: 0 -6px 24px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 8px; }
.ecole-panneau h2 { margin: 0; font: 700 20px var(--titre); color: var(--or); }
.ecole-panneau p { margin: 0; line-height: 1.4; }
.ecole-sur { color: var(--texte3); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ecole-gestes { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ecole-gestes li { padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 13px; }
.ecole-faits { display: flex; gap: 6px; justify-content: center; }
.ecole-faits i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.ecole-faits i.fait { background: var(--or); }
.ecole-faits i.ici { background: var(--braise); box-shadow: 0 0 0 3px rgba(255,138,61,.3); }
.ecole-pc { color: var(--or); font-weight: 700; }
.ecole-panneau .ech-metier .ecole-pc { font-size: 12.5px; }
.ecole-choix { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.ecole-resultat { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.ecole-resultat .ecole-pc { font: 700 26px var(--titre); }
#intro.intro-haut { position: fixed; left: 10px; right: 10px; top: calc(64px + env(safe-area-inset-top)); z-index: 30; display: flex; justify-content: center; pointer-events: none; }
#intro .intro-bulle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#intro .intro-bulle p { margin: 2px 0; }
.intro-comptes { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.intro-comptes span { padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); }
.intro-comptes span.fait { background: rgba(143,191,85,.25); color: #cfe9b0; }
#intro.intro-plein { position: fixed; inset: 0; z-index: 40; }
.intro-voile { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,7,5,.72); overflow-y: auto; }
.intro-diplome { max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(28,20,14,.97); border: 1px solid rgba(242,181,68,.45); text-align: center; }
.intro-diplome h2 { margin: 0; font: 700 20px var(--titre); color: var(--or); }
.intro-archi { margin: 0; text-align: left; line-height: 1.4; }
.intro-archi b { color: var(--or); margin-right: 4px; }
.parchemin { padding: 18px 14px; border-radius: 6px; background: linear-gradient(180deg, #f1e2bf, #dcc596); color: #3a2614; box-shadow: inset 0 0 0 3px rgba(120,80,40,.35), 0 6px 18px rgba(0,0,0,.4); }
.parchemin h2 { color: #6b3a12; }
.parchemin p { margin: 8px 0 0; font-style: italic; }
.intro-spectacle { margin: 0; font-weight: 600; }
.intro-liens { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.intro-liens a { text-decoration: none; }
.fg.ecole .fg-panneau { min-height: 132px; }

/* (DA 21/11) la liste des tâches (village, rapport), le rapport d'absence, l'annonce du soir */
.taches { width: 100%; text-align: left; color: var(--parchemin); }
.taches-tete { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 2px 0; background: none; border: 0; color: var(--or); font: inherit; font-weight: 700; text-align: left; }
.taches-tete small { color: var(--texte2); font-weight: 400; }
.taches-tete i { margin-left: auto; font-style: normal; }
.taches ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.taches li button { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 6px 4px; background: none; border: 0; border-radius: 8px; color: inherit; font: inherit; text-align: left; }
.taches li button:active { background: rgba(242,194,97,.12); }
.taches li span { display: flex; flex-direction: column; gap: 2px; }
.taches li small { color: var(--texte2); font-size: 12px; }
.taches .coche { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 2px solid var(--or); border-radius: 5px; display: grid; place-items: center; }
.taches .coche svg { width: 14px; height: 14px; stroke: var(--or); fill: none; stroke-width: 4; }
.taches li.fait b { color: var(--texte2); text-decoration: line-through; font-weight: 400; }
.taches li.fait .coche { background: rgba(242,194,97,.18); }
.rapport-lignes { margin: 4px 0 10px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rapport .taches { margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.18); }
.ech-rapport { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.ech-rapport time { color: var(--texte2); white-space: nowrap; }
.ech-annonce { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(242,194,97,.45); background: rgba(120,40,30,.25); }
.ech-annonce b { color: var(--or); }
.ech-annonce p { margin: 4px 0 0; }
.ech-annonce.prime { border-color: var(--or); background: rgba(160,110,20,.25); }
/* (DA 21/11) l'avancée du jour, le prochain objectif, ce qui a été laissé passer */
.taches-barre { display: block; height: 4px; margin: 4px 0 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.taches-barre i { display: block; height: 100%; background: var(--or); border-radius: 2px; transition: width .4s; }
.taches-objectif { margin: 8px 0 0; font-size: 12px; color: var(--texte2); }
.rapport-perte { color: #e8a27a; }
