/* La Battle d'Aura : même style que les autres jeux (vert du site #16855a, #5cc79a) */
#features.ba-section { padding-top: 1em; }
.ba-outil { max-width: 72em; width: 100%; box-sizing: border-box; margin: 0 auto; text-align: left; }
.ba { position: relative; font-family: 'Nunito', 'Segoe UI', Arial, sans-serif; color: #444; -webkit-user-select: none; user-select: none; }
.ba [hidden] { display: none !important; }
.ba h2, .ba h3, .ba b, .ba-go, .ba-opt, .ba-geste, .ba-titre, .ba-fx, .ba-banniere { font-family: 'Fredoka', 'Nunito', sans-serif; }
.ba h2 { margin: 0 0 .4em; color: #16855a; font-size: 1.6em; line-height: 1.2; }
.ba h3 { margin: 1.3em 0 .6em; color: #16855a; font-size: 1.05em; text-align: center; letter-spacing: .04em; }
.ba [role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ba [role="button"]:focus-visible { outline: 3px solid #f2b01e; outline-offset: 2px; }
.ba-rgpd { text-align: center; color: #999; font-size: .85em; margin: 1em 0 0; }
.ba-ecran { background: #fff; border: 2px solid #e5e5e5; border-radius: 1.2em; padding: 1em 1.2em 1.4em; }
.ba-info { color: #888; text-align: center; font-size: .95em; }
.ba-centre { text-align: center; margin-top: 1em; }
.ba-bts { display: flex; flex-wrap: wrap; gap: .8em; justify-content: center; margin-top: 1.2em; }
.ba-go { display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.4em; border-radius: .8em; background: #16855a; color: #fff; font-weight: 600; font-size: 1.02em; box-shadow: 0 .2em 0 #0e5c3d; }
.ba-go:hover { background: #127048; }
.ba-go:active { transform: translateY(.15em); box-shadow: 0 .05em 0 #0e5c3d; }
.ba-go2 { background: #fff; color: #16855a; border: 2px solid #16855a; box-shadow: none; }
.ba-go2:hover { background: #eaf7f1; }
.ba-go small { font-weight: 400; opacity: .85; }
.ba-mini { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4em; height: 2.4em; padding: 0 .7em; border-radius: 1.2em; background: #f3f5f4; color: #555; font-weight: 700; }
.ba-mini:hover { background: #eaf7f1; color: #16855a; }
.ba-pill { display: inline-block; padding: .1em .7em; border-radius: 1em; background: #eaf7f1; color: #16855a; font-weight: 700; font-size: .9em; }
.ba-ok { color: #16855a; font-weight: 700; }
.ba-ko { color: #c0392b; font-weight: 700; }

/* Accueil */
.ba-intro { display: flex; align-items: center; gap: 1.2em; max-width: 52em; margin: 0 auto; }
.ba-intro p { line-height: 1.6; margin: 0; }
.ba-portrait { width: 180px; height: 117px; flex: none; border-radius: 1em; background: linear-gradient(#2b2350, #6b4fb0); }
.ba-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: .8em; }
.ba-classes { grid-template-columns: repeat(4, 1fr); }
.ba-tuile { display: flex; flex-direction: column; gap: .2em; padding: .85em 1em; border: 2px solid #e5e5e5; border-radius: 1em; color: #777; line-height: 1.4; text-align: center; transition: border-color .2s, transform .15s; }
.ba-tuile b { color: #16855a; font-size: 1.12em; font-weight: 600; }
.ba-tuile span { font-size: .88em; }
.ba-tuile:hover { border-color: #5cc79a; transform: translateY(-2px); }
.ba-tuile.actif { border-color: #16855a; box-shadow: 0 0 0 3px #d4efe3; background: #f6fcf9; }
.ba-niveaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: .7em; }
.ba-niv { display: flex; flex-direction: column; align-items: center; gap: .15em; padding: .7em .6em; border: 2px solid #e5e5e5; border-radius: .9em; background: #fff; text-align: center; transition: border-color .2s, transform .15s; }
.ba-niv b { color: #16855a; font-size: 1.08em; }
.ba-niv span { font-size: .88em; color: #666; line-height: 1.3; }
.ba-niv .ba-adv-ico { font-size: 2em; line-height: 1.2; font-family: 'Fredoka', sans-serif; color: #c0392b; }
.ba-niv .ba-gain { color: #6a4fc2; font-weight: 700; margin-top: .2em; }
.ba-niv.fait { border-color: #5cc79a; background: #f6fcf9; }
.ba-niv.fait .ba-gain { color: #16855a; }
.ba-niv:hover { border-color: #5cc79a; transform: translateY(-2px); }
.ba-niv.off { opacity: .55; cursor: default; }
.ba-niv.off:hover { transform: none; border-color: #e5e5e5; }
.ba-regles { max-width: 52em; margin: 0 auto; }
.ba-regles ul { margin: 0; padding-left: 1.2em; line-height: 1.6; }
.ba-regles li { margin-bottom: .35em; list-style: disc; }
.ba-lex dt { font-weight: 700; color: #333; margin-top: .7em; font-family: 'Fredoka', 'Nunito', sans-serif; }
.ba-lex dd { margin: .15em 0 0 1.2em; line-height: 1.5; }
.ba-fin { text-align: center; }
.ba-fin p { line-height: 1.6; }

/* La battle : toujours entièrement visible à l'écran */
.ba-jeu { max-width: calc((100vh - 27em) * 800 / 340); min-width: min(100%, 40em); margin: 0 auto; }
.ba-hud { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.1em; padding: .5em .8em; margin-bottom: .5em; background: #fff; border: 2px solid #e5e5e5; border-radius: 1em; font-weight: 700; color: #333; }
.ba-titre { color: #16855a; }
.ba-droite { margin-left: auto; display: flex; gap: .4em; }
.ba-score { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .6em; margin-bottom: .4em; }
.ba-score b { display: block; color: #333; font-size: 1em; line-height: 1.2; }
.ba-aura { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.35em; color: #6a4fc2; }
.ba-j1 { text-align: right; }
.ba-jauge { position: relative; height: 1.2em; border: 2px solid #333; border-radius: .8em; overflow: hidden; background: var(--c2, #f08a24); }
.ba-jauge i { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--c1, #16855a); transition: width .6s; }
.ba-jauge::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 3px dashed #fff; }
.ba-manches { text-align: center; margin-top: .3em; }
.ba-manches span { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; margin: 0 .12em; border: 2px solid #ccc; border-radius: 50%; font-size: .75em; font-weight: 700; color: #777; background: #fff; }
.ba-manches span.fait { background: #eaf7f1; border-color: #5cc79a; }
.ba-manches span.en-cours { background: #fff3cf; border-color: #f2b01e; color: #333; transform: scale(1.2); }
.ba-cadre { position: relative; border-radius: 1em; overflow: hidden; border: 2px solid #e5e5e5; background: linear-gradient(#2b2350, #4b3a8a 60%, #6b4fb0); line-height: 0; }
.ba-scene { display: block; width: 100%; aspect-ratio: 800 / 340; }
.ba-foule { position: absolute; left: 0; right: 0; bottom: .2em; display: flex; justify-content: space-around; font-size: clamp(14px, 2.4vw, 26px); line-height: 1.2; pointer-events: none; }
.ba-foule span { display: inline-block; }
.ba-cadre.hype .ba-foule span { animation: ba-saut .35s infinite alternate; }
.ba-cadre.hype .ba-foule span:nth-child(2n) { animation-delay: .15s; }
@keyframes ba-saut { to { transform: translateY(-.45em); } }
.ba-fx { position: absolute; transform: translate(-50%, -50%); font-weight: 700; white-space: nowrap; pointer-events: none; line-height: 1.2; font-size: clamp(16px, 3.2vw, 34px); color: #fff; text-shadow: 0 3px 0 #000, 0 0 12px rgba(0,0,0,.6); animation: ba-vole 1.6s ease-out forwards; }
.ba-fx.gros { font-size: clamp(22px, 4.8vw, 52px); color: #ffe36b; }
.ba-fx.ko { color: #ff8a8a; }
.ba-fx.or { color: #ffd23f; }
.ba-fx.crit { color: #7ff0ff; }
@keyframes ba-vole { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -140%) scale(1); } }
.ba-banniere { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: clamp(26px, 6vw, 64px); font-weight: 700; color: #ffe36b; line-height: 1.2; text-shadow: 0 4px 0 #000; pointer-events: none; white-space: nowrap; animation: ba-ban 1.4s forwards; }
@keyframes ba-ban { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* Les deux panneaux (choix des gestes, questions) */
.ba-panneaux { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-top: .6em; }
.ba-pan { position: relative; min-height: 11em; padding: .6em .7em 1.1em; background: #fff; border: 2px solid #e5e5e5; border-top: .35em solid var(--c, #16855a); border-radius: 1em; }
.ba-pt { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; margin-bottom: .4em; }
.ba-pt b { color: #333; }
.ba-pt small { color: #999; }
.ba-gestes { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2em, 1fr)); gap: .4em; }
.ba-geste { position: relative; display: flex; flex-direction: column; align-items: center; padding: .35em .3em; border: 2px solid #e5e5e5; border-radius: .8em; background: #fff; text-align: center; font-size: .86em; line-height: 1.2; color: #333; transition: border-color .2s, transform .15s; }
.ba-geste:hover { border-color: #5cc79a; transform: translateY(-2px); }
.ba-geste .ba-gi { font-size: 1.5em; }
.ba-geste .ba-gv { color: #6a4fc2; font-weight: 700; font-size: .92em; }
.ba-geste .ba-gv i { color: #f2b01e; font-style: normal; }
.ba-geste .ba-k { position: absolute; left: .35em; top: .15em; font-size: .75em; color: #aaa; }
.ba-geste.off { opacity: .35; cursor: default; }
.ba-geste.off:hover { transform: none; border-color: #e5e5e5; }
.ba-geste.dejavu { border-style: dashed; }
.ba-geste.dejavu::after { content: "déjà vu ÷2"; position: absolute; right: .3em; top: .15em; font-size: .68em; color: #c0392b; }
.ba-q { margin: .4em 0 .6em; text-align: center; font-family: 'Fredoka', 'Nunito', sans-serif; font-weight: 600; font-size: 1.35em; color: #333; line-height: 1.4; }
.ba-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.ba-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .55em .3em; border: 2px solid #16855a; border-radius: .8em; background: #fff; color: #16855a; font-weight: 600; font-size: 1.2em; line-height: 1.2; }
.ba-opt:hover { background: #eaf7f1; }
.ba-opt small { font-size: .6em; color: #999; font-weight: 400; }
.ba-msg { text-align: center; padding: 1em .4em; line-height: 1.5; font-size: 1.05em; }
.ba-clash { margin-bottom: .3em; padding: .2em; border-radius: .6em; background: #fff3cf; color: #8a6200; text-align: center; font-weight: 700; font-family: 'Fredoka', sans-serif; }
.ba-temps { position: absolute; left: .7em; right: .7em; bottom: .45em; height: .4em; border-radius: .2em; background: #eee; overflow: hidden; }
.ba-temps i { display: block; height: 100%; width: 100%; background: #5cc79a; }
.ba-temps i.crit { background: #3aa0e0; }
.ba-temps i.urgent { background: #c0392b; }
.ba-aide { text-align: center; color: #999; font-size: .85em; margin: .5em 0 0; }
.tactile .ba-aide { display: none; }
.ba .tn-f { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .12em; line-height: 1.1; }
.ba .tn-f > span { padding: 0 .2em; }
.ba .tn-f > span:first-child { border-bottom: .08em solid currentColor; }
.ba .tn-rac { border-top: .08em solid currentColor; padding: 0 .1em; }

/* Plein écran */
.ba-outil:fullscreen { background: #fff; max-width: none; padding: .8em; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.ba-outil:fullscreen .ba-rgpd, .ba-outil:fullscreen .rev-bandeau { display: none; }
.ba-outil:fullscreen .ba-jeu { width: min(100%, calc((100vh - 23em) * 800 / 340)); max-width: none; }
.ba-outil:fullscreen .ba-ecran { max-height: calc(100vh - 2em); overflow: auto; }

@media (max-width: 640px) {
	.ba-intro { flex-direction: column; text-align: center; }
	.ba-classes { grid-template-columns: repeat(2, 1fr); }
	.ba-jeu { min-width: 0; }
	.ba-panneaux { gap: .35em; }
	.ba-pan { padding: .4em .4em 1em; font-size: .85em; }
	.ba-gestes { grid-template-columns: 1fr 1fr; }
	.ba-opts { grid-template-columns: 1fr; }
	.ba-aura { font-size: 1.05em; }
}
.ba-lancer { display: flex; flex-wrap: wrap; justify-content: center; gap: 1em; }
.ba-niv .jeu-pill { margin-top: .5em; }
.ba-astuce { margin: 0 0 .4em; text-align: center; color: #6a4fc2; font-size: .85em; font-weight: 700; }
.ba-geste .ba-gd { color: #b88400; font-size: .78em; font-weight: 700; }
