#app:has(> .wrap > .arena-hall) { display: flex; flex-direction: column; min-height: 100dvh; }
.ui-fable #app > .wrap:has(> .arena-hall) {
  display: flex; flex-direction: column; flex: 1;
  width: 100%; max-width: 1540px; padding-block: 10px 12px;
}
.arena-hall {
  position: relative; isolation: isolate; overflow: clip; flex: 1;
  display: flex; flex-direction: column; gap: 8px; min-height: 370px;
  padding: clamp(8px, 1.8vmin, 18px); border: 1px solid #9c7c40; border-radius: 18px;
  background: #080e26; box-shadow: inset 0 0 0 2px #c2a26544, 0 10px 28px #0006;
}
.arena-hall > .arene3d-hote {
  position: absolute; z-index: -2; inset: 0; pointer-events: none;
}
.arena-hall::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #080e25f5, #080e2570 19%, transparent 38%, transparent 72%, #080e25df);
}
.arena-hall .arena-options { display: none; }
.arena-hall-header { display: flex; align-items: center; justify-content: center; gap: 8px; }
.arena-hall-header h2 {
  margin: 0; color: var(--fi-or-clair);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1;
  text-shadow: 0 2px 6px #000, 0 0 22px #ffc87e53;
}
.arena-hall-header .info { min-width: 44px; width: 44px; min-height: 44px; margin: 0; }
.arena-hall-header .guide-help { opacity: .9; }
.arena-hall .sous-onglets { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.arena-hall #arene-tabs { margin: 0 auto; width: min(100%, 640px); }
.arena-hall #arene-tabs .fi-banniere { flex: 1; padding-inline: 5px; font-size: clamp(.74rem, 2.8vw, 1rem); }
.arena-hall #arene-tabs .fi-banniere > span { display: flex; align-items: center; justify-content: center; gap: 5px; }
.arena-hall #arene-tabs .fi-ico { width: 19px; height: 19px; flex: none; }
.arena-hall #arene-tabs .fi-glissiere { display: none; }
.arena-hall #arene-tabs .fi-banniere[aria-selected="true"]::before {
  background: linear-gradient(180deg, #fff3c4, #eac15b 52%, #b9862a);
}
.arena-tab-count { display: grid; place-items: center; min-width: 1.35em; border-radius: 100%; background: #8d243b; color: #fff; }
.arena-hall #arene-panel { display: flex; flex-direction: column; flex: 1; justify-content: end; }
.arena-hall-deck { display: grid; gap: 8px; padding: 8px; justify-items: center; align-items: end; }
.arena-hall-deck:has(.arena-last) { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.arena-hall-action { display: grid; justify-items: center; gap: 8px; }
.arena-hall .arena-entry {
  min-height: 58px; min-width: min(285px, 100%); padding-inline: clamp(10px, 3.5vw, 24px);
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
}
.arena-free, .arena-last {
  display: inline-flex; align-items: center; gap: 7px; color: var(--fi-or-clair);
  border: 1px solid #c7a86c; background: var(--fi-grain), linear-gradient(155deg, #343a64, #111b41 74%);
  box-shadow: 0 4px 12px #0008, inset 0 1px #ffefb644;
}
.arena-free { border-radius: 30px; padding: 4px 12px; font-size: .86rem; font-weight: 700; }
.arena-free .fi-ico { width: 16px; height: 16px; flex: none; }
.arena-last { justify-self: start; border-radius: 12px; padding: 6px 12px; cursor: pointer; text-align: left; }
.arena-last:hover { border-color: var(--fi-or-clair); }
.arena-last > span { display: grid; }
.arena-last > .fi-ico { width: 26px; height: 26px; flex: none; }
.arena-hall[data-tab="epreuves"] #arene-panel, .arena-hall[data-tab="salon"] #arene-panel {
  padding-top: clamp(68px, 12dvh, 134px); max-width: 1130px; width: 100%; margin-inline: auto;
}
.arena-hall[data-tab="epreuves"] #arene-panel { padding-top: clamp(52px, 9dvh, 80px); }
.arena-hall:not([data-tab="combat"]) > .arene3d-hote { bottom: auto; height: min(100%, 620px); }
.arena-hall .trial-gallery, .arena-hall .salon { margin: 0; }
.arena-hall .trial-path { grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr)); }
.arena-hall .trial-stop::before { display: none; }
.arena-hall .trial-stop button { align-self: end; }
.arena-hall .trial-stop .row { gap: 4px; }
.arena-hall .trial-stop h4 { line-height: 1.25; }
.arena-hall .salon-foyer { margin-bottom: 8px; }
.arena-hall .salon-foyer p { margin-bottom: 4px; }

.arene3d-hote > .arena-decor-2d {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
}
.arene3d-hote:not([data-mode="repli"]) > .arena-decor-2d { display: none; }
.arena-hall .arene3d-hote > .arena-decor-2d { object-position: center bottom; }

@media (max-width: 659px) {
  .ui-fable #app > .wrap:has(> .arena-hall) { padding: 8px 8px calc(var(--nav-height) + 10px); }
  .arena-hall #arene-tabs .fi-banniere > span { flex-wrap: wrap; column-gap: 4px; row-gap: 0; }
  .arena-hall #arene-tabs .fi-ico { display: block; width: 15px; height: 15px; }
  .arena-hall-deck:has(.arena-last) { grid-template-columns: 1fr; }
  .arena-last { justify-self: center; padding: 4px 9px; }
  .arena-last > span { display: flex; align-items: center; gap: 7px; }
  .arena-hall .arena-entry { min-height: 54px; }
  .arena-hall .trial-path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .arena-hall .trial-stop { padding: 8px; border-radius: 14px; }
  .arena-hall .trial-medallion { position: static; width: 34px; height: 34px; }
  .arena-hall[data-tab="epreuves"] #arene-panel { padding-top: clamp(92px, 16dvh, 125px); }
  .arena-hall .salon-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .arena-hall .salon .salon-form { padding: 7px; grid-template-rows: auto auto auto 1fr auto; }
  .arena-hall .salon .salon-form > .fi-ico { width: 28px; height: 28px; }
  .arena-hall .salon .salon-form > label { font-size: .95rem; }
  .arena-hall .salon .salon-form > .btn { grid-row: 5; padding-inline: 5px; }
}
