/* jeuxplus-v1 — l'écran « Les jeux » et le lecteur (sans ombres portées, sans flash) */
#ec-jeuxplus .jp-tete .retour{margin-bottom:10px}
#ec-jeuxplus .jp-onglets{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 10px}
#ec-jeuxplus .jp-onglet{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--trait,rgba(255,255,255,.16));background:transparent;color:inherit;font:inherit;font-weight:600}
#ec-jeuxplus .jp-onglet.actif{background:#F2C94C;color:#2A2233;border-color:#F2C94C}
#ec-jeuxplus .jp-desc{margin:0;color:var(--encre-douce,#C4CFBC);line-height:1.45}
#ec-jeuxplus .jp-grille{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
#ec-jeuxplus .jp-carte{position:relative;display:flex;flex-direction:column;gap:4px;text-align:start;min-height:84px;padding:12px 12px 12px 14px;border-radius:16px;border:1px solid var(--trait,rgba(255,255,255,.14));background:rgba(255,255,255,.05);color:inherit;font:inherit;cursor:pointer}
#ec-jeuxplus .jp-carte b{font-size:1rem;line-height:1.25;padding-inline-end:20px}
#ec-jeuxplus .jp-carte span{font-size:.8rem;line-height:1.35;color:var(--encre-douce,#C4CFBC)}
#ec-jeuxplus .jp-carte small{font-size:.72rem;opacity:.65}
#ec-jeuxplus .jp-libre{align-self:flex-start;font-style:normal;font-size:.68rem;padding:2px 7px;border-radius:999px;background:rgba(111,207,151,.18);color:#9EE2BA}
#ec-jeuxplus .jp-cadenas{position:absolute;top:10px;inset-inline-end:10px;width:14px;height:16px;opacity:.75;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Crect x='1' y='7' width='12' height='9' rx='2' fill='%23C9C2D8'/%3E%3Cpath d='M3.5 7V5a3.5 3.5 0 0 1 7 0v2' fill='none' stroke='%23C9C2D8' stroke-width='1.6'/%3E%3C/svg%3E")}
html.theme-clair #ec-jeuxplus .jp-carte{background:rgba(0,0,0,.03)}
html.jp-ouvert,html.jp-ouvert body{overflow:hidden}
.jp-jeu{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 14px);background:var(--brume,#130E20);color:var(--encre,#F1ECF7)}
.jp-jeu[hidden]{display:none}
html.theme-clair .jp-jeu{background:#F7F5FB;color:#2A2433}
.jp-barre{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;min-height:44px}
.jp-fermer{width:44px;height:44px;border-radius:50%;border:1px solid var(--trait,rgba(255,255,255,.16));background:transparent;color:inherit;font-size:18px}
.jp-titre{font-weight:700;font-size:1.05rem}
.jp-info{font-size:.85rem;opacity:.75}
.jp-consigne{margin:6px 0 8px;min-height:1.4em;font-size:1rem;line-height:1.4;text-align:center;opacity:.9}
.jp-zone{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;justify-content:safe center;gap:12px;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:manipulation}
.jp-zone button{font:inherit}
.jp-fin{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(19,14,32,.82);z-index:5}
html.theme-clair .jp-fin{background:rgba(247,245,251,.88)}
.jp-fin-boite{max-width:420px;width:100%;text-align:center;padding:22px 18px;border-radius:22px;border:1px solid var(--trait,rgba(255,255,255,.16));background:var(--brume,#1B1430)}
html.theme-clair .jp-fin-boite{background:#fff}
.jp-fin-boite h3{margin:0 0 8px;font-size:1.3rem}
.jp-fin-boite p{margin:0 0 16px;line-height:1.5;opacity:.9}
.jp-fin-boutons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.jp-fin-boutons .bouton{min-height:48px}
.jp-erreur{opacity:.8;text-align:center}

/* clarté (08/10) : l'écran de règle avant la partie */
.jp-regle{max-width:400px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;text-align:center;padding:6px 4px 12px}
.jp-regle-desc{margin:0;font-weight:700;font-size:1.05rem;line-height:1.4}
.jp-regle-txt{margin:0;line-height:1.55;opacity:.92;text-align:start}
.jp-regle-go{min-height:52px;font-size:1.05rem;margin-top:4px}
/* clarté (08/10) : l'application n'a pas de classe .bouton globale ; les boutons du lecteur (règle, fin de partie) ont leur style ici */
.jp-jeu .bouton{-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:0;border-radius:999px;background:#F2C94C;color:#2A2233;font:inherit;font-weight:700;cursor:pointer}
.jp-jeu .bouton.secondaire{background:transparent;color:inherit;border:1px solid var(--trait,rgba(255,255,255,.22))}
html.theme-clair .jp-jeu .bouton.secondaire{border-color:rgba(0,0,0,.2)}

/* l'ancienne tuile « Les jeux » (billes, quilles, billard — toujours dans Les gestes) ferait doublon avec la nouvelle */
#rf-x-jeux{display:none!important}
