/* Mythique — finition de l'interface.
   Chargée en dernier. Base nocturne et dorée (confort de Constellation), déclinée en quatre ambiances
   qui changent matière, formes, typographie et lumière — pas seulement la palette.
   Les écrans refondus utilisent des classes « m- » ; le reste hérite des jetons redéfinis ici. */

/* ---------- Jetons par ambiance ---------- */
html[data-theme] {
  color-scheme: dark;
  --ok: #6fd6a2; --alerte: #ff8f7d;
  --m-ombre: 0 18px 40px #0007;
  --m-titre-casse: none; --m-titre-esp: .01em; --m-titre-poids: 600;
  --m-voile-haut: 62%; --m-voile-bas: 94%;
}
html[data-theme="grec"], html [data-theme="grec"] {
  --fond: #0d1330; --surface: #171e47; --relief: #232c63; --texte: #f5f1e4; --doux: #aeb5d6;
  --or: #e6c36a; --or-clair: #f8e7b4; --contraste: #1c1608; --ligne: #e6c36a40; --halo: #6f7bd955;
  --barre: #0c1230e8; --encre-douce: #aeb5d6; --scene-voile: #0d1330; --accent: #8ea3ff;
  --scene-image: url('/decors/horizons/grec.webp');
  --m-r: 10px; --m-rb: 8px; --m-bord: 1px solid var(--ligne);
  --m-panneau: linear-gradient(180deg, #1b2351f2, #141a40f2);
}
html[data-theme="nordique"], html [data-theme="nordique"] {
  --fond: #08161d; --surface: #102a35; --relief: #1a3f4d; --texte: #eef8f8; --doux: #a3c0c9;
  --or: #a8dfe6; --or-clair: #e2fbff; --contraste: #06212a; --ligne: #a8dfe63d; --halo: #3d97a355;
  --barre: #07141be8; --encre-douce: #a3c0c9; --scene-voile: #08161d; --accent: #f0c98a;
  --scene-image: url('/decors/horizons/nordique.webp');
  --m-r: 2px; --m-rb: 2px; --m-bord: 2px solid #5d7f8a80;
  --m-panneau: linear-gradient(135deg, #12303cf2, #0c212bf2);
  --m-titre-casse: uppercase; --m-titre-esp: .09em; --m-titre-poids: 700;
}
html[data-theme="celtique"], html [data-theme="celtique"] {
  --fond: #0a1810; --surface: #152c1e; --relief: #20422d; --texte: #f3f8e4; --doux: #b2c9a4;
  --or: #e2ad6c; --or-clair: #ffe0b0; --contraste: #23160a; --ligne: #9fc27a47; --halo: #6fae5c50;
  --barre: #09160fe8; --encre-douce: #b2c9a4; --scene-voile: #0a1810; --accent: #b4e08a;
  --scene-image: url('/decors/horizons/celtique.webp');
  --m-r: 26px 10px 26px 10px; --m-rb: 22px 8px 22px 8px; --m-bord: 1.5px solid #9fc27a55;
  --m-panneau: radial-gradient(120% 140% at 0 0, #1d3c28f2, #10241af2);
  --m-titre-esp: .02em;
}
html[data-theme="egyptien"], html [data-theme="egyptien"] {
  --fond: #170f0b; --surface: #2a1c14; --relief: #3d2a1d; --texte: #fff1d8; --doux: #d7bd9a;
  --or: #f0b64a; --or-clair: #ffe2a2; --contraste: #241503; --ligne: #f0b64a45; --halo: #c9762f55;
  --barre: #150d09eb; --encre-douce: #d7bd9a; --scene-voile: #170f0b; --accent: #5aa6e6;
  --scene-image: url('/decors/horizons/egyptien.webp');
  --m-r: 0px; --m-rb: 0px; --m-bord: 1px solid #f0b64a59;
  --m-panneau: linear-gradient(180deg, #2f2017f2, #20150ef2);
  --m-titre-casse: uppercase; --m-titre-esp: .14em; --m-titre-poids: 500;
}

/* ---------- Fond de scène ---------- */
html[data-theme] body { background: var(--fond) !important; color: var(--texte); font-size: 15px; }
html[data-theme] body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--fond), transparent 45%) 0, color-mix(in srgb, var(--fond), transparent 18%) 38%, var(--fond) 82%),
    var(--scene-image) center top / cover no-repeat;
}

/* ---------- Coquille : barre du haut, navigation ---------- */
html[data-theme] .entete { background: var(--barre); border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; backdrop-filter: none; box-shadow: none; grid-template-columns: 170px 1fr 170px; }
html[data-theme] .marque { color: var(--or); font-family: var(--titre); font-weight: 700; text-decoration: none; }
html[data-theme] .navigation { gap: 6px; }
html[data-theme] .navigation a { color: var(--doux); text-decoration: none; padding: 6px 12px; border-radius: var(--m-rb); border: 0; height: auto; gap: 8px; font-size: 13px; font-weight: 700; }
html[data-theme] .navigation a small { display: block; font-size: 10.5px; font-weight: 500; opacity: .75; }
html[data-theme] .navigation a:hover { color: var(--texte); background: color-mix(in srgb, var(--relief), transparent 55%); }
html[data-theme] .navigation a[aria-current] { color: var(--or-clair); background: color-mix(in srgb, var(--relief), transparent 25%); border: 0; box-shadow: inset 0 -2px 0 var(--or); }
html[data-theme] .entete-actions .pilule { background: var(--surface); border: 1px solid var(--ligne); border-radius: 999px; padding: 5px 12px 5px 8px; font-weight: 800; color: var(--texte); text-decoration: none; font-variant-numeric: tabular-nums; }
html[data-theme] .entete-actions .outil { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ligne); display: grid; place-items: center; color: var(--texte); }
html[data-theme] .entete-actions .outil[aria-pressed="false"] { opacity: .55; }
html[data-theme] .entete-actions .outil .picto--peinte { width: 26px; height: 26px; }
html[data-theme] .contenu { max-width: 1180px; padding: 22px 28px 64px; display: flex; flex-direction: column; gap: 18px; }
html[data-theme] .contenu > * { margin-block: 0; }
html[data-theme] .administration-barre { background: #7a4b12; color: #fff2cf; }

@media (max-width: 1040px) {
  html[data-theme] .entete { grid-template-columns: auto 1fr auto; }
  html[data-theme] .navigation a small { display: none; }
  html[data-theme] .navigation a { padding: 6px 8px; }
}
@media (max-width: 760px) {
  html[data-theme] .entete { display: flex; justify-content: space-between; height: 56px; min-height: 56px; padding: env(safe-area-inset-top) 14px 0; }
  html[data-theme] .navigation { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); gap: 0; background: var(--barre); border-top: 1px solid var(--ligne); backdrop-filter: blur(14px); }
  html[data-theme] .navigation a { flex-direction: column; justify-content: center; gap: 2px; height: 64px; padding: 4px 0; font-size: 10.5px; border-radius: 0; background: none; }
  html[data-theme] .navigation a[aria-current] { background: none; box-shadow: inset 0 3px 0 var(--or); }
  html[data-theme] .navigation .picto--peinte { width: 30px; height: 30px; }
  html[data-theme] .contenu { padding: 14px 14px calc(90px + env(safe-area-inset-bottom)); gap: 14px; }
  html[data-theme] .entete-actions .pilule small { display: none; }
}

/* ---------- Typographie commune ---------- */
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3 { font-family: var(--titre); font-weight: var(--m-titre-poids); letter-spacing: var(--m-titre-esp); text-transform: var(--m-titre-casse); text-wrap: balance; margin: 0; color: var(--texte); }
html[data-theme] .contenu h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.08; color: var(--or-clair); }
html[data-theme] .contenu h2 { font-size: clamp(18px, 2.4vw, 23px); }
html[data-theme="nordique"] .contenu h1, html[data-theme="egyptien"] .contenu h1 { font-size: clamp(22px, 3.4vw, 32px); }
.m-sur, html[data-theme] .surtitre { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.m-texte { margin: 6px 0 0; color: var(--doux); }
.m-note { margin: 8px 0 0; font-size: 13px; color: var(--doux); }
.m-vide { padding: 28px; text-align: center; color: var(--doux); border: 1px dashed var(--ligne); border-radius: var(--m-r); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }

/* ---------- Boutons ---------- */
html[data-theme] .bouton { min-height: 44px; padding: 10px 18px; font: 700 14px/1.2 var(--corps); letter-spacing: .01em; color: var(--texte); background: color-mix(in srgb, var(--relief), transparent 20%); border: 1px solid var(--ligne); border-radius: var(--m-rb); clip-path: none; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; transition: transform .12s, filter .15s, background .15s; }
html[data-theme] .bouton:hover:not(:disabled) { filter: brightness(1.12); }
html[data-theme] .bouton:active:not(:disabled) { transform: translateY(1px) scale(.985); }
html[data-theme] .bouton:disabled { opacity: .45; cursor: not-allowed; }
html[data-theme] .bouton.primaire { color: var(--contraste); background: linear-gradient(180deg, var(--or-clair), var(--or)); border-color: var(--or-clair); box-shadow: 0 6px 18px color-mix(in srgb, var(--or), transparent 72%); }
html[data-theme] .bouton.primaire .picto--peinte { filter: drop-shadow(0 1px 0 #0003); }
html[data-theme] .bouton.nu { background: transparent; border-color: transparent; color: var(--or-clair); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ligne); }
html[data-theme] .bouton.danger { color: #ffd9d2; border-color: #ff8f7d80; background: #5a1f1a; }
html[data-theme] .bouton.grand { min-height: 52px; padding: 13px 26px; font-size: 16px; }
html[data-theme] .bouton.petit { min-height: 36px; padding: 6px 12px; font-size: 13px; }
html[data-theme="nordique"] .bouton { clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
html[data-theme="egyptien"] .bouton { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--or), transparent 55%), inset 0 -2px 0 color-mix(in srgb, var(--or), transparent 55%); letter-spacing: .05em; }
html[data-theme="egyptien"] .bouton.primaire { box-shadow: inset 0 3px 0 #fff5, inset 0 -3px 0 #0002, 0 6px 18px color-mix(in srgb, var(--or), transparent 72%); }

/* ---------- Panneaux et sections ---------- */
.m-panneau, html[data-theme] .panneau { background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); box-shadow: var(--m-ombre); padding: 18px 20px; }
html[data-theme="grec"] .m-panneau, html[data-theme="grec"] .panneau { border-top: 3px double var(--or); }
html[data-theme="nordique"] .m-panneau, html[data-theme="nordique"] .panneau { clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); box-shadow: none; }
html[data-theme="egyptien"] .m-panneau, html[data-theme="egyptien"] .panneau { border-block: 3px solid var(--or); box-shadow: inset 0 0 0 5px #170f0b, inset 0 0 0 6px var(--ligne), var(--m-ombre); padding: 22px 24px; }
.m-titre-section { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.m-titre-section a { color: var(--or-clair); font-weight: 700; font-size: 13px; text-decoration: none; }
.m-gain { display: inline-flex; align-items: center; gap: 4px; color: var(--doux); font-size: 13px; font-weight: 700; white-space: nowrap; }
.m-jauge { display: block; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--texte), transparent 88%); overflow: hidden; }
.m-jauge > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s; }
.m-jauge.or > i { background: linear-gradient(90deg, var(--or), var(--or-clair)); }
.m-duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .m-duo { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Accueil : héros du Sceau ---------- */
.m-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; min-height: 340px; padding: 34px clamp(20px, 5vw, 56px); border: var(--m-bord); border-radius: var(--m-r); overflow: hidden; box-shadow: var(--m-ombre); }
.m-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--fond) 0, color-mix(in srgb, var(--fond), transparent 20%) 42%, color-mix(in srgb, var(--fond), transparent 72%) 100%), var(--paysage) center / cover no-repeat; }
html[data-theme="grec"] .m-hero { border-top: 3px double var(--or); border-bottom: 3px double var(--or); }
html[data-theme="egyptien"] .m-hero { border-block: 4px solid var(--or); }
.m-hero h1 { font-size: clamp(30px, 5vw, 50px) !important; }
.m-hero-sous { margin: 6px 0 14px; font-size: 16px; color: var(--texte); }
.m-reserve { display: flex; gap: 7px; }
.m-reserve i { width: 30px; height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--texte), transparent 82%); }
.m-reserve i.plein { background: linear-gradient(90deg, var(--or), var(--or-clair)); box-shadow: 0 0 10px color-mix(in srgb, var(--or), transparent 55%); }
html[data-theme="nordique"] .m-reserve i, html[data-theme="egyptien"] .m-reserve i { border-radius: 0; transform: skewX(-18deg); }
.m-recharge { margin: 9px 0 0; font-size: 13.5px; color: var(--doux); }
.m-recharge b { color: var(--or-clair); font-variant-numeric: tabular-nums; }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.m-paquet { position: relative; width: clamp(150px, 19vw, 215px); aspect-ratio: 5 / 8; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 22px 26px #000a); animation: m-flotte 5.5s ease-in-out infinite; transition: transform .2s; }
.m-paquet > img:first-child { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-paquet > .picto { position: absolute; left: 50%; top: 47%; width: 52% !important; height: auto !important; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 8px #0009); }
.m-paquet::after { content: ''; position: absolute; inset: 6% 9%; border-radius: 12px; background: linear-gradient(115deg, transparent 38%, #fff7 50%, transparent 62%) -120% 0 / 250% 100% no-repeat; mix-blend-mode: soft-light; animation: m-reflet 4.2s ease-in-out infinite; pointer-events: none; }
.m-paquet:hover:not(:disabled) { transform: scale(1.04) rotate(-1.5deg); }
.m-paquet:disabled { filter: grayscale(.75) brightness(.6) drop-shadow(0 22px 26px #000a); cursor: not-allowed; animation: none; }
@keyframes m-flotte { 50% { translate: 0 -9px; rotate: 1.2deg; } }
@keyframes m-reflet { 0%, 55% { background-position: -120% 0; } 100% { background-position: 220% 0; } }
@media (max-width: 640px) {
  .m-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px 26px; gap: 14px; min-height: 0; }
  .m-hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--fond), transparent 30%), var(--fond) 92%), var(--paysage) center / cover no-repeat; }
  .m-paquet { order: -1; width: 138px; }
  .m-reserve, .m-actions { justify-content: center; }
  .m-actions .bouton.grand { width: 100%; }
}

/* ---------- Accueil : offrande, guide, serments, tuiles, dernières cartes ---------- */
.m-cadeau { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 18px 10px 12px; text-align: left; color: var(--texte); font: inherit; cursor: pointer; border: 1px solid var(--or); border-radius: var(--m-r); background: linear-gradient(90deg, color-mix(in srgb, var(--or), transparent 78%), color-mix(in srgb, var(--surface), transparent 5%)); }
.m-cadeau img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; animation: m-flotte 3.2s ease-in-out infinite; }
.m-cadeau span { flex: 1; display: grid; gap: 2px; }
.m-cadeau strong { font-size: 16px; color: var(--or-clair); }
.m-cadeau small { color: var(--doux); }
.m-cadeau > i { font-size: 26px; font-style: normal; color: var(--or); }
#premiers-pas:empty { display: none; }
.m-guide { padding: 16px 20px; border: 1px solid color-mix(in srgb, var(--accent), transparent 45%); border-radius: var(--m-r); background: linear-gradient(120deg, color-mix(in srgb, var(--accent), transparent 86%), var(--surface)); }
.m-guide header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.m-guide header strong { display: block; font: var(--m-titre-poids) 21px/1.15 var(--titre); letter-spacing: var(--m-titre-esp); }
.m-guide header small { display: block; margin-top: 3px; color: var(--doux); font-size: 13.5px; }
.m-guide ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--doux); }
.m-guide li { display: flex; align-items: center; gap: 7px; }
.m-guide li i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--ligne); font-style: normal; font-weight: 800; font-size: 12px; }
.m-guide li.courant { color: var(--texte); font-weight: 700; }
.m-guide li.courant i { border-color: var(--or); color: var(--or-clair); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or), transparent 80%); }
.m-guide li.accompli i { background: var(--ok); border-color: var(--ok); color: #06301d; }
@media (max-width: 760px) { .m-guide ol { grid-template-columns: 1fr; gap: 6px; } .m-guide li:not(.courant):not(.accompli) { opacity: .7; } }
.m-missions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-mission { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--m-rb); background: color-mix(in srgb, var(--fond), transparent 45%); }
.m-mission strong { display: block; font-size: 14.5px; }
.m-mission small { display: block; margin: 1px 0 6px; font-size: 12px; color: var(--doux); }
.m-mission.faite { opacity: .6; }
.m-tuiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.m-tuile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; color: var(--texte); text-decoration: none; background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); transition: transform .15s, border-color .15s; }
.m-tuile:hover { transform: translateY(-3px); border-color: var(--or); }
.m-tuile strong { display: block; font: var(--m-titre-poids) 19px/1.1 var(--titre); letter-spacing: var(--m-titre-esp); text-transform: var(--m-titre-casse); color: var(--or-clair); }
.m-tuile small { display: block; margin-top: 3px; color: var(--doux); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 960px) { .m-tuiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .m-tuiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .m-tuile { flex-direction: row; align-items: center; padding: 10px 12px; } .m-tuile .picto { width: 40px; height: 40px; } }
.m-carrousel { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--ligne) transparent; }
.m-carrousel > .carte { flex: 0 0 clamp(120px, 15vw, 158px); scroll-snap-align: start; }

/* ---------- En-tête de page et compteur ---------- */
.m-entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.m-compteur { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border: var(--m-bord); border-radius: var(--m-rb); background: var(--m-panneau); }
.m-compteur strong { font: 700 34px/1 var(--titre); color: var(--or-clair); font-variant-numeric: tabular-nums; }
.m-compteur span { display: grid; font-weight: 700; font-size: 14px; line-height: 1.15; }
.m-compteur small { font-weight: 500; font-size: 11.5px; color: var(--doux); }

/* ---------- Codex ---------- */
.m-onglets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.m-onglet { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 5px 15px 5px 8px; font: 700 14px var(--corps); color: var(--doux); background: color-mix(in srgb, var(--surface), transparent 25%); border: 1px solid var(--ligne); border-radius: 999px; cursor: pointer; }
html[data-theme="nordique"] .m-onglet, html[data-theme="egyptien"] .m-onglet { border-radius: var(--m-rb); }
.m-onglet[aria-pressed="true"] { color: var(--contraste); background: linear-gradient(180deg, var(--or-clair), var(--or)); border-color: var(--or-clair); }
.m-chapitres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.m-chapitre { padding: 12px 16px 12px; border: var(--m-bord); border-radius: var(--m-rb); background: var(--m-panneau); }
.m-chapitre header { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.m-chapitre header span { color: var(--or-clair); font-weight: 800; font-variant-numeric: tabular-nums; }
.m-chapitre small { display: block; margin-top: 9px; font-size: 12px; color: var(--doux); }
.m-paliers { position: relative; height: 8px; margin: 12px 4px 0; border-radius: 99px; background: color-mix(in srgb, var(--texte), transparent 86%); }
.m-paliers > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--or), var(--or-clair)); }
.m-paliers > b { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--fond); border: 2px solid color-mix(in srgb, var(--texte), transparent 55%); }
.m-paliers > b.prime { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; transform: rotate(45deg); border-radius: 2px; }
.m-paliers > b.atteint { background: var(--or-clair); border-color: var(--or); }
.m-outils { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.m-recherche { flex: 1 1 220px; max-width: 340px; }
.m-recherche .champ { width: 100%; }
.m-filtres { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-theme] .bouton.m-puce { min-height: 36px; padding: 4px 11px; font-size: 12.5px; border-radius: 999px; clip-path: none; text-transform: none; letter-spacing: 0; box-shadow: none; background: color-mix(in srgb, var(--surface), transparent 30%); }
html[data-theme] .bouton.m-puce[aria-pressed="true"] { border-color: var(--or-clair); background: color-mix(in srgb, var(--or), transparent 72%); color: var(--or-clair); }
html[data-theme] .champ { min-height: 44px; padding: 9px 14px; font: 500 15px var(--corps); color: var(--texte); background: color-mix(in srgb, var(--fond), transparent 25%); border: 1px solid var(--ligne); border-radius: var(--m-rb); }
html[data-theme] .champ::placeholder { color: color-mix(in srgb, var(--doux), transparent 30%); }
html[data-theme] .champ:focus { border-color: var(--or); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--or), transparent 75%); }
html[data-theme] .m-grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; }
@media (max-width: 560px) { html[data-theme] .m-grille-cartes { grid-template-columns: repeat(3, 1fr); gap: 10px 8px; } }
@media (max-width: 380px) { html[data-theme] .m-grille-cartes { grid-template-columns: repeat(2, 1fr); } }
.m-vers-sanctuaire { position: relative; display: flex; align-items: flex-end; min-height: 130px; padding: 16px 20px; overflow: hidden; color: #fff; text-decoration: none; border: var(--m-bord); border-radius: var(--m-r); }
.m-vers-sanctuaire img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s; }
.m-vers-sanctuaire::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000b, #0003); }
.m-vers-sanctuaire:hover img { transform: scale(1.04); }
.m-vers-sanctuaire span { display: grid; gap: 2px; }
.m-vers-sanctuaire strong { font: 600 24px var(--titre); color: var(--or-clair); }
.m-aide { padding: 12px 16px; border: 1px dashed var(--ligne); border-radius: var(--m-rb); color: var(--doux); font-size: 14px; }
.m-aide summary { cursor: pointer; font-weight: 700; color: var(--texte); }
.m-aide p { margin: 10px 0 0; max-width: 78ch; }

/* ---------- Hall des Épreuves ---------- */
.m-jeux { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.m-famille.rituels .m-jeux { grid-template-columns: repeat(3, 1fr); }
.m-jeu { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: var(--texte); cursor: pointer; overflow: hidden; background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); transition: transform .15s, border-color .15s, box-shadow .15s; }
.m-jeu:hover { transform: translateY(-4px); border-color: var(--or); box-shadow: var(--m-ombre); }
.m-jeu-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.m-famille.rituels .m-jeu-art { aspect-ratio: 16 / 9; }
.m-jeu-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.m-jeu:hover .m-jeu-art img { transform: scale(1.06); }
.m-jeu-corps { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 14px 14px; }
.m-jeu-corps em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.m-jeu-corps strong { font: var(--m-titre-poids) 20px/1.12 var(--titre); letter-spacing: var(--m-titre-esp); text-transform: var(--m-titre-casse); color: var(--or-clair); }
.m-jeu-corps small { color: var(--doux); font-size: 13px; line-height: 1.4; }
.m-jeu-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12px; }
.m-jeu-pied b { display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 99px; font-weight: 800; }
.m-jeu-pied b.gratuit { background: color-mix(in srgb, var(--ok), transparent 80%); color: var(--ok); }
.m-jeu-pied b.payant { background: color-mix(in srgb, var(--or), transparent 78%); color: var(--or-clair); }
.m-jeu-pied i { font-style: normal; color: var(--doux); }
@media (max-width: 760px) {
  .m-famille.rituels .m-jeux, .m-jeux { grid-template-columns: 1fr; gap: 10px; }
  .m-jeu { flex-direction: row; align-items: stretch; }
  .m-jeu-art, .m-famille.rituels .m-jeu-art { flex: 0 0 104px; aspect-ratio: auto; }
  .m-jeu-corps strong { font-size: 18px; }
}

/* ---------- Éléments hérités ramenés à la base nocturne ---------- */
html[data-theme] dialog:not(.immersion) { background: var(--surface); color: var(--texte); border: var(--m-bord); border-radius: var(--m-r); box-shadow: 0 30px 90px #000c; }
html[data-theme] dialog::backdrop { background: #04060fd9; backdrop-filter: blur(3px); }
html[data-theme] .note { color: var(--doux); background: color-mix(in srgb, var(--fond), transparent 40%); border: 0; border-left: 3px solid var(--or); border-radius: 0 var(--m-rb) var(--m-rb) 0; padding: 9px 14px; }
html[data-theme] .muted, html[data-theme] .fiche-lore p, html[data-theme] .fiche-infos dt { color: var(--doux); }
html[data-theme] .outil { background: var(--relief); color: var(--texte); border: 1px solid var(--ligne); }
html[data-theme] .pilule { background: var(--surface); border: 1px solid var(--ligne); color: var(--texte); border-radius: 999px; }
html[data-theme] .page-titre { color: var(--texte); }
html[data-theme] .page-titre h1 { color: var(--or-clair); }
html[data-theme] .rubrique h2 { font-size: 23px !important; }
html[data-theme] .offre { background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); padding: 16px 16px 18px; }
html[data-theme] .offre h2 { font-size: 20px; color: var(--or-clair); }
html[data-theme] .offre p { color: var(--doux); }

@media (prefers-reduced-motion: reduce) {
  .m-paquet, .m-paquet::after, .m-cadeau img { animation: none; }
  .m-tuile, .m-jeu, .m-jeu-art img, .m-vers-sanctuaire img { transition: none; }
}

/* ---------- Cartes non découvertes : silhouette à retrouver ---------- */
html[data-theme] .carte.inconnue .carte-art { filter: grayscale(1) brightness(.34) contrast(1.2) blur(2px) !important; }
html[data-theme] .carte.inconnue .cadre-pantheon, html[data-theme] .carte.inconnue .carte-contour { filter: saturate(.25) brightness(.6); }
html[data-theme] .carte.inconnue .carte-holo, html[data-theme] .carte.inconnue .carte-holo-brillante, html[data-theme] .carte.inconnue .carte-reflet, html[data-theme] .carte.inconnue .carte-etincelles { display: none; }
html[data-theme] .carte.inconnue .carte-fenetre::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 600 clamp(34px, 6vw, 58px) var(--titre); color: #fff3; }
html[data-theme] .carte.inconnue .carte-nom { color: var(--doux); }

/* ---------- Filtres hérités, Éveil, Agora ---------- */
html[data-theme] .bouton.filtre { min-height: 40px; padding: 5px 14px; border-radius: 999px; clip-path: none; text-transform: none; letter-spacing: 0; font-size: 13.5px; box-shadow: none; background: color-mix(in srgb, var(--surface), transparent 25%); color: var(--doux); border: 1px solid var(--ligne); gap: 6px; }
html[data-theme] .bouton.filtre[aria-pressed="true"] { color: var(--contraste); background: linear-gradient(180deg, var(--or-clair), var(--or)); border-color: var(--or-clair); }
html[data-theme] .eveil { color: var(--texte); display: grid; gap: 16px; }
html[data-theme] .eveil-entete p:not(.note) { color: var(--doux); margin: 6px 0 0; }
html[data-theme] .eveil-entete .note { display: none; }
html[data-theme] .eveil-scene-entete h2 { color: var(--or-clair); font-size: clamp(22px, 3vw, 30px); }
html[data-theme] .eveil-scene-entete strong { color: var(--or-clair); font: 700 26px var(--titre); }
html[data-theme] .eveil-legende h3, html[data-theme] .eveil-progression label { color: var(--texte); }
html[data-theme] .eveil-legende p, html[data-theme] .eveil-progression p, html[data-theme] .eveil-apercu p { color: var(--doux); }
html[data-theme] .eveil-progression, html[data-theme] .eveil-apercu { background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); padding: 14px 18px; }
html[data-theme] progress { accent-color: var(--or); height: 8px; }
html[data-theme] .contenu .grille:has(.offre) { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
html[data-theme] .balance { display: flex; flex-wrap: wrap; gap: 8px; }
/* ---------- Carte : plus de fond noir autour du cadre peint ---------- */
html[data-theme] .carte .carte-illustration { background: transparent; }
html[data-theme] .carte { cursor: pointer; }
html[data-theme] .carte:hover { transform: translateY(-4px); }
html[data-theme] .carte .compte { background: var(--fond); color: var(--or-clair); border: 1px solid var(--or); border-radius: 99px; padding: 1px 8px; font-size: 12px; }
/* ---------- Ajustements mobiles ---------- */
html[data-theme] .bouton { white-space: nowrap; }
@media (max-width: 560px) {
  .m-guide header { flex-wrap: wrap; }
  .m-guide header .bouton { width: 100%; }
  .m-tuiles > :last-child:nth-child(odd) { grid-column: span 2; }
  .m-mission { grid-template-columns: auto 1fr; }
  .m-mission > .bouton, .m-mission > .m-gain { grid-column: 2; justify-self: start; }
  .m-entete-page { align-items: flex-start; }
  .m-compteur strong { font-size: 26px; }
}
/* ---------- Salles de jeu ---------- */
html[data-theme] .contenu > * { min-width: 0; }
html[data-theme] .contenu > .salle { width: 100%; align-self: center; background: var(--m-panneau); border: var(--m-bord); border-radius: var(--m-r); padding: clamp(14px, 3vw, 26px); }
html[data-theme] .contenu > .salle.salle-interactive { max-width: none; }
html[data-theme] .salle .plateau { width: min(100%, 440px); }
html[data-theme] .salle .statut { font: 700 17px var(--corps); color: var(--or-clair); text-align: center; }
html[data-theme] .salle .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
html[data-theme] .bouton.nu { box-shadow: none; clip-path: none; }
html[data-theme] .pupitre-machine h3 { color: var(--or-clair); font-size: clamp(20px, 2.6vw, 26px); }
/* ---------- Le Cercle (multijoueur) ---------- */
.c-code strong { font-size: 24px; letter-spacing: .12em; font-family: var(--corps); }
.c-ligne { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.c-ligne .champ { flex: 1 1 200px; min-width: 0; }
.c-rejoindre { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: center; }
.c-atouts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.c-atouts li { display: flex; align-items: center; gap: 12px; color: var(--doux); font-size: 13.5px; }
.c-atouts strong { display: block; color: var(--texte); font-size: 15px; }
.c-colonne { display: grid; gap: 18px; }
.c-liste { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.c-liste > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-radius: var(--m-rb); background: color-mix(in srgb, var(--fond), transparent 45%); }
.c-nom { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.c-nom .picto { grid-row: span 2; }
.c-nom small, .c-fil small { color: var(--doux); font-size: 12px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.c-souhaits { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--doux); }
.c-souhaits b { padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--accent), transparent 82%); color: var(--texte); font-weight: 600; }
.c-fil { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--doux); }
.c-fil strong { color: var(--texte); }
.c-fil small { margin-left: 8px; }
.c-onglet b { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--alerte); color: #2a0d08; font-size: 12px; line-height: 20px; text-align: center; }
.c-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 8px; }
.c-carte { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; font: inherit; color: var(--texte); cursor: pointer; background: var(--fond); border: 2px solid var(--rc, var(--ligne)); border-radius: 8px; }
.c-carte:disabled { cursor: default; }
.c-carte img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; display: block; }
.c-carte span { padding: 3px 4px 4px; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-carte > i { position: absolute; top: 3px; left: 4px; font-style: normal; color: #fff; text-shadow: 0 0 6px #fff, 0 0 2px #000; }
.c-carte > em { position: absolute; top: 3px; right: 3px; padding: 0 6px; border-radius: 99px; background: #000b; font-style: normal; font-size: 11px; font-weight: 800; }
.c-carte > u { position: absolute; top: 22px; right: 4px; text-decoration: none; color: var(--alerte); text-shadow: 0 0 4px #000; }
.c-carte.brillante { box-shadow: 0 0 10px color-mix(in srgb, var(--rc, #fff), transparent 40%); }
.c-carte[aria-pressed="true"] { outline: 3px solid var(--or-clair); outline-offset: 1px; transform: translateY(-3px); }
.c-echange { display: grid !important; gap: 10px; }
.c-echange header { display: flex; justify-content: space-between; gap: 8px; }
.c-troc { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.c-troc > b { font-size: 24px; color: var(--or); }
.c-troc small { color: var(--doux); font-size: 12px; }
.c-troc .c-cartes { grid-template-columns: repeat(3, minmax(0, 86px)); }
.c-sous { margin: 18px 0 0 !important; font-size: 18px !important; }
.c-sous small { font: 600 13px var(--corps); color: var(--doux); margin-left: 8px; letter-spacing: 0; }
.c-directs .m-jeu { cursor: default; }
.c-directs .m-jeu:hover { transform: none; }
.c-salon { display: grid; gap: 14px; justify-items: center; text-align: center; width: 100%; }
.c-grand-code { margin: 0; padding: 10px 26px; font: 800 clamp(30px, 8vw, 46px) var(--corps); letter-spacing: .22em; color: var(--or-clair); border: 2px dashed var(--or); border-radius: var(--m-rb); }
.c-joueurs { display: grid; gap: 6px; width: min(100%, 460px); margin: 0; padding: 0; list-style: none; }
.c-joueurs li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--m-rb); background: color-mix(in srgb, var(--fond), transparent 45%); text-align: left; }
.c-joueurs li.moi { box-shadow: inset 0 0 0 1px var(--or); }
.c-joueurs li > i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--relief); font-style: normal; font-weight: 800; font-size: 12px; }
.c-joueurs strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-joueurs b { color: var(--or-clair); font-variant-numeric: tabular-nums; }
.c-joueurs small { color: var(--doux); font-size: 12px; }
.c-joueurs.classement { width: 100%; }
.c-chrono { width: min(100%, 460px); }
.c-chrono > i { width: 100%; background: var(--or); animation: c-chrono var(--reste) linear forwards; transform-origin: left; }
.c-chrono.pause > i { animation: none; opacity: .35; }
@keyframes c-chrono { to { transform: scaleX(0); } }
.c-gain { margin: 0; font: 700 22px var(--titre); color: var(--or-clair); }
.c-devine { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 320px); gap: 20px; align-items: center; justify-content: center; width: 100%; }
.c-fragment { aspect-ratio: 3 / 4; border: 3px solid var(--or); border-radius: var(--m-rb); background-size: 430%; background-repeat: no-repeat; transition: background-size .7s ease, background-position .7s ease; }
.c-fragment.revele { background-size: cover; background-position: 50% 30% !important; }
.c-choix { display: grid; gap: 10px; }
html[data-theme] .c-choix .bouton { width: 100%; min-height: 50px; font-size: 16px; white-space: normal; }
html[data-theme] .c-choix .bouton.choisi { border-color: var(--or-clair); box-shadow: inset 0 0 0 2px var(--or); opacity: 1; }
html[data-theme] .c-choix .bouton.juste { background: color-mix(in srgb, var(--ok), transparent 55%); border-color: var(--ok); color: #fff; opacity: 1; }
@media (max-width: 760px) {
  .c-rejoindre, .c-devine { grid-template-columns: 1fr; }
  .c-fragment { max-width: 240px; width: 100%; justify-self: center; }
  .c-troc { grid-template-columns: 1fr; }
  .c-troc > b { justify-self: center; transform: rotate(90deg); }
}
/* ---------- Ouverture : rail des cinq cartes lisible ---------- */
#calque .plateau .carte .carte-cartouche, #calque .plateau .carte .carte-type, #calque .plateau .carte .compte { display: none; }
#calque .plateau .carte .carte-fenetre { inset: 6% 6%; }
/* ---------- Cartes : cadres de rareté peints, fenêtre d'image ajustée à chaque cadre ---------- */
html[data-theme] .carte .carte-fenetre { inset: var(--fen, 7% 7%) !important; border-radius: 4.5%; background: #0b101e; z-index: 1; }
html[data-theme] .inconnue .carte-fenetre { inset: var(--fen-o, 11% 12%) !important; border-radius: 2%; }
html[data-theme] .carte .cadre-pantheon { z-index: 5; filter: drop-shadow(0 3px 4px #000a); }
html[data-theme] .cadre-origine, html[data-theme] .inconnue .cadre-rarete { display: none; }
html[data-theme] .inconnue .cadre-origine { display: block; filter: saturate(.55) brightness(.8) drop-shadow(0 3px 4px #000a); }
html[data-theme] .carte .carte-contour { inset: 5% 6%; border: 0; border-radius: 6%; z-index: 0; opacity: 1; box-shadow: 0 0 16px 2px color-mix(in srgb, var(--rc), transparent 45%); }
html[data-theme] .carte[data-r="commune"] .carte-contour, html[data-theme] .inconnue .carte-contour { box-shadow: none; animation: none; }
html[data-theme] .carte .carte-cartouche { position: absolute; inset: auto 0 0 0 !important; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; min-height: 0 !important; padding: 15% 7% 9.5% !important; text-align: center; border: 0; border-radius: 0; background: linear-gradient(transparent, #060a14cc 40%, #060a14f5 78%); }
html[data-theme] .carte .carte-type { position: static !important; display: inline-flex; align-items: center; gap: .45em; max-width: 100%; padding: 0 !important; border: 0; background: none !important; backdrop-filter: none; box-shadow: none; font: 800 clamp(7px, 3.5cqw, 12.5px)/1.1 var(--corps); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--rc), #fff 45%) !important; text-shadow: 0 1px 3px #000; }
html[data-theme] .carte .carte-type img { width: 1.7em; height: 1.7em; flex: none; }
html[data-theme] .carte .carte-nom { font: 600 clamp(11px, 8cqw, 30px)/1.02 var(--titre); letter-spacing: 0; text-transform: none; color: #fff6e2; text-wrap: balance; }
html[data-theme] .carte .carte-bas { justify-content: center; gap: 6px; font-size: clamp(7px, 3.6cqw, 13px); }
html[data-theme] .carte .rarete-badge { font-size: inherit; }
html[data-theme] .carte.inconnue .carte-fenetre::after { z-index: 2; inset: 0 0 26%; }
html[data-theme] .carte .compte, html[data-theme] .carte .carte-favorite, html[data-theme] .carte .carte-nouvelle { z-index: 7; }
#calque .plateau .carte .carte-fenetre { inset: var(--fen, 7% 7%) !important; }
/* ---------- Pince : parchemins scellés ; urne : boules d'oracle ---------- */
html[data-theme] .lot-parchemin > img { position: absolute; left: -22%; top: 50%; width: 144%; height: auto; max-width: none; translate: 0 -50%; filter: drop-shadow(0 3px 3px #000a) drop-shadow(0 0 5px color-mix(in srgb, var(--rc), transparent 25%)); }
html[data-theme] .lot-parchemin::after { display: none; }
html[data-theme] .lot-parchemin > i { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; translate: -50% -58%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--rc) 45%, color-mix(in srgb, var(--rc), #000 45%)); box-shadow: 0 0 0 1.5px #f3d58a, 0 0 9px var(--rc); }
html[data-theme] .lot-parchemin[data-r="mythique"] > i, html[data-theme] .lot-parchemin[data-r="legendaire"] > i { animation: m-cachet 1.8s ease-in-out infinite; }
@keyframes m-cachet { 50% { box-shadow: 0 0 0 1.5px #fff2c4, 0 0 16px 3px var(--rc); } }
html[data-theme] .inconnue .cadre-origine { filter: saturate(.85) brightness(.82) drop-shadow(0 3px 4px #000a); }
@media (prefers-reduced-motion: reduce) { html[data-theme] .lot-parchemin > i { animation: none; } }
/* ---------- Choix de l'ambiance : quatre vignettes de paysage ---------- */
html[data-theme] .domaines-medaillons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
html[data-theme] .domaines-medaillons .domaine { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 128px; padding: 10px 6px; overflow: hidden; color: #fff; cursor: pointer; border: 2px solid #ffffff2e; border-radius: 12px; background: #0b101e center / cover no-repeat; box-shadow: none; transition: transform .15s, border-color .15s; }
html[data-theme] .domaines-medaillons .domaine::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, #05080fd9); }
html[data-theme] .domaines-medaillons .domaine > * { position: relative; }
html[data-theme] .domaines-medaillons .domaine .picto { width: 52px; height: 52px; filter: drop-shadow(0 3px 5px #000b); }
html[data-theme] .domaines-medaillons .domaine strong { font: 700 15px var(--corps); text-shadow: 0 1px 4px #000; }
html[data-theme] .domaines-medaillons .domaine:hover { transform: translateY(-3px); }
html[data-theme] .domaines-medaillons .domaine[aria-pressed="true"] { border-color: var(--or-clair); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or), transparent 55%), 0 0 22px color-mix(in srgb, var(--or), transparent 55%); }
.domaine[data-theme-id="grec"] { background-image: url('/decors/mobile/grec.webp') !important; }
.domaine[data-theme-id="nordique"] { background-image: url('/decors/mobile/nordique.webp') !important; }
.domaine[data-theme-id="celtique"] { background-image: url('/decors/mobile/celtique.webp') !important; }
.domaine[data-theme-id="egyptien"] { background-image: url('/decors/mobile/egyptien.webp') !important; }
@media (max-width: 560px) { html[data-theme] .domaines-medaillons { grid-template-columns: repeat(2, 1fr); } html[data-theme] .domaines-medaillons .domaine { min-height: 104px; } }
/* ---------- Carte : compteur en haut, cartouche dégagé des gemmes du cadre ---------- */
html[data-theme] .carte .compte { top: 9%; right: 10%; bottom: auto; left: auto; }
html[data-theme] .carte .carte-bas { flex-wrap: wrap; row-gap: 0; }
html[data-theme] .carte [data-r="mythique"] .carte-cartouche { padding-bottom: 15% !important; }
html[data-theme] .carte [data-r="legendaire"] .carte-cartouche, html[data-theme] .carte [data-r="rare"] .carte-cartouche { padding-bottom: 12% !important; }
/* =====================================================================================================
   V0.18 — retours du 13 novembre : fiche plein écran, choix du Sceau, accueil, Codex, jeux sans cadre,
   Agora animée, Éveil en blocs.
   ===================================================================================================== */

/* ---------- Fiche de carte en plein écran ---------- */
html[data-theme] dialog.contient-fiche { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden;
  background: radial-gradient(ellipse at 28% 45%, color-mix(in srgb, var(--rc, var(--or)), var(--fond) 82%), var(--fond) 70%); }
.fiche-pleine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: 100%; }
.fiche-pleine > .fermer { position: fixed !important; top: max(12px, env(safe-area-inset-top)) !important; right: 14px !important; z-index: 5; width: 44px; height: 44px; font-size: 26px; }
.fp-carte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; min-height: 0; }
.fp-carte .carte-detail { width: auto !important; max-width: 100% !important; height: min(78dvh, 720px); aspect-ratio: 2 / 3; padding: 0; border: 0; background: none; cursor: zoom-in; margin: 0; filter: drop-shadow(0 26px 40px #000b); transition: transform .25s; }
.fp-carte .carte-detail:hover { transform: scale(1.015); }
.fp-carte small { color: var(--doux); font-size: 12.5px; }
.fp-texte { align-self: center; max-height: 100%; overflow-y: auto; padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(24px, 5vw, 64px) 8px; }
.fp-texte h2 { margin: 2px 0 12px !important; font-size: clamp(34px, 5vw, 62px) !important; line-height: 1 !important; color: var(--or-clair); }
.fp-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.fp-finitions { display: inline-flex; gap: 6px; }
.fp-texte p { max-width: 62ch; margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--texte); }
.fp-texte .fp-resume { font: 500 clamp(19px, 2.2vw, 23px)/1.45 var(--titre); color: var(--or-clair); }
.fp-texte .fp-nuance { padding-left: 14px; border-left: 3px solid var(--ligne); color: var(--doux); font-size: 15px; }
.fp-liens a { color: var(--or-clair); font-weight: 700; font-size: 14px; text-underline-offset: 4px; }
.fp-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ligne); }
.fp-quantite { color: var(--doux); font-size: 13.5px; margin-right: 6px; }
@media (max-width: 800px) {
  html[data-theme] dialog.contient-fiche { overflow-y: auto; }
  .fiche-pleine { grid-template-columns: 1fr; height: auto; min-height: 100%; }
  .fp-carte { padding: 56px 16px 6px; }
  .fp-carte .carte-detail { height: min(56dvh, 480px); }
  .fp-texte { overflow: visible; padding: 10px 20px 32px; align-self: start; }
}
dialog.carte-pleine { inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; background: #05060cf2; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: zoom-out; }
dialog.carte-pleine[open] { display: flex; }
dialog.carte-pleine .carte { height: min(calc(100dvh - 84px), calc((100vw - 24px) * 1.5)); aspect-ratio: 2 / 3; width: auto; padding: 0; border: 0; background: none; animation: m-entree-carte .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes m-entree-carte { from { transform: scale(.82); opacity: 0; } }

/* ---------- Sceaux : paquet peint et teinté, dialogue de choix ---------- */
.m-sceau { position: relative; display: block; aspect-ratio: 5 / 8; filter: drop-shadow(0 14px 18px #0009); }
.m-sceau > img:first-child { width: 100%; height: 100%; object-fit: contain; display: block; }
.m-sceau-teinte, .m-sceau-reflet { position: absolute; inset: 0; -webkit-mask: url('/decors/atelier/emballage.webp') center / contain no-repeat; mask: url('/decors/atelier/emballage.webp') center / contain no-repeat; pointer-events: none; }
.m-sceau-teinte { background: linear-gradient(165deg, var(--pc), var(--pc2) 78%); mix-blend-mode: color; opacity: .92; }
.m-sceau-reflet { background: linear-gradient(115deg, transparent 38%, #fff8 50%, transparent 62%) -120% 0 / 250% 100% no-repeat; mix-blend-mode: soft-light; animation: m-reflet 4.2s ease-in-out infinite; }
.m-sceau-embleme { position: absolute; left: 50%; top: 46%; width: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 5px 7px #000a); }
.m-paquet > .m-sceau { width: 100%; }
.m-paquet::after { display: none; }
html[data-theme] dialog.contient-sceaux { width: min(980px, calc(100% - 20px)); padding: clamp(18px, 3vw, 30px); }
.m-sceaux h2 { font-size: clamp(28px, 4vw, 40px) !important; color: var(--or-clair); margin-bottom: 4px !important; }
.m-choix-sceaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; margin: 18px 0; }
.m-choix-sceau { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 8px 12px; color: var(--texte); font: inherit; text-align: center; cursor: pointer; border: var(--m-bord); border-radius: var(--m-r); background: color-mix(in srgb, var(--relief), transparent 30%); transition: transform .2s, border-color .2s, box-shadow .2s; }
.m-choix-sceau .m-sceau { width: 76%; transition: transform .25s; }
.m-choix-sceau:hover:not(:disabled) { transform: translateY(-5px); border-color: var(--or); box-shadow: 0 14px 30px #0008, 0 0 0 1px var(--or); }
.m-choix-sceau:hover:not(:disabled) .m-sceau { transform: rotate(-3deg) scale(1.05); }
.m-choix-sceau:disabled { opacity: .5; cursor: not-allowed; }
.m-choix-sceau strong { font: var(--m-titre-poids, 600) 16.5px/1.15 var(--titre); color: var(--or-clair); }
.m-choix-sceau small { font-size: 11.5px; line-height: 1.3; color: var(--doux); }
.m-prix { margin-top: auto; padding: 4px 10px; border-radius: 99px; font-size: 12px; background: color-mix(in srgb, var(--or), transparent 78%); color: var(--or-clair); }
.m-prix .picto { vertical-align: -3px; }
.m-etiquette { position: absolute; top: -9px; left: 50%; z-index: 2; translate: -50% 0; padding: 3px 11px; border-radius: 99px; font: 800 10.5px/1.3 var(--corps); letter-spacing: .08em; text-transform: uppercase; font-style: normal; white-space: nowrap; color: var(--contraste); background: linear-gradient(180deg, var(--or-clair), var(--or)); box-shadow: 0 4px 10px #0007; }
.m-garantie { padding: 14px 18px; border-radius: var(--m-r); border: 1px solid color-mix(in srgb, #ff678b, transparent 55%); background: color-mix(in srgb, #ff678b, var(--surface) 90%); }
.m-garantie h3 { margin: 0 0 6px; font-size: 18px; color: var(--or-clair); }
.m-garantie p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.m-chances { margin-top: 12px; font-size: 13.5px; }
.m-chances summary { cursor: pointer; color: var(--or-clair); font-weight: 700; }
.m-chances p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }

/* ---------- Accueil façon V0.12 ---------- */
.m-hero-v12 { min-height: clamp(380px, 52vh, 520px); }
.m-hero-v12::before { background: linear-gradient(90deg, color-mix(in srgb, var(--fond), transparent 8%) 0, color-mix(in srgb, var(--fond), transparent 45%) 46%, transparent 78%), var(--paysage) center / cover no-repeat; animation: m-paysage 28s ease-in-out infinite alternate; }
@keyframes m-paysage { to { transform: scale(1.07); } }
.m-hero-v12 h1 { font-size: clamp(42px, 7.5vw, 86px) !important; line-height: .95 !important; text-shadow: 0 4px 26px #000a; }
.m-hero-v12 .m-hero-sous b { color: var(--or-clair); }
.m-bloc { display: grid; gap: 12px; }
.m-pantheons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-pantheon { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: 10px; min-height: 150px; padding: 12px; overflow: hidden; color: var(--texte); font: inherit; text-align: left; cursor: pointer; border: var(--m-bord); border-radius: var(--m-r); background: var(--surface); transition: transform .2s, border-color .2s; }
.m-pantheon > img:first-child { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.m-pantheon::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #080a12f2 8%, #080a1288 55%, #080a1222); }
.m-pantheon:hover { transform: translateY(-4px); border-color: var(--or); }
.m-pantheon:hover > img:first-child { transform: scale(1.08); }
.m-pantheon[aria-pressed="true"] { border-color: var(--or-clair); box-shadow: 0 0 0 2px var(--or), 0 0 26px color-mix(in srgb, var(--or), transparent 60%); }
.m-pantheon > .picto { flex: none; filter: drop-shadow(0 3px 5px #000b); }
.m-pantheon > span { display: grid; gap: 3px; min-width: 0; flex: 1; }
.m-pantheon strong { font: 600 21px/1 var(--titre); color: #fff4d8; }
.m-pantheon small { font-size: 11.5px; color: #e8e2d2cc; }
.m-pantheon em { font-style: normal; font-size: 11.5px; color: #e8e2d2; font-variant-numeric: tabular-nums; }
.m-cadeau.recueillie { margin: 0; cursor: default; border-color: var(--ligne); background: none; opacity: .8; }
.m-cadeau.recueillie img { animation: none; filter: grayscale(.6); }
@media (max-width: 860px) { .m-pantheons { grid-template-columns: repeat(2, 1fr); } .m-pantheon { min-height: 118px; } }

/* ---------- Codex : raccourci, étoile de favori, cartes inconnues ---------- */
.m-raccourci { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--ligne); border-radius: 99px; color: var(--or-clair); font-weight: 700; font-size: 13.5px; text-decoration: none; background: color-mix(in srgb, var(--relief), transparent 30%); }
.m-raccourci:hover { border-color: var(--or); }
.carte-etoile { position: absolute; z-index: 8; top: 1.5%; right: 2%; display: grid; place-items: center; width: clamp(28px, 22%, 38px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(15px, 9cqw, 21px); line-height: 1; color: #fff9; background: #0a0c14b8; border: 1px solid #fff3; cursor: pointer; opacity: .0; transition: opacity .2s, transform .2s, color .2s; }
.carte:hover .carte-etoile, .carte:focus-visible .carte-etoile, .carte-etoile.active { opacity: 1; }
.carte-etoile:hover { transform: scale(1.18); color: #ffe08a; }
.carte-etoile.active { color: #ffd45e; border-color: #ffd45e; text-shadow: 0 0 9px #ffd45ecc; }
@media (hover: none) { .carte-etoile { opacity: .85; } }
html[data-theme] .carte.inconnue .carte-art { filter: grayscale(1) brightness(.22) contrast(1.1) blur(9px) !important; transform: scale(1.12); }
html[data-theme] .carte.inconnue .carte-nom { display: none; }
html[data-theme] .carte.inconnue .carte-fenetre::after { color: #fff5; text-shadow: 0 0 18px #000; }

/* ---------- Épreuves : la partie à même la page ---------- */
.m-partie { display: grid; gap: 18px; justify-items: center; width: 100%; }
.m-partie-tete { display: flex; align-items: center; gap: 14px; width: 100%; }
.m-partie-tete > div { flex: 1; min-width: 0; }
html[data-theme] .m-partie-tete h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; }
.m-partie-tete p { margin: 2px 0 0; font-size: 13.5px; color: var(--doux); }
.m-partie-statut { padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13.5px; color: var(--or-clair); background: color-mix(in srgb, var(--or), transparent 82%); white-space: nowrap; }
.m-partie-fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border-radius: 99px; background: color-mix(in srgb, var(--or), transparent 84%); animation: m-entree-carte .4s; }
.m-partie-fin strong { font: 700 22px var(--titre); color: var(--or-clair); }
html[data-theme] .m-partie .atelier-machine { width: 100%; border: 0; background: none; box-shadow: none; padding: 0; }
html[data-theme] .m-partie .plateau { width: min(100%, 470px); margin: 0; }
html[data-theme] .m-partie .plateau[data-jeu="memoire"] { width: min(100%, 760px, calc(100dvh - 200px)); min-width: min(100%, 330px); gap: clamp(8px, 1.6vw, 14px); padding: clamp(10px, 2vw, 18px); }
html[data-theme] .m-partie .plateau[data-jeu="memoire"] .case { aspect-ratio: 3 / 4; border-radius: 12px; transition: transform .25s; }
html[data-theme] .m-partie .plateau[data-jeu="memoire"] .case:not(:disabled):hover { transform: translateY(-4px) rotate(-1.5deg); }
html[data-theme] .m-partie .plateau[data-jeu="memoire"] .case .picto { width: 62% !important; height: auto !important; }
html[data-theme] .m-partie .plateau[data-jeu="astres"] { width: min(100%, 620px); }
@media (max-width: 640px) { .m-partie-tete { flex-wrap: wrap; } .m-partie-statut { margin-left: auto; } }

/* Lettres du Destin */
.lettres-destin { display: grid; gap: 16px; justify-items: center; width: min(100%, 760px); text-align: center; }
.ld-etoiles { display: flex; gap: 12px; font-size: 30px; color: var(--or-clair); text-shadow: 0 0 14px var(--or); }
.ld-etoiles .eteinte { opacity: .16; transform: scale(.65); text-shadow: none; transition: .4s; }
.ld-contexte { margin: 0; padding: 7px 16px; border-radius: 99px; font-size: 14.5px; background: color-mix(in srgb, var(--relief), transparent 25%); border: 1px solid var(--ligne); }
.ld-contexte b { color: var(--or-clair); }
.ld-masque { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 6px 0; }
.ld-mot { display: flex; gap: clamp(4px, 1vw, 8px); }
.ld-mot i, .ld-mot b { display: grid; place-items: center; width: clamp(26px, 5.4vw, 46px); aspect-ratio: 3 / 4; border-radius: 7px; font: 700 clamp(19px, 4vw, 32px) var(--titre); font-style: normal; }
.ld-mot i { background: color-mix(in srgb, var(--relief), transparent 10%); border-bottom: 3px solid var(--or); }
.ld-mot b { color: var(--contraste); background: linear-gradient(180deg, var(--or-clair), var(--or)); animation: m-entree-carte .3s; }
.ld-murmure { max-width: 60ch; margin: 0; padding: 10px 16px; border-left: 3px solid var(--or); border-radius: 0 var(--m-rb) var(--m-rb) 0; text-align: left; font-size: 15px; line-height: 1.55; background: color-mix(in srgb, var(--or), transparent 90%); }
.ld-murmure b { color: var(--or-clair); }
.ld-silhouette { width: 120px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 10px; border: 1px solid var(--ligne); }
.ld-silhouette img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) brightness(.75) saturate(.6); transform: scale(1.2); }
html[data-theme] .lettres-destin .clavier-lettres { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; width: 100%; }
html[data-theme] .lettres-destin .clavier-lettres .bouton { min-width: 0; padding: 10px 0; font-weight: 800; font-size: 16px; }
html[data-theme] .lettres-destin .clavier-lettres .bouton:disabled { opacity: .25; }
.ld-indices { display: grid; gap: 8px; justify-items: center; }
.ld-indices p { margin: 0; font-size: 14px; color: var(--doux); }
.ld-indices p b { color: var(--or-clair); }
.ld-fin { display: flex; gap: 18px; align-items: center; max-width: 640px; padding: 16px; text-align: left; border-radius: var(--m-r); border: 1px solid var(--or); background: color-mix(in srgb, var(--surface), transparent 8%); animation: m-entree-carte .45s; }
.ld-fin.perdu { border-color: var(--ligne); }
.ld-fin img { flex: none; width: 120px; height: 180px; object-fit: cover; border-radius: 9px; }
.ld-fin h2 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); color: var(--or-clair); }
.ld-fin p:not(.m-sur) { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
@media (max-width: 640px) { html[data-theme] .lettres-destin .clavier-lettres { grid-template-columns: repeat(7, minmax(0, 1fr)); } .ld-fin { flex-direction: column; text-align: center; } }

/* ---------- Agora ---------- */
.m-solde { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; padding: 16px 22px; border: var(--m-bord); border-radius: var(--m-r); background: linear-gradient(100deg, color-mix(in srgb, var(--or), transparent 86%), color-mix(in srgb, var(--surface), transparent 5%)); }
.m-solde > div { display: grid; gap: 2px; }
.m-solde small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); }
.m-solde strong { display: flex; align-items: center; gap: 6px; font: 700 28px/1 var(--titre); color: var(--or-clair); font-variant-numeric: tabular-nums; }
.m-solde > .bouton, .m-solde-note { margin-left: auto; }
.m-offres { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.m-offre { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; text-align: center; border: var(--m-bord); border-radius: var(--m-r); background: radial-gradient(ellipse at 50% 22%, color-mix(in srgb, var(--or), transparent 84%), transparent 62%), color-mix(in srgb, var(--surface), transparent 4%); transition: transform .25s, border-color .25s, box-shadow .25s; animation: m-offre-entree .5s backwards; }
.m-offre:nth-child(2) { animation-delay: .06s; } .m-offre:nth-child(3) { animation-delay: .12s; } .m-offre:nth-child(4) { animation-delay: .18s; } .m-offre:nth-child(5) { animation-delay: .24s; }
@keyframes m-offre-entree { from { opacity: 0; transform: translateY(18px); } }
.m-offre:hover { transform: translateY(-6px); border-color: var(--or); box-shadow: 0 20px 40px #0009, 0 0 0 1px var(--or); }
.m-offre-visuel { display: grid; place-items: center; height: 190px; margin-bottom: 6px; }
.m-offre-visuel > .m-sceau { width: 118px; animation: m-flotte 5s ease-in-out infinite; }
.m-offre:hover .m-offre-visuel > .m-sceau { animation-duration: 1.6s; }
.m-offre h3 { margin: 0; font: var(--m-titre-poids, 600) 21px/1.1 var(--titre); color: var(--or-clair); }
.m-offre p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--doux); }
.m-offre-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; }
.m-manque { font-size: 12px; color: #ff9a9a; }
.m-eventail { position: relative; display: block; width: 210px; height: 100%; }
.m-eventail .m-sceau { position: absolute; bottom: 14px; left: 50%; width: 88px; transform-origin: 50% 100%; transition: transform .35s; }
.m-eventail .m-sceau:nth-child(1) { transform: translateX(-50%) rotate(-17deg) translateX(-28%); }
.m-eventail .m-sceau:nth-child(2) { transform: translateX(-50%) rotate(17deg) translateX(28%); }
.m-eventail .m-sceau:nth-child(3) { transform: translateX(-50%); z-index: 1; width: 102px; }
.m-offre:hover .m-eventail .m-sceau:nth-child(1) { transform: translateX(-50%) rotate(-26deg) translateX(-40%); }
.m-offre:hover .m-eventail .m-sceau:nth-child(2) { transform: translateX(-50%) rotate(26deg) translateX(40%); }
.m-carte-vedette { display: block; height: 100%; aspect-ratio: 2 / 3; rotate: 4deg; animation: m-flotte 6s ease-in-out infinite; filter: drop-shadow(0 14px 18px #0009); }
.m-boules { position: relative; display: block; width: 170px; height: 150px; }
.m-boules img { position: absolute; width: 84px; filter: drop-shadow(0 8px 10px #0009); animation: m-rebond 2.6s ease-in-out infinite; }
.m-boules img:nth-child(1) { left: 2px; bottom: 6px; filter: hue-rotate(200deg) drop-shadow(0 8px 10px #0009); }
.m-boules img:nth-child(2) { right: 2px; bottom: 0; animation-delay: .5s; filter: hue-rotate(40deg) saturate(1.6) drop-shadow(0 8px 10px #0009); }
.m-boules img:nth-child(3) { left: 43px; top: 0; animation-delay: .9s; filter: hue-rotate(290deg) saturate(1.5) drop-shadow(0 8px 10px #0009); }
@keyframes m-rebond { 50% { translate: 0 -12px; rotate: 9deg; } }
.m-tas { position: relative; display: block; width: 160px; height: 130px; }
.m-tas .picto { position: absolute; filter: drop-shadow(0 6px 8px #0009); animation: m-flotte 4s ease-in-out infinite; }
.m-tas .picto:nth-child(1) { left: 32px; top: 8px; } .m-tas .picto:nth-child(2) { left: 0; bottom: 0; animation-delay: .7s; } .m-tas .picto:nth-child(3) { right: 6px; bottom: 6px; animation-delay: 1.3s; }
.m-tas-0 .picto:nth-child(n+2) { display: none; } .m-tas-1 .picto:nth-child(3) { display: none; }
.m-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.m-table td { padding: 9px 4px; border-bottom: 1px solid var(--ligne); }
.m-table td:last-child { text-align: right; color: var(--or-clair); font-weight: 700; }
.m-table tr:last-child td { border-bottom: 0; }

/* ---------- Éveil : un bloc par sanctuaire ---------- */
.m-sanctuaires { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.m-sanctuaire { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; color: var(--texte); font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--ligne); border-radius: var(--m-r); background: color-mix(in srgb, var(--surface), transparent 4%); transition: transform .25s, border-color .25s, box-shadow .25s; }
.m-sanctuaire:hover { transform: translateY(-5px); border-color: var(--or); box-shadow: 0 20px 44px #0009; }
.m-scene { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--m-r) - 4px); background: var(--paysage) center / cover no-repeat; }
.m-scene::before { content: ''; position: absolute; inset: -4%; background: var(--paysage) center / cover no-repeat; animation: m-paysage 22s ease-in-out infinite alternate; }
.m-scene > img { position: absolute; left: 50%; bottom: 3%; height: 92%; translate: -50% 0; filter: drop-shadow(0 10px 14px #0007); animation: m-edifice 9s ease-in-out infinite; }
@keyframes m-edifice { 50% { filter: drop-shadow(0 10px 14px #0007) brightness(1.12); } }
.m-scene-lueurs { position: absolute; inset: 0; background: radial-gradient(circle, #fff6c8 0 1.5px, transparent 2.5px) 0 0 / 90px 70px, radial-gradient(circle, #fff6c8aa 0 1px, transparent 2px) 40px 30px / 130px 110px; opacity: .55; animation: m-lueurs 16s linear infinite; }
@keyframes m-lueurs { to { background-position: -90px -140px, 170px -190px; } }
.m-scene > small { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: 13px; font-weight: 700; color: #fff4d8; background: linear-gradient(0deg, #05070df0, transparent); }
.m-sanct-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-sanct-tete b { display: flex; align-items: center; gap: 8px; font: var(--m-titre-poids, 600) 23px/1 var(--titre); color: var(--or-clair); }
.m-sanct-tete em { font: 700 24px/1 var(--titre); font-style: normal; color: var(--or-clair); font-variant-numeric: tabular-nums; }
.m-sanct-raretes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; color: var(--doux); text-align: center; }
.m-sanct-raretes span { display: grid; justify-items: center; gap: 1px; }
.m-sanct-raretes i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.m-sanct-raretes b { font-size: 13px; color: var(--texte); font-variant-numeric: tabular-nums; }
.m-sanct-suite { font-size: 13px; color: var(--doux); }
.m-sanct-action { align-self: flex-end; font-weight: 800; font-size: 14px; color: var(--or-clair); }
@media (max-width: 760px) { .m-sanctuaires { grid-template-columns: 1fr; } }

/* ---------- Jeux en ambiance nordique : des décors moins ternes ---------- */
html[data-theme="nordique"] .cabinet-exterieur, html[data-theme="nordique"] .corps-urne, html[data-theme="nordique"] .m-partie .plateau, html[data-theme="nordique"] .tablette-grattage { filter: saturate(1.55) brightness(1.16) contrast(1.06); }
html[data-theme="nordique"] .m-partie { position: relative; isolation: isolate; }
html[data-theme="nordique"] .m-partie::before { content: ''; position: absolute; inset: -30px -20px auto; height: 420px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 30% 0, #3fe0b855, transparent 70%), radial-gradient(ellipse 50% 50% at 75% 10%, #7a6cff44, transparent 70%); animation: m-aurore 11s ease-in-out infinite alternate; }
@keyframes m-aurore { to { transform: translateX(4%) scaleY(1.15); opacity: .7; } }

@media (prefers-reduced-motion: reduce) { .m-hero-v12::before, .m-scene::before, .m-scene-lueurs, .m-scene > img, .m-offre, .m-offre-visuel > .m-sceau, .m-boules img, .m-tas .picto, .m-carte-vedette, .m-sceau-reflet { animation: none !important; } }

/* ---------- Accueil immersif : le paysage du panthéon en plein écran ---------- */
.m-vue { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100vw; margin-left: calc(50% - 50vw); margin-top: calc(-1 * var(--m-haut, 92px)); min-height: calc(100dvh - 74px); padding: clamp(20px, 5vw, 64px); padding-bottom: clamp(28px, 6vh, 64px); overflow: hidden; }
.m-vue-paysage { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: m-paysage 36s ease-in-out infinite alternate; }
.m-vue::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--fond) 0, color-mix(in srgb, var(--fond), transparent 35%) 22%, transparent 52%), linear-gradient(90deg, color-mix(in srgb, var(--fond), transparent 45%) 0, transparent 46%); pointer-events: none; }
.m-vue-texte { max-width: 620px; text-shadow: 0 2px 14px #000c, 0 0 2px #0008; }
html[data-theme] .m-vue h1 { font-size: clamp(48px, 9vw, 112px); line-height: .92; margin: 0 0 8px; color: #fff6dc; }
.m-vue .m-hero-sous { font-size: clamp(16px, 2vw, 20px); color: #fff; }
.m-vue .m-hero-sous b { color: var(--or-clair); }
.m-vue .m-recharge { color: #f1ecdf; }
.m-vue .m-note { text-shadow: none; }
.m-vue-pantheons { display: flex; gap: 10px; align-self: flex-end; padding: 8px; border-radius: 99px; background: #0a0c1475; backdrop-filter: blur(8px); }
.m-medaillon { display: grid; justify-items: center; gap: 1px; width: 74px; padding: 6px 4px 5px; color: #fff; font: 700 11px var(--corps); cursor: pointer; border: 2px solid transparent; border-radius: 99px; background: none; opacity: .72; transition: opacity .2s, transform .2s, border-color .2s, background .2s; }
.m-medaillon:hover { opacity: 1; transform: translateY(-3px); }
.m-medaillon[aria-pressed="true"] { opacity: 1; border-color: var(--or-clair); background: #ffffff1c; box-shadow: 0 0 18px color-mix(in srgb, var(--or), transparent 55%); }
.m-duo.m-sobre .m-panneau { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; }
@media (max-width: 760px) {
  .m-vue { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: calc(100dvh - 124px); padding: 18px 16px 24px; }
  .m-vue::after { background: linear-gradient(0deg, var(--fond) 0, color-mix(in srgb, var(--fond), transparent 30%) 34%, transparent 64%); }
  .m-vue-pantheons { align-self: center; order: -1; margin-bottom: auto; }
  .m-medaillon { width: 62px; } .m-medaillon .picto { width: 40px; height: 40px; }
  .m-vue .m-actions .bouton.grand { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .m-vue-paysage { animation: none; } }

/* ---------- Finition brillante : holographique franche, qui suit le pointeur ---------- */
html[data-theme] .carte.brillante .carte-holo { display: block !important; opacity: .46 !important; z-index: 2; mix-blend-mode: color-dodge !important;
  background: repeating-linear-gradient(115deg, #ff3d8b 0%, #ffcf4a 9%, #a8ff6a 18%, #3ff0d0 27%, #4a8cff 36%, #b45cff 45%, #ff3d8b 54%) !important;
  background-size: 260% 260% !important; background-position: var(--px, 50%) var(--py, 50%) !important;
  filter: hue-rotate(var(--teinte, 0deg)) saturate(1.6) !important; animation: m-holo-repos 5s linear infinite !important; }
html[data-theme] .carte.brillante:hover .carte-holo { animation: none !important; opacity: .82 !important; transition: filter .08s linear; }
@keyframes m-holo-repos { 0% { background-position: 0% 20%; filter: hue-rotate(0deg) saturate(1.6); } 50% { background-position: 100% 80%; filter: hue-rotate(180deg) saturate(1.6); } 100% { background-position: 0% 20%; filter: hue-rotate(360deg) saturate(1.6); } }
html[data-theme] .carte.brillante .carte-holo-brillante { display: block !important; opacity: 1 !important; z-index: 3; mix-blend-mode: screen !important;
  background: linear-gradient(112deg, transparent 40%, #ffffffd0 49%, #fff 50%, #ffffffd0 51%, transparent 60%) -160% 0 / 240% 100% no-repeat !important; animation: m-eclat-brillant 3.2s ease-in-out infinite !important; }
@keyframes m-eclat-brillant { 0%, 45% { background-position: -160% 0; } 100% { background-position: 260% 0; } }
html[data-theme] .carte.brillante .carte-reflet { opacity: .45 !important; z-index: 4; mix-blend-mode: overlay !important; background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), #fff, #fff6 22%, transparent 55%) !important; }
html[data-theme] .carte.brillante .carte-illustration { animation: m-aura-brillante 2.6s ease-in-out infinite; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .12s; }
@keyframes m-aura-brillante { 0%, 100% { filter: drop-shadow(0 0 5px #fff8) drop-shadow(0 0 12px #7fe9ffaa); } 50% { filter: drop-shadow(0 0 9px #fff) drop-shadow(0 0 22px #ff8be6cc); } }
html[data-theme] .carte.brillante .carte-etincelles i { width: 9px !important; height: 9px !important; background: #fff !important; box-shadow: 0 0 10px 3px #fff, 0 0 18px 5px var(--rc) !important; }
html[data-theme] .finition-holo { color: #fff; text-shadow: 0 0 8px #7fe9ff, 0 0 14px #ff8be6; }
@media (prefers-reduced-motion: reduce) { html[data-theme] .carte.brillante .carte-holo, html[data-theme] .carte.brillante .carte-holo-brillante, html[data-theme] .carte.brillante .carte-illustration { animation: none !important; } }

/* ---------- Récits ---------- */
.m-recits { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.m-recit { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: var(--m-bord); border-radius: var(--m-r); background: var(--m-panneau); color: var(--texte); }
.m-recit header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 10px; }
.m-recit header .m-sur { grid-column: 1 / -1; }
.m-recit h2 { margin: 0; font-size: 22px; color: var(--or-clair); }
.m-recit-cartes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.m-recit-cartes .carte { width: 100%; }
.m-recit-cartes .carte-etoile, .m-recit-cartes .compte { display: none; }
.m-recit footer { margin-top: auto; }
.m-recit footer small { color: var(--doux); font-size: 13px; }
.m-recit.complet:not(.lu) { border-color: var(--or); box-shadow: 0 0 0 1px var(--or), 0 0 26px color-mix(in srgb, var(--or), transparent 60%); animation: m-recit-pret 2.4s ease-in-out infinite; }
@keyframes m-recit-pret { 50% { box-shadow: 0 0 0 1px var(--or), 0 0 40px color-mix(in srgb, var(--or), transparent 35%); } }
.m-recit.lu h2::after { content: ' ✓'; color: var(--ok); }
.m-lecture { display: grid; gap: 14px; }
.m-lecture h2 { color: var(--or-clair); margin: 0 !important; }
.m-lecture .m-recit-cartes { max-width: 520px; }
.m-lecture-texte { margin: 0; font: 500 clamp(17px, 2.1vw, 20px)/1.6 var(--titre); color: var(--texte); max-width: 62ch; }
.m-lecture-gain { margin: 0; font-weight: 800; color: var(--or-clair); }
.m-lecture > .bouton { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .m-recit.complet:not(.lu) { animation: none; } }



/* =====================================================================================================
   Quatre styles « Lumières sacrées » : la recette du style Néon de Constellation (nuit profonde, traits
   lumineux, halos, titres qui rayonnent), mais chaque lumière vient du mythe — constellations de l'Olympe,
   aurore du Valhalla, feux follets du Bosquet, feu du soleil d'Égypte. Rien ne change de place.
   ===================================================================================================== */
@font-face { font-family: 'Outfit'; font-weight: 800; src: url('/decors/fonts/Outfit-800-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 300 700; src: url('/decors/fonts/Fredoka-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; font-weight: 800; src: url('/decors/fonts/Cinzel-800-latin.woff2') format('woff2'); font-display: swap; }

html[data-theme] { color-scheme: dark; --texte: #f3f5ff; --m-r: 16px; --m-rb: 12px; --m-bord: 1.5px solid var(--l3); --m-ombre: 0 0 16px color-mix(in srgb, var(--l3), transparent 55%);
  --ligne: color-mix(in srgb, var(--l2), transparent 55%); --m-titre-casse: none; --m-titre-esp: .03em; --m-titre-poids: 800; --vue-voile: var(--fond);
  --or: var(--l1); --or-clair: color-mix(in srgb, var(--l1), #fff 55%); --contraste: var(--fond); --accent: var(--l2); --surface: var(--verre); --relief: color-mix(in srgb, var(--l3), var(--fond) 78%); }

/* GREC — les constellations de l'Olympe : or stellaire, azur, rose d'aurore */
html[data-theme="grec"], html [data-theme="grec"] { --fond: #060a26; --verre: #0e1440e0; --doux: #aab4e6; --l1: #ffd76a; --l2: #5cc8ff; --l3: #8f7bff; --l4: #ff8bd0;
  --ciel: radial-gradient(900px 480px at 50% 112%, #8f7bff59, transparent 60%), radial-gradient(700px 380px at 50% -12%, #5cc8ff40, transparent 60%), #060a26;
  --titre: 'Cinzel', 'Cormorant', serif; --barre: #080d30f0; }
/* NORDIQUE — l'aurore du Valhalla : vert boréal, cyan de glace, violet */
html[data-theme="nordique"], html [data-theme="nordique"] { --fond: #030e1c; --verre: #071b30e0; --doux: #9fc6d6; --l1: #5dffc8; --l2: #5ce1ff; --l3: #3aa7ff; --l4: #b98bff;
  --ciel: radial-gradient(900px 420px at 28% -6%, #5dffc866, transparent 62%), radial-gradient(800px 420px at 78% 0, #b98bff55, transparent 62%), radial-gradient(900px 400px at 50% 112%, #3aa7ff40, transparent 60%), #030e1c;
  --titre: 'Outfit', 'DM Sans', sans-serif; --barre: #04111ff0; }
/* CELTIQUE — les feux follets du Bosquet : vert luciole, ambre, eau de source */
html[data-theme="celtique"], html [data-theme="celtique"] { --fond: #03130b; --verre: #08261ae0; --doux: #a9d0b2; --l1: #b6ff5c; --l2: #ffc857; --l3: #3fe08a; --l4: #5dffe0;
  --ciel: radial-gradient(800px 460px at 50% 112%, #3fe08a55, transparent 60%), radial-gradient(600px 360px at 18% -8%, #b6ff5c33, transparent 60%), radial-gradient(600px 360px at 86% 4%, #ffc85733, transparent 60%), #03130b;
  --titre: 'Fredoka', 'DM Sans', sans-serif; --barre: #04170df0; }
/* ÉGYPTIEN — le feu du soleil : or en fusion, turquoise de faïence, carmin */
html[data-theme="egyptien"], html [data-theme="egyptien"] { --fond: #14060e; --verre: #2a0d1ae0; --doux: #e0b9a6; --l1: #ffb42e; --l2: #40e8d8; --l3: #ff7a3d; --l4: #ff4f8b;
  --ciel: radial-gradient(760px 460px at 50% -14%, #ffb42e73, transparent 62%), radial-gradient(900px 460px at 50% 114%, #ff4f8b47, transparent 60%), #14060e;
  --titre: 'Outfit', 'DM Sans', sans-serif; --barre: #1a0812f0; }

html[data-theme] body { background: var(--fond) !important; color: var(--texte); font-weight: 500; }
html[data-theme] body::before { background: var(--ciel) !important; opacity: 1; }
/* le sol : un dallage en perspective, tracé à la lumière du style */
html[data-theme] body::after { content: ''; position: fixed; inset: auto 0 0 0; height: 44%; z-index: -1; pointer-events: none; opacity: .34; transform: perspective(320px) rotateX(62deg); transform-origin: bottom;
  background: linear-gradient(var(--l3) 1px, transparent 1px) 0 0 / 46px 46px, linear-gradient(90deg, var(--l3) 1px, transparent 1px) 0 0 / 46px 46px; -webkit-mask: linear-gradient(0deg, #000 20%, transparent); mask: linear-gradient(0deg, #000 20%, transparent); animation: lum-sol 9s linear infinite; }
@keyframes lum-sol { to { background-position: 0 46px, 0 46px; } }
html[data-theme="nordique"] body::after { inset: 0 0 48% 0; height: auto; transform: none; opacity: .55; -webkit-mask: none; mask: none; filter: blur(30px);
  background: repeating-linear-gradient(100deg, transparent 0 70px, #5dffc866 90px 130px, transparent 160px 260px, #b98bff55 280px 320px, transparent 360px 460px); animation: lum-aurore 13s ease-in-out infinite alternate; }
@keyframes lum-aurore { to { transform: translateX(-7%) skewX(-9deg); opacity: .8; } }
html[data-theme="celtique"] body::after { inset: 0; height: auto; transform: none; opacity: .9; -webkit-mask: none; mask: none;
  background-image: radial-gradient(5px 5px at 16% 30%, #b6ff5c, transparent), radial-gradient(3px 3px at 72% 22%, #ffc857, transparent), radial-gradient(6px 6px at 42% 68%, #b6ff5c, transparent), radial-gradient(3px 3px at 86% 58%, #5dffe0, transparent), radial-gradient(4px 4px at 8% 82%, #ffc857, transparent);
  background-size: 380px 380px; filter: drop-shadow(0 0 6px #b6ff5c); animation: lum-follets 30s linear infinite; }
@keyframes lum-follets { to { background-position: 380px -760px; } }

/* Titres : la lumière du style les fait rayonner */
html[data-theme] .contenu h1, html[data-theme] h2, html[data-theme] h3, html[data-theme] dialog h2, html[data-theme] .m-offre h3, html[data-theme] .m-jeu-corps strong, html[data-theme] .m-sanct-tete b, html[data-theme] .m-choix-sceau strong {
  font-family: var(--titre) !important; font-style: normal !important; font-weight: 800 !important; color: #fff !important; letter-spacing: .03em;
  text-shadow: 0 0 6px var(--l1), 0 0 18px var(--l1), 0 0 34px var(--l3) !important; }
html[data-theme="nordique"] .contenu h1, html[data-theme="nordique"] h2, html[data-theme="nordique"] h3, html[data-theme="egyptien"] .contenu h1, html[data-theme="egyptien"] h2, html[data-theme="egyptien"] h3 { text-transform: uppercase; letter-spacing: .09em; }
html[data-theme="egyptien"] .contenu h1, html[data-theme="egyptien"] h2, html[data-theme="egyptien"] h3 { letter-spacing: .16em; }
html[data-theme="celtique"] .contenu h1, html[data-theme="celtique"] h2, html[data-theme="celtique"] h3, html[data-theme="celtique"] .m-offre h3, html[data-theme="celtique"] .m-jeu-corps strong { font-weight: 600 !important; letter-spacing: .01em; }
html[data-theme] .m-offre h3, html[data-theme] .m-jeu-corps strong, html[data-theme] .m-choix-sceau strong, html[data-theme] .m-sanct-tete b, html[data-theme] h3 { text-shadow: 0 0 8px currentColor !important; }
html[data-theme] .m-titre-section h2::before, html[data-theme] .m-titre-section h2::after { content: none !important; }
html[data-theme] .m-sur, html[data-theme] .surtitre, html[data-theme] .m-gain, html[data-theme] .m-titre-section a { color: var(--l2); text-shadow: 0 0 7px var(--l2); font-weight: 800; }
html[data-theme] .m-texte, html[data-theme] .m-note, html[data-theme] .muted, html[data-theme] .note { color: var(--doux); }

/* Barre du haut */
html[data-theme] .entete { background: var(--barre) !important; border: 0 !important; border-bottom: 1.5px solid var(--l2) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--l2), transparent 60%) !important; }
html[data-theme] .marque { font-family: var(--titre); font-weight: 800; color: #fff; text-shadow: 0 0 6px var(--l1), 0 0 16px var(--l1); letter-spacing: .04em; }
html[data-theme] .navigation a { color: color-mix(in srgb, var(--doux), transparent 15%); border-radius: 12px; font-weight: 800; background: none !important; border: 0 !important; box-shadow: none !important; }
html[data-theme] .navigation a[aria-current] { color: var(--l2) !important; text-shadow: 0 0 8px var(--l2); box-shadow: inset 0 -3px 0 var(--l2), 0 8px 14px -8px var(--l2) !important; }
html[data-theme] .navigation a[aria-current] .picto { filter: drop-shadow(0 0 7px var(--l2)); }
html[data-theme] .navigation a[aria-current] small { color: var(--l2); }
html[data-theme] .pilule, html[data-theme] .entete .outil { background: var(--verre); border: 1.5px solid var(--l4); box-shadow: 0 0 10px color-mix(in srgb, var(--l4), transparent 55%); color: #fff; }

/* Panneaux : verre sombre, trait lumineux, halo dehors et dedans */
html[data-theme] .m-panneau, html[data-theme] .m-offre, html[data-theme] .m-jeu, html[data-theme] .m-sanctuaire, html[data-theme] .m-chapitre, html[data-theme] .m-guide, html[data-theme] .m-solde, html[data-theme] .m-choix-sceau, html[data-theme] .m-recit, html[data-theme] .m-garantie, html[data-theme] .panneau, html[data-theme] .m-aide, html[data-theme] .ld-fin, html[data-theme] .m-mission, html[data-theme] .m-cadeau {
  --c: var(--l3); background: var(--verre) !important; border: 1.5px solid var(--c) !important; border-radius: 16px !important; outline: 0 !important; clip-path: none !important; color: var(--texte);
  box-shadow: 0 0 16px color-mix(in srgb, var(--c), transparent 55%), inset 0 0 22px color-mix(in srgb, var(--c), transparent 86%) !important; transition: transform .2s, box-shadow .2s; }
/* trois lumières qui alternent, comme les tuiles du style Néon */
html[data-theme] .m-offres > :nth-child(4n+1), html[data-theme] .m-jeux > :nth-child(4n+1), html[data-theme] .m-recits > :nth-child(4n+1), html[data-theme] .m-sanctuaires > :nth-child(4n+1), html[data-theme] .m-choix-sceaux > :nth-child(4n+1), html[data-theme] .m-chapitres > :nth-child(4n+1), html[data-theme] .m-missions > :nth-child(3n+1) { --c: var(--l2); }
html[data-theme] .m-offres > :nth-child(4n+2), html[data-theme] .m-jeux > :nth-child(4n+2), html[data-theme] .m-recits > :nth-child(4n+2), html[data-theme] .m-sanctuaires > :nth-child(4n+2), html[data-theme] .m-choix-sceaux > :nth-child(4n+2), html[data-theme] .m-chapitres > :nth-child(4n+2), html[data-theme] .m-missions > :nth-child(3n+2) { --c: var(--l4); }
html[data-theme] .m-offres > :nth-child(4n+3), html[data-theme] .m-jeux > :nth-child(4n+3), html[data-theme] .m-recits > :nth-child(4n+3), html[data-theme] .m-sanctuaires > :nth-child(4n+3), html[data-theme] .m-choix-sceaux > :nth-child(4n+3), html[data-theme] .m-chapitres > :nth-child(4n+3), html[data-theme] .m-missions > :nth-child(3n+3) { --c: var(--l1); }
html[data-theme] .m-cadeau { --c: var(--l1); } html[data-theme] .m-garantie { --c: #ff678b; } html[data-theme] .m-guide { --c: var(--l2); }
html[data-theme] .m-offre h3, html[data-theme] .m-jeu-corps strong, html[data-theme] .m-choix-sceau strong, html[data-theme] .m-recit h2, html[data-theme] .m-sanct-tete b { color: color-mix(in srgb, var(--c), #fff 62%) !important; }
html[data-theme] .m-offre:hover, html[data-theme] .m-jeu:hover, html[data-theme] .m-sanctuaire:hover, html[data-theme] .m-choix-sceau:hover:not(:disabled) { transform: translateY(-5px); border-color: var(--c) !important; box-shadow: 0 0 30px color-mix(in srgb, var(--c), transparent 25%), inset 0 0 26px color-mix(in srgb, var(--c), transparent 72%) !important; }
html[data-theme] .m-duo.m-sobre .m-panneau { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html[data-theme] .m-mission { padding: 10px 14px; margin-bottom: 12px; } html[data-theme] .m-mission strong { color: #fff; }
html[data-theme] .m-cadeau strong { color: #fff; text-shadow: 0 0 8px var(--l1); font-family: var(--titre); font-weight: 800; }
html[data-theme] .m-cadeau small { color: var(--doux); } html[data-theme] .m-cadeau > i { color: var(--l1); text-shadow: 0 0 8px var(--l1); }
html[data-theme] .m-cadeau.recueillie { --c: color-mix(in srgb, var(--doux), transparent 60%); opacity: .8; }

/* Boutons : un trait de lumière, pas d'aplat */
html[data-theme] .bouton { --c: var(--l2); background: color-mix(in srgb, var(--c), transparent 90%) !important; color: color-mix(in srgb, var(--c), #fff 35%) !important; border: 2px solid var(--c) !important; border-radius: 12px !important; clip-path: none !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c), transparent 40%), inset 0 0 12px color-mix(in srgb, var(--c), transparent 72%) !important; text-shadow: 0 0 8px var(--c); font-family: var(--titre); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: none; text-decoration: none !important; padding: 10px 20px; transition: transform .12s, box-shadow .2s, background .2s; }
html[data-theme="celtique"] .bouton { font-weight: 600; border-radius: 99px !important; } html[data-theme="egyptien"] .bouton, html[data-theme="nordique"] .bouton { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
html[data-theme="egyptien"] .bouton { border-radius: 4px !important; } html[data-theme="grec"] .bouton { font-size: 14px; letter-spacing: .07em; }
html[data-theme] .bouton.primaire { --c: var(--l1); background: color-mix(in srgb, var(--l1), transparent 78%) !important; color: #fff !important; }
html[data-theme] .bouton.nu { --c: var(--l4); }
html[data-theme] .bouton.grand { font-size: 18px; padding: 14px 28px; }
html[data-theme] .bouton.petit { font-size: 13px; padding: 7px 14px; }
html[data-theme] .bouton:hover:not(:disabled) { transform: translateY(-2px); background: color-mix(in srgb, var(--c), transparent 70%) !important; box-shadow: 0 0 24px var(--c), inset 0 0 16px color-mix(in srgb, var(--c), transparent 55%) !important; }
html[data-theme] .bouton:active:not(:disabled) { transform: scale(.97); }
html[data-theme] .bouton:disabled { --c: #6d7391; text-shadow: none; opacity: .6; box-shadow: none !important; }
html[data-theme] .bouton.primaire.grand { animation: lum-pouls 2.4s ease-in-out infinite; }
@keyframes lum-pouls { 50% { box-shadow: 0 0 30px var(--l1), 0 0 60px color-mix(in srgb, var(--l1), transparent 55%), inset 0 0 18px color-mix(in srgb, var(--l1), transparent 50%); } }
html[data-theme] .m-onglet, html[data-theme] .bouton.m-puce, html[data-theme] .bouton.filtre { background: transparent !important; color: #dfe3ff !important; border: 1.5px solid color-mix(in srgb, var(--l3), transparent 25%) !important; border-radius: 99px !important; clip-path: none !important; box-shadow: none !important; text-shadow: none; font-family: var(--corps); font-weight: 700; font-size: 14px; padding: 7px 14px; text-transform: none; letter-spacing: 0; }
html[data-theme] .m-onglet[aria-pressed="true"], html[data-theme] .bouton.m-puce[aria-pressed="true"], html[data-theme] .bouton.filtre[aria-pressed="true"] { background: var(--l2) !important; color: var(--fond) !important; border-color: var(--l2) !important; box-shadow: 0 0 14px var(--l2) !important; }
html[data-theme] .m-etiquette { top: -11px; background: var(--fond); color: var(--l4); border: 1.5px solid var(--l4); border-radius: 99px; box-shadow: 0 0 12px var(--l4); text-shadow: 0 0 6px var(--l4); font-family: var(--corps); font-weight: 800; }
html[data-theme] .m-prix { background: transparent; color: var(--or-clair); border: 1px solid color-mix(in srgb, var(--l1), transparent 45%); border-radius: 99px; }
html[data-theme] .m-manque { color: #ff8fa6; text-shadow: 0 0 6px #ff4f6d; }

/* Jauges, compteurs, champs */
html[data-theme] .m-jauge, html[data-theme] .m-paliers { background: color-mix(in srgb, var(--fond), #fff 6%) !important; border: 1px solid color-mix(in srgb, var(--l3), transparent 30%); height: 10px; border-radius: 99px; }
html[data-theme] .m-jauge { overflow: hidden; }
html[data-theme] .m-jauge > i, html[data-theme] .m-paliers > i { background: linear-gradient(90deg, var(--l2), var(--l4)) !important; box-shadow: 0 0 10px var(--l4); border-radius: 99px; animation: none; }
html[data-theme] .m-paliers > b.atteint { background: #fff; border-color: var(--l1); box-shadow: 0 0 8px var(--l1); }
html[data-theme] .m-compteur { background: var(--verre); border: 1.5px solid var(--l4); border-radius: 14px; box-shadow: 0 0 12px color-mix(in srgb, var(--l4), transparent 50%); }
html[data-theme] .m-compteur strong, html[data-theme] .m-solde strong, html[data-theme] .m-sanct-tete em { color: #fff !important; font-family: var(--titre) !important; font-weight: 800; text-shadow: 0 0 12px var(--l2); }
html[data-theme] .m-compteur span, html[data-theme] .m-compteur small, html[data-theme] .m-solde small { color: var(--doux); }
html[data-theme] .champ { background: color-mix(in srgb, var(--fond), #fff 5%) !important; color: #fff !important; border: 1.5px solid var(--l3) !important; border-radius: 99px !important; box-shadow: none; }
html[data-theme] .champ:focus { box-shadow: 0 0 14px var(--l3) !important; } html[data-theme] .champ::placeholder { color: var(--doux); opacity: .8; }
html[data-theme] .m-raccourci { background: transparent; color: var(--l2); border: 1.5px solid var(--l2); box-shadow: 0 0 10px color-mix(in srgb, var(--l2), transparent 55%); }
html[data-theme] .m-reserve i { height: 10px; width: 34px; border: 1px solid var(--l1); background: transparent; border-radius: 99px; transform: none; }
html[data-theme] .m-reserve i.plein { background: var(--l1); box-shadow: 0 0 12px var(--l1); }
html[data-theme] .m-table td { border-color: color-mix(in srgb, var(--l3), transparent 60%); } html[data-theme] .m-table td:last-child { color: var(--l2); text-shadow: 0 0 6px var(--l2); }
html[data-theme] .m-jeu-pied b { background: transparent; border: 1px solid var(--c); color: #fff; } html[data-theme] .m-jeu-pied i, html[data-theme] .m-jeu-corps small { color: var(--doux); }
html[data-theme] .m-jeu-corps em { color: var(--c); text-shadow: 0 0 6px var(--c); }
html[data-theme] .m-jeu-art { border-bottom: 1.5px solid var(--c); }
html[data-theme] .m-sanct-action { color: var(--c); text-shadow: 0 0 8px var(--c); }
html[data-theme] .m-scene { border: 1px solid var(--c); border-radius: 12px; }
html[data-theme] .m-guide li i { background: transparent; border-color: var(--l3); color: #fff; }
html[data-theme] .m-guide li.courant i { border-color: var(--l1); box-shadow: 0 0 10px var(--l1); }
html[data-theme] .m-guide li.accompli i { background: var(--l1); color: var(--fond); border-color: var(--l1); box-shadow: 0 0 10px var(--l1); }
html[data-theme] .m-partie-statut, html[data-theme] .m-partie-fin, html[data-theme] .ld-contexte { background: var(--verre); color: #fff; border: 1.5px solid var(--l2); box-shadow: 0 0 12px color-mix(in srgb, var(--l2), transparent 55%); }
html[data-theme] .m-partie-fin strong { color: #fff; text-shadow: 0 0 10px var(--l1); }
html[data-theme] .ld-contexte b { color: var(--l1); }
html[data-theme] .ld-mot i { background: transparent; border: 2px solid var(--l3); border-radius: 8px; box-shadow: inset 0 0 12px color-mix(in srgb, var(--l3), transparent 70%); }
html[data-theme] .ld-mot b { background: transparent; color: #fff; border: 2px solid var(--l1); border-radius: 8px; box-shadow: 0 0 14px var(--l1), inset 0 0 12px color-mix(in srgb, var(--l1), transparent 60%); text-shadow: 0 0 8px var(--l1); font-family: var(--titre); }
html[data-theme] .ld-murmure { background: var(--verre); border: 0; border-left: 3px solid var(--l1); color: #fff; box-shadow: -6px 0 14px -6px var(--l1); }
html[data-theme] .ld-etoiles { color: #fff; text-shadow: 0 0 8px var(--l1), 0 0 22px var(--l1); font-size: 34px; }
html[data-theme] .ld-etoiles .eteinte { text-shadow: none; }
html[data-theme] .lettres-destin .clavier-lettres .bouton { --c: var(--l3); padding: 10px 0; border-radius: 10px !important; }

/* Dialogues */
html[data-theme] dialog:not(.immersion):not(.carte-pleine):not(.contient-fiche) { background: color-mix(in srgb, var(--fond), #000 10%) !important; color: var(--texte); border: 2px solid var(--l2) !important; border-radius: 20px !important; box-shadow: 0 0 34px color-mix(in srgb, var(--l2), transparent 35%), inset 0 0 40px color-mix(in srgb, var(--l3), transparent 85%) !important; }
html[data-theme] dialog::backdrop { background: #02030ad9; }
html[data-theme] dialog.contient-fiche { background: radial-gradient(ellipse at 28% 45%, color-mix(in srgb, var(--rc, var(--l1)), var(--fond) 72%), var(--fond) 70%) !important; }
html[data-theme] dialog .fermer, html[data-theme] .fiche-pleine > .fermer { background: var(--fond) !important; color: var(--l4) !important; border: 1.5px solid var(--l4) !important; border-radius: 50% !important; box-shadow: 0 0 12px var(--l4); }
html[data-theme] .fp-texte p { color: var(--texte); } html[data-theme] .fp-texte .fp-resume { color: #fff; text-shadow: 0 0 14px color-mix(in srgb, var(--l1), transparent 45%); font-family: var(--corps); font-weight: 700; }
html[data-theme] .fp-texte .fp-nuance { color: var(--doux); border-color: var(--l3); } html[data-theme] .fp-liens a, html[data-theme] .m-chances summary { color: var(--l2); }
html[data-theme] .fp-pied { border-color: color-mix(in srgb, var(--l3), transparent 60%); } html[data-theme] .fp-quantite, html[data-theme] .fp-carte small { color: var(--doux); }
html[data-theme] .m-lecture-texte { font-family: var(--corps); font-weight: 500; color: #fff; }
html[data-theme] .m-recit.complet:not(.lu) { --c: var(--l1); animation: none; }
/* les cartes aussi prennent un liseré de lumière, de la couleur de leur rareté */
html[data-theme] .carte:not(.inconnue) .carte-illustration { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--rc, #fff), transparent 35%)); }
html[data-theme] .carte.inconnue .cadre-origine { filter: saturate(.4) brightness(.55) drop-shadow(0 0 6px color-mix(in srgb, var(--l3), transparent 40%)) !important; }

/* Accueil : le paysage en grand, le nom du lieu écrit à la lumière */
.m-vue { border-bottom: 1.5px solid var(--l2); box-shadow: 0 0 26px color-mix(in srgb, var(--l2), transparent 55%); }
html[data-theme] .contenu > .m-vue { margin-top: -22px !important; }
.m-vue::after { background: linear-gradient(0deg, var(--fond) 0, color-mix(in srgb, var(--fond), transparent 40%) 26%, transparent 56%), linear-gradient(90deg, color-mix(in srgb, var(--fond), transparent 45%) 0, transparent 44%) !important; }
html[data-theme] .m-vue h1 { font-size: clamp(50px, 9vw, 118px) !important; line-height: .92; margin: 0 0 6px; color: #fff !important; text-shadow: 0 0 10px var(--l1), 0 0 30px var(--l1), 0 0 70px var(--l3), 0 4px 18px #000 !important; animation: lum-enseigne 5s ease-in-out infinite; }
@keyframes lum-enseigne { 0%, 100% { filter: brightness(1); } 46% { filter: brightness(1.18); } 50% { filter: brightness(.9); } 54% { filter: brightness(1.2); } }
html[data-theme="egyptien"] .m-vue h1 { font-size: clamp(36px, 6.2vw, 84px) !important; } html[data-theme="nordique"] .m-vue h1 { font-size: clamp(44px, 8vw, 106px) !important; } html[data-theme="celtique"] .m-vue h1 { font-size: clamp(42px, 7.4vw, 98px) !important; }
.m-vue-texte { text-shadow: none; }
.m-vue .m-hero-sous { display: inline-block; padding: 6px 16px; border-radius: 99px; background: color-mix(in srgb, var(--fond), transparent 20%); border: 1.5px solid var(--l2); box-shadow: 0 0 12px color-mix(in srgb, var(--l2), transparent 50%); color: #fff; margin: 12px 0; }
.m-vue .m-hero-sous b { color: var(--l1); text-shadow: 0 0 8px var(--l1); } .m-vue .m-recharge { color: #fff; text-shadow: 0 1px 6px #000; } .m-vue .m-recharge b { color: var(--l1); text-shadow: 0 0 8px var(--l1); }
.m-vue .m-sur { color: var(--l2); } .m-vue .m-note { color: #fff; background: color-mix(in srgb, var(--fond), transparent 20%); border: 0; }
.m-vue .bouton { background: color-mix(in srgb, var(--fond), transparent 25%) !important; }
.m-vue .bouton.primaire { background: color-mix(in srgb, var(--l1), var(--fond) 62%) !important; }
.m-vue-pantheons { background: color-mix(in srgb, var(--fond), transparent 18%); border: 1.5px solid var(--l4); box-shadow: 0 0 16px color-mix(in srgb, var(--l4), transparent 50%); border-radius: 99px; backdrop-filter: blur(6px); }
html[data-theme] .m-medaillon { border-radius: 99px; opacity: .7; border: 1.5px solid transparent; }
html[data-theme] .m-medaillon[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, var(--l1), transparent 78%); border-color: var(--l1); box-shadow: 0 0 16px var(--l1); color: #fff; }
html[data-theme] .rarete-badge { background: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { html[data-theme] body::after, html[data-theme] .bouton.primaire.grand, html[data-theme] .m-vue h1 { animation: none !important; } }

/* =====================================================================================================
   V0.19 — retours du 14 novembre : cadres dessinés (trois propositions), styles Sobre et Clair,
   brillant vraiment brillant, Éveillées animées, Sceau illustré, Mythes, figure manquante.
   ===================================================================================================== */

/* ---------- Cadres dessinés : plus de cadre peint ; trois propositions au choix dans le profil ---------- */
html[data-cadre] .carte .cadre-rarete, html[data-cadre] .carte .cadre-origine, html[data-cadre] .carte .cadre-pantheon { display: none !important; }
html[data-cadre] .carte .carte-illustration { border-radius: 11px; overflow: hidden; filter: none !important; }
html[data-cadre] .carte .carte-fenetre, html[data-cadre] .inconnue .carte-fenetre { inset: 3.4% !important; border-radius: 7.5px; }
html[data-cadre] .carte .carte-contour { display: block; position: absolute; inset: 1.6%; z-index: 6; border-radius: 9px; pointer-events: none; opacity: 1; animation: none; }
html[data-cadre] .carte .carte-cartouche { padding: 20% 8% 8% !important; border-radius: 0 0 7.5px 7.5px; }
html[data-cadre] .carte .carte-type img { display: none; }
html[data-cadre] .carte .compte { top: 4.5%; right: 5%; }
html[data-cadre] .carte.inconnue .carte-illustration { filter: saturate(.35) brightness(.75) !important; }

/* 1. Filet d'or : métal doré (argent pour les Communes), double filet, liseré de la rareté, coins gravés */
html[data-cadre="filet"] .carte .carte-illustration { --metal: linear-gradient(140deg, #fff3c4, #c99a45 24%, #fbe7a8 46%, #a67628 70%, #f1d58e);
  background: var(--metal); box-shadow: 0 5px 14px #0009, 0 0 0 1px #3a280c; }
html[data-cadre="filet"] .carte[data-r="commune"] .carte-illustration { --metal: linear-gradient(140deg, #ffffff, #a9b1bd 26%, #eef1f5 48%, #8a93a1 72%, #dfe3e9); }
html[data-cadre="filet"] .carte .carte-contour { border: 1px solid #fff8dd; box-shadow: inset 0 0 0 1.5px var(--rc), inset 0 0 0 2.5px #2b1d07;
  background: radial-gradient(circle at 0 0, #fff6d6 0 3px, var(--rc) 3.5px 5px, transparent 5.5px), radial-gradient(circle at 100% 0, #fff6d6 0 3px, var(--rc) 3.5px 5px, transparent 5.5px),
    radial-gradient(circle at 0 100%, #fff6d6 0 3px, var(--rc) 3.5px 5px, transparent 5.5px), radial-gradient(circle at 100% 100%, #fff6d6 0 3px, var(--rc) 3.5px 5px, transparent 5.5px); }
html[data-cadre="filet"] .carte[data-r="mythique"] .carte-illustration, html[data-cadre="filet"] .carte[data-r="legendaire"] .carte-illustration { box-shadow: 0 5px 14px #0009, 0 0 0 1px #3a280c, 0 0 16px color-mix(in srgb, var(--rc), transparent 40%); }

/* 2. Lumière : nuit profonde et trait lumineux de la couleur de la rareté */
html[data-cadre="lumiere"] .carte .carte-illustration { background: #070a18; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc), transparent 30%), 0 0 14px color-mix(in srgb, var(--rc), transparent 45%), 0 6px 14px #0008; }
html[data-cadre="lumiere"] .carte .carte-contour { border: 2px solid var(--rc); box-shadow: 0 0 8px var(--rc), inset 0 0 8px color-mix(in srgb, var(--rc), transparent 40%); }
html[data-cadre="lumiere"] .carte[data-r="commune"] .carte-contour { border-color: #c9d0dc; box-shadow: none; }

/* 3. Pierre gravée : bordure mate, une gemme de la rareté en haut */
html[data-cadre="pierre"] .carte .carte-illustration { background: linear-gradient(160deg, #4b4f5c, #2a2d36 55%, #1d1f26); box-shadow: 0 5px 12px #0009, inset 0 1px 0 #ffffff26; }
html[data-cadre="pierre"] .carte .carte-contour { border: 1px solid #ffffff2e; box-shadow: inset 0 0 0 1px #0007; }
html[data-cadre="pierre"] .carte .carte-contour::after { content: ''; position: absolute; left: 50%; top: -1.6%; width: 7%; aspect-ratio: 1; translate: -50% -30%; rotate: 45deg; background: radial-gradient(circle at 35% 30%, #fff, var(--rc) 55%, color-mix(in srgb, var(--rc), #000 40%)); box-shadow: 0 0 0 1.5px #1d1f26, 0 0 6px var(--rc); }

/* ---------- Étoile de favori : toujours visible sur une carte possédée ---------- */
.carte-etoile { opacity: .92 !important; top: 4% !important; left: 5% !important; right: auto !important; width: clamp(24px, 18%, 34px) !important; background: #080a12cc !important; }
.carte-etoile:not(.active) { color: #ffffffb3; }

/* ---------- Brillante : un éclat doré franc, des paillettes qui scintillent, aucun arc-en-ciel ---------- */
html[data-theme] .carte.brillante .carte-holo { display: block !important; opacity: .9 !important; z-index: 2; mix-blend-mode: color-dodge !important; filter: none !important; animation: m-paillettes 2.2s steps(2) infinite !important;
  background: radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px), radial-gradient(circle at 63% 9%, #fff6c8 0 1.5px, transparent 2.5px), radial-gradient(circle at 81% 47%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 34% 58%, #ffe7a0 0 1.5px, transparent 2.5px), radial-gradient(circle at 22% 83%, #fff 0 1px, transparent 2px), radial-gradient(circle at 72% 76%, #fff3c0 0 1.5px, transparent 2.5px) !important;
  background-size: 46px 46px !important; background-position: 0 0 !important; }
@keyframes m-paillettes { 50% { background-position: 23px 11px; opacity: .55; } }
html[data-theme] .carte.brillante .carte-holo-brillante { display: block !important; opacity: 1 !important; z-index: 3; mix-blend-mode: overlay !important;
  background: linear-gradient(115deg, transparent 30%, #fff3 42%, #fff 50%, #fff3 58%, transparent 70%) -170% 0 / 260% 100% no-repeat !important; animation: m-eclat-brillant 2.4s ease-in-out infinite !important; }
html[data-theme] .carte.brillante .carte-reflet { opacity: .7 !important; z-index: 4; mix-blend-mode: soft-light !important; background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), #fff, #fff8 18%, transparent 50%) !important; }
html[data-theme] .carte.brillante .carte-illustration { animation: m-aura-or 2.4s ease-in-out infinite; }
@keyframes m-aura-or { 0%, 100% { box-shadow: 0 0 10px #ffd97a99, 0 0 0 1px #ffe9a8; } 50% { box-shadow: 0 0 22px #ffe28fdd, 0 0 0 1.5px #fff5d0; } }
html[data-theme] .carte.brillante .carte-art { filter: saturate(1.15) contrast(1.06) brightness(1.06); }
html[data-theme] .finition-holo { color: #ffe9a6; text-shadow: 0 0 6px #ffcf5a, 0 0 12px #ffcf5a; }

/* ---------- Éveillée : la carte respire et s'anime ; le GIF prend la place dès qu'il existe ---------- */
.carte.eveillee .carte-anime { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.carte.eveillee .carte-art { animation: m-eveil-souffle 6s ease-in-out infinite; transform-origin: 50% 40%; }
@keyframes m-eveil-souffle { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.06); filter: brightness(1.12) saturate(1.15); } }
.carte.eveillee .carte-fenetre::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc), #fff 30%) 0, transparent 45%); opacity: 0; animation: m-eveil-pouls 3s ease-in-out infinite; }
@keyframes m-eveil-pouls { 50% { opacity: .55; } }
.carte.eveillee .carte-illustration { box-shadow: 0 0 0 1.5px #fff, 0 0 18px var(--rc), 0 0 34px color-mix(in srgb, var(--rc), transparent 40%) !important; }
.finition-eveil { color: #fff; font-style: normal; font-weight: 800; text-shadow: 0 0 6px var(--rc), 0 0 14px var(--rc); }
@media (prefers-reduced-motion: reduce) { .carte.eveillee .carte-art, .carte.eveillee .carte-fenetre::before, html[data-theme] .carte.brillante .carte-holo { animation: none !important; } }

/* ---------- Sceau : une carte en vitrine et l'inscription du contenu ---------- */
.m-sceau-vitrine { position: absolute; left: 24%; top: 17%; width: 52%; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 2px #f6dc97, 0 0 0 3.5px #00000080, 0 6px 12px #0008; rotate: -4deg; }
.m-sceau-vitrine img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-sceau .m-sceau-embleme { top: 62%; width: 26%; }
.m-sceau-inscription { position: absolute; left: 12%; right: 12%; bottom: 13%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 4px 5px; border-radius: 4px;
  background: linear-gradient(180deg, #000a, #0006); border-top: 1px solid #f6dc9799; border-bottom: 1px solid #f6dc9799; color: #fff4d6; text-align: center; line-height: 1.05; container-type: inline-size; }
.m-sceau-inscription b { font: 800 clamp(8px, 15cqw, 17px)/1.05 var(--titre); letter-spacing: .06em; text-transform: uppercase; text-wrap: balance; }
.m-sceau-inscription small { font: 700 clamp(6px, 9cqw, 11px)/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: #f6dc97; }

/* ---------- Figure manquante, Mythes, Éveillées ---------- */
.m-manquantes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; width: 100%; }
.m-manquantes .bouton { justify-content: space-between; font-size: 13px !important; padding: 7px 10px !important; }
.m-mythes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.m-mythe { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--verre, #0e1440e0); border: 1px solid var(--ligne); }
.m-mythe .carte { width: 92px; }
.m-mythe h3 { margin: 0 0 8px; font-size: 16px !important; }
.m-mythe small { color: var(--doux); font-size: 13px; }
.m-lecture-mythe { grid-template-columns: minmax(150px, 220px) 1fr; align-items: start; gap: 22px; }
.m-lecture-mythe .m-lecture-carte .carte { width: 100%; }
.m-lecture-mythe .m-lecture-texte + .m-lecture-texte { margin-top: 12px; }
.m-lecture-mythe .bouton { margin-top: 18px; }
@media (max-width: 640px) { .m-lecture-mythe { grid-template-columns: 1fr; } .m-lecture-mythe .m-lecture-carte { max-width: 160px; } }
.m-eveillees-zone { margin-top: 26px; }
.m-eveillees { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.m-eveillee { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--verre, #0e1440e0); border: 1.5px solid var(--l4, #ff8bd0); }
.m-eveillee.faite { border-color: var(--l1, #ffd76a); box-shadow: 0 0 18px color-mix(in srgb, var(--l1, #ffd76a), transparent 50%); }
.m-eveillee h3 { margin: 0; font-size: 18px !important; }
.m-recette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.m-recette .carte { width: 100%; }
.m-recette .carte-etoile, .m-recette .compte { display: none !important; }
.m-a-venir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 3 / 4; padding: 4px; border-radius: 9px; border: 1.5px dashed var(--doux, #aab4e6); text-align: center; color: var(--doux, #aab4e6); }
.m-a-venir b { font-size: 22px; } .m-a-venir small { font-size: 10px; line-height: 1.15; } .m-a-venir em { font-size: 9.5px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--l4, #ff8bd0); }
.m-geste { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--doux); font-style: italic; }
.m-eveillee footer small { color: var(--doux); font-size: 13px; }
.fp-eveil { color: var(--or-clair); font-weight: 700; }

/* ---------- Choix des préférences dans le profil ---------- */
.m-preferences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.m-preference { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 12px; text-align: left; cursor: pointer; font: inherit; color: var(--texte); background: transparent; border: 1.5px solid var(--ligne); }
.m-preference strong { font-size: 14px; } .m-preference small { font-size: 12px; color: var(--doux); }
.m-preference i { width: 100%; height: 26px; border-radius: 6px; margin-bottom: 4px; }
.m-preference[aria-pressed="true"] { border-color: var(--l1, var(--or)); box-shadow: 0 0 0 1px var(--l1, var(--or)); }
.m-preference[data-action="style"][data-apercu="lumiere"] i { background: linear-gradient(90deg, #060a26, #8f7bff 50%, #5cc8ff); box-shadow: 0 0 10px #5cc8ff; }
.m-preference[data-action="style"][data-apercu="sobre"] i { background: linear-gradient(90deg, #12151d, #2a2f3c 60%, #c9a865); }
.m-preference[data-action="style"][data-apercu="clair"] i { background: linear-gradient(90deg, #fbf6ea, #ead9b6 60%, #9c6b1c); border: 1px solid #0002; }
.m-preference[data-action="cadre"][data-apercu="filet"] i { background: linear-gradient(140deg, #fff3c4, #c99a45 30%, #fbe7a8 50%, #a67628); }
.m-preference[data-action="cadre"][data-apercu="lumiere"] i { background: #070a18; box-shadow: inset 0 0 0 2px #b26cf6, 0 0 8px #b26cf6; }
.m-preference[data-action="cadre"][data-apercu="pierre"] i { background: linear-gradient(160deg, #4b4f5c, #1d1f26); }
@media (max-width: 560px) { .m-preferences { grid-template-columns: 1fr; } }

/* =====================================================================================================
   Style SOBRE : la même mise en page, sans halo ni néon ; sombre, net, calme. Une couleur d'accent par panthéon.
   ===================================================================================================== */
html[data-style="sobre"][data-theme], html[data-style="sobre"] [data-theme] { --fond: #11141b; --verre: #191d27; --barre: #141821; --doux: #a4acba; --texte: #eceef2;
  --l2: var(--l1); --l3: #3a4152; --l4: var(--l1); --ciel: #11141b; --ligne: #ffffff1f; }
html[data-style="sobre"][data-theme="grec"], html[data-style="sobre"] [data-theme="grec"] { --l1: #d6b46c; }
html[data-style="sobre"][data-theme="nordique"], html[data-style="sobre"] [data-theme="nordique"] { --l1: #7fbcd0; }
html[data-style="sobre"][data-theme="celtique"], html[data-style="sobre"] [data-theme="celtique"] { --l1: #a2c784; }
html[data-style="sobre"][data-theme="egyptien"], html[data-style="sobre"] [data-theme="egyptien"] { --l1: #e0a85e; }
html[data-style="sobre"] body::after { display: none !important; }
html[data-style="sobre"] :is(h1, h2, h3, .marque, .m-sur, .surtitre, .m-gain, .bouton, .m-compteur strong, .m-solde strong, .navigation a, .m-titre-section a, .ld-etoiles, .m-cadeau strong, .m-partie-fin strong, .ld-mot b, .m-sanct-action, .m-jeu-corps em, .m-table td) { text-shadow: none !important; }
html[data-style="sobre"] .m-vue h1 { text-shadow: 0 2px 16px #000c !important; animation: none !important; }
html[data-style="sobre"] .contenu h1, html[data-style="sobre"] h2, html[data-style="sobre"] h3, html[data-style="sobre"] dialog h2 { color: #f3f1ec !important; font-weight: 700 !important; }
html[data-style="sobre"] :is(.m-panneau, .m-offre, .m-jeu, .m-sanctuaire, .m-chapitre, .m-guide, .m-solde, .m-choix-sceau, .m-recit, .m-garantie, .panneau, .m-aide, .ld-fin, .m-mission, .m-cadeau, .m-eveillee, .m-mythe, .m-compteur) {
  background: var(--verre) !important; border: 1px solid var(--ligne) !important; box-shadow: 0 1px 3px #0005 !important; }
html[data-style="sobre"] :is(.m-offre, .m-jeu, .m-sanctuaire, .m-choix-sceau):hover { box-shadow: 0 8px 22px #0007 !important; border-color: color-mix(in srgb, var(--l1), transparent 40%) !important; }
html[data-style="sobre"] :is(.m-offre h3, .m-jeu-corps strong, .m-choix-sceau strong, .m-recit h2, .m-sanct-tete b) { color: #f3f1ec !important; }
html[data-style="sobre"] .entete { box-shadow: none !important; border-bottom: 1px solid var(--ligne) !important; }
html[data-style="sobre"] .marque { color: var(--l1) !important; }
html[data-style="sobre"] .navigation a[aria-current] { color: var(--l1) !important; box-shadow: inset 0 -2px 0 var(--l1) !important; }
html[data-style="sobre"] .navigation a[aria-current] .picto { filter: none; }
html[data-style="sobre"] :is(.pilule, .entete .outil) { border: 1px solid var(--ligne) !important; box-shadow: none !important; }
html[data-style="sobre"] .bouton { background: #ffffff0d !important; color: var(--texte) !important; border: 1px solid #ffffff2a !important; box-shadow: none !important; font-family: var(--corps) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: .01em !important; border-radius: 10px !important; animation: none !important; }
html[data-style="sobre"] .bouton.primaire { background: var(--l1) !important; color: #15120c !important; border-color: var(--l1) !important; }
html[data-style="sobre"] .bouton:hover:not(:disabled) { background: #ffffff1a !important; box-shadow: none !important; }
html[data-style="sobre"] .bouton.primaire:hover:not(:disabled) { background: color-mix(in srgb, var(--l1), #fff 15%) !important; }
html[data-style="sobre"] :is(.m-onglet, .bouton.m-puce, .bouton.filtre) { border: 1px solid var(--ligne) !important; color: var(--texte) !important; }
html[data-style="sobre"] :is(.m-onglet, .bouton.m-puce, .bouton.filtre)[aria-pressed="true"] { background: var(--l1) !important; color: #15120c !important; box-shadow: none !important; }
html[data-style="sobre"] :is(.m-jauge, .m-paliers) > i { background: var(--l1) !important; box-shadow: none; }
html[data-style="sobre"] .m-paliers > b.atteint { box-shadow: none; }
html[data-style="sobre"] dialog:not(.immersion):not(.carte-pleine):not(.contient-fiche) { border: 1px solid var(--ligne) !important; box-shadow: 0 20px 60px #000a !important; background: #151922 !important; }
html[data-style="sobre"] :is(.m-etiquette, .m-prix, .m-raccourci, .m-vue-pantheons, .m-vue .m-hero-sous, .m-partie-statut, .m-partie-fin, .ld-contexte, .champ) { box-shadow: none !important; }
html[data-style="sobre"] .m-etiquette { background: var(--l1); color: #15120c; border: 0; }
html[data-style="sobre"] .carte:not(.inconnue) .carte-illustration { filter: none; }
html[data-style="sobre"] .m-vue { box-shadow: none; border-bottom: 1px solid var(--ligne); }

/* =====================================================================================================
   Style CLAIR : parchemin lumineux pour jouer de jour ; texte sombre, accent par panthéon. Les cartes et le paysage
   d'accueil gardent leurs couleurs.
   ===================================================================================================== */
html[data-style="clair"][data-theme], html[data-style="clair"] [data-theme] { color-scheme: light; --fond: #f5eedf; --verre: #fffaf0; --barre: #fffaf2; --doux: #6e6470; --texte: #2a2330;
  --l2: var(--l1); --l3: #d8c9a8; --l4: var(--l1); --ciel: radial-gradient(900px 500px at 50% -10%, #fff, transparent 70%), #f5eedf; --ligne: #2a233026; --contraste: #fff; }
html[data-style="clair"][data-theme="grec"], html[data-style="clair"] [data-theme="grec"] { --l1: #9a6a17; }
html[data-style="clair"][data-theme="nordique"], html[data-style="clair"] [data-theme="nordique"] { --l1: #1d6886; }
html[data-style="clair"][data-theme="celtique"], html[data-style="clair"] [data-theme="celtique"] { --l1: #3d7a2a; }
html[data-style="clair"][data-theme="egyptien"], html[data-style="clair"] [data-theme="egyptien"] { --l1: #a8521a; }
html[data-style="clair"] body::after { display: none !important; }
html[data-style="clair"] :is(h1, h2, h3, .marque, .m-sur, .surtitre, .m-gain, .bouton, .m-compteur strong, .m-solde strong, .navigation a, .m-titre-section a, .ld-etoiles, .m-cadeau strong, .m-partie-fin strong, .ld-mot b, .m-sanct-action, .m-jeu-corps em, .m-table td, .m-manque) { text-shadow: none !important; }
html[data-style="clair"] .contenu h1, html[data-style="clair"] h2, html[data-style="clair"] h3, html[data-style="clair"] dialog h2 { color: #2a2330 !important; font-weight: 700 !important; }
html[data-style="clair"] .contenu h1 { color: var(--l1) !important; }
html[data-style="clair"] :is(.m-offre h3, .m-jeu-corps strong, .m-choix-sceau strong, .m-recit h2, .m-sanct-tete b, .m-sanct-tete em, .m-compteur strong, .m-solde strong, .m-mission strong, .m-cadeau strong, .m-partie-fin strong) { color: #2a2330 !important; }
html[data-style="clair"] :is(.m-sur, .surtitre, .m-gain, .m-titre-section a) { color: var(--l1) !important; }
html[data-style="clair"] :is(.m-panneau, .m-offre, .m-jeu, .m-sanctuaire, .m-chapitre, .m-guide, .m-solde, .m-choix-sceau, .m-recit, .m-garantie, .panneau, .m-aide, .ld-fin, .m-mission, .m-cadeau, .m-eveillee, .m-mythe, .m-compteur, .m-partie-statut, .m-partie-fin, .ld-contexte) {
  background: var(--verre) !important; color: var(--texte) !important; border: 1px solid var(--ligne) !important; box-shadow: 0 1px 2px #2a23300f, 0 6px 18px #2a233012 !important; }
html[data-style="clair"] :is(.m-offre, .m-jeu, .m-sanctuaire, .m-choix-sceau):hover { box-shadow: 0 12px 26px #2a233024 !important; border-color: color-mix(in srgb, var(--l1), transparent 40%) !important; }
html[data-style="clair"] .entete { background: var(--barre) !important; box-shadow: 0 1px 0 var(--ligne) !important; border-bottom: 0 !important; }
html[data-style="clair"] .marque { color: var(--l1) !important; }
html[data-style="clair"] .navigation a { color: #5e5462 !important; }
html[data-style="clair"] .navigation a[aria-current] { color: var(--l1) !important; box-shadow: inset 0 -2px 0 var(--l1) !important; }
html[data-style="clair"] .navigation a[aria-current] .picto { filter: none; }
html[data-style="clair"] :is(.pilule, .entete .outil) { background: #fff !important; color: var(--texte) !important; border: 1px solid var(--ligne) !important; box-shadow: none !important; }
html[data-style="clair"] .bouton { background: #fff !important; color: var(--l1) !important; border: 1px solid color-mix(in srgb, var(--l1), transparent 45%) !important; box-shadow: none !important; font-family: var(--corps) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: .01em !important; border-radius: 10px !important; animation: none !important; }
html[data-style="clair"] .bouton.primaire { background: var(--l1) !important; color: #fff !important; border-color: var(--l1) !important; }
html[data-style="clair"] .bouton:hover:not(:disabled) { background: color-mix(in srgb, var(--l1), #fff 90%) !important; }
html[data-style="clair"] .bouton.primaire:hover:not(:disabled) { background: color-mix(in srgb, var(--l1), #000 12%) !important; }
html[data-style="clair"] :is(.m-onglet, .bouton.m-puce, .bouton.filtre) { background: #fff !important; color: var(--texte) !important; border: 1px solid var(--ligne) !important; }
html[data-style="clair"] :is(.m-onglet, .bouton.m-puce, .bouton.filtre)[aria-pressed="true"] { background: var(--l1) !important; color: #fff !important; border-color: var(--l1) !important; box-shadow: none !important; }
html[data-style="clair"] :is(.m-jauge, .m-paliers) { background: #e8dec8 !important; border-color: #0001 !important; }
html[data-style="clair"] :is(.m-jauge, .m-paliers) > i { background: var(--l1) !important; box-shadow: none; }
html[data-style="clair"] .m-paliers > b { background: #fff; border-color: #0003; } html[data-style="clair"] .m-paliers > b.atteint { background: var(--l1); box-shadow: none; }
html[data-style="clair"] .champ { background: #fff !important; color: var(--texte) !important; border: 1px solid var(--ligne) !important; }
html[data-style="clair"] .champ::placeholder { color: #8a8090; }
html[data-style="clair"] dialog:not(.immersion):not(.carte-pleine):not(.contient-fiche) { background: #fffaf2 !important; color: var(--texte); border: 1px solid var(--ligne) !important; box-shadow: 0 24px 60px #2a233040 !important; }
html[data-style="clair"] dialog::backdrop { background: #2a233066; }
html[data-style="clair"] dialog.contient-fiche { background: radial-gradient(ellipse at 28% 45%, color-mix(in srgb, var(--rc, var(--l1)), #fff 80%), #f5eedf 70%) !important; color: var(--texte); }
html[data-style="clair"] .fp-texte :is(p, .fp-resume) { color: var(--texte) !important; text-shadow: none !important; }
html[data-style="clair"] :is(dialog .fermer, .fiche-pleine > .fermer) { background: #fff !important; color: var(--texte) !important; border: 1px solid var(--ligne) !important; box-shadow: none !important; }
html[data-style="clair"] .m-lecture-texte { color: var(--texte) !important; }
html[data-style="clair"] :is(.m-texte, .m-note, .muted, .note, .m-geste, .m-mythe small, .m-eveillee footer small) { color: var(--doux) !important; }
html[data-style="clair"] .m-etiquette { background: var(--l1); color: #fff; border: 0; box-shadow: none; }
html[data-style="clair"] .m-prix { color: var(--l1); border-color: color-mix(in srgb, var(--l1), transparent 50%); }
html[data-style="clair"] .m-table td:last-child { color: var(--l1); }
html[data-style="clair"] .m-raccourci { background: #fff; color: var(--l1); border: 1px solid color-mix(in srgb, var(--l1), transparent 50%); box-shadow: none; }
/* le paysage de l'accueil garde une ombre sombre pour que son titre reste lisible */
html[data-style="clair"] .m-vue { box-shadow: none; border-bottom: 0; }
html[data-style="clair"] .m-vue::after { background: linear-gradient(0deg, #f5eedf 0, #f5eedf00 30%), linear-gradient(90deg, #0b0d18cc 0, #0b0d1866 38%, transparent 60%) !important; }
html[data-style="clair"] .m-vue h1 { color: #fff !important; text-shadow: 0 2px 18px #000c !important; animation: none !important; }
html[data-style="clair"] .m-vue :is(.m-sur, .m-recharge, .m-note) { color: #fff !important; }
html[data-style="clair"] .m-vue-pantheons { background: #fffaf2e6; border: 1px solid var(--ligne); box-shadow: none; }
html[data-style="clair"] .m-medaillon { color: var(--texte); }
html[data-style="clair"] .m-medaillon[aria-pressed="true"] { background: color-mix(in srgb, var(--l1), #fff 82%); border-color: var(--l1); box-shadow: none; color: var(--texte); }
html[data-style="clair"] .m-preference { color: var(--texte); }
html[data-style="clair"] .m-a-venir { color: var(--doux); border-color: #0003; }
/* V0.19 : les longs titres de fiche passent à la ligne au lieu de déborder. */
.fiche-pleine .fp-texte h2 { overflow-wrap: break-word; hyphens: auto; font-size: clamp(26px, 3.6vw, 52px) !important; line-height: 1.05 !important; }

/* V0.20 · missions : serments du jour et défis de la semaine côte à côte, fenêtre des succès. */
.m-duo:has(#titre-defis) { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .m-duo:has(#titre-defis) { grid-template-columns: 1fr; } }
.m-succes { display: grid; gap: 12px; max-width: 640px; }
.m-succes .m-missions { display: grid; gap: 8px; max-height: min(62vh, 640px); overflow: auto; padding-right: 4px; }
.m-etoiles { color: #f0c96a; letter-spacing: 1px; font-weight: 400; margin-left: 4px; }
.m-panneau > .m-actions { margin-top: 10px; }

/* V0.20 · style Clair : textes devenus invisibles (texte blanc sur parchemin) et ombres trop lourdes. */
html[data-style="clair"] .m-jeu-pied b.payant, html[data-style="clair"] .m-jeu-pied b.gratuit { color: #5a3d10 !important; }
html[data-style="clair"] .m-jeu h3, html[data-style="clair"] .m-jeu strong { text-shadow: none !important; color: #2a2330 !important; }
html[data-style="clair"] .m-chapitre header span { color: #7a5512 !important; }
html[data-style="clair"] .rarete-badge { color: color-mix(in srgb, var(--rc), #000 38%) !important; }
html[data-style="clair"] .m-hero-sous { color: #2a2330 !important; }
html[data-style="clair"] .m-sanct-action, html[data-style="clair"] .m-jeu em { color: #7a5512 !important; }
/* Sur la grande image d'accueil, tous styles : minuteur lisible, points de réserve vides et pleins distincts. */
.m-vue .m-recharge b { color: #ffe6a6 !important; text-shadow: 0 1px 4px #000 !important; }
.m-vue .m-reserve i { background: rgba(0, 0, 0, .25) !important; box-shadow: inset 0 0 0 1.5px #f3d38a !important; }
.m-vue .m-reserve i.plein { background: #f3d38a !important; box-shadow: 0 0 8px #f3d38a99 !important; }
html[data-style="clair"] nav a small { color: #6e6470 !important; opacity: 1 !important; }

/* V0.20 · confort choisi dans le profil. */
html[data-mouvement="reduit"] *, html[data-mouvement="reduit"] *::before, html[data-mouvement="reduit"] *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html[data-texte="grand"] body { zoom: 1.14; }
/* Rareté lisible sans les couleurs : une forme par rareté (rond, losange, triangle, étoile, étoile à huit branches). */
.rarete-badge > i { transform: none !important; }
.rarete-badge[data-r="commune"] > i { border-radius: 50%; }
.rarete-badge[data-r="rare"] > i { transform: rotate(45deg) !important; }
.rarete-badge[data-r="epique"] > i { width: 8px !important; height: 7px !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rarete-badge[data-r="legendaire"] > i { width: 9px !important; height: 9px !important; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.rarete-badge[data-r="mythique"] > i { width: 10px !important; height: 10px !important; clip-path: polygon(50% 0, 60% 30%, 85% 15%, 70% 40%, 100% 50%, 70% 60%, 85% 85%, 60% 70%, 50% 100%, 40% 70%, 15% 85%, 30% 60%, 0 50%, 30% 40%, 15% 15%, 40% 30%); }

/* V0.20 · accueil : retour au cadrage de la V0.12, une bannière arrondie dans la largeur de la page au lieu du plein écran. */
html[data-theme] .contenu > .m-vue { width: auto !important; margin: 0 0 22px !important; min-height: clamp(340px, 34vw, 485px) !important; border-radius: 15px; border: 0 !important; box-shadow: 0 24px 52px #07081072 !important; padding: clamp(22px, 4vw, 52px) !important; }
.m-vue-cadre { position: absolute; inset: 0; z-index: -2; }
html[data-theme] .m-vue-paysage { object-position: center 55%; animation: none; }
.m-vue::before { border-radius: inherit; }
@media (max-width: 760px) { html[data-theme] .contenu > .m-vue { min-height: 390px !important; padding: 18px 16px 22px !important; } html[data-theme] .m-vue-paysage { object-position: center; } }

/* ---------- V0.20 · Sceaux présentés comme dans Constellation : sachets peints, sans cadre ---------- */
.m-sceau-peint > img:first-child { object-fit: cover; }
.m-sceau-peint .m-sceau-reflet { -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: center; mask-position: center; }
.m-choix-sceaux { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; margin: 22px 0 26px; }
html[data-theme] .m-choix-sceaux > .m-choix-sceau, html[data-theme] .m-choix-sceaux > .m-choix-sceau:hover:not(:disabled) {
  border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; gap: 6px; transform: none; }
.m-choix-sceaux > .m-choix-sceau .m-sceau { width: 100%; max-width: 170px; transition: transform .25s, filter .25s; }
.m-choix-sceaux > .m-choix-sceau:hover:not(:disabled) .m-sceau, .m-choix-sceaux > .m-choix-sceau:focus-visible .m-sceau { transform: translateY(-6px) rotate(-2deg) scale(1.03); filter: drop-shadow(0 18px 22px #000a) drop-shadow(0 0 14px color-mix(in srgb, var(--or), transparent 45%)); }
.m-choix-sceaux > .m-choix-sceau:focus-visible { outline: none; }
.m-choix-sceaux > .m-choix-sceau:focus-visible strong { text-decoration: underline; }
.m-choix-sceaux > .m-choix-sceau strong { margin-top: 4px; }
.m-choix-sceaux > .m-choix-sceau .m-etiquette { z-index: 2; }
.m-prix-sceau { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--or-clair); }
html[data-style="clair"] .m-prix-sceau { color: #5a3d10; }
.m-choix-sceau:disabled .m-prix-sceau { color: var(--doux); font-weight: 600; }

/* V0.20 · versos peints par panthéon (decors/dos) */
#calque .carte-dos.carte-dos-peint, .carte-dos.carte-dos-peint { background: none !important; border: 0 !important; }
#calque .carte-dos.carte-dos-peint::before { display: none; }
.carte-dos.carte-dos-peint > img { object-fit: fill; border-radius: 6%; filter: drop-shadow(0 6px 10px #0008); }

#calque .paquet.paquet-peint { background: var(--sachet) center / cover no-repeat; }
#calque .paquet.paquet-peint .reflet-p { -webkit-mask: var(--sachet) center / cover no-repeat; mask: var(--sachet) center / cover no-repeat; }


/* V0.20 · carte inconnue : impossible à deviner, seulement des couleurs fondues et un grand point d'interrogation */
html[data-theme] .carte.inconnue .carte-art, html[data-cadre] .carte.inconnue .carte-art { filter: grayscale(.6) brightness(.32) blur(22px) !important; transform: scale(1.5) !important; }
html[data-theme] .carte.inconnue .carte-fenetre::after { font-size: clamp(40px, 7vw, 72px) !important; color: color-mix(in srgb, var(--or-clair, #f3d58b), transparent 35%) !important; text-shadow: 0 0 22px #000, 0 0 2px #000 !important; }
html[data-style="clair"] .carte.inconnue .carte-fenetre::after { color: #fff9 !important; }


/* ---------- V0.20 · fiche de carte aérée : panneau de lecture, sections titrées ---------- */
.fiche-pleine { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; gap: clamp(12px, 3vw, 40px); }
.fp-carte .carte-detail { height: min(72dvh, 660px) !important; }
.fiche-pleine .fp-texte { align-self: center; max-height: calc(100dvh - 80px); padding: clamp(24px, 3.4vw, 44px) !important; margin-right: clamp(8px, 3vw, 44px);
  border-radius: 18px; background: color-mix(in srgb, var(--relief, #1b1830), transparent 22%); border: 1px solid color-mix(in srgb, var(--or, #d9b56a), transparent 70%); box-shadow: 0 24px 60px #0006; }
.fp-tete { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, var(--or, #d9b56a), transparent 75%); }
.fiche-pleine .fp-texte h2 { margin: 6px 0 16px !important; }
.fp-ligne { gap: 10px !important; margin: 0 !important; }
.fp-ligne .rarete-badge { font-size: 14px !important; padding: 5px 12px !important; }
.fp-favori { font: 700 13.5px/1 var(--corps); padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--doux); background: transparent; border: 1px solid color-mix(in srgb, currentColor, transparent 55%); transition: color .2s, border-color .2s, background .2s; }
.fp-favori:hover, .fp-favori.actif { color: #f6d27a; border-color: #f6d27a; }
.fp-favori.actif { background: color-mix(in srgb, #f6d27a, transparent 88%); }
.fiche-pleine .fp-texte .fp-resume { font-size: clamp(18px, 1.8vw, 21px) !important; line-height: 1.55 !important; margin-bottom: 22px !important; }
.fp-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.fp-faits div { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--fond, #0d0b1a), transparent 40%); }
.fp-faits dt { font: 800 11px/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin-bottom: 6px; }
.fp-faits dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--texte); }
.fp-section { margin: 0 0 22px; }
.fp-section h3 { margin: 0 0 8px !important; font: 800 12px/1 var(--corps) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--or-clair) !important; text-shadow: none !important; }
.fiche-pleine .fp-section p { margin: 0 !important; font-size: 16.5px; line-height: 1.7; }
.fiche-pleine .fp-section.fp-nuance { padding: 14px 16px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--or, #d9b56a), transparent 90%); }
.fiche-pleine .fp-section.fp-nuance p { color: var(--texte) !important; font-size: 15.5px; }
.fp-liens { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.fp-liens span { width: 100%; font: 800 11px/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--doux); }
.fiche-pleine .fp-pied { margin-top: 24px; padding-top: 18px; }
.fp-quantite b { color: var(--texte); }
html[data-style="clair"] .fiche-pleine .fp-texte { background: #fffdf8; border-color: #e3d6bd; box-shadow: 0 18px 44px #2a233018; }
html[data-style="clair"] .fp-faits div { background: #f4ecdd; }
html[data-style="clair"] .fp-section h3 { color: #7a5418 !important; }
html[data-style="clair"] .fp-favori:hover, html[data-style="clair"] .fp-favori.actif { color: #9a6a10; border-color: #c99a3a; }
@media (max-width: 760px) {
  .fiche-pleine { grid-template-columns: 1fr !important; }
  .fp-carte .carte-detail { height: min(52dvh, 460px) !important; }
  .fiche-pleine .fp-texte { max-height: none; margin: 0 10px 24px; }
}
html[data-theme] .fiche-pleine .fp-section h3 { font: 700 15px/1.1 var(--titre) !important; letter-spacing: .08em; }
@media (min-width: 761px) { .fiche-pleine .fp-texte { margin-top: 52px; margin-bottom: 20px; max-height: calc(100dvh - 120px); } }

#calque .lien-fiche { all: unset; cursor: pointer; align-self: flex-start; margin: 2px 0 10px; font: 700 14px/1.3 var(--corps); color: var(--or-clair, #f3d58b); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; opacity: .9; }
#calque .lien-fiche:hover, #calque .lien-fiche:focus-visible { opacity: 1; text-decoration-thickness: 2px; }


/* ---------- V0.20 · deux finitions distinctes ----------
   Brillante : des étoiles d'or à quatre branches qui scintillent sur l'illustration, et un éclat doré qui passe.
   Holographique : le reflet arc-en-ciel qui suit le pointeur (Épique ou mieux, la plus rare). */
html[data-theme] .carte.brillante .carte-holo, html[data-theme] .carte.brillante .carte-etincelles { display: none !important; }
html[data-theme] .carte.brillante .carte-holo-brillante { display: block !important; opacity: .85 !important; z-index: 3; mix-blend-mode: soft-light !important;
  background: linear-gradient(115deg, transparent 32%, #fff1c255 43%, #fff7dd 50%, #fff1c255 57%, transparent 68%) -170% 0 / 260% 100% no-repeat !important; animation: m-eclat-brillant 3.4s ease-in-out infinite !important; }
.carte-etoiles { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.carte-etoiles > i { position: absolute; width: calc(15% * var(--t)); aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 12%, #fff4c9 22%, #ffd36a 46%, transparent 72%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 3px #ffe08a); animation: m-etoile 3.2s ease-in-out var(--d) infinite; }
@keyframes m-etoile { 0%, 62%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 74% { opacity: 1; scale: 1; rotate: 20deg; } 86% { opacity: .7; scale: .7; rotate: 45deg; } }
html[data-theme] .carte.brillante .carte-illustration { animation: m-aura-or 2.8s ease-in-out infinite !important; }
html[data-theme] .finition-holo { color: #ffe9a6 !important; text-shadow: 0 0 6px #ffcf5a, 0 0 12px #ffcf5a !important; }

html[data-theme] .carte.holographique .carte-holo { display: block !important; opacity: .5 !important; z-index: 2; mix-blend-mode: color-dodge !important;
  background: repeating-linear-gradient(115deg, #ff3d8b 0%, #ffcf4a 9%, #a8ff6a 18%, #3ff0d0 27%, #4a8cff 36%, #b45cff 45%, #ff3d8b 54%) !important;
  background-size: 260% 260% !important; background-position: var(--px, 50%) var(--py, 50%) !important;
  filter: hue-rotate(var(--teinte, 0deg)) saturate(1.6) !important; animation: m-holo-repos 5s linear infinite !important; }
html[data-theme] .carte.holographique:hover .carte-holo { animation: none !important; opacity: .82 !important; }
html[data-theme] .carte.holographique .carte-holo-brillante { display: block !important; opacity: 1 !important; z-index: 3; mix-blend-mode: screen !important;
  background: linear-gradient(112deg, transparent 40%, #ffffffb0 49%, #fff 50%, #ffffffb0 51%, transparent 60%) -160% 0 / 240% 100% no-repeat !important; animation: m-eclat-brillant 3.2s ease-in-out infinite !important; }
html[data-theme] .carte.holographique .carte-reflet { opacity: .45 !important; z-index: 4; mix-blend-mode: overlay !important; background: radial-gradient(circle at var(--px, 50%) var(--py, 30%), #fff, #fff6 22%, transparent 55%) !important; }
html[data-theme] .carte.holographique .carte-illustration { animation: m-aura-brillante 2.6s ease-in-out infinite !important; }
html[data-theme] .carte.holographique .carte-etincelles { display: none !important; }
html[data-theme] .finition-arcenciel { color: #fff !important; text-shadow: 0 0 8px #7fe9ff, 0 0 14px #ff8be6 !important; }
.c-carte.holographique { box-shadow: 0 0 10px #7fe9ffaa, 0 0 0 1px #ff8be6; }

/* Étincelles des Légendaires et Mythiques : petites étoiles dorées, plus de points blancs. */
html[data-theme] .carte .carte-etincelles > i { width: 9px !important; height: 9px !important; border-radius: 0 !important; box-shadow: none !important;
  background: radial-gradient(circle, #fff 0 15%, #ffe3a0 35%, var(--rc, #ffd36a) 60%, transparent 75%) !important;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); filter: drop-shadow(0 0 2px #ffe08a); }
@media (prefers-reduced-motion: reduce) { .carte-etoiles > i { animation: none; opacity: .8; scale: .8; } html[data-theme] .carte.holographique .carte-holo { animation: none !important; } }
html[data-mouvement="reduit"] .carte-etoiles > i { animation: none; opacity: .8; scale: .8; }
@keyframes m-etoile { 0%, 40%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 58% { opacity: 1; scale: 1; rotate: 20deg; } 78% { opacity: .75; scale: .75; rotate: 45deg; } }
.carte-etoiles > i { width: calc(19% * var(--t)); animation-duration: 2.6s; }
html[data-theme] .carte.holographique .carte-holo { opacity: .3 !important; }


/* V0.20 · favori intégré : une étoile seule au coin, sans pastille ; visible au survol ou quand la carte est favorite */
html[data-theme] .carte .carte-etoile { background: none !important; border: 0 !important; box-shadow: none !important; width: auto !important; aspect-ratio: auto; padding: 2px 4px; top: 3.5% !important; left: 5% !important; font-size: clamp(16px, 11cqw, 24px) !important; color: #fff !important; text-shadow: 0 1px 2px #000, 0 0 8px #000c !important; opacity: 0 !important; transition: opacity .2s, transform .2s, color .2s; }
html[data-theme] .carte:hover .carte-etoile, html[data-theme] .carte:focus-within .carte-etoile { opacity: .85 !important; }
html[data-theme] .carte .carte-etoile.active { opacity: 1 !important; color: #ffd45e !important; text-shadow: 0 1px 2px #000, 0 0 10px #ffb81c !important; }
html[data-theme] .carte .carte-etoile:hover { transform: scale(1.2); color: #ffe08a !important; }
@media (hover: none) { html[data-theme] .carte .carte-etoile:not(.active) { opacity: 0 !important; pointer-events: none; } }

/* V0.20 · toutes les cartes au format des illustrations (3:4) : plus aucune figure rognée sur les côtés ni de verso déformé */
.fp-carte .carte-detail { aspect-ratio: 3 / 4 !important; }
dialog.carte-pleine .carte { aspect-ratio: 3 / 4 !important; height: min(calc(100dvh - 84px), calc((100vw - 24px) * 1.333)) !important; }
.m-carte-vedette { aspect-ratio: 3 / 4 !important; }
#calque .pile-cartes { aspect-ratio: 3 / 4 !important; width: min(72vw, 360px, calc((100vh - 260px) * .75)) !important; }
#calque .plateau .place { aspect-ratio: 3 / 4 !important; }

/* V0.20 · sanctuaire : plus de défilement vers le vide ; la scène tient dans son cadre et les repères guident la caméra */
.visite-scroll { overflow: hidden !important; }
.visite-parcours { height: 100% !important; }
.visite-ecran { position: relative !important; }
.visite-reperes button:not(:disabled) { cursor: pointer; }
.visite-reperes button[aria-pressed="true"] small { color: var(--or-clair, #f3d58b); }

/* V0.20 · le nom du Sceau écrit sur le sachet peint, dans un bandeau posé sur le bas de l'emballage */
.m-sceau-peint .m-sceau-inscription { left: 15%; right: 15%; bottom: 15%; padding: 5px 4px 6px; background: linear-gradient(180deg, #120c06d9, #120c06b3); border-top: 1px solid #f6dc97b3; border-bottom: 1px solid #f6dc97b3; box-shadow: 0 3px 8px #0008; }
.m-choix-sceaux > .m-choix-sceau small { max-width: 18ch; margin-top: 2px; }
#calque .paquet.paquet-peint .bandeau { left: 13%; right: 13%; bottom: 13%; background: linear-gradient(180deg, #120c06cc, #120c06e6); border-top: 1px solid #f6dc97b3; border-bottom: 1px solid #f6dc97b3; border-radius: 4px; }

/* V0.20 · frise de connexion (sept jours) */
.m-calendrier { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.m-calendrier li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--relief, #1b1830), transparent 30%); border: 1px solid color-mix(in srgb, var(--or, #d9b56a), transparent 75%); }
.m-cal-jour { font: 800 11px/1 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--doux); white-space: nowrap; }
.m-cal-gain { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.05; }
.m-cal-gain b { font: 800 17px/1 var(--corps); color: var(--texte); }
.m-cal-gain small { font-size: 10.5px; font-weight: 700; color: var(--doux); }
.m-cal-ok { font-size: 11px; font-weight: 800; color: #6fd8a0; }
.m-calendrier li.pris { background: color-mix(in srgb, #5fd39a, transparent 86%); border-color: color-mix(in srgb, #5fd39a, transparent 50%); }
.m-calendrier li.aujourdhui { border-color: var(--or, #d9b56a); box-shadow: 0 0 16px color-mix(in srgb, var(--or, #d9b56a), transparent 55%); }
.m-calendrier li.aujourdhui .m-cal-jour { color: var(--or-clair, #f3d58b); }
.m-calendrier li.gros-lot { outline: 2px dashed color-mix(in srgb, var(--or, #d9b56a), transparent 30%); outline-offset: 2px; }
.m-connexion .m-actions { margin-top: 4px; }
html[data-style="clair"] .m-calendrier li { background: #fffdf8; border-color: #e3d6bd; }
html[data-style="clair"] .m-calendrier li.pris { background: #e7f6ec; border-color: #9fd6b2; }
html[data-style="clair"] .m-cal-ok { color: #23824e; }
@media (max-width: 560px) { .m-calendrier { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- V0.20 · respiration générale : plus d'air entre les blocs et dans les textes, comme sur la fiche de carte ---------- */
html[data-theme] .contenu { line-height: 1.55; }
html[data-theme] .contenu > * + * { margin-top: 30px; }
html[data-theme] .m-panneau { padding: clamp(20px, 2.6vw, 30px) !important; }
html[data-theme] .m-titre-section { margin-bottom: 14px !important; gap: 12px; flex-wrap: wrap; }
html[data-theme] .m-titre-section h2 { margin: 0 !important; }
html[data-theme] .m-duo { gap: clamp(18px, 2.4vw, 28px) !important; }
html[data-theme] .m-missions { display: grid; gap: 12px !important; margin: 4px 0 14px !important; padding: 0; }
html[data-theme] .m-mission { padding: 14px 16px !important; gap: 14px !important; }
html[data-theme] .m-mission strong { display: block; margin-bottom: 4px; line-height: 1.3; }
html[data-theme] .m-mission small { display: block; line-height: 1.4; }
html[data-theme] .m-mission .m-jauge { margin-top: 8px; }
html[data-theme] .m-note { margin: 12px 0 0 !important; line-height: 1.55 !important; }
html[data-theme] .m-texte { line-height: 1.6 !important; max-width: 70ch; }
html[data-theme] .m-entete-page { margin-bottom: 26px !important; }
html[data-theme] .m-entete-page .m-texte { margin-top: 8px !important; }
html[data-theme] .m-actions { gap: 12px !important; margin-top: 16px; }
html[data-theme] .m-offres { gap: clamp(18px, 2.2vw, 26px) !important; }
html[data-theme] .m-offre { padding: 22px 18px 20px !important; gap: 10px; }
html[data-theme] .m-offre h3 { margin: 12px 0 6px !important; line-height: 1.2 !important; }
html[data-theme] .m-offre p { line-height: 1.55 !important; margin: 0 0 14px !important; }
html[data-theme] .m-offre-actions { gap: 10px !important; margin-top: auto; }
html[data-theme] .m-solde { gap: 18px 28px !important; padding: 18px 22px !important; }
html[data-theme] .m-jeux { gap: clamp(18px, 2.2vw, 26px) !important; }
html[data-theme] .m-jeu-corps { padding: 16px 18px 18px !important; gap: 8px; }
html[data-theme] .m-jeu-corps p, html[data-theme] .m-jeu-corps small { line-height: 1.5 !important; }
html[data-theme] .m-sanctuaires { gap: clamp(18px, 2.2vw, 26px) !important; }
html[data-theme] .m-choix-sceaux small, html[data-theme] .m-garantie p { line-height: 1.5 !important; }
html[data-theme] .m-garantie { padding: 20px 22px !important; gap: 18px; }
html[data-theme] dialog p { line-height: 1.55; }
html[data-theme] .m-cadeau { padding: 16px 18px !important; gap: 16px !important; }
html[data-theme] .m-cadeau small { display: block; margin-top: 3px; line-height: 1.4; }

/* V0.20 · Sceau prestige : un sachet doré à part dans le dialogue, et la mention sur les paliers de succès */
.m-prestige { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 22px; align-items: center; margin: 22px 0 6px; padding: 18px 20px;
  border-radius: 18px; border: 1px solid color-mix(in srgb, #f1d27a, transparent 45%);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #f1d27a, transparent 82%), transparent 60%), color-mix(in srgb, var(--relief, #1b1830), transparent 20%); }
.m-prestige h3 { margin: 0 0 8px; }
.m-prestige p { margin: 0 0 8px; line-height: 1.55; }
.m-prestige .m-choix-sceau { position: relative; }
.m-sceau[style*="#f1d27a"] { filter: drop-shadow(0 0 14px #f1d27a88); }
.m-gain-prestige { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800;
  color: #2a1630; background: linear-gradient(135deg, #f8e3a0, #e2b75a); }
html[data-style="clair"] .m-prestige { background: linear-gradient(135deg, #fff8e6, #fffdf8); border-color: #e2c27a; }
@media (max-width: 560px) { .m-prestige { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* V0.20 · traditions invitées : petites scènes vivantes, comme les scènes de collection de Constellation */
.m-invites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(16px, 2vw, 22px); margin-top: 14px; }
.m-invite { display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--relief, #1b1830), transparent 15%); border: 1px solid color-mix(in srgb, var(--or, #d9b56a), transparent 75%); }
.scene-invite { display: block; width: 100%; height: auto; aspect-ratio: 320 / 110; border-radius: 12px; }
.m-invite-corps { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.m-invite-corps b { font-family: var(--titre, inherit); font-size: 1.05rem; }
.m-invite-corps em { font-style: normal; font-weight: 800; color: var(--doux); white-space: nowrap; }
.m-invite small { padding: 0 4px; color: var(--doux); line-height: 1.45; }
html[data-style="clair"] .m-invite { background: #fffdf8; border-color: #e3d6bd; }
@keyframes inv-respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes inv-tombe { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(-60px, 90px) rotate(200deg); opacity: 0; } }
@keyframes inv-glisse { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes inv-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes inv-luit { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes inv-aurore { 0%, 100% { transform: translateX(0) skewX(0); } 50% { transform: translateX(-8px) skewX(-4deg); } }
.scene-invite .fleur { transform-box: fill-box; transform-origin: center; animation: inv-respire 4s ease-in-out infinite; }
.scene-invite .petale { animation: inv-tombe 8s linear infinite; }
.scene-invite .nuage, .scene-invite .lent { animation: inv-glisse 12s ease-in-out infinite; }
.scene-invite .lanterne.allumee, .scene-invite .flotte { animation: inv-flotte 4.5s ease-in-out infinite; }
.scene-invite .luciole, .scene-invite .etoile { animation: inv-luit 3.2s ease-in-out infinite; }
.scene-invite .aurore { animation: inv-aurore 10s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .scene-invite * { animation: none !important; } }
html[data-mouvement="reduit"] .scene-invite * { animation: none !important; }
/* V0.20 · porte de la bêta privée */
.porte-beta form { display: grid; gap: 10px; width: min(100%, 340px); margin: 18px auto 0; text-align: left; }
.porte-beta input { padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--or, #d9b56a), transparent 50%); background: color-mix(in srgb, var(--relief, #1b1830), transparent 10%); color: var(--texte, #fff); font: inherit; letter-spacing: .08em; }
.porte-beta details { margin-top: 22px; }
.porte-beta .erreur-beta { min-height: 1.4em; color: #ff9c8a; margin: 0; }
/* V0.20 · Sceau souverain et éveil direct */
.m-souverain { border-color: color-mix(in srgb, #c9b6ff, transparent 35%); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #c9b6ff, transparent 80%), transparent 60%), color-mix(in srgb, var(--relief, #1b1830), transparent 20%); }
.m-sceau[style*="#efe6ff"] { filter: drop-shadow(0 0 16px #c9b6ffaa); }
html[data-style="clair"] .m-souverain { background: linear-gradient(135deg, #f4efff, #fffdf8); border-color: #c9b6ff; }
.m-eveil-direct { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--or, #d9b56a), transparent 60%); }
.m-eveil-direct small { color: var(--doux); line-height: 1.4; }

/* V0.20 · saisons : bandeau de l'Agora et choix du cadre dans la fiche */
.m-saison { margin-bottom: 26px; border-color: color-mix(in srgb, #ffb36b, transparent 40%) !important; background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, #ffb36b, transparent 82%), transparent 60%), var(--panneau, transparent); }
.m-saison.calme { border-color: color-mix(in srgb, var(--or, #d9b56a), transparent 70%) !important; background: none; }
.m-saison h2 { margin: 4px 0 8px; }
.fp-cadres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fp-cadres > span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--doux); margin-right: 4px; }

/* V0.20 · l'Assemblée : vote des joueurs pour la catégorie du mois prochain */
.m-assemblee { margin-bottom: 26px; }
.m-assemblee h2 { margin: 4px 0 8px; }
.m-votes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 12px; }
.m-vote { display: flex; align-items: center; gap: 14px; padding: 12px; text-align: left; border-radius: 16px; cursor: pointer; color: inherit; font: inherit;
  border: 1px solid color-mix(in srgb, var(--pc), transparent 55%); background: color-mix(in srgb, var(--pc), transparent 88%); transition: transform .15s, border-color .15s, background .15s; }
.m-vote:not(:disabled):hover { transform: translateY(-2px); border-color: var(--pc); }
.m-vote[aria-pressed="true"] { border-color: var(--pc); background: color-mix(in srgb, var(--pc), transparent 72%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc), transparent 50%); }
.m-vote:disabled { cursor: default; opacity: .75; }
.m-vote img { width: 54px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; flex: none; }
.m-vote > span { display: grid; gap: 6px; min-width: 0; flex: 1; }
.m-vote b { font-size: 15px; }
.m-vote small { color: var(--doux); }
.m-vote .m-jauge i { background: var(--pc); }

/* V0.20 · l'Agora (la boutique) garde sa couleur ambre dans la navigation, sur toutes les pages et dans les trois styles */
html[data-theme] .navigation a.nav-agora { color: #ffc46b !important; background: color-mix(in srgb, #f0a33a, transparent 80%) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, #f0a33a, transparent 45%) !important; text-shadow: none !important; }
html[data-theme] .navigation a.nav-agora small { color: color-mix(in srgb, #ffc46b, transparent 20%) !important; opacity: 1; }
html[data-theme] .navigation a.nav-agora .picto { filter: drop-shadow(0 0 6px #f0a33a) sepia(1) saturate(3) hue-rotate(-10deg); }
html[data-theme] .navigation a.nav-agora:hover { background: color-mix(in srgb, #f0a33a, transparent 68%) !important; }
html[data-theme] .navigation a.nav-agora[aria-current] { color: #fff1d6 !important; background: linear-gradient(135deg, color-mix(in srgb, #f7b545, transparent 45%), color-mix(in srgb, #e07a2e, transparent 50%)) !important; box-shadow: inset 0 0 0 1px #f0a33a, inset 0 -3px 0 #ffc46b, 0 8px 16px -8px #f0a33a !important; }
html[data-style="clair"] .navigation a.nav-agora { color: #9a4f00 !important; background: #fde7c4 !important; box-shadow: inset 0 0 0 1px #f0b86a !important; }
html[data-style="clair"] .navigation a.nav-agora small { color: #a4652a !important; }
html[data-style="clair"] .navigation a.nav-agora .picto { filter: sepia(1) saturate(4) hue-rotate(-15deg) brightness(.85); }
html[data-style="clair"] .navigation a.nav-agora[aria-current] { color: #6e3600 !important; background: #fbd08f !important; box-shadow: inset 0 0 0 1px #e8973a, inset 0 -3px 0 #c76a12 !important; }
@media (max-width: 760px) { html[data-theme] .navigation a.nav-agora { border-radius: 12px !important; } }
.m-assemblee .m-actions { margin-top: 4px; }

/* Bouton « Signaler » de la bêta (public/signalement.js) : discret, au-dessus de la barre du bas sur téléphone. */
.bouton-signaler { position: fixed; z-index: 45; left: max(10px, env(safe-area-inset-left)); bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 36px; padding: 6px 12px; border: 1px solid var(--ligne); border-radius: 999px; background: color-mix(in srgb, var(--surface), transparent 12%); color: var(--texte); font: inherit; font-size: .82rem; letter-spacing: .02em; cursor: pointer; box-shadow: 0 6px 18px #0007; backdrop-filter: blur(8px); opacity: .82; }
.bouton-signaler:hover, .bouton-signaler:focus-visible { opacity: 1; border-color: var(--or); }
@media (min-width: 791px) { .bouton-signaler { bottom: 16px; } }
dialog.signalement { width: min(560px, calc(100% - 24px)); }
dialog.signalement h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.signalement .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.signalement fieldset, .signalement label { min-width: 0; }
.signalement input[type=file] { width: 100%; min-width: 0; box-sizing: border-box; font-size: .85rem; border-radius: 12px; }
.signalement textarea.champ { border-radius: 12px; box-sizing: border-box; width: 100%; }
.signalement label { display: grid; gap: 6px; }
.signalement textarea { resize: vertical; min-height: 110px; font: inherit; }
.signalement-types { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border: 1px solid var(--ligne); border-radius: 10px; }
.signalement-types label { display: flex; align-items: center; gap: 8px; }
.signalement-erreur { color: #ffb4a8; margin: 0; }
/* Ce qui est prévu mais pas encore fait : bien visible, pour ne pas passer pour un bug. */
.a-venir { display: inline-block; padding: 1px 8px; border: 1px dashed var(--or); border-radius: 999px; color: var(--or-clair); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; background: color-mix(in srgb, var(--fond), transparent 25%); }
