.inc-overlay {
  position: fixed;
  inset: 0;
  z-index: 360;
  background: rgba(6, 8, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.inc-overlay.visible { display: flex; }
.inc-dialog {
  width: min(720px, 94vw);
  background: #16120c;
  border: 1px solid #c9a227;
  border-radius: 10px;
  padding: 18px 20px;
  color: #eee;
}
.inc-dialog-speaker { color: #f0d78c; font-weight: 700; margin-bottom: 8px; }
.inc-dialog-text { min-height: 48px; font-size: 18px; }
.inc-dialog-btns { text-align: right; margin-top: 16px; }
.inc-dialog-btns button,
.inc-home,
.inc-save {
  padding: 8px 16px;
  background: #2a2210;
  border: 1px solid #c9a227;
  color: #f0d78c;
  border-radius: 6px;
  cursor: pointer;
}

.inc-editor {
  position: fixed;
  inset: 0;
  z-index: 355;
  display: none;
  background: #0b1018 url("Resources/Art/Illustrations_Diverses/Artworks fonds/Fond_hub_combat.png") center/cover no-repeat;
  color: #eee;
  padding: 18px 24px;
  box-sizing: border-box;
  overflow: auto;
}
.inc-editor.visible { display: block; }
.inc-top-btns {
  position: fixed;
  top: 16px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  z-index: 500;
}
.inc-top-btns button {
  min-width: 150px;
  position: static !important;
  display: block !important;
}

.inc-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 48px auto 0;
}
.inc-left { text-align: center; }
.inc-left h2 { margin: 0 0 10px; color: #9ae37b; }
.inc-left img {
  width: min(240px, 70vw);
  border-radius: 8px;
  border: 1px solid #3a4a32;
}
.inc-left input {
  margin-top: 12px;
  width: 90%;
  padding: 8px;
  background: #12180f;
  border: 1px solid #4a6a3a;
  color: #dff5d4;
  text-align: center;
}
.inc-stats {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: flex-start;
  min-height: 92px;
}
.inc-stat {
  width: 86px;
  min-width: 86px;
  height: 92px;
  box-sizing: border-box;
  text-align: center;
  background: rgba(12, 16, 12, 0.72);
  border: 1px solid #3a4a32;
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.inc-stat label { display: block; font-size: 11px; color: #9aaa90; line-height: 1.1; min-height: 24px; }
.inc-stat .inc-val { font-size: 20px; font-weight: 700; }
.inc-arrow {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
  height: 18px;
}
.inc-arrow.up { color: #3dcc5a; }
.inc-arrow.down { color: #e05555; }
.inc-bonus {
  min-width: 72px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #9ae37b;
  font-size: 22px;
  margin-right: 6px;
}
.inc-bonus span { font-size: 12px; color: #9aaa90; margin-left: 4px; }
.inc-bonus { flex-direction: row; align-items: baseline; gap: 6px; }
.inc-turn-n { width: 48px !important; }
.inc-if { margin: 0 6px; color: #9aaa90; }
.inc-effects { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.inc-box {
  border: 1px solid #3a4a32;
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(10, 14, 10, 0.7);
}
.inc-box h3 { margin: 0 0 8px; font-size: 14px; color: #c9a227; }
.inc-box select, .inc-box input[type="number"] {
  margin: 4px 6px 4px 0;
  padding: 4px 6px;
  background: #12180f;
  border: 1px solid #4a6a3a;
  color: #eee;
}
.inc-preview { white-space: pre-line; color: #cde8c4; font-size: 14px; margin-top: 10px; }
.inc-readonly input, .inc-readonly select, .inc-readonly button.inc-arrow, .inc-readonly .inc-save {
  pointer-events: none;
  opacity: 0.85;
}
.inc-readonly .inc-save, .inc-readonly .inc-arrow { display: none; }

.inc-card-host {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 390px;
  margin-bottom: 8px;
}
.inc-card-host .card {
  transform: scale(1.18);
  transform-origin: top center;
}
#incUnitName, #incUnitLegend {
  display: block;
  margin: 8px auto 0;
  width: 92%;
  background: #000;
  border: 0;
  color: #dff5d4;
  text-align: center;
  font-family: inherit;
  resize: none;
}
#incUnitName { padding: 6px 0; font-size: 16px; }
#incUnitLegend { min-height: 44px; line-height: 1.25; padding: 4px 0; }

.inc-zoom-box { position: relative; padding: 48px 24px 24px; }

#incUnitLegend { margin-top: 8px; }

#incUnitLegend {
  margin-top: 8px;
  width: 90%;
  min-height: 52px;
  resize: none;
  background: #12180f;
  border: 1px solid #4a6a3a;
  color: #dff5d4;
  text-align: center;
  font-family: inherit;
}
.inc-unit-card.zoom .legend { white-space: pre-wrap; line-height: 1.15; }