/* Themes — fond combat + écran de chargement
   Le fond est une image CSS sur #view-battle : aucun élément déplacé. */

#view-battle.battle-has-theme {
  background-color: transparent !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#view-battle.battle-has-theme .battle-stage,
#view-battle.battle-has-theme .battle-stage.scale-fit {
  background: transparent !important;
  overflow: visible !important;
}

#view-battle.battle-has-theme .fullart-art {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

#view-battle > .battle-token-wrap,
.battle-token-wrap {
  position: fixed !important;
  left: 0px !important;
  top: 43% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: auto;
  transform: translateY(-50%);
  z-index: 80;
  pointer-events: none;
}
.battle-token-arrow {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px #000);
}
.battle-token-arrow.up { transform: rotate(-90deg); }
.battle-token-arrow.down { transform: rotate(90deg); }
.battle-token-arrow.is-hidden { visibility: hidden; }
.battle-turn-box {
  position: relative;
  width: 84px;
  flex-shrink: 0;
}
.battle-cadre-tour {
  width: 100%;
  height: auto;
  display: block;
}
.battle-turn {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 3px #000;
  line-height: 1;
}

#view-battle .battle-chars {
  left: 180px;
  top: -40px;
  bottom: 140px;
  right: 38%;
  overflow: visible;
  padding-left: 10px;
}
#view-battle .battle-chars-col {
  gap: 62px;
  padding-left: 10px;
}
#view-battle .battle-char-card {
  transform: scale(1.2);
  transform-origin: top left;
  margin-right: 0;
}

#view-battle .battle-combat-zone {
  width: min(920px, 64vw);   /* zone d’ombre → gauche (était ~720px / 54vw) */
}
#view-battle .fullart-text {
  font-size: 18px;           /* texte général */
}
#view-battle .fullart-spec {
  font-size: 26px;           /* “GAI - Mage” */
}
#view-battle .fullart-desc {
  font-size: 22px;           /* description */
}
#view-battle .fullart-art {
  width: 330px;              /* 220 × 1,5 */
  flex: 0 0 330px;
  max-width: 330px;
}

#view-battle .battle-hand {
  left: 32%;
}

#view-battle .fullart.fullart-solo .fullart-art {
  transform: translateX(-48px) scale(1.2);
}

.theme-view {
  background-color: transparent !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#view-home.theme-view,
#view-home.theme-view.home-view,
.home-view.theme-view {
  background-color: transparent !important;
}

#view-deck.theme-view .main,
#view-collection.theme-view .main,
#view-boutique.theme-view .main {
  background: transparent !important;
}

#view-home.theme-view,
#view-deck.theme-view,
#view-collection.theme-view,
#view-boutique.theme-view {
  width: 100%;
  min-height: 100vh;
  align-self: stretch;
}

#view-boutique.theme-view .main {
  margin-right: 180px;
  overflow: visible;
}

#view-boutique.theme-view {
  position: relative;
  overflow: hidden;
}

#view-boutique .boutique-bg-oliver {
  display: none !important;
}

#view-boutique .boutique-offers-grid {
  margin: 0 auto 0 0;
  max-width: none;
  width: auto;
  padding: 8px 16px 40px 8px;
  gap: 16px 12px;
  justify-content: start;
  justify-items: start;
  grid-template-columns: repeat(4, max-content);
}

.theme-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}

.theme-loading-overlay.visible {
  display: flex;
}

.theme-loading-box {
  width: 360px;
  max-width: 80vw;
  padding: 28px 32px;
  background: #1a1610;
  border: 1px solid #c9a227;
  border-radius: 10px;
  text-align: center;
  color: #f0d78c;
  font-family: Georgia, serif;
}

.theme-loading-title {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: 1px;
}

.theme-loading-bar {
  height: 14px;
  background: #2a2418;
  border: 1px solid #555;
  border-radius: 8px;
  overflow: hidden;
}

.theme-loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a227, #e8c84a);
}

.theme-loading-pct {
  margin: 10px 0 0;
  font-size: 13px;
  color: #ccc;
}