.char-select-wrapper {
  position: relative;
}
.char-select-input {
  width: 100%;
  padding: 10px 8px;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}
.char-select-input:focus {
  border-color: #e94560;
  box-shadow: 0 0 8px rgba(233,69,96,0.3);
}
.char-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}
.char-dropdown.open { display: block; }
.char-dropdown-item {
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #0f3460;
}
.char-dropdown-item:active,
.char-dropdown-item.highlighted {
  background: #e94560;
  color: #fff;
}
.vs-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #e94560;
  padding-top: 20px;
  min-width: 36px;
}
.mode-tabs-wrap {
  margin-bottom: 12px;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mode-tabs::-webkit-scrollbar { display: none; }
.mode-tab {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #0f3460;
  background: transparent;
  color: #888;
  font-size: 0.75em;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mode-tab.active {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}
.mode-panel {
  display: none;
}
.mode-panel.active {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn {
  flex: 1;
  min-width: 90px;
  padding: 14px 8px;
  border: none;
  border-radius: 10px;
  font-size: 0.9em;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  -webkit-appearance: none;
  touch-action: manipulation;
}
.btn:active {
  transform: scale(0.95);
}
.btn-battle {
  background: linear-gradient(135deg, #e94560, #c0392b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}
.btn-random {
  background: linear-gradient(135deg, #0f3460, #16213e);
  color: #e0e0e0;
  border: 1px solid #0f3460;
  box-shadow: 0 4px 15px rgba(15,52,96,0.4);
}
.btn-tournament {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}
.btn-ore {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}
.btn:disabled {
  opacity: 0.5;
  transform: none;
}
.hp-section {
  margin-bottom: 10px;
}
.hp-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 6px;
}
.hp-name {
  font-size: 0.72em;
  width: 80px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.hp-bar-outer {
  flex: 1;
  height: 22px;
  background: #0a0a1a;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #333;
  position: relative;
}
.hp-bar-inner {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease-out, background-color 0.3s ease;
  width: 100%;
  position: relative;
}
.hp-bar-inner.green { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.hp-bar-inner.orange { background: linear-gradient(90deg, #e67e22, #f39c12); }
.hp-bar-inner.red { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.hp-text {
  font-size: 0.65em;
  width: 70px;
  text-align: left;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
/* ── バトル停止/再生ボタン ── */
.hp-rows-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-rows {
  flex: 1;
  min-width: 0;
}
.battle-ctrl-area {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-shrink: 0;
}
.battle-ctrl-btn,
.battle-step-btn {
  background: #16213e;
  border: 1px solid #0f3460;
  color: #ccc;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 1.1em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  transition: background 0.15s;
}
.battle-ctrl-btn:active,
.battle-step-btn:active { background: #0f3460; }
