/* ACTIVE DEFENSE */
.active-defense {
  z-index: 10;
  pointer-events: auto;
}

.block input {
  top: 214px;
  width: 32px;
  height: 20px;
  padding-top: 2px;
  font-size: 20px;
  text-align: center;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
}

.dodge input {
  top: 245.2px;
  width: 32px;
  height: 20px;
  padding-top: 1px;
  font-size: 20px;
  text-align: center;
  background: transparent;
  border: none;
  color: #0ff;
  position: absolute;
}

.block-base { left: 630px; }
.block-boost { left: 734px; }
.dodge-base { left: 630px; }
.dodge-boost { left: 734px; }

.active-defense-display {
  left: 561px;
  top: 186px;
  width: 214px;
  height: 23px;
  font-size: auto;
  text-align: center;
  padding-left: 1px;
  background: transparent;
  border: none;
  color: transparent;
  position: absolute;
  cursor: pointer;
}

.block-use {
  left: 561px;
  top: 210px;
  width: 214px;
  height: 30px;
  font-size: auto;
  text-align: center;
  padding-left: 1px;
  background: transparent;
  border: none;
  color: transparent;
  position: absolute;
  cursor: pointer;
  z-index: 50;
}

.dodge-use {
  left: 561px;
  top: 241px;
  width: 214px;
  height: 32px;
  font-size: auto;
  text-align: center;
  padding-left: 1px;
  background: transparent;
  border: none;
  color: transparent;
  position: absolute;
  cursor: pointer;
  z-index: 50;
}

.active-defense button:hover {
  background-color: rgb(247, 240, 240, .2);
  filter: drop-shadow(0 0 15px #0ff);
  animation: pulse 4s infinite;
}

/* ============================
   BLOCK / DODGE BOOST MULTI-ROLL PANELS
   ============================ */

.block-multi-panel,
.dodge-multi-panel,
.ariel-multi-panel {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  min-width: 97px;

  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 6px;

  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #0ff;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.9);

  font-size: 11px;
  line-height: 1;
  white-space: normal;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s linear;

  z-index: 9000;
}

.block-multi-panel.visible,
.dodge-multi-panel.visible,
.ariel-multi-panel.visible {
  opacity: 1;
  pointer-events: auto;
}

.block-multi-panel-header,
.dodge-multi-panel-header,
.ariel-multi-panel-header {
  width: 100%;
  text-align: left;
  margin-bottom: 0px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  color: #0ff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.block-multi-panel-buttons,
.dodge-multi-panel-buttons,
.ariel-multi-panel-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.block-multi-option,
.dodge-multi-option,
.ariel-multi-option {
  padding: 2px 4px;
  background: transparent;
  border-radius: 4px;
  border: 1px solid #0ff;
  color: #0ff;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.block-multi-option.overexert,
.dodge-multi-option.overexert,
.ariel-multi-option.overexert {
  white-space: pre-line;
  color: #ff8080;
  font-weight: bold;
}

.overexert-label {
  color: #ff8080;
  font-weight: bold;
  margin-bottom: 2px;
  white-space: nowrap;
}

.block-multi-option:hover,
.dodge-multi-option:hover,
.ariel-multi-option:hover {
  background-color: rgba(247, 240, 240, 0.14);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* ============================
   MULTI-COLUMN LAYOUT FOR CONDITIONAL BONUSES
   ============================ */

/* Header row containing all column headers */
.block-multi-panel-header-row,
.dodge-multi-panel-header-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  margin-bottom: 0px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

/* Individual header cell (VS MELEE, Block Boost, etc.) */
.block-multi-header-cell,
.dodge-multi-header-cell {
  flex: 1;
  text-align: center;
  color: #0ff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  padding: 2px 4px;
  min-width: 90px;
}

/* Clickable conditional headers (VS MELEE) */
.block-multi-header-cell.clickable,
.dodge-multi-header-cell.clickable {
  cursor: pointer;
  border: 1px solid #0ff;
  border-radius: 4px;
  background: transparent;
}

.block-multi-header-cell.clickable:hover,
.dodge-multi-header-cell.clickable:hover {
  background-color: rgba(247, 240, 240, 0.14);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* Overexert styling for conditional headers (0 RP edge case) */
.block-multi-header-cell.overexert,
.dodge-multi-header-cell.overexert {
  color: #ff8080;
  border-color: #ff8080;
}

/* Option rows containing cells for each column */
.block-multi-option-row,
.dodge-multi-option-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
}

/* Overexert label row */
.block-multi-option-row.overexert-label-row,
.dodge-multi-option-row.overexert-label-row {
  margin-top: 2px;
}

.block-multi-option-row.overexert-label-row .block-multi-option-cell,
.dodge-multi-option-row.overexert-label-row .dodge-multi-option-cell {
  color: #ff8080;
  font-weight: bold;
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
  text-align: center;
}

/* Individual option cells (clickable options in each column) */
.block-multi-option-cell,
.dodge-multi-option-cell {
  flex: 1;
  padding: 2px 4px;
  background: transparent;
  border-radius: 4px;
  border: 1px solid #0ff;
  color: #0ff;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  min-width: 90px;
}

.block-multi-option-cell.overexert,
.dodge-multi-option-cell.overexert {
  color: #ff8080;
  border-color: #ff8080;
  font-weight: bold;
}

.block-multi-option-cell:hover,
.dodge-multi-option-cell:hover {
  background-color: rgba(247, 240, 240, 0.14);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}