/* FAB-05 — L'Arène : habillage commun (jeu et page de démonstration). Direction « L'Académie de lumière » :
   bleu nuit, or, rouge LS4U, pierre claire ; titres à empattements, interface en sans-serif net. */
:root {
  --ar-nuit: #0a1030; --ar-nuit2: #16225a; --ar-or: #e3b84f; --ar-or2: #f6d77a; --ar-pierre: #d9d2c0; --ar-rouge: #d0202c; --ar-bleu: #6f93ff;
  --ar-titre: "Trajan Pro", "Cinzel", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

/* ----- Icône et volet des réglages ----- */
.arene-reglages { position: absolute; top: max(8px, env(safe-area-inset-top)); right: 8px; z-index: 6; display: grid; justify-items: end; gap: 6px; }
.arene-icone { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ar-or); background: radial-gradient(circle at 35% 30%, #2a3f9c, var(--ar-nuit) 72%); cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 0 #7a5a12, 0 6px 16px rgba(0, 0, 0, .5); }
.arene-icone:focus-visible, .arene-btn:focus-visible, .arene-volet input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Trois barres de curseurs dessinées (pas de glyphe). */
.arene-icone-dessin { width: 20px; height: 16px; background:
  linear-gradient(var(--ar-or2), var(--ar-or2)) 0 1px / 100% 2px no-repeat, linear-gradient(var(--ar-or2), var(--ar-or2)) 0 7px / 100% 2px no-repeat, linear-gradient(var(--ar-or2), var(--ar-or2)) 0 13px / 100% 2px no-repeat,
  radial-gradient(circle, #fff 0 3px, transparent 3.5px) 4px -1px / 6px 6px no-repeat, radial-gradient(circle, #fff 0 3px, transparent 3.5px) 12px 5px / 6px 6px no-repeat, radial-gradient(circle, #fff 0 3px, transparent 3.5px) 7px 11px / 6px 6px no-repeat; }
.arene-volet { width: min(320px, calc(100vw - 16px)); max-height: min(70vh, 460px); overflow: auto; padding: 12px; border-radius: 14px; color: #f4ead0; font: 500 .92rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #1d2c78, var(--ar-nuit) 70%); border: 2px solid var(--ar-or); box-shadow: inset 0 3px 0 var(--ar-pierre), 0 14px 34px rgba(0, 0, 0, .6); text-align: left; }
.arene-volet[hidden] { display: none; }
.arene-choix { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.arene-choix legend { font: 700 1rem var(--ar-titre); color: var(--ar-or2); letter-spacing: .04em; padding: 0 0 6px; }
.arene-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.arene-option:has(input:checked) { background: rgba(246, 215, 122, .13); box-shadow: inset 0 0 0 1px rgba(246, 215, 122, .6); }
.arene-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ar-or); }
.arene-option b { display: block; } .arene-option small { display: block; color: #c9d1f2; font-size: .82rem; }
.arene-note { margin: 4px 0 0; color: #c9d1f2; font-size: .8rem; }
.arene-volume { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 4px 8px; }
.arene-volume input { width: 100%; accent-color: var(--ar-or); }

/* ----- Message de SUMA (proposé une seule fois) ----- */
.arene-suma { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 14px; color: #131d4d; background: #fff8e6; border: 2px solid var(--ar-or); font: 500 .95rem/1.35 system-ui, sans-serif; text-align: left; }
.arene-suma p { margin: 0; flex: 1 1 200px; }
.arene-suma-portrait { height: 54px; width: auto; } .arene-suma-pastille { width: 34px; height: 34px; border-radius: 50%; background: var(--ar-nuit2); color: var(--ar-or2); display: grid; place-items: center; font-weight: 800; }
.arene-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 0; cursor: pointer; font: 700 .9rem system-ui, sans-serif; color: #2a1802; background: linear-gradient(180deg, #fbe6a0, #d9a93f); box-shadow: 0 2px 0 #8f5f14; }
.arene-btn.discret { background: transparent; color: #131d4d; box-shadow: inset 0 0 0 1.5px #131d4d; }

/* La scène porte les cartes, l'indice et le score. Le texte du duel reste accessible et sert de repli. */
#overlay.arene3d-on > .arene3d-hote { position: absolute; inset: 0; }
#overlay.arene3d-on > .arena { position: relative; z-index: 2; }
#overlay.arene3d-on:has(> .arene3d-hote:not([data-mode="repli"])) { padding: 0; overflow: clip; }
#overlay.arene3d-on:has(> .arene3d-hote:not([data-mode="repli"])) > .arena {
  align-self: end; width: fit-content; margin-bottom: max(10px, env(safe-area-inset-bottom)); gap: 0; }
#overlay.arene3d-on:has(> .arene3d-hote:not([data-mode="repli"])) .arena > :not(#see-report) {
  position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); }
#overlay.arene3d-on:has(> .arene3d-hote:not([data-mode="repli"])) :is(.fighter img.art, .fighter .character-portrait, .battle-effect-zoom) { display: none; }
.battle-caption, .battle-tools { position: absolute; z-index: 3; }
.battle-caption {
  top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left));
  max-width: min(34vw, 250px); padding: 5px 10px; border: 1px solid #cba856; border-radius: 7px;
  background: linear-gradient(180deg, #25376b, #101835); box-shadow: 0 2px 12px #040818a0;
  color: var(--ar-or2); font: 700 .8rem var(--ar-titre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battle-tools { bottom: max(10px, env(safe-area-inset-bottom)); right: max(10px, env(safe-area-inset-right)); max-width: min(42vw, 240px); }
.battle-tools:empty, #overlay:has(> .arene3d-hote[data-mode="repli"]) > :is(.battle-caption, .battle-tools) { display: none; }
.battle-tools .battle-effect-info { min-height: 44px; max-width: 100%; display: flex; gap: 6px; align-items: center; }
.battle-effect-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#overlay.arene3d-on .arene-suma { align-self: end; margin: 8px; z-index: 7; }
#overlay .arena-options { position: absolute; right: 8px; top: 8px; z-index: 7; }
#overlay .battle-effect-zoom { width: 48px; padding: 0; border: 0; background: none; cursor: pointer; float: left; margin-right: 8px; }
#overlay .battle-effect-zoom img { display: block; width: 100%; }
#overlay .arena .fx > div { display: flow-root; min-height: 0; font-size: 14px; color: #fff; }
#overlay .arena .fx > div > span { display: block; }
