/* Epoko — styles des composants. Couleurs, rayons, ombres et traits viennent de tokens.css.
   Hors jeu : jetons de rôle (fond, surface, texte, contour…), qui suivent le mode.
   Sur la scène et sur les objets du musée (Carte, MiniCarte trouvée, Rarete) : jetons fixes (blanc, encre…). */
body { margin: 0; font-family: var(--font-display); background: var(--fond); color: var(--texte); }

.ep-icone { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* Logo : « epok » + la cible en guise de « o » */
.ep-logo { display: inline-flex; align-items: baseline; color: var(--texte); line-height: 1; }
.ep-logo-mot { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -0.033em; }
.ep-logo-o { display: inline-flex; margin-left: 0.01em; transform: translateY(0.01em); }
.ep-logo-o .ep-marque { display: block; }
.ep-logo-sur-cobalt { color: var(--blanc); }
.ep-marque { flex-shrink: 0; }

/* Octave : ombre dure, comme tout objet détaché */
.ep-octave { display: inline-block; flex-shrink: 0; overflow: visible; filter: drop-shadow(3px 3px 0 var(--ombre)); }
.ep-octave-sans-ombre { filter: none; }

/* Bouton */
.ep-btn { box-sizing: border-box; height: 56px; padding: 0 var(--espace-5); border: var(--trait) solid var(--contour); border-radius: var(--rayon-bouton); box-shadow: var(--ombre-bouton); background: var(--surface); color: var(--texte); display: inline-flex; align-items: center; justify-content: center; gap: var(--espace-2); font-family: var(--font-display); font-size: 17px; font-weight: 800; cursor: pointer; transition: transform 80ms ease, box-shadow 80ms ease; }
.ep-btn:active { transform: translate(4px, 4px); box-shadow: none; }
.ep-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ep-btn-primaire { background: var(--cobalt); color: var(--sur-cobalt); }
.ep-btn-indice { background: var(--beurre); color: var(--sur-accent); }
.ep-btn-lien { height: auto; padding: var(--espace-1) var(--espace-2); border: none; box-shadow: none; background: none; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ep-btn-lien:active { transform: none; }
.ep-btn-large { width: 100%; }
.ep-btn-petit { height: 44px; padding: 0 14px; gap: 6px; border-radius: var(--rayon-pastille); box-shadow: var(--ombre-pastille); font-size: 15px; }
.ep-btn-petit:active { transform: translate(3px, 3px); }
.ep-btn-compteur { min-width: 24px; height: 24px; border-radius: var(--rayon-pilule); background: var(--texte); color: var(--surface); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ep-btn-indice .ep-btn-compteur { background: var(--encre); color: var(--blanc); }

/* Badge */
.ep-badge { box-sizing: border-box; height: 36px; padding: 0 var(--espace-3); border: var(--trait) solid var(--contour); border-radius: var(--rayon-pilule); box-shadow: var(--ombre-pastille); background: var(--surface); color: var(--texte); display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.ep-badge-serie { background: var(--beurre); color: var(--sur-accent); }
.ep-badge-serie .ep-icone { color: var(--tomate); stroke: var(--encre); stroke-width: 2px; }
.ep-badge-nouveau { background: var(--tomate); color: var(--sur-accent); }
.ep-badge-succes { background: var(--menthe); color: var(--sur-accent); }

/* HUD */
.ep-hud { display: flex; align-items: center; gap: var(--espace-2); }
.ep-pastille { box-sizing: border-box; height: 42px; padding: 0 10px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pastille); box-shadow: var(--ombre-pastille); background: var(--blanc); color: var(--encre); display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ep-pastille-btn { width: 44px; height: 44px; padding: 0; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ep-pastille-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.ep-pastille-btn:focus-visible { outline: 3px solid var(--blanc); outline-offset: 2px; }
.ep-pastille-vies { padding: 0 8px; gap: 2px; }
.ep-pastille-critique { background: var(--tomate); animation: ep-tremble 1s ease-in-out infinite; }
.ep-pastille-niveau { margin-left: auto; background: var(--beurre); flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.05; }
.ep-pastille-surtitre { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.ep-pastille-niv { font-size: 14px; }
.ep-sur-sombre .ep-pastille { box-shadow: var(--ombre-sur-scene-sombre); }
@keyframes ep-tremble { 0%, 80%, 100% { transform: translateX(0); } 84% { transform: translateX(-2px); } 88% { transform: translateX(2px); } 92% { transform: translateX(-2px); } 96% { transform: translateX(1px); } }

/* Consigne */
.ep-consigne { display: inline-block; padding: 8px 14px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pilule); background: var(--blanc); color: var(--encre); font-size: 14px; font-weight: 700; }

/* Cible : projecteur + anneau + étiquette, dans un conteneur positionné */
.ep-cible { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ep-projecteur { position: absolute; border-radius: 50%; box-shadow: 0 0 0 2000px var(--voile); animation: ep-projecteur 300ms ease-out both; }
.ep-anneau { position: absolute; box-sizing: border-box; border-radius: 50%; border: 5px solid var(--tomate); box-shadow: 0 0 0 2.5px var(--encre), 0 0 0 5.5px var(--blanc), inset 0 0 0 2.5px var(--encre); animation: ep-anneau 300ms ease-out both; }
.ep-etiquette { position: absolute; transform: rotate(-4deg); padding: 10px 14px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-vignette); background: var(--blanc); box-shadow: var(--ombre-pastille); display: flex; flex-direction: column; gap: 3px; color: var(--encre); }
.ep-etiquette-objet { font-size: 19px; font-weight: 800; line-height: 1.1; }
.ep-etiquette-date { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@keyframes ep-projecteur { from { opacity: 0; } to { opacity: 1; } }
@keyframes ep-anneau { from { transform: scale(1.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Toucher raté */
.ep-rate { position: absolute; display: flex; align-items: center; gap: var(--espace-2); transform: translate(-20px, -20px); }
.ep-rate-croix { box-sizing: border-box; width: 40px; height: 40px; border-radius: 50%; border: var(--trait) solid var(--encre); background: var(--blanc); box-shadow: var(--ombre-pastille); color: var(--tomate); display: flex; align-items: center; justify-content: center; }
.ep-rate-texte { padding: 6px 12px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-pilule); background: var(--tomate); box-shadow: var(--ombre-pastille); color: var(--encre); font-size: 14px; font-weight: 800; white-space: nowrap; }

/* Étoiles */
.ep-etoiles { display: inline-flex; gap: 4px; }

/* Carte */
.ep-carte { box-sizing: border-box; padding: 14px 16px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-bouton); box-shadow: var(--ombre-bouton); background: var(--blanc); color: var(--encre); display: flex; flex-direction: column; gap: 9px; }
.ep-carte-haut { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-3); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.ep-carte-objet { margin: 0; font-size: 26px; line-height: 28px; font-weight: 800; font-variation-settings: "wdth" 85; letter-spacing: -0.02em; }
.ep-carte-texte { margin: 0; font-size: 14px; line-height: 20px; color: var(--graphite); }
.ep-ecart { padding: 8px 12px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-vignette); background: var(--tomate); color: var(--encre); display: flex; flex-direction: column; gap: 1px; }
.ep-ecart-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.ep-ecart-valeur { font-size: 26px; line-height: 28px; font-weight: 800; font-variation-settings: "wdth" 85; }
.ep-carte-meta { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.ep-carte-filet { height: 2px; background: var(--encre); }
.ep-carte-bas { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-3); }

/* Tuile de salle */
.ep-salle { box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 10px; border: var(--trait) solid var(--contour); border-radius: var(--rayon-carte); box-shadow: var(--ombre-bouton); background: var(--surface); color: var(--texte); }
.ep-salle-vignette { box-sizing: border-box; width: 76px; height: 62px; flex-shrink: 0; border: var(--trait-fin) solid var(--contour); border-radius: var(--rayon-vignette); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--fond); }
.ep-salle-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-salle-corps { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ep-salle-surtitre { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--texte-second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-salle-nom { font-size: 17px; line-height: 20px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-salle-progression { display: flex; align-items: center; gap: var(--espace-2); }
.ep-salle-progression .ep-jauge { flex-grow: 1; }
.ep-salle-compte { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ep-salle-condition { font-size: 13px; font-weight: 600; color: var(--texte-second); }
.ep-jauge { box-sizing: border-box; height: 10px; border: var(--trait-fin) solid var(--contour); border-radius: var(--rayon-pilule); background: var(--surface); overflow: hidden; }
.ep-jauge-plein { height: 100%; background: var(--progression); }
.ep-salle-fermee { background: var(--surface-creuse); border-style: dashed; border-color: var(--texte-second); box-shadow: none; color: var(--texte-second); }
.ep-salle-fermee .ep-salle-vignette { border-color: var(--texte-second); color: var(--texte-second); background: var(--surface-creuse); }
.ep-salle-fermee .ep-salle-nom { color: var(--texte-second); }

/* Barre d'onglets */
.ep-onglets { display: flex; justify-content: space-around; align-items: flex-start; padding: 10px 12px; background: var(--surface); border-top: var(--trait) solid var(--contour); }
.ep-onglet { background: none; border: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--texte-second); cursor: pointer; min-width: 64px; }
.ep-onglet-icone { box-sizing: border-box; width: 56px; height: 32px; border-radius: var(--rayon-pilule); display: flex; align-items: center; justify-content: center; }
.ep-onglet[aria-current="page"] { color: var(--texte); font-weight: 800; }
.ep-onglet[aria-current="page"] .ep-onglet-icone { border: var(--trait-fin) solid var(--contour); background: var(--beurre); color: var(--sur-accent); }
.ep-onglet:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

/* Rail d'onglets (iPad, largeur régulière) */
.ep-onglets-rail { box-sizing: border-box; width: 96px; height: 100%; flex-direction: column; justify-content: flex-start; align-items: center; gap: 22px; padding: 84px 0 28px; border-top: none; border-right: var(--trait) solid var(--contour); }
.ep-onglets-marque { margin-top: auto; }

/* Segments */
.ep-segments { box-sizing: border-box; display: flex; gap: 2px; padding: 3px; border: var(--trait) solid var(--contour); border-radius: var(--rayon-pilule); background: var(--surface); }
.ep-segment { flex: 1 1 0; box-sizing: border-box; height: 38px; padding: 0 10px; border: var(--trait) solid transparent; border-radius: var(--rayon-pilule); background: transparent; color: var(--texte); font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ep-segment[aria-pressed="true"] { border-color: var(--contour); background: var(--beurre); color: var(--sur-accent); font-weight: 800; }
.ep-segment:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Interrupteur */
.ep-inter { position: relative; box-sizing: border-box; width: 52px; height: 32px; flex-shrink: 0; padding: 0; border: var(--trait) solid var(--contour); border-radius: var(--rayon-pilule); background: var(--surface-creuse); cursor: pointer; }
.ep-inter-bouton { position: absolute; top: 2.5px; left: 2.5px; box-sizing: border-box; width: 22px; height: 22px; border: var(--trait) solid var(--contour); border-radius: 50%; background: var(--surface); transition: left 120ms ease; }
.ep-inter[aria-checked="true"] { background: var(--beurre); }
.ep-inter[aria-checked="true"] .ep-inter-bouton { left: 22.5px; }
.ep-inter:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Stat */
.ep-stat { box-sizing: border-box; min-width: 0; padding: 12px 14px; border: var(--trait) solid var(--contour); border-radius: var(--rayon-bouton); box-shadow: var(--ombre-bouton); background: var(--surface); color: var(--texte); display: flex; flex-direction: column; gap: 3px; }
.ep-stat-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--texte-second); }
.ep-stat-valeur { display: flex; align-items: center; gap: 6px; font-size: 26px; line-height: 30px; font-weight: 800; font-variation-settings: "wdth" 85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-stat-valeur .ep-icone-serie { color: var(--tomate); stroke: var(--encre); stroke-width: 2px; }
.ep-stat-beurre { background: var(--beurre); color: var(--sur-accent); }
.ep-stat-tomate { background: var(--tomate); color: var(--sur-accent); }
.ep-stat-beurre .ep-stat-label, .ep-stat-tomate .ep-stat-label { color: var(--sur-accent); }

/* Avatar */
.ep-avatar { box-sizing: border-box; flex-shrink: 0; border: var(--trait-fin) solid var(--contour); border-radius: 50%; background: var(--beurre); color: var(--sur-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.ep-avatar-menthe { background: var(--menthe); }
.ep-avatar-blanc { background: var(--blanc); }
.ep-avatar-cobalt { background: var(--cobalt); color: var(--sur-cobalt); }

/* Listes */
.ep-liste { box-sizing: border-box; border: var(--trait) solid var(--contour); border-radius: 18px; box-shadow: var(--ombre-bouton); background: var(--surface); overflow: hidden; }
.ep-ligne { box-sizing: border-box; min-height: 56px; padding: 8px 14px; display: flex; align-items: center; gap: var(--espace-3); background: var(--surface); color: var(--texte); }
.ep-liste > .ep-ligne + .ep-ligne { border-top: var(--trait-fin) solid var(--contour); }
.ep-ligne-corps { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep-ligne-titre { font-size: 17px; line-height: 22px; font-weight: 700; }
.ep-ligne-titre-fort { font-weight: 800; }
.ep-ligne-sous { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--texte-second); }
.ep-ligne-meta { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--texte-second); }
.ep-classement .ep-ligne-titre { flex-grow: 1; min-width: 0; }
.ep-classement-valeur { flex-shrink: 0; min-width: 62px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.ep-classement-temps { font-size: 17px; line-height: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ep-classement-second { font-size: 12px; line-height: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--texte-second); }
.ep-classement-toi .ep-classement-second { color: var(--graphite); }
.ep-rang { width: 30px; flex-shrink: 0; text-align: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--texte-second); }
.ep-rang-1, .ep-rang-2, .ep-rang-3 { box-sizing: border-box; height: 30px; border: var(--trait-fin) solid var(--contour); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--sur-accent); }
.ep-rang-1 { background: var(--beurre); }
.ep-rang-2 { background: var(--blanc); }
.ep-rang-3 { background: var(--craie-sombre); }
.ep-classement-toi { background: var(--beurre); color: var(--sur-accent); }
.ep-classement-toi .ep-ligne-sous, .ep-classement-toi .ep-ligne-meta { color: var(--graphite); }
.ep-classement-toi .ep-rang { width: auto; min-width: 30px; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--sur-accent); }
.ep-classement-toi .ep-rang sup { font-size: 0.6em; }

/* Offre d'abonnement */
.ep-offre { flex: 1 1 0; min-width: 0; box-sizing: border-box; padding: 12px 14px; border: var(--trait) solid var(--contour); border-radius: 18px; background: var(--surface); color: var(--texte); text-align: left; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); cursor: pointer; }
.ep-offre[aria-checked="true"] { background: var(--beurre); color: var(--sur-accent); box-shadow: var(--ombre-bouton); }
.ep-offre[aria-checked="true"] .ep-radio { border-color: var(--encre); background: var(--blanc); }
.ep-offre:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ep-offre-haut { display: flex; justify-content: space-between; align-items: center; }
.ep-offre-titre { font-size: 17px; font-weight: 800; }
.ep-radio { box-sizing: border-box; width: 24px; height: 24px; border: var(--trait) solid var(--contour); border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.ep-offre[aria-checked="true"] .ep-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--encre); }
.ep-offre-prix { font-size: 26px; line-height: 30px; font-weight: 800; font-variation-settings: "wdth" 85; white-space: nowrap; }
.ep-offre-periode { font-size: 13px; font-weight: 600; }

/* Case de niveau (grille d'une salle) */
.ep-grille-niveaux { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; }
.ep-case { box-sizing: border-box; height: 58px; padding: 0; border: var(--trait) solid var(--contour); border-radius: var(--rayon-pastille); box-shadow: var(--ombre-pastille); background: var(--surface); color: var(--texte); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--font-display); font-size: 17px; line-height: 18px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; }
.ep-case:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.ep-case:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ep-case-etoiles { display: flex; gap: 1px; }
.ep-case-courant { background: var(--cobalt); color: var(--sur-cobalt); }
.ep-case-ferme { border-width: var(--trait-fin); box-shadow: none; background: var(--surface-creuse); color: var(--texte-second); font-weight: 700; cursor: default; }
.ep-case-plus { position: relative; border-width: var(--trait-fin); border-style: dashed; box-shadow: none; background: var(--surface-creuse); color: var(--texte-second); font-weight: 700; }
.ep-case-plus-marque { position: absolute; top: -7px; right: -7px; box-sizing: border-box; width: 20px; height: 20px; border: var(--trait-fin) solid var(--contour); border-radius: 50%; background: var(--cobalt); color: var(--sur-cobalt); font-size: 14px; line-height: 1; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Réponses de la question bonus */
.ep-grille-bonus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-3); }
.ep-choix { box-sizing: border-box; min-height: 64px; padding: 8px 10px; border: var(--trait) solid var(--contour); border-radius: var(--rayon-bouton); box-shadow: var(--ombre-bouton); background: var(--surface); color: var(--texte); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-display); cursor: pointer; }
.ep-choix:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: none; }
.ep-choix:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ep-choix:disabled { cursor: default; }
.ep-choix-reponse { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 17px; line-height: 21px; font-weight: 800; text-align: center; }
.ep-choix-sous { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.ep-choix-juste { background: var(--menthe); color: var(--sur-accent); }
.ep-choix-faux { background: var(--tomate); color: var(--sur-accent); }
.ep-choix-eteint { border: var(--trait-fin) solid var(--texte-second); box-shadow: none; background: var(--surface-creuse); color: var(--texte-second); }

/* Pays (classements) */
.ep-pays { flex-shrink: 0; padding: 2px 6px; border: var(--trait-fin) solid var(--contour); border-radius: 6px; background: var(--surface); color: var(--texte); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }

/* Mini-carte de collection */
.ep-minicarte { box-sizing: border-box; min-width: 0; padding: 8px 8px 12px; border: var(--trait) solid var(--encre); border-radius: var(--rayon-bouton); box-shadow: var(--ombre-bouton); background: var(--blanc); color: var(--encre); display: flex; flex-direction: column; gap: 8px; }
.ep-minicarte-vignette { box-sizing: border-box; aspect-ratio: 3 / 2; border: var(--trait-fin) solid var(--encre); border-radius: var(--rayon-vignette); overflow: hidden; background: var(--craie-sombre); display: flex; align-items: center; justify-content: center; }
.ep-minicarte-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-minicarte-texte { padding: 0 4px; display: flex; flex-direction: column; gap: 3px; }
.ep-minicarte-sur { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--graphite); }
.ep-minicarte-objet { font-size: 17px; line-height: 20px; font-weight: 800; }
.ep-minicarte-bas { margin: 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.ep-minicarte-ecart { padding: 3px 8px; border: var(--trait-fin) solid var(--encre); border-radius: 8px; background: var(--tomate); font-size: 14px; font-weight: 800; white-space: nowrap; }
.ep-minicarte-vide { border-width: var(--trait-fin); border-style: dashed; border-color: var(--contour); box-shadow: none; background: var(--surface-creuse); color: var(--texte); }
.ep-minicarte-vide .ep-minicarte-vignette { border-color: var(--contour); background: var(--surface); font-size: 48px; font-weight: 800; color: var(--texte-second); }
.ep-minicarte-vide .ep-minicarte-objet, .ep-minicarte-vide .ep-minicarte-sur { color: var(--texte-second); }

@media (prefers-reduced-motion: reduce) {
  .ep-btn, .ep-pastille-critique, .ep-projecteur, .ep-anneau { animation: none; transition: none; }
  .ep-inter-bouton { transition: none; }
}

/* Rareté des cartes : couleur + gemmes + mot, jamais la couleur seule */
.ep-rarete { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: var(--trait-fin) solid var(--encre); border-radius: var(--rayon-pilule); background: var(--blanc); color: var(--encre); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.ep-rarete-petite { height: 22px; padding: 0 7px; gap: 4px; font-size: 10px; }
.ep-gemmes { display: inline-flex; gap: 1px; }
.ep-gemmes svg { display: block; }
.ep-gemme-pleine path { fill: currentColor; }
.ep-gemme-vide path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.ep-rarete-rare { background: var(--menthe); }
.ep-rarete-epique { background: var(--cobalt); color: var(--sur-cobalt); }
.ep-rarete-legendaire { background: var(--beurre); }

/* Champ : saisie d'une ligne de texte. Pas d'ombre : l'ombre dure reste la marque de ce qui s'appuie. */
.ep-champ { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: var(--espace-2); color: var(--texte); }
.ep-champ-libelle { font-family: var(--font-display); font-size: 17px; line-height: 22px; font-weight: 700; color: var(--texte); }
.ep-champ-boite { box-sizing: border-box; min-height: 56px; padding: 0 var(--espace-3) 0 var(--espace-4); display: flex; align-items: center; gap: var(--espace-2); border: var(--trait) solid var(--contour); border-radius: var(--rayon-bouton); background: var(--surface); cursor: text; }
.ep-champ-boite:focus-within, .ep-champ-en-saisie .ep-champ-boite { outline: 3px solid var(--focus); outline-offset: 3px; }
.ep-champ-saisie { box-sizing: border-box; flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; padding: var(--espace-2) 0; border: 0; border-radius: 0; background: transparent; color: var(--texte); font-family: var(--font-display); font-size: 17px; line-height: 24px; font-weight: 400; caret-color: var(--focus); -webkit-appearance: none; appearance: none; }
.ep-champ-saisie:focus, .ep-champ-saisie:focus-visible { outline: none; }
.ep-champ-saisie::placeholder { color: var(--texte-second); opacity: 1; }
.ep-champ-etat { box-sizing: border-box; flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: var(--trait-fin) solid var(--contour); border-radius: var(--rayon-pilule); color: var(--sur-accent); }
.ep-champ-valide .ep-champ-etat { background: var(--menthe); }
.ep-champ-erreur .ep-champ-etat { background: var(--tomate); }
.ep-champ-bas { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; column-gap: var(--espace-3); row-gap: var(--espace-1); }
.ep-champ-message { flex: 1 1 12em; min-width: 0; margin: 0; font-family: var(--font-display); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--texte-second); }
.ep-champ-message:empty { display: none; }
.ep-champ-valide .ep-champ-message, .ep-champ-erreur .ep-champ-message { color: var(--texte); font-weight: 700; }
.ep-champ-compteur { flex: 0 0 auto; margin-left: auto; font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--texte-second); }
.ep-champ-envoi .ep-champ-boite { border-color: var(--texte-second); background: var(--surface-creuse); cursor: progress; }
.ep-champ-envoi .ep-champ-saisie { color: var(--texte-second); cursor: progress; }
.ep-champ-masque { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Bouton désactivé : creux et sans ombre, quelle que soit la variante */
.ep-btn:disabled { border-color: var(--texte-second); background: var(--surface-creuse); color: var(--texte-second); box-shadow: none; cursor: not-allowed; }
.ep-btn:disabled:active { transform: none; }
