/* app/test/test.css — le mode test (app/test/test.js) : son bouton dans la pause, son panneau, le badge TEST. */

.arena-panel .test-ouvrir{display:block;margin:4px auto 10px;color:#ffd63d;border:1px dashed rgba(255,214,61,.6);background:rgba(255,214,61,.06);}
.arena-panel.test-ecran{width:min(760px,100%);text-align:left;}
.test-ecran .arena-title{margin:0 0 4px;color:#ffd63d;text-align:center;}
.arena-panel .test-note{margin:4px 0 8px;font-size:12px;color:#9ea6bd;line-height:1.35;text-align:center;}
.test-note b{color:#7dff6a;font-weight:800;}
.test-bloc{margin:0 0 8px;padding:7px 9px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);}
.test-bloc h3{margin:0 0 5px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#00e0ff;}
.test-ligne{display:flex;align-items:flex-start;gap:8px;margin:4px 0;}
.test-lib{flex:none;width:92px;padding-top:6px;font-size:11px;font-weight:700;color:#8e96ad;}
.test-puces{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:4px;}
.test-puce{--c:#00e0ff;min-height:28px;padding:4px 9px;border-radius:9px;font:inherit;font-size:11.5px;font-weight:700;color:#e7e9ee;cursor:pointer;
 background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);border-left:3px solid var(--c);touch-action:manipulation;}
.test-puce:focus-visible{border-color:rgba(255,255,255,.35);border-left-color:var(--c);outline:none;}@media (hover:hover){:where(html:not(.doigt)) .test-puce:hover{border-color:rgba(255,255,255,.35);border-left-color:var(--c);outline:none;}}
.test-puce.on{color:#07060f;background:var(--c);border-color:var(--c);}
.test-puce:active{transform:scale(.96);}
.petit-ecran .test-lib{width:70px;}
/* Les onglets du panneau : un seul bloc à la fois, pour tenir sans défiler (Tris, 24/10). */
.test-onglets{display:flex;gap:4px;margin:0 0 6px;}
.test-onglet{flex:1;min-height:32px;padding:4px 6px;border-radius:9px;font:inherit;font-size:12px;font-weight:800;color:#9ea6bd;cursor:pointer;
 background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);touch-action:manipulation;}
.test-onglet.on{color:#07060f;background:#00e0ff;border-color:#00e0ff;}
.test-badge{display:none;position:fixed;z-index:9001;left:8px;top:calc(var(--bandeau,58px) + 6px);padding:2px 7px;border-radius:6px;pointer-events:none;
 font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.12em;color:#07060f;background:#ffd63d;box-shadow:0 0 10px rgba(255,214,61,.55);}
.partie-test .test-badge{display:block;}
html.partie-test.arene-dim .test-badge{display:none;} /* caché derrière les menus (pause, panneau) */

/* Les achats libres : le compteur de cristaux devient un bouton (souligné en jaune, « test »), doré et ∞
   pendant les achats libres ; le bouton Annuler à gauche du bouton d'achat ; la maîtrise posée d'un toucher. */
button.aerg-compteur.aerg-test{font-family:inherit;cursor:pointer;border-style:dashed;border-color:rgba(255,214,61,.7);touch-action:manipulation;}
.aerg-compteur.aerg-test i{font-style:normal;font-size:.7em;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffd63d;}
.aerg-compteur.aerg-test.libre{color:#07060f;background:#ffd63d;border-style:solid;border-color:#ffd63d;box-shadow:0 0 10px rgba(255,214,61,.45);}
.aerg-compteur.aerg-test.libre i{color:#07060f;}
.aerg-compteur.aerg-test.libre .aerg-ico .cr path{fill:#07060f;}
.aerg-compteur.aerg-test.libre .aerg-ico .cr-eclair{fill:#ffd63d;}
.aerg-compteur.aerg-test:active{transform:scale(.96);}
.arena-root .arena-btn.atelier-annuler{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:auto;min-height:40px;padding:4px 10px;
 color:#ffd63d;font-weight:800;letter-spacing:0;text-transform:none;border:1px dashed rgba(255,214,61,.7);background:rgba(255,214,61,.06);box-shadow:none;}
.arena-root .arena-btn.atelier-annuler[disabled]{opacity:.4;}
.atelier-annuler .annuler-ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
.mq-libre{display:flex;gap:4px;flex-wrap:wrap;}
.mq-libre .test-puce{--c:#c46bff;min-height:24px;min-width:28px;padding:2px 7px;}
.libre-ecran .test-bloc{max-width:420px;margin-left:auto;margin-right:auto;}
html .arena-root .arena-panel .menus-bas > .arena-actions .arena-btn.atelier-annuler{flex:0 0 auto;padding:4px 12px;}
/* Téléphone couché : puces et titre plus serrés, pour que « Faire venir » tienne sans défiler. */
@media (max-height:500px){
 .test-ecran .arena-title{font-size:22px;margin:0;}
 .arena-panel.test-ecran .test-note{margin:2px 0 4px;}
 .test-ligne{margin:2px 0;}
 .test-puce{min-height:24px;padding:2px 8px;}
 .test-lib{padding-top:4px;}
}
/* Chaque arme et sa caisse (Tris, 31/10) : le nom la met en main ; à côté, sa caisse comme en partie (fond sombre,
   liseré et lueur de sa couleur, l'arme dessus) la fait tomber près du perso. */
.test-duo{display:inline-flex;gap:3px;}
.test-caisse{--c:#00e0ff;flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;min-height:28px;padding:0;border-radius:7px;cursor:pointer;
 background:#151826;border:1.5px solid var(--c);box-shadow:0 0 6px color-mix(in srgb,var(--c) 55%,transparent),inset 0 1px 0 rgba(255,255,255,.12);touch-action:manipulation;}
.test-caisse img{width:30px;height:20px;object-fit:contain;pointer-events:none;}
.test-caisse:active{transform:scale(.92);}
@media (max-height:500px){.test-caisse{min-height:24px;}}
/* Debout : le titre au-dessus des armes, pour leur laisser toute la largeur. */
@media (max-width:520px){.test-ligne.armes{flex-direction:column;gap:2px;}.test-ligne.armes .test-lib{width:auto;padding-top:0;}}
.test-paire{display:flex;flex-wrap:wrap;column-gap:14px;}
.test-paire > .test-ligne{flex:1 1 auto;}
/* « Tout au max » de l'atelier, au bout des onglets, au style « test » (jaune, pointillé). */
.arena-root .atelier-onglets .carriere-onglet.atelier-max{flex:0 0 auto;padding:0 10px;color:#ffd63d;border:1px dashed rgba(255,214,61,.7);background:rgba(255,214,61,.06);white-space:nowrap;}
.arena-root .atelier-onglets .carriere-onglet.atelier-max:active{transform:scale(.95);}
